diff --git a/OsmAnd-java/src/net/osmand/binary/OsmandOdb.java b/OsmAnd-java/src/net/osmand/binary/OsmandOdb.java index cedfb6c050..550033e555 100644 --- a/OsmAnd-java/src/net/osmand/binary/OsmandOdb.java +++ b/OsmAnd-java/src/net/osmand/binary/OsmandOdb.java @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: protos/OBF.proto +// source: OBF.proto package net.osmand.binary; @@ -8,11 +8,77 @@ public final class OsmandOdb { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } + public interface OsmAndStructureOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 version = 1; + boolean hasVersion(); + int getVersion(); + + // required int64 dateCreated = 18; + boolean hasDateCreated(); + long getDateCreated(); + + // repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; + java.util.List + getAddressIndexList(); + net.osmand.binary.OsmandOdb.OsmAndAddressIndex getAddressIndex(int index); + int getAddressIndexCount(); + java.util.List + getAddressIndexOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder getAddressIndexOrBuilder( + int index); + + // repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4; + java.util.List + getTransportIndexList(); + net.osmand.binary.OsmandOdb.OsmAndTransportIndex getTransportIndex(int index); + int getTransportIndexCount(); + java.util.List + getTransportIndexOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder getTransportIndexOrBuilder( + int index); + + // repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8; + java.util.List + getPoiIndexList(); + net.osmand.binary.OsmandOdb.OsmAndPoiIndex getPoiIndex(int index); + int getPoiIndexCount(); + java.util.List + getPoiIndexOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder getPoiIndexOrBuilder( + int index); + + // repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6; + java.util.List + getMapIndexList(); + net.osmand.binary.OsmandOdb.OsmAndMapIndex getMapIndex(int index); + int getMapIndexCount(); + java.util.List + getMapIndexOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder getMapIndexOrBuilder( + int index); + + // repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9; + java.util.List + getRoutingIndexList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex getRoutingIndex(int index); + int getRoutingIndexCount(); + java.util.List + getRoutingIndexOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder getRoutingIndexOrBuilder( + int index); + + // required uint32 versionConfirm = 32; + boolean hasVersionConfirm(); + int getVersionConfirm(); + } public static final class OsmAndStructure extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndStructureOrBuilder { // Use OsmAndStructure.newBuilder() to construct. - private OsmAndStructure() { - initFields(); + private OsmAndStructure(Builder builder) { + super(builder); } private OsmAndStructure(boolean noInit) {} @@ -35,137 +101,229 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndStructure_fieldAccessorTable; } + private int bitField0_; // required uint32 version = 1; public static final int VERSION_FIELD_NUMBER = 1; - private boolean hasVersion; - private int version_ = 0; - public boolean hasVersion() { return hasVersion; } - public int getVersion() { return version_; } + private int version_; + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getVersion() { + return version_; + } // required int64 dateCreated = 18; public static final int DATECREATED_FIELD_NUMBER = 18; - private boolean hasDateCreated; - private long dateCreated_ = 0L; - public boolean hasDateCreated() { return hasDateCreated; } - public long getDateCreated() { return dateCreated_; } + private long dateCreated_; + public boolean hasDateCreated() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public long getDateCreated() { + return dateCreated_; + } // repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; public static final int ADDRESSINDEX_FIELD_NUMBER = 7; - private java.util.List addressIndex_ = - java.util.Collections.emptyList(); + private java.util.List addressIndex_; public java.util.List getAddressIndexList() { return addressIndex_; } - public int getAddressIndexCount() { return addressIndex_.size(); } + public java.util.List + getAddressIndexOrBuilderList() { + return addressIndex_; + } + public int getAddressIndexCount() { + return addressIndex_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex getAddressIndex(int index) { return addressIndex_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder getAddressIndexOrBuilder( + int index) { + return addressIndex_.get(index); + } // repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4; public static final int TRANSPORTINDEX_FIELD_NUMBER = 4; - private java.util.List transportIndex_ = - java.util.Collections.emptyList(); + private java.util.List transportIndex_; public java.util.List getTransportIndexList() { return transportIndex_; } - public int getTransportIndexCount() { return transportIndex_.size(); } + public java.util.List + getTransportIndexOrBuilderList() { + return transportIndex_; + } + public int getTransportIndexCount() { + return transportIndex_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndTransportIndex getTransportIndex(int index) { return transportIndex_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder getTransportIndexOrBuilder( + int index) { + return transportIndex_.get(index); + } // repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8; public static final int POIINDEX_FIELD_NUMBER = 8; - private java.util.List poiIndex_ = - java.util.Collections.emptyList(); + private java.util.List poiIndex_; public java.util.List getPoiIndexList() { return poiIndex_; } - public int getPoiIndexCount() { return poiIndex_.size(); } + public java.util.List + getPoiIndexOrBuilderList() { + return poiIndex_; + } + public int getPoiIndexCount() { + return poiIndex_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndPoiIndex getPoiIndex(int index) { return poiIndex_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder getPoiIndexOrBuilder( + int index) { + return poiIndex_.get(index); + } // repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6; public static final int MAPINDEX_FIELD_NUMBER = 6; - private java.util.List mapIndex_ = - java.util.Collections.emptyList(); + private java.util.List mapIndex_; public java.util.List getMapIndexList() { return mapIndex_; } - public int getMapIndexCount() { return mapIndex_.size(); } + public java.util.List + getMapIndexOrBuilderList() { + return mapIndex_; + } + public int getMapIndexCount() { + return mapIndex_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndMapIndex getMapIndex(int index) { return mapIndex_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder getMapIndexOrBuilder( + int index) { + return mapIndex_.get(index); + } // repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9; public static final int ROUTINGINDEX_FIELD_NUMBER = 9; - private java.util.List routingIndex_ = - java.util.Collections.emptyList(); + private java.util.List routingIndex_; public java.util.List getRoutingIndexList() { return routingIndex_; } - public int getRoutingIndexCount() { return routingIndex_.size(); } + public java.util.List + getRoutingIndexOrBuilderList() { + return routingIndex_; + } + public int getRoutingIndexCount() { + return routingIndex_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex getRoutingIndex(int index) { return routingIndex_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder getRoutingIndexOrBuilder( + int index) { + return routingIndex_.get(index); + } // required uint32 versionConfirm = 32; public static final int VERSIONCONFIRM_FIELD_NUMBER = 32; - private boolean hasVersionConfirm; - private int versionConfirm_ = 0; - public boolean hasVersionConfirm() { return hasVersionConfirm; } - public int getVersionConfirm() { return versionConfirm_; } + private int versionConfirm_; + public boolean hasVersionConfirm() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getVersionConfirm() { + return versionConfirm_; + } private void initFields() { + version_ = 0; + dateCreated_ = 0L; + addressIndex_ = java.util.Collections.emptyList(); + transportIndex_ = java.util.Collections.emptyList(); + poiIndex_ = java.util.Collections.emptyList(); + mapIndex_ = java.util.Collections.emptyList(); + routingIndex_ = java.util.Collections.emptyList(); + versionConfirm_ = 0; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasVersion) return false; - if (!hasDateCreated) return false; - if (!hasVersionConfirm) return false; - for (net.osmand.binary.OsmandOdb.OsmAndAddressIndex element : getAddressIndexList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasVersion()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.OsmAndTransportIndex element : getTransportIndexList()) { - if (!element.isInitialized()) return false; + if (!hasDateCreated()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.OsmAndPoiIndex element : getPoiIndexList()) { - if (!element.isInitialized()) return false; + if (!hasVersionConfirm()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex element : getMapIndexList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getAddressIndexCount(); i++) { + if (!getAddressIndex(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex element : getRoutingIndexList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getTransportIndexCount(); i++) { + if (!getTransportIndex(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + for (int i = 0; i < getPoiIndexCount(); i++) { + if (!getPoiIndex(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getMapIndexCount(); i++) { + if (!getMapIndex(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getRoutingIndexCount(); i++) { + if (!getRoutingIndex(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasVersion()) { - output.writeUInt32(1, getVersion()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, version_); } - for (net.osmand.binary.OsmandOdb.OsmAndTransportIndex element : getTransportIndexList()) { - output.writeMessage(4, element); + for (int i = 0; i < transportIndex_.size(); i++) { + output.writeMessage(4, transportIndex_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex element : getMapIndexList()) { - output.writeMessage(6, element); + for (int i = 0; i < mapIndex_.size(); i++) { + output.writeMessage(6, mapIndex_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndAddressIndex element : getAddressIndexList()) { - output.writeMessage(7, element); + for (int i = 0; i < addressIndex_.size(); i++) { + output.writeMessage(7, addressIndex_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiIndex element : getPoiIndexList()) { - output.writeMessage(8, element); + for (int i = 0; i < poiIndex_.size(); i++) { + output.writeMessage(8, poiIndex_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex element : getRoutingIndexList()) { - output.writeMessage(9, element); + for (int i = 0; i < routingIndex_.size(); i++) { + output.writeMessage(9, routingIndex_.get(i)); } - if (hasDateCreated()) { - output.writeInt64(18, getDateCreated()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(18, dateCreated_); } - if (hasVersionConfirm()) { - output.writeUInt32(32, getVersionConfirm()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(32, versionConfirm_); } getUnknownFields().writeTo(output); } @@ -176,43 +334,50 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasVersion()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, getVersion()); + .computeUInt32Size(1, version_); } - for (net.osmand.binary.OsmandOdb.OsmAndTransportIndex element : getTransportIndexList()) { + for (int i = 0; i < transportIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, element); + .computeMessageSize(4, transportIndex_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex element : getMapIndexList()) { + for (int i = 0; i < mapIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, element); + .computeMessageSize(6, mapIndex_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndAddressIndex element : getAddressIndexList()) { + for (int i = 0; i < addressIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, element); + .computeMessageSize(7, addressIndex_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiIndex element : getPoiIndexList()) { + for (int i = 0; i < poiIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, element); + .computeMessageSize(8, poiIndex_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex element : getRoutingIndexList()) { + for (int i = 0; i < routingIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, element); + .computeMessageSize(9, routingIndex_.get(i)); } - if (hasDateCreated()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeInt64Size(18, getDateCreated()); + .computeInt64Size(18, dateCreated_); } - if (hasVersionConfirm()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(32, getVersionConfirm()); + .computeUInt32Size(32, versionConfirm_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndStructure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -287,34 +452,90 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndStructure result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndStructure.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndStructure(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndStructureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndStructure_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndStructure internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndStructure_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndStructure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getAddressIndexFieldBuilder(); + getTransportIndexFieldBuilder(); + getPoiIndexFieldBuilder(); + getMapIndexFieldBuilder(); + getRoutingIndexFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + version_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + dateCreated_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + if (addressIndexBuilder_ == null) { + addressIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + addressIndexBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndStructure(); + if (transportIndexBuilder_ == null) { + transportIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + transportIndexBuilder_.clear(); + } + if (poiIndexBuilder_ == null) { + poiIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + poiIndexBuilder_.clear(); + } + if (mapIndexBuilder_ == null) { + mapIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + mapIndexBuilder_.clear(); + } + if (routingIndexBuilder_ == null) { + routingIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + routingIndexBuilder_.clear(); + } + versionConfirm_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -326,53 +547,88 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndStructure.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndStructure build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndStructure result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndStructure buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndStructure result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndStructure buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndStructure result = new net.osmand.binary.OsmandOdb.OsmAndStructure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.addressIndex_ != java.util.Collections.EMPTY_LIST) { - result.addressIndex_ = - java.util.Collections.unmodifiableList(result.addressIndex_); + result.version_ = version_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - if (result.transportIndex_ != java.util.Collections.EMPTY_LIST) { - result.transportIndex_ = - java.util.Collections.unmodifiableList(result.transportIndex_); + result.dateCreated_ = dateCreated_; + if (addressIndexBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + addressIndex_ = java.util.Collections.unmodifiableList(addressIndex_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.addressIndex_ = addressIndex_; + } else { + result.addressIndex_ = addressIndexBuilder_.build(); } - if (result.poiIndex_ != java.util.Collections.EMPTY_LIST) { - result.poiIndex_ = - java.util.Collections.unmodifiableList(result.poiIndex_); + if (transportIndexBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + transportIndex_ = java.util.Collections.unmodifiableList(transportIndex_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.transportIndex_ = transportIndex_; + } else { + result.transportIndex_ = transportIndexBuilder_.build(); } - if (result.mapIndex_ != java.util.Collections.EMPTY_LIST) { - result.mapIndex_ = - java.util.Collections.unmodifiableList(result.mapIndex_); + if (poiIndexBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + poiIndex_ = java.util.Collections.unmodifiableList(poiIndex_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.poiIndex_ = poiIndex_; + } else { + result.poiIndex_ = poiIndexBuilder_.build(); } - if (result.routingIndex_ != java.util.Collections.EMPTY_LIST) { - result.routingIndex_ = - java.util.Collections.unmodifiableList(result.routingIndex_); + if (mapIndexBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + mapIndex_ = java.util.Collections.unmodifiableList(mapIndex_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.mapIndex_ = mapIndex_; + } else { + result.mapIndex_ = mapIndexBuilder_.build(); } - net.osmand.binary.OsmandOdb.OsmAndStructure returnMe = result; - result = null; - return returnMe; + if (routingIndexBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + routingIndex_ = java.util.Collections.unmodifiableList(routingIndex_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.routingIndex_ = routingIndex_; + } else { + result.routingIndex_ = routingIndexBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000004; + } + result.versionConfirm_ = versionConfirm_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -392,35 +648,135 @@ public final class OsmandOdb { if (other.hasDateCreated()) { setDateCreated(other.getDateCreated()); } - if (!other.addressIndex_.isEmpty()) { - if (result.addressIndex_.isEmpty()) { - result.addressIndex_ = new java.util.ArrayList(); + if (addressIndexBuilder_ == null) { + if (!other.addressIndex_.isEmpty()) { + if (addressIndex_.isEmpty()) { + addressIndex_ = other.addressIndex_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAddressIndexIsMutable(); + addressIndex_.addAll(other.addressIndex_); + } + onChanged(); + } + } else { + if (!other.addressIndex_.isEmpty()) { + if (addressIndexBuilder_.isEmpty()) { + addressIndexBuilder_.dispose(); + addressIndexBuilder_ = null; + addressIndex_ = other.addressIndex_; + bitField0_ = (bitField0_ & ~0x00000004); + addressIndexBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAddressIndexFieldBuilder() : null; + } else { + addressIndexBuilder_.addAllMessages(other.addressIndex_); + } } - result.addressIndex_.addAll(other.addressIndex_); } - if (!other.transportIndex_.isEmpty()) { - if (result.transportIndex_.isEmpty()) { - result.transportIndex_ = new java.util.ArrayList(); + if (transportIndexBuilder_ == null) { + if (!other.transportIndex_.isEmpty()) { + if (transportIndex_.isEmpty()) { + transportIndex_ = other.transportIndex_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTransportIndexIsMutable(); + transportIndex_.addAll(other.transportIndex_); + } + onChanged(); + } + } else { + if (!other.transportIndex_.isEmpty()) { + if (transportIndexBuilder_.isEmpty()) { + transportIndexBuilder_.dispose(); + transportIndexBuilder_ = null; + transportIndex_ = other.transportIndex_; + bitField0_ = (bitField0_ & ~0x00000008); + transportIndexBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getTransportIndexFieldBuilder() : null; + } else { + transportIndexBuilder_.addAllMessages(other.transportIndex_); + } } - result.transportIndex_.addAll(other.transportIndex_); } - if (!other.poiIndex_.isEmpty()) { - if (result.poiIndex_.isEmpty()) { - result.poiIndex_ = new java.util.ArrayList(); + if (poiIndexBuilder_ == null) { + if (!other.poiIndex_.isEmpty()) { + if (poiIndex_.isEmpty()) { + poiIndex_ = other.poiIndex_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePoiIndexIsMutable(); + poiIndex_.addAll(other.poiIndex_); + } + onChanged(); + } + } else { + if (!other.poiIndex_.isEmpty()) { + if (poiIndexBuilder_.isEmpty()) { + poiIndexBuilder_.dispose(); + poiIndexBuilder_ = null; + poiIndex_ = other.poiIndex_; + bitField0_ = (bitField0_ & ~0x00000010); + poiIndexBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPoiIndexFieldBuilder() : null; + } else { + poiIndexBuilder_.addAllMessages(other.poiIndex_); + } } - result.poiIndex_.addAll(other.poiIndex_); } - if (!other.mapIndex_.isEmpty()) { - if (result.mapIndex_.isEmpty()) { - result.mapIndex_ = new java.util.ArrayList(); + if (mapIndexBuilder_ == null) { + if (!other.mapIndex_.isEmpty()) { + if (mapIndex_.isEmpty()) { + mapIndex_ = other.mapIndex_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureMapIndexIsMutable(); + mapIndex_.addAll(other.mapIndex_); + } + onChanged(); + } + } else { + if (!other.mapIndex_.isEmpty()) { + if (mapIndexBuilder_.isEmpty()) { + mapIndexBuilder_.dispose(); + mapIndexBuilder_ = null; + mapIndex_ = other.mapIndex_; + bitField0_ = (bitField0_ & ~0x00000020); + mapIndexBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getMapIndexFieldBuilder() : null; + } else { + mapIndexBuilder_.addAllMessages(other.mapIndex_); + } } - result.mapIndex_.addAll(other.mapIndex_); } - if (!other.routingIndex_.isEmpty()) { - if (result.routingIndex_.isEmpty()) { - result.routingIndex_ = new java.util.ArrayList(); + if (routingIndexBuilder_ == null) { + if (!other.routingIndex_.isEmpty()) { + if (routingIndex_.isEmpty()) { + routingIndex_ = other.routingIndex_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureRoutingIndexIsMutable(); + routingIndex_.addAll(other.routingIndex_); + } + onChanged(); + } + } else { + if (!other.routingIndex_.isEmpty()) { + if (routingIndexBuilder_.isEmpty()) { + routingIndexBuilder_.dispose(); + routingIndexBuilder_ = null; + routingIndex_ = other.routingIndex_; + bitField0_ = (bitField0_ & ~0x00000040); + routingIndexBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRoutingIndexFieldBuilder() : null; + } else { + routingIndexBuilder_.addAllMessages(other.routingIndex_); + } } - result.routingIndex_.addAll(other.routingIndex_); } if (other.hasVersionConfirm()) { setVersionConfirm(other.getVersionConfirm()); @@ -429,6 +785,52 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasVersion()) { + + return false; + } + if (!hasDateCreated()) { + + return false; + } + if (!hasVersionConfirm()) { + + return false; + } + for (int i = 0; i < getAddressIndexCount(); i++) { + if (!getAddressIndex(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getTransportIndexCount(); i++) { + if (!getTransportIndex(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getPoiIndexCount(); i++) { + if (!getPoiIndex(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getMapIndexCount(); i++) { + if (!getMapIndex(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getRoutingIndexCount(); i++) { + if (!getRoutingIndex(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -441,17 +843,20 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setVersion(input.readUInt32()); + bitField0_ |= 0x00000001; + version_ = input.readUInt32(); break; } case 34: { @@ -485,324 +890,1011 @@ public final class OsmandOdb { break; } case 144: { - setDateCreated(input.readInt64()); + bitField0_ |= 0x00000002; + dateCreated_ = input.readInt64(); break; } case 256: { - setVersionConfirm(input.readUInt32()); + bitField0_ |= 0x00000080; + versionConfirm_ = input.readUInt32(); break; } } } } + private int bitField0_; // required uint32 version = 1; + private int version_ ; public boolean hasVersion() { - return result.hasVersion(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getVersion() { - return result.getVersion(); + return version_; } public Builder setVersion(int value) { - result.hasVersion = true; - result.version_ = value; + bitField0_ |= 0x00000001; + version_ = value; + onChanged(); return this; } public Builder clearVersion() { - result.hasVersion = false; - result.version_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + version_ = 0; + onChanged(); return this; } // required int64 dateCreated = 18; + private long dateCreated_ ; public boolean hasDateCreated() { - return result.hasDateCreated(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public long getDateCreated() { - return result.getDateCreated(); + return dateCreated_; } public Builder setDateCreated(long value) { - result.hasDateCreated = true; - result.dateCreated_ = value; + bitField0_ |= 0x00000002; + dateCreated_ = value; + onChanged(); return this; } public Builder clearDateCreated() { - result.hasDateCreated = false; - result.dateCreated_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + dateCreated_ = 0L; + onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; + private java.util.List addressIndex_ = + java.util.Collections.emptyList(); + private void ensureAddressIndexIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + addressIndex_ = new java.util.ArrayList(addressIndex_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder> addressIndexBuilder_; + public java.util.List getAddressIndexList() { - return java.util.Collections.unmodifiableList(result.addressIndex_); + if (addressIndexBuilder_ == null) { + return java.util.Collections.unmodifiableList(addressIndex_); + } else { + return addressIndexBuilder_.getMessageList(); + } } public int getAddressIndexCount() { - return result.getAddressIndexCount(); + if (addressIndexBuilder_ == null) { + return addressIndex_.size(); + } else { + return addressIndexBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex getAddressIndex(int index) { - return result.getAddressIndex(index); - } - public Builder setAddressIndex(int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex value) { - if (value == null) { - throw new NullPointerException(); + if (addressIndexBuilder_ == null) { + return addressIndex_.get(index); + } else { + return addressIndexBuilder_.getMessage(index); + } + } + public Builder setAddressIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex value) { + if (addressIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressIndexIsMutable(); + addressIndex_.set(index, value); + onChanged(); + } else { + addressIndexBuilder_.setMessage(index, value); } - result.addressIndex_.set(index, value); return this; } - public Builder setAddressIndex(int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder builderForValue) { - result.addressIndex_.set(index, builderForValue.build()); + public Builder setAddressIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder builderForValue) { + if (addressIndexBuilder_ == null) { + ensureAddressIndexIsMutable(); + addressIndex_.set(index, builderForValue.build()); + onChanged(); + } else { + addressIndexBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addAddressIndex(net.osmand.binary.OsmandOdb.OsmAndAddressIndex value) { - if (value == null) { - throw new NullPointerException(); + if (addressIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressIndexIsMutable(); + addressIndex_.add(value); + onChanged(); + } else { + addressIndexBuilder_.addMessage(value); } - if (result.addressIndex_.isEmpty()) { - result.addressIndex_ = new java.util.ArrayList(); - } - result.addressIndex_.add(value); return this; } - public Builder addAddressIndex(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder builderForValue) { - if (result.addressIndex_.isEmpty()) { - result.addressIndex_ = new java.util.ArrayList(); + public Builder addAddressIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex value) { + if (addressIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressIndexIsMutable(); + addressIndex_.add(index, value); + onChanged(); + } else { + addressIndexBuilder_.addMessage(index, value); + } + return this; + } + public Builder addAddressIndex( + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder builderForValue) { + if (addressIndexBuilder_ == null) { + ensureAddressIndexIsMutable(); + addressIndex_.add(builderForValue.build()); + onChanged(); + } else { + addressIndexBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addAddressIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder builderForValue) { + if (addressIndexBuilder_ == null) { + ensureAddressIndexIsMutable(); + addressIndex_.add(index, builderForValue.build()); + onChanged(); + } else { + addressIndexBuilder_.addMessage(index, builderForValue.build()); } - result.addressIndex_.add(builderForValue.build()); return this; } public Builder addAllAddressIndex( java.lang.Iterable values) { - if (result.addressIndex_.isEmpty()) { - result.addressIndex_ = new java.util.ArrayList(); + if (addressIndexBuilder_ == null) { + ensureAddressIndexIsMutable(); + super.addAll(values, addressIndex_); + onChanged(); + } else { + addressIndexBuilder_.addAllMessages(values); } - super.addAll(values, result.addressIndex_); return this; } public Builder clearAddressIndex() { - result.addressIndex_ = java.util.Collections.emptyList(); + if (addressIndexBuilder_ == null) { + addressIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + addressIndexBuilder_.clear(); + } return this; } + public Builder removeAddressIndex(int index) { + if (addressIndexBuilder_ == null) { + ensureAddressIndexIsMutable(); + addressIndex_.remove(index); + onChanged(); + } else { + addressIndexBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder getAddressIndexBuilder( + int index) { + return getAddressIndexFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder getAddressIndexOrBuilder( + int index) { + if (addressIndexBuilder_ == null) { + return addressIndex_.get(index); } else { + return addressIndexBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getAddressIndexOrBuilderList() { + if (addressIndexBuilder_ != null) { + return addressIndexBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(addressIndex_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder addAddressIndexBuilder() { + return getAddressIndexFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder addAddressIndexBuilder( + int index) { + return getAddressIndexFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance()); + } + public java.util.List + getAddressIndexBuilderList() { + return getAddressIndexFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder> + getAddressIndexFieldBuilder() { + if (addressIndexBuilder_ == null) { + addressIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder>( + addressIndex_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + addressIndex_ = null; + } + return addressIndexBuilder_; + } // repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4; + private java.util.List transportIndex_ = + java.util.Collections.emptyList(); + private void ensureTransportIndexIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + transportIndex_ = new java.util.ArrayList(transportIndex_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndTransportIndex, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder> transportIndexBuilder_; + public java.util.List getTransportIndexList() { - return java.util.Collections.unmodifiableList(result.transportIndex_); + if (transportIndexBuilder_ == null) { + return java.util.Collections.unmodifiableList(transportIndex_); + } else { + return transportIndexBuilder_.getMessageList(); + } } public int getTransportIndexCount() { - return result.getTransportIndexCount(); + if (transportIndexBuilder_ == null) { + return transportIndex_.size(); + } else { + return transportIndexBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndTransportIndex getTransportIndex(int index) { - return result.getTransportIndex(index); - } - public Builder setTransportIndex(int index, net.osmand.binary.OsmandOdb.OsmAndTransportIndex value) { - if (value == null) { - throw new NullPointerException(); + if (transportIndexBuilder_ == null) { + return transportIndex_.get(index); + } else { + return transportIndexBuilder_.getMessage(index); + } + } + public Builder setTransportIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndTransportIndex value) { + if (transportIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransportIndexIsMutable(); + transportIndex_.set(index, value); + onChanged(); + } else { + transportIndexBuilder_.setMessage(index, value); } - result.transportIndex_.set(index, value); return this; } - public Builder setTransportIndex(int index, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder builderForValue) { - result.transportIndex_.set(index, builderForValue.build()); + public Builder setTransportIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder builderForValue) { + if (transportIndexBuilder_ == null) { + ensureTransportIndexIsMutable(); + transportIndex_.set(index, builderForValue.build()); + onChanged(); + } else { + transportIndexBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addTransportIndex(net.osmand.binary.OsmandOdb.OsmAndTransportIndex value) { - if (value == null) { - throw new NullPointerException(); + if (transportIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransportIndexIsMutable(); + transportIndex_.add(value); + onChanged(); + } else { + transportIndexBuilder_.addMessage(value); } - if (result.transportIndex_.isEmpty()) { - result.transportIndex_ = new java.util.ArrayList(); - } - result.transportIndex_.add(value); return this; } - public Builder addTransportIndex(net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder builderForValue) { - if (result.transportIndex_.isEmpty()) { - result.transportIndex_ = new java.util.ArrayList(); + public Builder addTransportIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndTransportIndex value) { + if (transportIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransportIndexIsMutable(); + transportIndex_.add(index, value); + onChanged(); + } else { + transportIndexBuilder_.addMessage(index, value); + } + return this; + } + public Builder addTransportIndex( + net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder builderForValue) { + if (transportIndexBuilder_ == null) { + ensureTransportIndexIsMutable(); + transportIndex_.add(builderForValue.build()); + onChanged(); + } else { + transportIndexBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addTransportIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder builderForValue) { + if (transportIndexBuilder_ == null) { + ensureTransportIndexIsMutable(); + transportIndex_.add(index, builderForValue.build()); + onChanged(); + } else { + transportIndexBuilder_.addMessage(index, builderForValue.build()); } - result.transportIndex_.add(builderForValue.build()); return this; } public Builder addAllTransportIndex( java.lang.Iterable values) { - if (result.transportIndex_.isEmpty()) { - result.transportIndex_ = new java.util.ArrayList(); + if (transportIndexBuilder_ == null) { + ensureTransportIndexIsMutable(); + super.addAll(values, transportIndex_); + onChanged(); + } else { + transportIndexBuilder_.addAllMessages(values); } - super.addAll(values, result.transportIndex_); return this; } public Builder clearTransportIndex() { - result.transportIndex_ = java.util.Collections.emptyList(); + if (transportIndexBuilder_ == null) { + transportIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + transportIndexBuilder_.clear(); + } return this; } + public Builder removeTransportIndex(int index) { + if (transportIndexBuilder_ == null) { + ensureTransportIndexIsMutable(); + transportIndex_.remove(index); + onChanged(); + } else { + transportIndexBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder getTransportIndexBuilder( + int index) { + return getTransportIndexFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder getTransportIndexOrBuilder( + int index) { + if (transportIndexBuilder_ == null) { + return transportIndex_.get(index); } else { + return transportIndexBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getTransportIndexOrBuilderList() { + if (transportIndexBuilder_ != null) { + return transportIndexBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(transportIndex_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder addTransportIndexBuilder() { + return getTransportIndexFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndTransportIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder addTransportIndexBuilder( + int index) { + return getTransportIndexFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.getDefaultInstance()); + } + public java.util.List + getTransportIndexBuilderList() { + return getTransportIndexFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndTransportIndex, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder> + getTransportIndexFieldBuilder() { + if (transportIndexBuilder_ == null) { + transportIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndTransportIndex, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder>( + transportIndex_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + transportIndex_ = null; + } + return transportIndexBuilder_; + } // repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8; + private java.util.List poiIndex_ = + java.util.Collections.emptyList(); + private void ensurePoiIndexIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + poiIndex_ = new java.util.ArrayList(poiIndex_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiIndex, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder> poiIndexBuilder_; + public java.util.List getPoiIndexList() { - return java.util.Collections.unmodifiableList(result.poiIndex_); + if (poiIndexBuilder_ == null) { + return java.util.Collections.unmodifiableList(poiIndex_); + } else { + return poiIndexBuilder_.getMessageList(); + } } public int getPoiIndexCount() { - return result.getPoiIndexCount(); + if (poiIndexBuilder_ == null) { + return poiIndex_.size(); + } else { + return poiIndexBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndPoiIndex getPoiIndex(int index) { - return result.getPoiIndex(index); - } - public Builder setPoiIndex(int index, net.osmand.binary.OsmandOdb.OsmAndPoiIndex value) { - if (value == null) { - throw new NullPointerException(); + if (poiIndexBuilder_ == null) { + return poiIndex_.get(index); + } else { + return poiIndexBuilder_.getMessage(index); + } + } + public Builder setPoiIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiIndex value) { + if (poiIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoiIndexIsMutable(); + poiIndex_.set(index, value); + onChanged(); + } else { + poiIndexBuilder_.setMessage(index, value); } - result.poiIndex_.set(index, value); return this; } - public Builder setPoiIndex(int index, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder builderForValue) { - result.poiIndex_.set(index, builderForValue.build()); + public Builder setPoiIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder builderForValue) { + if (poiIndexBuilder_ == null) { + ensurePoiIndexIsMutable(); + poiIndex_.set(index, builderForValue.build()); + onChanged(); + } else { + poiIndexBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addPoiIndex(net.osmand.binary.OsmandOdb.OsmAndPoiIndex value) { - if (value == null) { - throw new NullPointerException(); + if (poiIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoiIndexIsMutable(); + poiIndex_.add(value); + onChanged(); + } else { + poiIndexBuilder_.addMessage(value); } - if (result.poiIndex_.isEmpty()) { - result.poiIndex_ = new java.util.ArrayList(); - } - result.poiIndex_.add(value); return this; } - public Builder addPoiIndex(net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder builderForValue) { - if (result.poiIndex_.isEmpty()) { - result.poiIndex_ = new java.util.ArrayList(); + public Builder addPoiIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiIndex value) { + if (poiIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoiIndexIsMutable(); + poiIndex_.add(index, value); + onChanged(); + } else { + poiIndexBuilder_.addMessage(index, value); + } + return this; + } + public Builder addPoiIndex( + net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder builderForValue) { + if (poiIndexBuilder_ == null) { + ensurePoiIndexIsMutable(); + poiIndex_.add(builderForValue.build()); + onChanged(); + } else { + poiIndexBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addPoiIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder builderForValue) { + if (poiIndexBuilder_ == null) { + ensurePoiIndexIsMutable(); + poiIndex_.add(index, builderForValue.build()); + onChanged(); + } else { + poiIndexBuilder_.addMessage(index, builderForValue.build()); } - result.poiIndex_.add(builderForValue.build()); return this; } public Builder addAllPoiIndex( java.lang.Iterable values) { - if (result.poiIndex_.isEmpty()) { - result.poiIndex_ = new java.util.ArrayList(); + if (poiIndexBuilder_ == null) { + ensurePoiIndexIsMutable(); + super.addAll(values, poiIndex_); + onChanged(); + } else { + poiIndexBuilder_.addAllMessages(values); } - super.addAll(values, result.poiIndex_); return this; } public Builder clearPoiIndex() { - result.poiIndex_ = java.util.Collections.emptyList(); + if (poiIndexBuilder_ == null) { + poiIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + poiIndexBuilder_.clear(); + } return this; } + public Builder removePoiIndex(int index) { + if (poiIndexBuilder_ == null) { + ensurePoiIndexIsMutable(); + poiIndex_.remove(index); + onChanged(); + } else { + poiIndexBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder getPoiIndexBuilder( + int index) { + return getPoiIndexFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder getPoiIndexOrBuilder( + int index) { + if (poiIndexBuilder_ == null) { + return poiIndex_.get(index); } else { + return poiIndexBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getPoiIndexOrBuilderList() { + if (poiIndexBuilder_ != null) { + return poiIndexBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(poiIndex_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder addPoiIndexBuilder() { + return getPoiIndexFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndPoiIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder addPoiIndexBuilder( + int index) { + return getPoiIndexFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.getDefaultInstance()); + } + public java.util.List + getPoiIndexBuilderList() { + return getPoiIndexFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiIndex, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder> + getPoiIndexFieldBuilder() { + if (poiIndexBuilder_ == null) { + poiIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiIndex, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder>( + poiIndex_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + poiIndex_ = null; + } + return poiIndexBuilder_; + } // repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6; + private java.util.List mapIndex_ = + java.util.Collections.emptyList(); + private void ensureMapIndexIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + mapIndex_ = new java.util.ArrayList(mapIndex_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder> mapIndexBuilder_; + public java.util.List getMapIndexList() { - return java.util.Collections.unmodifiableList(result.mapIndex_); + if (mapIndexBuilder_ == null) { + return java.util.Collections.unmodifiableList(mapIndex_); + } else { + return mapIndexBuilder_.getMessageList(); + } } public int getMapIndexCount() { - return result.getMapIndexCount(); + if (mapIndexBuilder_ == null) { + return mapIndex_.size(); + } else { + return mapIndexBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndMapIndex getMapIndex(int index) { - return result.getMapIndex(index); - } - public Builder setMapIndex(int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex value) { - if (value == null) { - throw new NullPointerException(); + if (mapIndexBuilder_ == null) { + return mapIndex_.get(index); + } else { + return mapIndexBuilder_.getMessage(index); + } + } + public Builder setMapIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex value) { + if (mapIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapIndexIsMutable(); + mapIndex_.set(index, value); + onChanged(); + } else { + mapIndexBuilder_.setMessage(index, value); } - result.mapIndex_.set(index, value); return this; } - public Builder setMapIndex(int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder builderForValue) { - result.mapIndex_.set(index, builderForValue.build()); + public Builder setMapIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder builderForValue) { + if (mapIndexBuilder_ == null) { + ensureMapIndexIsMutable(); + mapIndex_.set(index, builderForValue.build()); + onChanged(); + } else { + mapIndexBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addMapIndex(net.osmand.binary.OsmandOdb.OsmAndMapIndex value) { - if (value == null) { - throw new NullPointerException(); + if (mapIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapIndexIsMutable(); + mapIndex_.add(value); + onChanged(); + } else { + mapIndexBuilder_.addMessage(value); } - if (result.mapIndex_.isEmpty()) { - result.mapIndex_ = new java.util.ArrayList(); - } - result.mapIndex_.add(value); return this; } - public Builder addMapIndex(net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder builderForValue) { - if (result.mapIndex_.isEmpty()) { - result.mapIndex_ = new java.util.ArrayList(); + public Builder addMapIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex value) { + if (mapIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMapIndexIsMutable(); + mapIndex_.add(index, value); + onChanged(); + } else { + mapIndexBuilder_.addMessage(index, value); + } + return this; + } + public Builder addMapIndex( + net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder builderForValue) { + if (mapIndexBuilder_ == null) { + ensureMapIndexIsMutable(); + mapIndex_.add(builderForValue.build()); + onChanged(); + } else { + mapIndexBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addMapIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder builderForValue) { + if (mapIndexBuilder_ == null) { + ensureMapIndexIsMutable(); + mapIndex_.add(index, builderForValue.build()); + onChanged(); + } else { + mapIndexBuilder_.addMessage(index, builderForValue.build()); } - result.mapIndex_.add(builderForValue.build()); return this; } public Builder addAllMapIndex( java.lang.Iterable values) { - if (result.mapIndex_.isEmpty()) { - result.mapIndex_ = new java.util.ArrayList(); + if (mapIndexBuilder_ == null) { + ensureMapIndexIsMutable(); + super.addAll(values, mapIndex_); + onChanged(); + } else { + mapIndexBuilder_.addAllMessages(values); } - super.addAll(values, result.mapIndex_); return this; } public Builder clearMapIndex() { - result.mapIndex_ = java.util.Collections.emptyList(); + if (mapIndexBuilder_ == null) { + mapIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + mapIndexBuilder_.clear(); + } return this; } + public Builder removeMapIndex(int index) { + if (mapIndexBuilder_ == null) { + ensureMapIndexIsMutable(); + mapIndex_.remove(index); + onChanged(); + } else { + mapIndexBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder getMapIndexBuilder( + int index) { + return getMapIndexFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder getMapIndexOrBuilder( + int index) { + if (mapIndexBuilder_ == null) { + return mapIndex_.get(index); } else { + return mapIndexBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getMapIndexOrBuilderList() { + if (mapIndexBuilder_ != null) { + return mapIndexBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mapIndex_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder addMapIndexBuilder() { + return getMapIndexFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndMapIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder addMapIndexBuilder( + int index) { + return getMapIndexFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.getDefaultInstance()); + } + public java.util.List + getMapIndexBuilderList() { + return getMapIndexFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder> + getMapIndexFieldBuilder() { + if (mapIndexBuilder_ == null) { + mapIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder>( + mapIndex_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + mapIndex_ = null; + } + return mapIndexBuilder_; + } // repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9; + private java.util.List routingIndex_ = + java.util.Collections.emptyList(); + private void ensureRoutingIndexIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + routingIndex_ = new java.util.ArrayList(routingIndex_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder> routingIndexBuilder_; + public java.util.List getRoutingIndexList() { - return java.util.Collections.unmodifiableList(result.routingIndex_); + if (routingIndexBuilder_ == null) { + return java.util.Collections.unmodifiableList(routingIndex_); + } else { + return routingIndexBuilder_.getMessageList(); + } } public int getRoutingIndexCount() { - return result.getRoutingIndexCount(); + if (routingIndexBuilder_ == null) { + return routingIndex_.size(); + } else { + return routingIndexBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex getRoutingIndex(int index) { - return result.getRoutingIndex(index); - } - public Builder setRoutingIndex(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex value) { - if (value == null) { - throw new NullPointerException(); + if (routingIndexBuilder_ == null) { + return routingIndex_.get(index); + } else { + return routingIndexBuilder_.getMessage(index); + } + } + public Builder setRoutingIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex value) { + if (routingIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutingIndexIsMutable(); + routingIndex_.set(index, value); + onChanged(); + } else { + routingIndexBuilder_.setMessage(index, value); } - result.routingIndex_.set(index, value); return this; } - public Builder setRoutingIndex(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder builderForValue) { - result.routingIndex_.set(index, builderForValue.build()); + public Builder setRoutingIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder builderForValue) { + if (routingIndexBuilder_ == null) { + ensureRoutingIndexIsMutable(); + routingIndex_.set(index, builderForValue.build()); + onChanged(); + } else { + routingIndexBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addRoutingIndex(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex value) { - if (value == null) { - throw new NullPointerException(); + if (routingIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutingIndexIsMutable(); + routingIndex_.add(value); + onChanged(); + } else { + routingIndexBuilder_.addMessage(value); } - if (result.routingIndex_.isEmpty()) { - result.routingIndex_ = new java.util.ArrayList(); - } - result.routingIndex_.add(value); return this; } - public Builder addRoutingIndex(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder builderForValue) { - if (result.routingIndex_.isEmpty()) { - result.routingIndex_ = new java.util.ArrayList(); + public Builder addRoutingIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex value) { + if (routingIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutingIndexIsMutable(); + routingIndex_.add(index, value); + onChanged(); + } else { + routingIndexBuilder_.addMessage(index, value); + } + return this; + } + public Builder addRoutingIndex( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder builderForValue) { + if (routingIndexBuilder_ == null) { + ensureRoutingIndexIsMutable(); + routingIndex_.add(builderForValue.build()); + onChanged(); + } else { + routingIndexBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addRoutingIndex( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder builderForValue) { + if (routingIndexBuilder_ == null) { + ensureRoutingIndexIsMutable(); + routingIndex_.add(index, builderForValue.build()); + onChanged(); + } else { + routingIndexBuilder_.addMessage(index, builderForValue.build()); } - result.routingIndex_.add(builderForValue.build()); return this; } public Builder addAllRoutingIndex( java.lang.Iterable values) { - if (result.routingIndex_.isEmpty()) { - result.routingIndex_ = new java.util.ArrayList(); + if (routingIndexBuilder_ == null) { + ensureRoutingIndexIsMutable(); + super.addAll(values, routingIndex_); + onChanged(); + } else { + routingIndexBuilder_.addAllMessages(values); } - super.addAll(values, result.routingIndex_); return this; } public Builder clearRoutingIndex() { - result.routingIndex_ = java.util.Collections.emptyList(); + if (routingIndexBuilder_ == null) { + routingIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + routingIndexBuilder_.clear(); + } return this; } + public Builder removeRoutingIndex(int index) { + if (routingIndexBuilder_ == null) { + ensureRoutingIndexIsMutable(); + routingIndex_.remove(index); + onChanged(); + } else { + routingIndexBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder getRoutingIndexBuilder( + int index) { + return getRoutingIndexFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder getRoutingIndexOrBuilder( + int index) { + if (routingIndexBuilder_ == null) { + return routingIndex_.get(index); } else { + return routingIndexBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getRoutingIndexOrBuilderList() { + if (routingIndexBuilder_ != null) { + return routingIndexBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(routingIndex_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder addRoutingIndexBuilder() { + return getRoutingIndexFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder addRoutingIndexBuilder( + int index) { + return getRoutingIndexFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.getDefaultInstance()); + } + public java.util.List + getRoutingIndexBuilderList() { + return getRoutingIndexFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder> + getRoutingIndexFieldBuilder() { + if (routingIndexBuilder_ == null) { + routingIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder>( + routingIndex_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + routingIndex_ = null; + } + return routingIndexBuilder_; + } // required uint32 versionConfirm = 32; + private int versionConfirm_ ; public boolean hasVersionConfirm() { - return result.hasVersionConfirm(); + return ((bitField0_ & 0x00000080) == 0x00000080); } public int getVersionConfirm() { - return result.getVersionConfirm(); + return versionConfirm_; } public Builder setVersionConfirm(int value) { - result.hasVersionConfirm = true; - result.versionConfirm_ = value; + bitField0_ |= 0x00000080; + versionConfirm_ = value; + onChanged(); return this; } public Builder clearVersionConfirm() { - result.hasVersionConfirm = false; - result.versionConfirm_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + versionConfirm_ = 0; + onChanged(); return this; } @@ -811,18 +1903,37 @@ public final class OsmandOdb { static { defaultInstance = new OsmAndStructure(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndStructure) } + public interface OsmAndTileBoxOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 left = 1; + boolean hasLeft(); + int getLeft(); + + // required uint32 right = 2; + boolean hasRight(); + int getRight(); + + // required uint32 top = 3; + boolean hasTop(); + int getTop(); + + // required uint32 bottom = 4; + boolean hasBottom(); + int getBottom(); + } public static final class OsmAndTileBox extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndTileBoxOrBuilder { // Use OsmAndTileBox.newBuilder() to construct. - private OsmAndTileBox() { - initFields(); + private OsmAndTileBox(Builder builder) { + super(builder); } private OsmAndTileBox(boolean noInit) {} @@ -845,58 +1956,92 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTileBox_fieldAccessorTable; } + private int bitField0_; // required uint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; - private boolean hasLeft; - private int left_ = 0; - public boolean hasLeft() { return hasLeft; } - public int getLeft() { return left_; } + private int left_; + public boolean hasLeft() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getLeft() { + return left_; + } // required uint32 right = 2; public static final int RIGHT_FIELD_NUMBER = 2; - private boolean hasRight; - private int right_ = 0; - public boolean hasRight() { return hasRight; } - public int getRight() { return right_; } + private int right_; + public boolean hasRight() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getRight() { + return right_; + } // required uint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; - private boolean hasTop; - private int top_ = 0; - public boolean hasTop() { return hasTop; } - public int getTop() { return top_; } + private int top_; + public boolean hasTop() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getTop() { + return top_; + } // required uint32 bottom = 4; public static final int BOTTOM_FIELD_NUMBER = 4; - private boolean hasBottom; - private int bottom_ = 0; - public boolean hasBottom() { return hasBottom; } - public int getBottom() { return bottom_; } + private int bottom_; + public boolean hasBottom() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getBottom() { + return bottom_; + } private void initFields() { + left_ = 0; + right_ = 0; + top_ = 0; + bottom_ = 0; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasLeft) return false; - if (!hasRight) return false; - if (!hasTop) return false; - if (!hasBottom) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasLeft()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRight()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTop()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasBottom()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasLeft()) { - output.writeUInt32(1, getLeft()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, left_); } - if (hasRight()) { - output.writeUInt32(2, getRight()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, right_); } - if (hasTop()) { - output.writeUInt32(3, getTop()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, top_); } - if (hasBottom()) { - output.writeUInt32(4, getBottom()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, bottom_); } getUnknownFields().writeTo(output); } @@ -907,27 +2052,34 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasLeft()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, getLeft()); + .computeUInt32Size(1, left_); } - if (hasRight()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, getRight()); + .computeUInt32Size(2, right_); } - if (hasTop()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, getTop()); + .computeUInt32Size(3, top_); } - if (hasBottom()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, getBottom()); + .computeUInt32Size(4, bottom_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndTileBox parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1002,34 +2154,57 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndTileBox result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndTileBox.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndTileBox(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTileBox_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndTileBox internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTileBox_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndTileBox.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndTileBox(); + super.clear(); + left_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + right_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + top_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + bottom_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -1041,33 +2216,47 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndTileBox build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndTileBox result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndTileBox buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndTileBox result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndTileBox buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndTileBox result = new net.osmand.binary.OsmandOdb.OsmAndTileBox(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.OsmAndTileBox returnMe = result; - result = null; - return returnMe; + result.left_ = left_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.right_ = right_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.top_ = top_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.bottom_ = bottom_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -1097,6 +2286,26 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasLeft()) { + + return false; + } + if (!hasRight()) { + + return false; + } + if (!hasTop()) { + + return false; + } + if (!hasBottom()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1109,105 +2318,124 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setLeft(input.readUInt32()); + bitField0_ |= 0x00000001; + left_ = input.readUInt32(); break; } case 16: { - setRight(input.readUInt32()); + bitField0_ |= 0x00000002; + right_ = input.readUInt32(); break; } case 24: { - setTop(input.readUInt32()); + bitField0_ |= 0x00000004; + top_ = input.readUInt32(); break; } case 32: { - setBottom(input.readUInt32()); + bitField0_ |= 0x00000008; + bottom_ = input.readUInt32(); break; } } } } + private int bitField0_; // required uint32 left = 1; + private int left_ ; public boolean hasLeft() { - return result.hasLeft(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getLeft() { - return result.getLeft(); + return left_; } public Builder setLeft(int value) { - result.hasLeft = true; - result.left_ = value; + bitField0_ |= 0x00000001; + left_ = value; + onChanged(); return this; } public Builder clearLeft() { - result.hasLeft = false; - result.left_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + left_ = 0; + onChanged(); return this; } // required uint32 right = 2; + private int right_ ; public boolean hasRight() { - return result.hasRight(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getRight() { - return result.getRight(); + return right_; } public Builder setRight(int value) { - result.hasRight = true; - result.right_ = value; + bitField0_ |= 0x00000002; + right_ = value; + onChanged(); return this; } public Builder clearRight() { - result.hasRight = false; - result.right_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + right_ = 0; + onChanged(); return this; } // required uint32 top = 3; + private int top_ ; public boolean hasTop() { - return result.hasTop(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getTop() { - return result.getTop(); + return top_; } public Builder setTop(int value) { - result.hasTop = true; - result.top_ = value; + bitField0_ |= 0x00000004; + top_ = value; + onChanged(); return this; } public Builder clearTop() { - result.hasTop = false; - result.top_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + top_ = 0; + onChanged(); return this; } // required uint32 bottom = 4; + private int bottom_ ; public boolean hasBottom() { - return result.hasBottom(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getBottom() { - return result.getBottom(); + return bottom_; } public Builder setBottom(int value) { - result.hasBottom = true; - result.bottom_ = value; + bitField0_ |= 0x00000008; + bottom_ = value; + onChanged(); return this; } public Builder clearBottom() { - result.hasBottom = false; - result.bottom_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + bottom_ = 0; + onChanged(); return this; } @@ -1216,18 +2444,26 @@ public final class OsmandOdb { static { defaultInstance = new OsmAndTileBox(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndTileBox) } + public interface StringTableOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated string s = 1; + java.util.List getSList(); + int getSCount(); + String getS(int index); + } public static final class StringTable extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements StringTableOrBuilder { // Use StringTable.newBuilder() to construct. - private StringTable() { - initFields(); + private StringTable(Builder builder) { + super(builder); } private StringTable(boolean noInit) {} @@ -1252,27 +2488,35 @@ public final class OsmandOdb { // repeated string s = 1; public static final int S_FIELD_NUMBER = 1; - private java.util.List s_ = - java.util.Collections.emptyList(); - public java.util.List getSList() { + private com.google.protobuf.LazyStringList s_; + public java.util.List + getSList() { return s_; } - public int getSCount() { return s_.size(); } - public java.lang.String getS(int index) { + public int getSCount() { + return s_.size(); + } + public String getS(int index) { return s_.get(index); } private void initFields() { + s_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - for (java.lang.String element : getSList()) { - output.writeString(1, element); + for (int i = 0; i < s_.size(); i++) { + output.writeBytes(1, s_.getByteString(i)); } getUnknownFields().writeTo(output); } @@ -1285,9 +2529,9 @@ public final class OsmandOdb { size = 0; { int dataSize = 0; - for (java.lang.String element : getSList()) { + for (int i = 0; i < s_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeStringSizeNoTag(element); + .computeBytesSizeNoTag(s_.getByteString(i)); } size += dataSize; size += 1 * getSList().size(); @@ -1297,6 +2541,13 @@ public final class OsmandOdb { return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.StringTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1371,34 +2622,51 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.StringTable result; - - // Construct using net.osmand.binary.OsmandOdb.StringTable.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.StringTable(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.StringTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StringTable_descriptor; } - protected net.osmand.binary.OsmandOdb.StringTable internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StringTable_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.StringTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.StringTable(); + super.clear(); + s_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -1410,37 +2678,35 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.StringTable build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.StringTable result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.StringTable buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.StringTable result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.StringTable buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.StringTable result = new net.osmand.binary.OsmandOdb.StringTable(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + s_ = new com.google.protobuf.UnmodifiableLazyStringList( + s_); + bitField0_ = (bitField0_ & ~0x00000001); } - if (result.s_ != java.util.Collections.EMPTY_LIST) { - result.s_ = - java.util.Collections.unmodifiableList(result.s_); - } - net.osmand.binary.OsmandOdb.StringTable returnMe = result; - result = null; - return returnMe; + result.s_ = s_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -1455,15 +2721,23 @@ public final class OsmandOdb { public Builder mergeFrom(net.osmand.binary.OsmandOdb.StringTable other) { if (other == net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) return this; if (!other.s_.isEmpty()) { - if (result.s_.isEmpty()) { - result.s_ = new java.util.ArrayList(); + if (s_.isEmpty()) { + s_ = other.s_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSIsMutable(); + s_.addAll(other.s_); } - result.s_.addAll(other.s_); + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1476,81 +2750,128 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - addS(input.readString()); + ensureSIsMutable(); + s_.add(input.readBytes()); break; } } } } + private int bitField0_; // repeated string s = 1; - public java.util.List getSList() { - return java.util.Collections.unmodifiableList(result.s_); + private com.google.protobuf.LazyStringList s_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + s_ = new com.google.protobuf.LazyStringArrayList(s_); + bitField0_ |= 0x00000001; + } + } + public java.util.List + getSList() { + return java.util.Collections.unmodifiableList(s_); } public int getSCount() { - return result.getSCount(); + return s_.size(); } - public java.lang.String getS(int index) { - return result.getS(index); + public String getS(int index) { + return s_.get(index); } - public Builder setS(int index, java.lang.String value) { + public Builder setS( + int index, String value) { if (value == null) { throw new NullPointerException(); } - result.s_.set(index, value); + ensureSIsMutable(); + s_.set(index, value); + onChanged(); return this; } - public Builder addS(java.lang.String value) { + public Builder addS(String value) { if (value == null) { throw new NullPointerException(); } - if (result.s_.isEmpty()) { - result.s_ = new java.util.ArrayList(); - } - result.s_.add(value); + ensureSIsMutable(); + s_.add(value); + onChanged(); return this; } public Builder addAllS( - java.lang.Iterable values) { - if (result.s_.isEmpty()) { - result.s_ = new java.util.ArrayList(); - } - super.addAll(values, result.s_); + java.lang.Iterable values) { + ensureSIsMutable(); + super.addAll(values, s_); + onChanged(); return this; } public Builder clearS() { - result.s_ = java.util.Collections.emptyList(); + s_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } + void addS(com.google.protobuf.ByteString value) { + ensureSIsMutable(); + s_.add(value); + onChanged(); + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.StringTable) } static { defaultInstance = new StringTable(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.StringTable) } + public interface IndexedStringTableOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string prefix = 1; + boolean hasPrefix(); + String getPrefix(); + + // repeated string key = 3; + java.util.List getKeyList(); + int getKeyCount(); + String getKey(int index); + + // repeated fixed32 val = 4; + java.util.List getValList(); + int getValCount(); + int getVal(int index); + + // repeated .OsmAnd.OBF.IndexedStringTable subtables = 5; + java.util.List + getSubtablesList(); + net.osmand.binary.OsmandOdb.IndexedStringTable getSubtables(int index); + int getSubtablesCount(); + java.util.List + getSubtablesOrBuilderList(); + net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getSubtablesOrBuilder( + int index); + } public static final class IndexedStringTable extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements IndexedStringTableOrBuilder { // Use IndexedStringTable.newBuilder() to construct. - private IndexedStringTable() { - initFields(); + private IndexedStringTable(Builder builder) { + super(builder); } private IndexedStringTable(boolean noInit) {} @@ -1573,69 +2894,117 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IndexedStringTable_fieldAccessorTable; } + private int bitField0_; // optional string prefix = 1; public static final int PREFIX_FIELD_NUMBER = 1; - private boolean hasPrefix; - private java.lang.String prefix_ = ""; - public boolean hasPrefix() { return hasPrefix; } - public java.lang.String getPrefix() { return prefix_; } + private java.lang.Object prefix_; + public boolean hasPrefix() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getPrefix() { + java.lang.Object ref = prefix_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + prefix_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // repeated string key = 3; public static final int KEY_FIELD_NUMBER = 3; - private java.util.List key_ = - java.util.Collections.emptyList(); - public java.util.List getKeyList() { + private com.google.protobuf.LazyStringList key_; + public java.util.List + getKeyList() { return key_; } - public int getKeyCount() { return key_.size(); } - public java.lang.String getKey(int index) { + public int getKeyCount() { + return key_.size(); + } + public String getKey(int index) { return key_.get(index); } // repeated fixed32 val = 4; public static final int VAL_FIELD_NUMBER = 4; - private java.util.List val_ = - java.util.Collections.emptyList(); - public java.util.List getValList() { + private java.util.List val_; + public java.util.List + getValList() { return val_; } - public int getValCount() { return val_.size(); } + public int getValCount() { + return val_.size(); + } public int getVal(int index) { return val_.get(index); } // repeated .OsmAnd.OBF.IndexedStringTable subtables = 5; public static final int SUBTABLES_FIELD_NUMBER = 5; - private java.util.List subtables_ = - java.util.Collections.emptyList(); + private java.util.List subtables_; public java.util.List getSubtablesList() { return subtables_; } - public int getSubtablesCount() { return subtables_.size(); } + public java.util.List + getSubtablesOrBuilderList() { + return subtables_; + } + public int getSubtablesCount() { + return subtables_.size(); + } public net.osmand.binary.OsmandOdb.IndexedStringTable getSubtables(int index) { return subtables_.get(index); } + public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getSubtablesOrBuilder( + int index) { + return subtables_.get(index); + } private void initFields() { + prefix_ = ""; + key_ = com.google.protobuf.LazyStringArrayList.EMPTY; + val_ = java.util.Collections.emptyList();; + subtables_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasPrefix()) { - output.writeString(1, getPrefix()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getPrefixBytes()); } - for (java.lang.String element : getKeyList()) { - output.writeString(3, element); + for (int i = 0; i < key_.size(); i++) { + output.writeBytes(3, key_.getByteString(i)); } - for (int element : getValList()) { - output.writeFixed32(4, element); + for (int i = 0; i < val_.size(); i++) { + output.writeFixed32(4, val_.get(i)); } - for (net.osmand.binary.OsmandOdb.IndexedStringTable element : getSubtablesList()) { - output.writeMessage(5, element); + for (int i = 0; i < subtables_.size(); i++) { + output.writeMessage(5, subtables_.get(i)); } getUnknownFields().writeTo(output); } @@ -1646,15 +3015,15 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasPrefix()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getPrefix()); + .computeBytesSize(1, getPrefixBytes()); } { int dataSize = 0; - for (java.lang.String element : getKeyList()) { + for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeStringSizeNoTag(element); + .computeBytesSizeNoTag(key_.getByteString(i)); } size += dataSize; size += 1 * getKeyList().size(); @@ -1665,15 +3034,22 @@ public final class OsmandOdb { size += dataSize; size += 1 * getValList().size(); } - for (net.osmand.binary.OsmandOdb.IndexedStringTable element : getSubtablesList()) { + for (int i = 0; i < subtables_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, element); + .computeMessageSize(5, subtables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.IndexedStringTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1748,34 +3124,62 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.IndexedStringTable result; - - // Construct using net.osmand.binary.OsmandOdb.IndexedStringTable.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.IndexedStringTable(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IndexedStringTable_descriptor; } - protected net.osmand.binary.OsmandOdb.IndexedStringTable internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IndexedStringTable_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.IndexedStringTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getSubtablesFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + prefix_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + key_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + val_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + if (subtablesBuilder_ == null) { + subtables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + subtablesBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.IndexedStringTable(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -1787,45 +3191,55 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.IndexedStringTable build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.IndexedStringTable result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.IndexedStringTable buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.IndexedStringTable result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.IndexedStringTable buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.IndexedStringTable result = new net.osmand.binary.OsmandOdb.IndexedStringTable(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.key_ != java.util.Collections.EMPTY_LIST) { - result.key_ = - java.util.Collections.unmodifiableList(result.key_); + result.prefix_ = prefix_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + key_ = new com.google.protobuf.UnmodifiableLazyStringList( + key_); + bitField0_ = (bitField0_ & ~0x00000002); } - if (result.val_ != java.util.Collections.EMPTY_LIST) { - result.val_ = - java.util.Collections.unmodifiableList(result.val_); + result.key_ = key_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + val_ = java.util.Collections.unmodifiableList(val_); + bitField0_ = (bitField0_ & ~0x00000004); } - if (result.subtables_ != java.util.Collections.EMPTY_LIST) { - result.subtables_ = - java.util.Collections.unmodifiableList(result.subtables_); + result.val_ = val_; + if (subtablesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subtables_ = java.util.Collections.unmodifiableList(subtables_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.subtables_ = subtables_; + } else { + result.subtables_ = subtablesBuilder_.build(); } - net.osmand.binary.OsmandOdb.IndexedStringTable returnMe = result; - result = null; - return returnMe; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -1843,27 +3257,59 @@ public final class OsmandOdb { setPrefix(other.getPrefix()); } if (!other.key_.isEmpty()) { - if (result.key_.isEmpty()) { - result.key_ = new java.util.ArrayList(); + if (key_.isEmpty()) { + key_ = other.key_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureKeyIsMutable(); + key_.addAll(other.key_); } - result.key_.addAll(other.key_); + onChanged(); } if (!other.val_.isEmpty()) { - if (result.val_.isEmpty()) { - result.val_ = new java.util.ArrayList(); + if (val_.isEmpty()) { + val_ = other.val_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureValIsMutable(); + val_.addAll(other.val_); } - result.val_.addAll(other.val_); + onChanged(); } - if (!other.subtables_.isEmpty()) { - if (result.subtables_.isEmpty()) { - result.subtables_ = new java.util.ArrayList(); + if (subtablesBuilder_ == null) { + if (!other.subtables_.isEmpty()) { + if (subtables_.isEmpty()) { + subtables_ = other.subtables_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSubtablesIsMutable(); + subtables_.addAll(other.subtables_); + } + onChanged(); + } + } else { + if (!other.subtables_.isEmpty()) { + if (subtablesBuilder_.isEmpty()) { + subtablesBuilder_.dispose(); + subtablesBuilder_ = null; + subtables_ = other.subtables_; + bitField0_ = (bitField0_ & ~0x00000008); + subtablesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSubtablesFieldBuilder() : null; + } else { + subtablesBuilder_.addAllMessages(other.subtables_); + } } - result.subtables_.addAll(other.subtables_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1876,25 +3322,30 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setPrefix(input.readString()); + bitField0_ |= 0x00000001; + prefix_ = input.readBytes(); break; } case 26: { - addKey(input.readString()); + ensureKeyIsMutable(); + key_.add(input.readBytes()); break; } case 37: { - addVal(input.readFixed32()); + ensureValIsMutable(); + val_.add(input.readFixed32()); break; } case 34: { @@ -1916,170 +3367,375 @@ public final class OsmandOdb { } } + private int bitField0_; // optional string prefix = 1; + private java.lang.Object prefix_ = ""; public boolean hasPrefix() { - return result.hasPrefix(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getPrefix() { - return result.getPrefix(); + public String getPrefix() { + java.lang.Object ref = prefix_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + prefix_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setPrefix(java.lang.String value) { + public Builder setPrefix(String value) { if (value == null) { throw new NullPointerException(); } - result.hasPrefix = true; - result.prefix_ = value; + bitField0_ |= 0x00000001; + prefix_ = value; + onChanged(); return this; } public Builder clearPrefix() { - result.hasPrefix = false; - result.prefix_ = getDefaultInstance().getPrefix(); + bitField0_ = (bitField0_ & ~0x00000001); + prefix_ = getDefaultInstance().getPrefix(); + onChanged(); return this; } + void setPrefix(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + prefix_ = value; + onChanged(); + } // repeated string key = 3; - public java.util.List getKeyList() { - return java.util.Collections.unmodifiableList(result.key_); + private com.google.protobuf.LazyStringList key_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureKeyIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + key_ = new com.google.protobuf.LazyStringArrayList(key_); + bitField0_ |= 0x00000002; + } + } + public java.util.List + getKeyList() { + return java.util.Collections.unmodifiableList(key_); } public int getKeyCount() { - return result.getKeyCount(); + return key_.size(); } - public java.lang.String getKey(int index) { - return result.getKey(index); + public String getKey(int index) { + return key_.get(index); } - public Builder setKey(int index, java.lang.String value) { + public Builder setKey( + int index, String value) { if (value == null) { throw new NullPointerException(); } - result.key_.set(index, value); + ensureKeyIsMutable(); + key_.set(index, value); + onChanged(); return this; } - public Builder addKey(java.lang.String value) { + public Builder addKey(String value) { if (value == null) { throw new NullPointerException(); } - if (result.key_.isEmpty()) { - result.key_ = new java.util.ArrayList(); - } - result.key_.add(value); + ensureKeyIsMutable(); + key_.add(value); + onChanged(); return this; } public Builder addAllKey( - java.lang.Iterable values) { - if (result.key_.isEmpty()) { - result.key_ = new java.util.ArrayList(); - } - super.addAll(values, result.key_); + java.lang.Iterable values) { + ensureKeyIsMutable(); + super.addAll(values, key_); + onChanged(); return this; } public Builder clearKey() { - result.key_ = java.util.Collections.emptyList(); + key_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); return this; } + void addKey(com.google.protobuf.ByteString value) { + ensureKeyIsMutable(); + key_.add(value); + onChanged(); + } // repeated fixed32 val = 4; - public java.util.List getValList() { - return java.util.Collections.unmodifiableList(result.val_); + private java.util.List val_ = java.util.Collections.emptyList();; + private void ensureValIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + val_ = new java.util.ArrayList(val_); + bitField0_ |= 0x00000004; + } + } + public java.util.List + getValList() { + return java.util.Collections.unmodifiableList(val_); } public int getValCount() { - return result.getValCount(); + return val_.size(); } public int getVal(int index) { - return result.getVal(index); + return val_.get(index); } - public Builder setVal(int index, int value) { - result.val_.set(index, value); + public Builder setVal( + int index, int value) { + ensureValIsMutable(); + val_.set(index, value); + onChanged(); return this; } public Builder addVal(int value) { - if (result.val_.isEmpty()) { - result.val_ = new java.util.ArrayList(); - } - result.val_.add(value); + ensureValIsMutable(); + val_.add(value); + onChanged(); return this; } public Builder addAllVal( java.lang.Iterable values) { - if (result.val_.isEmpty()) { - result.val_ = new java.util.ArrayList(); - } - super.addAll(values, result.val_); + ensureValIsMutable(); + super.addAll(values, val_); + onChanged(); return this; } public Builder clearVal() { - result.val_ = java.util.Collections.emptyList(); + val_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); return this; } // repeated .OsmAnd.OBF.IndexedStringTable subtables = 5; + private java.util.List subtables_ = + java.util.Collections.emptyList(); + private void ensureSubtablesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + subtables_ = new java.util.ArrayList(subtables_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> subtablesBuilder_; + public java.util.List getSubtablesList() { - return java.util.Collections.unmodifiableList(result.subtables_); + if (subtablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(subtables_); + } else { + return subtablesBuilder_.getMessageList(); + } } public int getSubtablesCount() { - return result.getSubtablesCount(); + if (subtablesBuilder_ == null) { + return subtables_.size(); + } else { + return subtablesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.IndexedStringTable getSubtables(int index) { - return result.getSubtables(index); - } - public Builder setSubtables(int index, net.osmand.binary.OsmandOdb.IndexedStringTable value) { - if (value == null) { - throw new NullPointerException(); + if (subtablesBuilder_ == null) { + return subtables_.get(index); + } else { + return subtablesBuilder_.getMessage(index); + } + } + public Builder setSubtables( + int index, net.osmand.binary.OsmandOdb.IndexedStringTable value) { + if (subtablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubtablesIsMutable(); + subtables_.set(index, value); + onChanged(); + } else { + subtablesBuilder_.setMessage(index, value); } - result.subtables_.set(index, value); return this; } - public Builder setSubtables(int index, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder builderForValue) { - result.subtables_.set(index, builderForValue.build()); + public Builder setSubtables( + int index, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder builderForValue) { + if (subtablesBuilder_ == null) { + ensureSubtablesIsMutable(); + subtables_.set(index, builderForValue.build()); + onChanged(); + } else { + subtablesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addSubtables(net.osmand.binary.OsmandOdb.IndexedStringTable value) { - if (value == null) { - throw new NullPointerException(); + if (subtablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubtablesIsMutable(); + subtables_.add(value); + onChanged(); + } else { + subtablesBuilder_.addMessage(value); } - if (result.subtables_.isEmpty()) { - result.subtables_ = new java.util.ArrayList(); - } - result.subtables_.add(value); return this; } - public Builder addSubtables(net.osmand.binary.OsmandOdb.IndexedStringTable.Builder builderForValue) { - if (result.subtables_.isEmpty()) { - result.subtables_ = new java.util.ArrayList(); + public Builder addSubtables( + int index, net.osmand.binary.OsmandOdb.IndexedStringTable value) { + if (subtablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubtablesIsMutable(); + subtables_.add(index, value); + onChanged(); + } else { + subtablesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addSubtables( + net.osmand.binary.OsmandOdb.IndexedStringTable.Builder builderForValue) { + if (subtablesBuilder_ == null) { + ensureSubtablesIsMutable(); + subtables_.add(builderForValue.build()); + onChanged(); + } else { + subtablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addSubtables( + int index, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder builderForValue) { + if (subtablesBuilder_ == null) { + ensureSubtablesIsMutable(); + subtables_.add(index, builderForValue.build()); + onChanged(); + } else { + subtablesBuilder_.addMessage(index, builderForValue.build()); } - result.subtables_.add(builderForValue.build()); return this; } public Builder addAllSubtables( java.lang.Iterable values) { - if (result.subtables_.isEmpty()) { - result.subtables_ = new java.util.ArrayList(); + if (subtablesBuilder_ == null) { + ensureSubtablesIsMutable(); + super.addAll(values, subtables_); + onChanged(); + } else { + subtablesBuilder_.addAllMessages(values); } - super.addAll(values, result.subtables_); return this; } public Builder clearSubtables() { - result.subtables_ = java.util.Collections.emptyList(); + if (subtablesBuilder_ == null) { + subtables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + subtablesBuilder_.clear(); + } return this; } + public Builder removeSubtables(int index) { + if (subtablesBuilder_ == null) { + ensureSubtablesIsMutable(); + subtables_.remove(index); + onChanged(); + } else { + subtablesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder getSubtablesBuilder( + int index) { + return getSubtablesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getSubtablesOrBuilder( + int index) { + if (subtablesBuilder_ == null) { + return subtables_.get(index); } else { + return subtablesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getSubtablesOrBuilderList() { + if (subtablesBuilder_ != null) { + return subtablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subtables_); + } + } + public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder addSubtablesBuilder() { + return getSubtablesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder addSubtablesBuilder( + int index) { + return getSubtablesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()); + } + public java.util.List + getSubtablesBuilderList() { + return getSubtablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> + getSubtablesFieldBuilder() { + if (subtablesBuilder_ == null) { + subtablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder>( + subtables_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + subtables_ = null; + } + return subtablesBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.IndexedStringTable) } static { defaultInstance = new IndexedStringTable(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.IndexedStringTable) } + public interface OsmAndMapIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string name = 2; + boolean hasName(); + String getName(); + + // repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4; + java.util.List + getRulesList(); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule getRules(int index); + int getRulesCount(); + java.util.List + getRulesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder getRulesOrBuilder( + int index); + + // repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5; + java.util.List + getLevelsList(); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel getLevels(int index); + int getLevelsCount(); + java.util.List + getLevelsOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder getLevelsOrBuilder( + int index); + } public static final class OsmAndMapIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndMapIndexOrBuilder { // Use OsmAndMapIndex.newBuilder() to construct. - private OsmAndMapIndex() { - initFields(); + private OsmAndMapIndex(Builder builder) { + super(builder); } private OsmAndMapIndex(boolean noInit) {} @@ -2102,11 +3758,35 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_fieldAccessorTable; } + public interface MapEncodingRuleOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string tag = 3; + boolean hasTag(); + String getTag(); + + // optional string value = 5; + boolean hasValue(); + String getValue(); + + // optional uint32 id = 7; + boolean hasId(); + int getId(); + + // optional uint32 minZoom = 9; + boolean hasMinZoom(); + int getMinZoom(); + + // optional uint32 type = 10; + boolean hasType(); + int getType(); + } public static final class MapEncodingRule extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements MapEncodingRuleOrBuilder { // Use MapEncodingRule.newBuilder() to construct. - private MapEncodingRule() { - initFields(); + private MapEncodingRule(Builder builder) { + super(builder); } private MapEncodingRule(boolean noInit) {} @@ -2129,65 +3809,138 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_fieldAccessorTable; } + private int bitField0_; // required string tag = 3; public static final int TAG_FIELD_NUMBER = 3; - private boolean hasTag; - private java.lang.String tag_ = ""; - public boolean hasTag() { return hasTag; } - public java.lang.String getTag() { return tag_; } + private java.lang.Object tag_; + public boolean hasTag() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getTag() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + tag_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string value = 5; public static final int VALUE_FIELD_NUMBER = 5; - private boolean hasValue; - private java.lang.String value_ = ""; - public boolean hasValue() { return hasValue; } - public java.lang.String getValue() { return value_; } + private java.lang.Object value_; + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getValue() { + java.lang.Object ref = value_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + value_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional uint32 id = 7; public static final int ID_FIELD_NUMBER = 7; - private boolean hasId; - private int id_ = 0; - public boolean hasId() { return hasId; } - public int getId() { return id_; } + private int id_; + public boolean hasId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getId() { + return id_; + } // optional uint32 minZoom = 9; public static final int MINZOOM_FIELD_NUMBER = 9; - private boolean hasMinZoom; - private int minZoom_ = 0; - public boolean hasMinZoom() { return hasMinZoom; } - public int getMinZoom() { return minZoom_; } + private int minZoom_; + public boolean hasMinZoom() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getMinZoom() { + return minZoom_; + } // optional uint32 type = 10; public static final int TYPE_FIELD_NUMBER = 10; - private boolean hasType; - private int type_ = 0; - public boolean hasType() { return hasType; } - public int getType() { return type_; } + private int type_; + public boolean hasType() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getType() { + return type_; + } private void initFields() { + tag_ = ""; + value_ = ""; + id_ = 0; + minZoom_ = 0; + type_ = 0; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasTag) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasTag()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasTag()) { - output.writeString(3, getTag()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(3, getTagBytes()); } - if (hasValue()) { - output.writeString(5, getValue()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(5, getValueBytes()); } - if (hasId()) { - output.writeUInt32(7, getId()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(7, id_); } - if (hasMinZoom()) { - output.writeUInt32(9, getMinZoom()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(9, minZoom_); } - if (hasType()) { - output.writeUInt32(10, getType()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(10, type_); } getUnknownFields().writeTo(output); } @@ -2198,31 +3951,38 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasTag()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getTag()); + .computeBytesSize(3, getTagBytes()); } - if (hasValue()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getValue()); + .computeBytesSize(5, getValueBytes()); } - if (hasId()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, getId()); + .computeUInt32Size(7, id_); } - if (hasMinZoom()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, getMinZoom()); + .computeUInt32Size(9, minZoom_); } - if (hasType()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, getType()); + .computeUInt32Size(10, type_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2297,34 +4057,59 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule(); + super.clear(); + tag_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + id_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + minZoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + type_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -2336,33 +4121,51 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule returnMe = result; - result = null; - return returnMe; + result.tag_ = tag_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.value_ = value_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.minZoom_ = minZoom_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.type_ = type_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -2395,6 +4198,14 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasTag()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2407,133 +4218,180 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 26: { - setTag(input.readString()); + bitField0_ |= 0x00000001; + tag_ = input.readBytes(); break; } case 42: { - setValue(input.readString()); + bitField0_ |= 0x00000002; + value_ = input.readBytes(); break; } case 56: { - setId(input.readUInt32()); + bitField0_ |= 0x00000004; + id_ = input.readUInt32(); break; } case 72: { - setMinZoom(input.readUInt32()); + bitField0_ |= 0x00000008; + minZoom_ = input.readUInt32(); break; } case 80: { - setType(input.readUInt32()); + bitField0_ |= 0x00000010; + type_ = input.readUInt32(); break; } } } } + private int bitField0_; // required string tag = 3; + private java.lang.Object tag_ = ""; public boolean hasTag() { - return result.hasTag(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getTag() { - return result.getTag(); + public String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + tag_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setTag(java.lang.String value) { + public Builder setTag(String value) { if (value == null) { throw new NullPointerException(); } - result.hasTag = true; - result.tag_ = value; + bitField0_ |= 0x00000001; + tag_ = value; + onChanged(); return this; } public Builder clearTag() { - result.hasTag = false; - result.tag_ = getDefaultInstance().getTag(); + bitField0_ = (bitField0_ & ~0x00000001); + tag_ = getDefaultInstance().getTag(); + onChanged(); return this; } + void setTag(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + tag_ = value; + onChanged(); + } // optional string value = 5; + private java.lang.Object value_ = ""; public boolean hasValue() { - return result.hasValue(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - public java.lang.String getValue() { - return result.getValue(); + public String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + value_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setValue(java.lang.String value) { + public Builder setValue(String value) { if (value == null) { throw new NullPointerException(); } - result.hasValue = true; - result.value_ = value; + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); return this; } public Builder clearValue() { - result.hasValue = false; - result.value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + value_ = getDefaultInstance().getValue(); + onChanged(); return this; } + void setValue(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + } // optional uint32 id = 7; + private int id_ ; public boolean hasId() { - return result.hasId(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getId() { - return result.getId(); + return id_; } public Builder setId(int value) { - result.hasId = true; - result.id_ = value; + bitField0_ |= 0x00000004; + id_ = value; + onChanged(); return this; } public Builder clearId() { - result.hasId = false; - result.id_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + id_ = 0; + onChanged(); return this; } // optional uint32 minZoom = 9; + private int minZoom_ ; public boolean hasMinZoom() { - return result.hasMinZoom(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getMinZoom() { - return result.getMinZoom(); + return minZoom_; } public Builder setMinZoom(int value) { - result.hasMinZoom = true; - result.minZoom_ = value; + bitField0_ |= 0x00000008; + minZoom_ = value; + onChanged(); return this; } public Builder clearMinZoom() { - result.hasMinZoom = false; - result.minZoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + minZoom_ = 0; + onChanged(); return this; } // optional uint32 type = 10; + private int type_ ; public boolean hasType() { - return result.hasType(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public int getType() { - return result.getType(); + return type_; } public Builder setType(int value) { - result.hasType = true; - result.type_ = value; + bitField0_ |= 0x00000010; + type_ = value; + onChanged(); return this; } public Builder clearType() { - result.hasType = false; - result.type_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + type_ = 0; + onChanged(); return this; } @@ -2542,18 +4400,65 @@ public final class OsmandOdb { static { defaultInstance = new MapEncodingRule(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule) } + public interface MapRootLevelOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required int32 maxZoom = 1; + boolean hasMaxZoom(); + int getMaxZoom(); + + // required int32 minZoom = 2; + boolean hasMinZoom(); + int getMinZoom(); + + // required int32 left = 3; + boolean hasLeft(); + int getLeft(); + + // required int32 right = 4; + boolean hasRight(); + int getRight(); + + // required int32 top = 5; + boolean hasTop(); + int getTop(); + + // required int32 bottom = 6; + boolean hasBottom(); + int getBottom(); + + // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; + java.util.List + getBoxesList(); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index); + int getBoxesCount(); + java.util.List + getBoxesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder( + int index); + + // repeated .OsmAnd.OBF.MapDataBlock blocks = 15; + java.util.List + getBlocksList(); + net.osmand.binary.OsmandOdb.MapDataBlock getBlocks(int index); + int getBlocksCount(); + java.util.List + getBlocksOrBuilderList(); + net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder getBlocksOrBuilder( + int index); + } public static final class MapRootLevel extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements MapRootLevelOrBuilder { // Use MapRootLevel.newBuilder() to construct. - private MapRootLevel() { - initFields(); + private MapRootLevel(Builder builder) { + super(builder); } private MapRootLevel(boolean noInit) {} @@ -2576,116 +4481,190 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_fieldAccessorTable; } + private int bitField0_; // required int32 maxZoom = 1; public static final int MAXZOOM_FIELD_NUMBER = 1; - private boolean hasMaxZoom; - private int maxZoom_ = 0; - public boolean hasMaxZoom() { return hasMaxZoom; } - public int getMaxZoom() { return maxZoom_; } + private int maxZoom_; + public boolean hasMaxZoom() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getMaxZoom() { + return maxZoom_; + } // required int32 minZoom = 2; public static final int MINZOOM_FIELD_NUMBER = 2; - private boolean hasMinZoom; - private int minZoom_ = 0; - public boolean hasMinZoom() { return hasMinZoom; } - public int getMinZoom() { return minZoom_; } + private int minZoom_; + public boolean hasMinZoom() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getMinZoom() { + return minZoom_; + } // required int32 left = 3; public static final int LEFT_FIELD_NUMBER = 3; - private boolean hasLeft; - private int left_ = 0; - public boolean hasLeft() { return hasLeft; } - public int getLeft() { return left_; } + private int left_; + public boolean hasLeft() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getLeft() { + return left_; + } // required int32 right = 4; public static final int RIGHT_FIELD_NUMBER = 4; - private boolean hasRight; - private int right_ = 0; - public boolean hasRight() { return hasRight; } - public int getRight() { return right_; } + private int right_; + public boolean hasRight() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getRight() { + return right_; + } // required int32 top = 5; public static final int TOP_FIELD_NUMBER = 5; - private boolean hasTop; - private int top_ = 0; - public boolean hasTop() { return hasTop; } - public int getTop() { return top_; } + private int top_; + public boolean hasTop() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getTop() { + return top_; + } // required int32 bottom = 6; public static final int BOTTOM_FIELD_NUMBER = 6; - private boolean hasBottom; - private int bottom_ = 0; - public boolean hasBottom() { return hasBottom; } - public int getBottom() { return bottom_; } + private int bottom_; + public boolean hasBottom() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getBottom() { + return bottom_; + } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; public static final int BOXES_FIELD_NUMBER = 7; - private java.util.List boxes_ = - java.util.Collections.emptyList(); + private java.util.List boxes_; public java.util.List getBoxesList() { return boxes_; } - public int getBoxesCount() { return boxes_.size(); } + public java.util.List + getBoxesOrBuilderList() { + return boxes_; + } + public int getBoxesCount() { + return boxes_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) { return boxes_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder( + int index) { + return boxes_.get(index); + } // repeated .OsmAnd.OBF.MapDataBlock blocks = 15; public static final int BLOCKS_FIELD_NUMBER = 15; - private java.util.List blocks_ = - java.util.Collections.emptyList(); + private java.util.List blocks_; public java.util.List getBlocksList() { return blocks_; } - public int getBlocksCount() { return blocks_.size(); } + public java.util.List + getBlocksOrBuilderList() { + return blocks_; + } + public int getBlocksCount() { + return blocks_.size(); + } public net.osmand.binary.OsmandOdb.MapDataBlock getBlocks(int index) { return blocks_.get(index); } + public net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder getBlocksOrBuilder( + int index) { + return blocks_.get(index); + } private void initFields() { + maxZoom_ = 0; + minZoom_ = 0; + left_ = 0; + right_ = 0; + top_ = 0; + bottom_ = 0; + boxes_ = java.util.Collections.emptyList(); + blocks_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasMaxZoom) return false; - if (!hasMinZoom) return false; - if (!hasLeft) return false; - if (!hasRight) return false; - if (!hasTop) return false; - if (!hasBottom) return false; - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox element : getBoxesList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasMaxZoom()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.MapDataBlock element : getBlocksList()) { - if (!element.isInitialized()) return false; + if (!hasMinZoom()) { + memoizedIsInitialized = 0; + return false; } + if (!hasLeft()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRight()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTop()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasBottom()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getBoxesCount(); i++) { + if (!getBoxes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getBlocksCount(); i++) { + if (!getBlocks(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasMaxZoom()) { - output.writeInt32(1, getMaxZoom()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, maxZoom_); } - if (hasMinZoom()) { - output.writeInt32(2, getMinZoom()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, minZoom_); } - if (hasLeft()) { - output.writeInt32(3, getLeft()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, left_); } - if (hasRight()) { - output.writeInt32(4, getRight()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(4, right_); } - if (hasTop()) { - output.writeInt32(5, getTop()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(5, top_); } - if (hasBottom()) { - output.writeInt32(6, getBottom()); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt32(6, bottom_); } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox element : getBoxesList()) { - output.writeMessage(7, element); + for (int i = 0; i < boxes_.size(); i++) { + output.writeMessage(7, boxes_.get(i)); } - for (net.osmand.binary.OsmandOdb.MapDataBlock element : getBlocksList()) { - output.writeMessage(15, element); + for (int i = 0; i < blocks_.size(); i++) { + output.writeMessage(15, blocks_.get(i)); } getUnknownFields().writeTo(output); } @@ -2696,43 +4675,50 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasMaxZoom()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, getMaxZoom()); + .computeInt32Size(1, maxZoom_); } - if (hasMinZoom()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, getMinZoom()); + .computeInt32Size(2, minZoom_); } - if (hasLeft()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, getLeft()); + .computeInt32Size(3, left_); } - if (hasRight()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, getRight()); + .computeInt32Size(4, right_); } - if (hasTop()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, getTop()); + .computeInt32Size(5, top_); } - if (hasBottom()) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, getBottom()); + .computeInt32Size(6, bottom_); } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox element : getBoxesList()) { + for (int i = 0; i < boxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, element); + .computeMessageSize(7, boxes_.get(i)); } - for (net.osmand.binary.OsmandOdb.MapDataBlock element : getBlocksList()) { + for (int i = 0; i < blocks_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, element); + .computeMessageSize(15, blocks_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2807,34 +4793,75 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getBoxesFieldBuilder(); + getBlocksFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + maxZoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + minZoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + left_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + right_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + top_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + bottom_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + if (boxesBuilder_ == null) { + boxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + boxesBuilder_.clear(); + } + if (blocksBuilder_ == null) { + blocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + blocksBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -2846,41 +4873,73 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.boxes_ != java.util.Collections.EMPTY_LIST) { - result.boxes_ = - java.util.Collections.unmodifiableList(result.boxes_); + result.maxZoom_ = maxZoom_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - if (result.blocks_ != java.util.Collections.EMPTY_LIST) { - result.blocks_ = - java.util.Collections.unmodifiableList(result.blocks_); + result.minZoom_ = minZoom_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel returnMe = result; - result = null; - return returnMe; + result.left_ = left_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.right_ = right_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.top_ = top_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.bottom_ = bottom_; + if (boxesBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + boxes_ = java.util.Collections.unmodifiableList(boxes_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.boxes_ = boxes_; + } else { + result.boxes_ = boxesBuilder_.build(); + } + if (blocksBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + blocks_ = java.util.Collections.unmodifiableList(blocks_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.blocks_ = blocks_; + } else { + result.blocks_ = blocksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -2912,22 +4971,102 @@ public final class OsmandOdb { if (other.hasBottom()) { setBottom(other.getBottom()); } - if (!other.boxes_.isEmpty()) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + if (boxesBuilder_ == null) { + if (!other.boxes_.isEmpty()) { + if (boxes_.isEmpty()) { + boxes_ = other.boxes_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureBoxesIsMutable(); + boxes_.addAll(other.boxes_); + } + onChanged(); + } + } else { + if (!other.boxes_.isEmpty()) { + if (boxesBuilder_.isEmpty()) { + boxesBuilder_.dispose(); + boxesBuilder_ = null; + boxes_ = other.boxes_; + bitField0_ = (bitField0_ & ~0x00000040); + boxesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBoxesFieldBuilder() : null; + } else { + boxesBuilder_.addAllMessages(other.boxes_); + } } - result.boxes_.addAll(other.boxes_); } - if (!other.blocks_.isEmpty()) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); + if (blocksBuilder_ == null) { + if (!other.blocks_.isEmpty()) { + if (blocks_.isEmpty()) { + blocks_ = other.blocks_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureBlocksIsMutable(); + blocks_.addAll(other.blocks_); + } + onChanged(); + } + } else { + if (!other.blocks_.isEmpty()) { + if (blocksBuilder_.isEmpty()) { + blocksBuilder_.dispose(); + blocksBuilder_ = null; + blocks_ = other.blocks_; + bitField0_ = (bitField0_ & ~0x00000080); + blocksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBlocksFieldBuilder() : null; + } else { + blocksBuilder_.addAllMessages(other.blocks_); + } } - result.blocks_.addAll(other.blocks_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasMaxZoom()) { + + return false; + } + if (!hasMinZoom()) { + + return false; + } + if (!hasLeft()) { + + return false; + } + if (!hasRight()) { + + return false; + } + if (!hasTop()) { + + return false; + } + if (!hasBottom()) { + + return false; + } + for (int i = 0; i < getBoxesCount(); i++) { + if (!getBoxes(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getBlocksCount(); i++) { + if (!getBlocks(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2940,37 +5079,45 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setMaxZoom(input.readInt32()); + bitField0_ |= 0x00000001; + maxZoom_ = input.readInt32(); break; } case 16: { - setMinZoom(input.readInt32()); + bitField0_ |= 0x00000002; + minZoom_ = input.readInt32(); break; } case 24: { - setLeft(input.readInt32()); + bitField0_ |= 0x00000004; + left_ = input.readInt32(); break; } case 32: { - setRight(input.readInt32()); + bitField0_ |= 0x00000008; + right_ = input.readInt32(); break; } case 40: { - setTop(input.readInt32()); + bitField0_ |= 0x00000010; + top_ = input.readInt32(); break; } case 48: { - setBottom(input.readInt32()); + bitField0_ |= 0x00000020; + bottom_ = input.readInt32(); break; } case 58: { @@ -2989,234 +5136,560 @@ public final class OsmandOdb { } } + private int bitField0_; // required int32 maxZoom = 1; + private int maxZoom_ ; public boolean hasMaxZoom() { - return result.hasMaxZoom(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getMaxZoom() { - return result.getMaxZoom(); + return maxZoom_; } public Builder setMaxZoom(int value) { - result.hasMaxZoom = true; - result.maxZoom_ = value; + bitField0_ |= 0x00000001; + maxZoom_ = value; + onChanged(); return this; } public Builder clearMaxZoom() { - result.hasMaxZoom = false; - result.maxZoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + maxZoom_ = 0; + onChanged(); return this; } // required int32 minZoom = 2; + private int minZoom_ ; public boolean hasMinZoom() { - return result.hasMinZoom(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getMinZoom() { - return result.getMinZoom(); + return minZoom_; } public Builder setMinZoom(int value) { - result.hasMinZoom = true; - result.minZoom_ = value; + bitField0_ |= 0x00000002; + minZoom_ = value; + onChanged(); return this; } public Builder clearMinZoom() { - result.hasMinZoom = false; - result.minZoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + minZoom_ = 0; + onChanged(); return this; } // required int32 left = 3; + private int left_ ; public boolean hasLeft() { - return result.hasLeft(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getLeft() { - return result.getLeft(); + return left_; } public Builder setLeft(int value) { - result.hasLeft = true; - result.left_ = value; + bitField0_ |= 0x00000004; + left_ = value; + onChanged(); return this; } public Builder clearLeft() { - result.hasLeft = false; - result.left_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + left_ = 0; + onChanged(); return this; } // required int32 right = 4; + private int right_ ; public boolean hasRight() { - return result.hasRight(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getRight() { - return result.getRight(); + return right_; } public Builder setRight(int value) { - result.hasRight = true; - result.right_ = value; + bitField0_ |= 0x00000008; + right_ = value; + onChanged(); return this; } public Builder clearRight() { - result.hasRight = false; - result.right_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + right_ = 0; + onChanged(); return this; } // required int32 top = 5; + private int top_ ; public boolean hasTop() { - return result.hasTop(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public int getTop() { - return result.getTop(); + return top_; } public Builder setTop(int value) { - result.hasTop = true; - result.top_ = value; + bitField0_ |= 0x00000010; + top_ = value; + onChanged(); return this; } public Builder clearTop() { - result.hasTop = false; - result.top_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + top_ = 0; + onChanged(); return this; } // required int32 bottom = 6; + private int bottom_ ; public boolean hasBottom() { - return result.hasBottom(); + return ((bitField0_ & 0x00000020) == 0x00000020); } public int getBottom() { - return result.getBottom(); + return bottom_; } public Builder setBottom(int value) { - result.hasBottom = true; - result.bottom_ = value; + bitField0_ |= 0x00000020; + bottom_ = value; + onChanged(); return this; } public Builder clearBottom() { - result.hasBottom = false; - result.bottom_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + bottom_ = 0; + onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; + private java.util.List boxes_ = + java.util.Collections.emptyList(); + private void ensureBoxesIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + boxes_ = new java.util.ArrayList(boxes_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> boxesBuilder_; + public java.util.List getBoxesList() { - return java.util.Collections.unmodifiableList(result.boxes_); + if (boxesBuilder_ == null) { + return java.util.Collections.unmodifiableList(boxes_); + } else { + return boxesBuilder_.getMessageList(); + } } public int getBoxesCount() { - return result.getBoxesCount(); + if (boxesBuilder_ == null) { + return boxes_.size(); + } else { + return boxesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) { - return result.getBoxes(index); - } - public Builder setBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox value) { - if (value == null) { - throw new NullPointerException(); + if (boxesBuilder_ == null) { + return boxes_.get(index); + } else { + return boxesBuilder_.getMessage(index); + } + } + public Builder setBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox value) { + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.set(index, value); + onChanged(); + } else { + boxesBuilder_.setMessage(index, value); } - result.boxes_.set(index, value); return this; } - public Builder setBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder builderForValue) { - result.boxes_.set(index, builderForValue.build()); + public Builder setBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.set(index, builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox value) { - if (value == null) { - throw new NullPointerException(); + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.add(value); + onChanged(); + } else { + boxesBuilder_.addMessage(value); } - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); - } - result.boxes_.add(value); return this; } - public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder builderForValue) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + public Builder addBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox value) { + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.add(index, value); + onChanged(); + } else { + boxesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addBoxes( + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.add(builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.add(index, builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.addMessage(index, builderForValue.build()); } - result.boxes_.add(builderForValue.build()); return this; } public Builder addAllBoxes( java.lang.Iterable values) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + super.addAll(values, boxes_); + onChanged(); + } else { + boxesBuilder_.addAllMessages(values); } - super.addAll(values, result.boxes_); return this; } public Builder clearBoxes() { - result.boxes_ = java.util.Collections.emptyList(); + if (boxesBuilder_ == null) { + boxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + boxesBuilder_.clear(); + } return this; } + public Builder removeBoxes(int index) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.remove(index); + onChanged(); + } else { + boxesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder getBoxesBuilder( + int index) { + return getBoxesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder( + int index) { + if (boxesBuilder_ == null) { + return boxes_.get(index); } else { + return boxesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getBoxesOrBuilderList() { + if (boxesBuilder_ != null) { + return boxesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(boxes_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder() { + return getBoxesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder( + int index) { + return getBoxesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance()); + } + public java.util.List + getBoxesBuilderList() { + return getBoxesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> + getBoxesFieldBuilder() { + if (boxesBuilder_ == null) { + boxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder>( + boxes_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + boxes_ = null; + } + return boxesBuilder_; + } // repeated .OsmAnd.OBF.MapDataBlock blocks = 15; + private java.util.List blocks_ = + java.util.Collections.emptyList(); + private void ensureBlocksIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + blocks_ = new java.util.ArrayList(blocks_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.MapDataBlock, net.osmand.binary.OsmandOdb.MapDataBlock.Builder, net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder> blocksBuilder_; + public java.util.List getBlocksList() { - return java.util.Collections.unmodifiableList(result.blocks_); + if (blocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(blocks_); + } else { + return blocksBuilder_.getMessageList(); + } } public int getBlocksCount() { - return result.getBlocksCount(); + if (blocksBuilder_ == null) { + return blocks_.size(); + } else { + return blocksBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.MapDataBlock getBlocks(int index) { - return result.getBlocks(index); - } - public Builder setBlocks(int index, net.osmand.binary.OsmandOdb.MapDataBlock value) { - if (value == null) { - throw new NullPointerException(); + if (blocksBuilder_ == null) { + return blocks_.get(index); + } else { + return blocksBuilder_.getMessage(index); + } + } + public Builder setBlocks( + int index, net.osmand.binary.OsmandOdb.MapDataBlock value) { + if (blocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlocksIsMutable(); + blocks_.set(index, value); + onChanged(); + } else { + blocksBuilder_.setMessage(index, value); } - result.blocks_.set(index, value); return this; } - public Builder setBlocks(int index, net.osmand.binary.OsmandOdb.MapDataBlock.Builder builderForValue) { - result.blocks_.set(index, builderForValue.build()); + public Builder setBlocks( + int index, net.osmand.binary.OsmandOdb.MapDataBlock.Builder builderForValue) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.set(index, builderForValue.build()); + onChanged(); + } else { + blocksBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addBlocks(net.osmand.binary.OsmandOdb.MapDataBlock value) { - if (value == null) { - throw new NullPointerException(); + if (blocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlocksIsMutable(); + blocks_.add(value); + onChanged(); + } else { + blocksBuilder_.addMessage(value); } - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); - } - result.blocks_.add(value); return this; } - public Builder addBlocks(net.osmand.binary.OsmandOdb.MapDataBlock.Builder builderForValue) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); + public Builder addBlocks( + int index, net.osmand.binary.OsmandOdb.MapDataBlock value) { + if (blocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlocksIsMutable(); + blocks_.add(index, value); + onChanged(); + } else { + blocksBuilder_.addMessage(index, value); + } + return this; + } + public Builder addBlocks( + net.osmand.binary.OsmandOdb.MapDataBlock.Builder builderForValue) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.add(builderForValue.build()); + onChanged(); + } else { + blocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addBlocks( + int index, net.osmand.binary.OsmandOdb.MapDataBlock.Builder builderForValue) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.add(index, builderForValue.build()); + onChanged(); + } else { + blocksBuilder_.addMessage(index, builderForValue.build()); } - result.blocks_.add(builderForValue.build()); return this; } public Builder addAllBlocks( java.lang.Iterable values) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + super.addAll(values, blocks_); + onChanged(); + } else { + blocksBuilder_.addAllMessages(values); } - super.addAll(values, result.blocks_); return this; } public Builder clearBlocks() { - result.blocks_ = java.util.Collections.emptyList(); + if (blocksBuilder_ == null) { + blocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + blocksBuilder_.clear(); + } return this; } + public Builder removeBlocks(int index) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.remove(index); + onChanged(); + } else { + blocksBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.MapDataBlock.Builder getBlocksBuilder( + int index) { + return getBlocksFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder getBlocksOrBuilder( + int index) { + if (blocksBuilder_ == null) { + return blocks_.get(index); } else { + return blocksBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getBlocksOrBuilderList() { + if (blocksBuilder_ != null) { + return blocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blocks_); + } + } + public net.osmand.binary.OsmandOdb.MapDataBlock.Builder addBlocksBuilder() { + return getBlocksFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.MapDataBlock.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.MapDataBlock.Builder addBlocksBuilder( + int index) { + return getBlocksFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.MapDataBlock.getDefaultInstance()); + } + public java.util.List + getBlocksBuilderList() { + return getBlocksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.MapDataBlock, net.osmand.binary.OsmandOdb.MapDataBlock.Builder, net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder> + getBlocksFieldBuilder() { + if (blocksBuilder_ == null) { + blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.MapDataBlock, net.osmand.binary.OsmandOdb.MapDataBlock.Builder, net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder>( + blocks_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + blocks_ = null; + } + return blocksBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndMapIndex.MapRootLevel) } static { defaultInstance = new MapRootLevel(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndMapIndex.MapRootLevel) } + public interface MapDataBoxOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required sint32 left = 1; + boolean hasLeft(); + int getLeft(); + + // required sint32 right = 2; + boolean hasRight(); + int getRight(); + + // required sint32 top = 3; + boolean hasTop(); + int getTop(); + + // required sint32 bottom = 4; + boolean hasBottom(); + int getBottom(); + + // optional fixed32 shiftToMapData = 5; + boolean hasShiftToMapData(); + int getShiftToMapData(); + + // optional bool ocean = 6; + boolean hasOcean(); + boolean getOcean(); + + // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; + java.util.List + getBoxesList(); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index); + int getBoxesCount(); + java.util.List + getBoxesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder( + int index); + } public static final class MapDataBox extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements MapDataBoxOrBuilder { // Use MapDataBox.newBuilder() to construct. - private MapDataBox() { - initFields(); + private MapDataBox(Builder builder) { + super(builder); } private MapDataBox(boolean noInit) {} @@ -3239,96 +5712,151 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_fieldAccessorTable; } + private int bitField0_; // required sint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; - private boolean hasLeft; - private int left_ = 0; - public boolean hasLeft() { return hasLeft; } - public int getLeft() { return left_; } + private int left_; + public boolean hasLeft() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getLeft() { + return left_; + } // required sint32 right = 2; public static final int RIGHT_FIELD_NUMBER = 2; - private boolean hasRight; - private int right_ = 0; - public boolean hasRight() { return hasRight; } - public int getRight() { return right_; } + private int right_; + public boolean hasRight() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getRight() { + return right_; + } // required sint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; - private boolean hasTop; - private int top_ = 0; - public boolean hasTop() { return hasTop; } - public int getTop() { return top_; } + private int top_; + public boolean hasTop() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getTop() { + return top_; + } // required sint32 bottom = 4; public static final int BOTTOM_FIELD_NUMBER = 4; - private boolean hasBottom; - private int bottom_ = 0; - public boolean hasBottom() { return hasBottom; } - public int getBottom() { return bottom_; } + private int bottom_; + public boolean hasBottom() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getBottom() { + return bottom_; + } // optional fixed32 shiftToMapData = 5; public static final int SHIFTTOMAPDATA_FIELD_NUMBER = 5; - private boolean hasShiftToMapData; - private int shiftToMapData_ = 0; - public boolean hasShiftToMapData() { return hasShiftToMapData; } - public int getShiftToMapData() { return shiftToMapData_; } + private int shiftToMapData_; + public boolean hasShiftToMapData() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getShiftToMapData() { + return shiftToMapData_; + } // optional bool ocean = 6; public static final int OCEAN_FIELD_NUMBER = 6; - private boolean hasOcean; - private boolean ocean_ = false; - public boolean hasOcean() { return hasOcean; } - public boolean getOcean() { return ocean_; } + private boolean ocean_; + public boolean hasOcean() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public boolean getOcean() { + return ocean_; + } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; public static final int BOXES_FIELD_NUMBER = 7; - private java.util.List boxes_ = - java.util.Collections.emptyList(); + private java.util.List boxes_; public java.util.List getBoxesList() { return boxes_; } - public int getBoxesCount() { return boxes_.size(); } + public java.util.List + getBoxesOrBuilderList() { + return boxes_; + } + public int getBoxesCount() { + return boxes_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) { return boxes_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder( + int index) { + return boxes_.get(index); + } private void initFields() { + left_ = 0; + right_ = 0; + top_ = 0; + bottom_ = 0; + shiftToMapData_ = 0; + ocean_ = false; + boxes_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasLeft) return false; - if (!hasRight) return false; - if (!hasTop) return false; - if (!hasBottom) return false; - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox element : getBoxesList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasLeft()) { + memoizedIsInitialized = 0; + return false; } + if (!hasRight()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTop()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasBottom()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getBoxesCount(); i++) { + if (!getBoxes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasLeft()) { - output.writeSInt32(1, getLeft()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeSInt32(1, left_); } - if (hasRight()) { - output.writeSInt32(2, getRight()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeSInt32(2, right_); } - if (hasTop()) { - output.writeSInt32(3, getTop()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeSInt32(3, top_); } - if (hasBottom()) { - output.writeSInt32(4, getBottom()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeSInt32(4, bottom_); } - if (hasShiftToMapData()) { - output.writeFixed32(5, getShiftToMapData()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeFixed32(5, shiftToMapData_); } - if (hasOcean()) { - output.writeBool(6, getOcean()); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBool(6, ocean_); } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox element : getBoxesList()) { - output.writeMessage(7, element); + for (int i = 0; i < boxes_.size(); i++) { + output.writeMessage(7, boxes_.get(i)); } getUnknownFields().writeTo(output); } @@ -3339,39 +5867,46 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasLeft()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, getLeft()); + .computeSInt32Size(1, left_); } - if (hasRight()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(2, getRight()); + .computeSInt32Size(2, right_); } - if (hasTop()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(3, getTop()); + .computeSInt32Size(3, top_); } - if (hasBottom()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(4, getBottom()); + .computeSInt32Size(4, bottom_); } - if (hasShiftToMapData()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(5, getShiftToMapData()); + .computeFixed32Size(5, shiftToMapData_); } - if (hasOcean()) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, getOcean()); + .computeBoolSize(6, ocean_); } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox element : getBoxesList()) { + for (int i = 0; i < boxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, element); + .computeMessageSize(7, boxes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3446,34 +5981,68 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getBoxesFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + left_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + right_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + top_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + bottom_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + shiftToMapData_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + ocean_ = false; + bitField0_ = (bitField0_ & ~0x00000020); + if (boxesBuilder_ == null) { + boxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + boxesBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -3485,37 +6054,64 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.boxes_ != java.util.Collections.EMPTY_LIST) { - result.boxes_ = - java.util.Collections.unmodifiableList(result.boxes_); + result.left_ = left_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox returnMe = result; - result = null; - return returnMe; + result.right_ = right_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.top_ = top_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.bottom_ = bottom_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.shiftToMapData_ = shiftToMapData_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.ocean_ = ocean_; + if (boxesBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + boxes_ = java.util.Collections.unmodifiableList(boxes_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.boxes_ = boxes_; + } else { + result.boxes_ = boxesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -3547,16 +6143,62 @@ public final class OsmandOdb { if (other.hasOcean()) { setOcean(other.getOcean()); } - if (!other.boxes_.isEmpty()) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + if (boxesBuilder_ == null) { + if (!other.boxes_.isEmpty()) { + if (boxes_.isEmpty()) { + boxes_ = other.boxes_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureBoxesIsMutable(); + boxes_.addAll(other.boxes_); + } + onChanged(); + } + } else { + if (!other.boxes_.isEmpty()) { + if (boxesBuilder_.isEmpty()) { + boxesBuilder_.dispose(); + boxesBuilder_ = null; + boxes_ = other.boxes_; + bitField0_ = (bitField0_ & ~0x00000040); + boxesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBoxesFieldBuilder() : null; + } else { + boxesBuilder_.addAllMessages(other.boxes_); + } } - result.boxes_.addAll(other.boxes_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasLeft()) { + + return false; + } + if (!hasRight()) { + + return false; + } + if (!hasTop()) { + + return false; + } + if (!hasBottom()) { + + return false; + } + for (int i = 0; i < getBoxesCount(); i++) { + if (!getBoxes(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3569,37 +6211,45 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setLeft(input.readSInt32()); + bitField0_ |= 0x00000001; + left_ = input.readSInt32(); break; } case 16: { - setRight(input.readSInt32()); + bitField0_ |= 0x00000002; + right_ = input.readSInt32(); break; } case 24: { - setTop(input.readSInt32()); + bitField0_ |= 0x00000004; + top_ = input.readSInt32(); break; } case 32: { - setBottom(input.readSInt32()); + bitField0_ |= 0x00000008; + bottom_ = input.readSInt32(); break; } case 45: { - setShiftToMapData(input.readFixed32()); + bitField0_ |= 0x00000010; + shiftToMapData_ = input.readFixed32(); break; } case 48: { - setOcean(input.readBool()); + bitField0_ |= 0x00000020; + ocean_ = input.readBool(); break; } case 58: { @@ -3612,233 +6262,447 @@ public final class OsmandOdb { } } + private int bitField0_; // required sint32 left = 1; + private int left_ ; public boolean hasLeft() { - return result.hasLeft(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getLeft() { - return result.getLeft(); + return left_; } public Builder setLeft(int value) { - result.hasLeft = true; - result.left_ = value; + bitField0_ |= 0x00000001; + left_ = value; + onChanged(); return this; } public Builder clearLeft() { - result.hasLeft = false; - result.left_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + left_ = 0; + onChanged(); return this; } // required sint32 right = 2; + private int right_ ; public boolean hasRight() { - return result.hasRight(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getRight() { - return result.getRight(); + return right_; } public Builder setRight(int value) { - result.hasRight = true; - result.right_ = value; + bitField0_ |= 0x00000002; + right_ = value; + onChanged(); return this; } public Builder clearRight() { - result.hasRight = false; - result.right_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + right_ = 0; + onChanged(); return this; } // required sint32 top = 3; + private int top_ ; public boolean hasTop() { - return result.hasTop(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getTop() { - return result.getTop(); + return top_; } public Builder setTop(int value) { - result.hasTop = true; - result.top_ = value; + bitField0_ |= 0x00000004; + top_ = value; + onChanged(); return this; } public Builder clearTop() { - result.hasTop = false; - result.top_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + top_ = 0; + onChanged(); return this; } // required sint32 bottom = 4; + private int bottom_ ; public boolean hasBottom() { - return result.hasBottom(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getBottom() { - return result.getBottom(); + return bottom_; } public Builder setBottom(int value) { - result.hasBottom = true; - result.bottom_ = value; + bitField0_ |= 0x00000008; + bottom_ = value; + onChanged(); return this; } public Builder clearBottom() { - result.hasBottom = false; - result.bottom_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + bottom_ = 0; + onChanged(); return this; } // optional fixed32 shiftToMapData = 5; + private int shiftToMapData_ ; public boolean hasShiftToMapData() { - return result.hasShiftToMapData(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public int getShiftToMapData() { - return result.getShiftToMapData(); + return shiftToMapData_; } public Builder setShiftToMapData(int value) { - result.hasShiftToMapData = true; - result.shiftToMapData_ = value; + bitField0_ |= 0x00000010; + shiftToMapData_ = value; + onChanged(); return this; } public Builder clearShiftToMapData() { - result.hasShiftToMapData = false; - result.shiftToMapData_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + shiftToMapData_ = 0; + onChanged(); return this; } // optional bool ocean = 6; + private boolean ocean_ ; public boolean hasOcean() { - return result.hasOcean(); + return ((bitField0_ & 0x00000020) == 0x00000020); } public boolean getOcean() { - return result.getOcean(); + return ocean_; } public Builder setOcean(boolean value) { - result.hasOcean = true; - result.ocean_ = value; + bitField0_ |= 0x00000020; + ocean_ = value; + onChanged(); return this; } public Builder clearOcean() { - result.hasOcean = false; - result.ocean_ = false; + bitField0_ = (bitField0_ & ~0x00000020); + ocean_ = false; + onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; + private java.util.List boxes_ = + java.util.Collections.emptyList(); + private void ensureBoxesIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + boxes_ = new java.util.ArrayList(boxes_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> boxesBuilder_; + public java.util.List getBoxesList() { - return java.util.Collections.unmodifiableList(result.boxes_); + if (boxesBuilder_ == null) { + return java.util.Collections.unmodifiableList(boxes_); + } else { + return boxesBuilder_.getMessageList(); + } } public int getBoxesCount() { - return result.getBoxesCount(); + if (boxesBuilder_ == null) { + return boxes_.size(); + } else { + return boxesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) { - return result.getBoxes(index); - } - public Builder setBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox value) { - if (value == null) { - throw new NullPointerException(); + if (boxesBuilder_ == null) { + return boxes_.get(index); + } else { + return boxesBuilder_.getMessage(index); + } + } + public Builder setBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox value) { + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.set(index, value); + onChanged(); + } else { + boxesBuilder_.setMessage(index, value); } - result.boxes_.set(index, value); return this; } - public Builder setBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder builderForValue) { - result.boxes_.set(index, builderForValue.build()); + public Builder setBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.set(index, builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox value) { - if (value == null) { - throw new NullPointerException(); + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.add(value); + onChanged(); + } else { + boxesBuilder_.addMessage(value); } - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); - } - result.boxes_.add(value); return this; } - public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder builderForValue) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + public Builder addBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox value) { + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.add(index, value); + onChanged(); + } else { + boxesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addBoxes( + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.add(builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.add(index, builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.addMessage(index, builderForValue.build()); } - result.boxes_.add(builderForValue.build()); return this; } public Builder addAllBoxes( java.lang.Iterable values) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + super.addAll(values, boxes_); + onChanged(); + } else { + boxesBuilder_.addAllMessages(values); } - super.addAll(values, result.boxes_); return this; } public Builder clearBoxes() { - result.boxes_ = java.util.Collections.emptyList(); + if (boxesBuilder_ == null) { + boxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + boxesBuilder_.clear(); + } return this; } + public Builder removeBoxes(int index) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.remove(index); + onChanged(); + } else { + boxesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder getBoxesBuilder( + int index) { + return getBoxesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder( + int index) { + if (boxesBuilder_ == null) { + return boxes_.get(index); } else { + return boxesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getBoxesOrBuilderList() { + if (boxesBuilder_ != null) { + return boxesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(boxes_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder() { + return getBoxesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder( + int index) { + return getBoxesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance()); + } + public java.util.List + getBoxesBuilderList() { + return getBoxesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> + getBoxesFieldBuilder() { + if (boxesBuilder_ == null) { + boxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder>( + boxes_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + boxes_ = null; + } + return boxesBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndMapIndex.MapDataBox) } static { defaultInstance = new MapDataBox(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndMapIndex.MapDataBox) } + private int bitField0_; // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4; public static final int RULES_FIELD_NUMBER = 4; - private java.util.List rules_ = - java.util.Collections.emptyList(); + private java.util.List rules_; public java.util.List getRulesList() { return rules_; } - public int getRulesCount() { return rules_.size(); } + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + public int getRulesCount() { + return rules_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule getRules(int index) { return rules_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder getRulesOrBuilder( + int index) { + return rules_.get(index); + } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5; public static final int LEVELS_FIELD_NUMBER = 5; - private java.util.List levels_ = - java.util.Collections.emptyList(); + private java.util.List levels_; public java.util.List getLevelsList() { return levels_; } - public int getLevelsCount() { return levels_.size(); } + public java.util.List + getLevelsOrBuilderList() { + return levels_; + } + public int getLevelsCount() { + return levels_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel getLevels(int index) { return levels_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder getLevelsOrBuilder( + int index) { + return levels_.get(index); + } private void initFields() { + name_ = ""; + rules_ = java.util.Collections.emptyList(); + levels_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasName) return false; - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule element : getRulesList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel element : getLevelsList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getRulesCount(); i++) { + if (!getRules(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + for (int i = 0; i < getLevelsCount(); i++) { + if (!getLevels(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasName()) { - output.writeString(2, getName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(2, getNameBytes()); } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule element : getRulesList()) { - output.writeMessage(4, element); + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(4, rules_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel element : getLevelsList()) { - output.writeMessage(5, element); + for (int i = 0; i < levels_.size(); i++) { + output.writeMessage(5, levels_.get(i)); } getUnknownFields().writeTo(output); } @@ -3849,23 +6713,30 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasName()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getName()); + .computeBytesSize(2, getNameBytes()); } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule element : getRulesList()) { + for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, element); + .computeMessageSize(4, rules_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel element : getLevelsList()) { + for (int i = 0; i < levels_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, element); + .computeMessageSize(5, levels_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndMapIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3940,34 +6811,65 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndMapIndex result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndMapIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getRulesFieldBuilder(); + getLevelsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + rulesBuilder_.clear(); + } + if (levelsBuilder_ == null) { + levels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + levelsBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -3979,41 +6881,53 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndMapIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndMapIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndMapIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndMapIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndMapIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndMapIndex result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.rules_ != java.util.Collections.EMPTY_LIST) { - result.rules_ = - java.util.Collections.unmodifiableList(result.rules_); + result.name_ = name_; + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); } - if (result.levels_ != java.util.Collections.EMPTY_LIST) { - result.levels_ = - java.util.Collections.unmodifiableList(result.levels_); + if (levelsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + levels_ = java.util.Collections.unmodifiableList(levels_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.levels_ = levels_; + } else { + result.levels_ = levelsBuilder_.build(); } - net.osmand.binary.OsmandOdb.OsmAndMapIndex returnMe = result; - result = null; - return returnMe; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -4030,22 +6944,82 @@ public final class OsmandOdb { if (other.hasName()) { setName(other.getName()); } - if (!other.rules_.isEmpty()) { - if (result.rules_.isEmpty()) { - result.rules_ = new java.util.ArrayList(); + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } } - result.rules_.addAll(other.rules_); } - if (!other.levels_.isEmpty()) { - if (result.levels_.isEmpty()) { - result.levels_ = new java.util.ArrayList(); + if (levelsBuilder_ == null) { + if (!other.levels_.isEmpty()) { + if (levels_.isEmpty()) { + levels_ = other.levels_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureLevelsIsMutable(); + levels_.addAll(other.levels_); + } + onChanged(); + } + } else { + if (!other.levels_.isEmpty()) { + if (levelsBuilder_.isEmpty()) { + levelsBuilder_.dispose(); + levelsBuilder_ = null; + levels_ = other.levels_; + bitField0_ = (bitField0_ & ~0x00000004); + levelsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getLevelsFieldBuilder() : null; + } else { + levelsBuilder_.addAllMessages(other.levels_); + } } - result.levels_.addAll(other.levels_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + for (int i = 0; i < getRulesCount(); i++) { + if (!getRules(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getLevelsCount(); i++) { + if (!getLevels(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4058,17 +7032,20 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 18: { - setName(input.readString()); + bitField0_ |= 0x00000001; + name_ = input.readBytes(); break; } case 34: { @@ -4087,147 +7064,455 @@ public final class OsmandOdb { } } + private int bitField0_; // required string name = 2; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4; + private java.util.List rules_ = + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder> rulesBuilder_; + public java.util.List getRulesList() { - return java.util.Collections.unmodifiableList(result.rules_); + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } } public int getRulesCount() { - return result.getRulesCount(); + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule getRules(int index) { - return result.getRules(index); - } - public Builder setRules(int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule value) { - if (value == null) { - throw new NullPointerException(); + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + public Builder setRules( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); } - result.rules_.set(index, value); return this; } - public Builder setRules(int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder builderForValue) { - result.rules_.set(index, builderForValue.build()); + public Builder setRules( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addRules(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule value) { - if (value == null) { - throw new NullPointerException(); + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); } - if (result.rules_.isEmpty()) { - result.rules_ = new java.util.ArrayList(); - } - result.rules_.add(value); return this; } - public Builder addRules(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder builderForValue) { - if (result.rules_.isEmpty()) { - result.rules_ = new java.util.ArrayList(); + public Builder addRules( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addRules( + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addRules( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); } - result.rules_.add(builderForValue.build()); return this; } public Builder addAllRules( java.lang.Iterable values) { - if (result.rules_.isEmpty()) { - result.rules_ = new java.util.ArrayList(); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + super.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); } - super.addAll(values, result.rules_); return this; } public Builder clearRules() { - result.rules_ = java.util.Collections.emptyList(); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rulesBuilder_.clear(); + } return this; } + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder getRulesBuilder( + int index) { + return getRulesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder getRulesOrBuilder( + int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder addRulesBuilder() { + return getRulesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.getDefaultInstance()); + } + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder>( + rules_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + rules_ = null; + } + return rulesBuilder_; + } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5; + private java.util.List levels_ = + java.util.Collections.emptyList(); + private void ensureLevelsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + levels_ = new java.util.ArrayList(levels_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder> levelsBuilder_; + public java.util.List getLevelsList() { - return java.util.Collections.unmodifiableList(result.levels_); + if (levelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(levels_); + } else { + return levelsBuilder_.getMessageList(); + } } public int getLevelsCount() { - return result.getLevelsCount(); + if (levelsBuilder_ == null) { + return levels_.size(); + } else { + return levelsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel getLevels(int index) { - return result.getLevels(index); - } - public Builder setLevels(int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel value) { - if (value == null) { - throw new NullPointerException(); + if (levelsBuilder_ == null) { + return levels_.get(index); + } else { + return levelsBuilder_.getMessage(index); + } + } + public Builder setLevels( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel value) { + if (levelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLevelsIsMutable(); + levels_.set(index, value); + onChanged(); + } else { + levelsBuilder_.setMessage(index, value); } - result.levels_.set(index, value); return this; } - public Builder setLevels(int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder builderForValue) { - result.levels_.set(index, builderForValue.build()); + public Builder setLevels( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder builderForValue) { + if (levelsBuilder_ == null) { + ensureLevelsIsMutable(); + levels_.set(index, builderForValue.build()); + onChanged(); + } else { + levelsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addLevels(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel value) { - if (value == null) { - throw new NullPointerException(); + if (levelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLevelsIsMutable(); + levels_.add(value); + onChanged(); + } else { + levelsBuilder_.addMessage(value); } - if (result.levels_.isEmpty()) { - result.levels_ = new java.util.ArrayList(); - } - result.levels_.add(value); return this; } - public Builder addLevels(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder builderForValue) { - if (result.levels_.isEmpty()) { - result.levels_ = new java.util.ArrayList(); + public Builder addLevels( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel value) { + if (levelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLevelsIsMutable(); + levels_.add(index, value); + onChanged(); + } else { + levelsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addLevels( + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder builderForValue) { + if (levelsBuilder_ == null) { + ensureLevelsIsMutable(); + levels_.add(builderForValue.build()); + onChanged(); + } else { + levelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addLevels( + int index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder builderForValue) { + if (levelsBuilder_ == null) { + ensureLevelsIsMutable(); + levels_.add(index, builderForValue.build()); + onChanged(); + } else { + levelsBuilder_.addMessage(index, builderForValue.build()); } - result.levels_.add(builderForValue.build()); return this; } public Builder addAllLevels( java.lang.Iterable values) { - if (result.levels_.isEmpty()) { - result.levels_ = new java.util.ArrayList(); + if (levelsBuilder_ == null) { + ensureLevelsIsMutable(); + super.addAll(values, levels_); + onChanged(); + } else { + levelsBuilder_.addAllMessages(values); } - super.addAll(values, result.levels_); return this; } public Builder clearLevels() { - result.levels_ = java.util.Collections.emptyList(); + if (levelsBuilder_ == null) { + levels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + levelsBuilder_.clear(); + } return this; } + public Builder removeLevels(int index) { + if (levelsBuilder_ == null) { + ensureLevelsIsMutable(); + levels_.remove(index); + onChanged(); + } else { + levelsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder getLevelsBuilder( + int index) { + return getLevelsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder getLevelsOrBuilder( + int index) { + if (levelsBuilder_ == null) { + return levels_.get(index); } else { + return levelsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getLevelsOrBuilderList() { + if (levelsBuilder_ != null) { + return levelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(levels_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder addLevelsBuilder() { + return getLevelsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder addLevelsBuilder( + int index) { + return getLevelsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.getDefaultInstance()); + } + public java.util.List + getLevelsBuilderList() { + return getLevelsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder> + getLevelsFieldBuilder() { + if (levelsBuilder_ == null) { + levelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder>( + levels_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + levels_ = null; + } + return levelsBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndMapIndex) } static { defaultInstance = new OsmAndMapIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndMapIndex) } + public interface MapDataBlockOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint64 baseId = 10; + boolean hasBaseId(); + long getBaseId(); + + // repeated .OsmAnd.OBF.MapData dataObjects = 12; + java.util.List + getDataObjectsList(); + net.osmand.binary.OsmandOdb.MapData getDataObjects(int index); + int getDataObjectsCount(); + java.util.List + getDataObjectsOrBuilderList(); + net.osmand.binary.OsmandOdb.MapDataOrBuilder getDataObjectsOrBuilder( + int index); + + // optional .OsmAnd.OBF.StringTable stringTable = 15; + boolean hasStringTable(); + net.osmand.binary.OsmandOdb.StringTable getStringTable(); + net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder(); + } public static final class MapDataBlock extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements MapDataBlockOrBuilder { // Use MapDataBlock.newBuilder() to construct. - private MapDataBlock() { - initFields(); + private MapDataBlock(Builder builder) { + super(builder); } private MapDataBlock(boolean noInit) {} @@ -4250,53 +7535,82 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapDataBlock_fieldAccessorTable; } + private int bitField0_; // optional uint64 baseId = 10; public static final int BASEID_FIELD_NUMBER = 10; - private boolean hasBaseId; - private long baseId_ = 0L; - public boolean hasBaseId() { return hasBaseId; } - public long getBaseId() { return baseId_; } + private long baseId_; + public boolean hasBaseId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public long getBaseId() { + return baseId_; + } // repeated .OsmAnd.OBF.MapData dataObjects = 12; public static final int DATAOBJECTS_FIELD_NUMBER = 12; - private java.util.List dataObjects_ = - java.util.Collections.emptyList(); + private java.util.List dataObjects_; public java.util.List getDataObjectsList() { return dataObjects_; } - public int getDataObjectsCount() { return dataObjects_.size(); } + public java.util.List + getDataObjectsOrBuilderList() { + return dataObjects_; + } + public int getDataObjectsCount() { + return dataObjects_.size(); + } public net.osmand.binary.OsmandOdb.MapData getDataObjects(int index) { return dataObjects_.get(index); } + public net.osmand.binary.OsmandOdb.MapDataOrBuilder getDataObjectsOrBuilder( + int index) { + return dataObjects_.get(index); + } // optional .OsmAnd.OBF.StringTable stringTable = 15; public static final int STRINGTABLE_FIELD_NUMBER = 15; - private boolean hasStringTable; private net.osmand.binary.OsmandOdb.StringTable stringTable_; - public boolean hasStringTable() { return hasStringTable; } - public net.osmand.binary.OsmandOdb.StringTable getStringTable() { return stringTable_; } + public boolean hasStringTable() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public net.osmand.binary.OsmandOdb.StringTable getStringTable() { + return stringTable_; + } + public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { + return stringTable_; + } private void initFields() { + baseId_ = 0L; + dataObjects_ = java.util.Collections.emptyList(); stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - for (net.osmand.binary.OsmandOdb.MapData element : getDataObjectsList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getDataObjectsCount(); i++) { + if (!getDataObjects(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasBaseId()) { - output.writeUInt64(10, getBaseId()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(10, baseId_); } - for (net.osmand.binary.OsmandOdb.MapData element : getDataObjectsList()) { - output.writeMessage(12, element); + for (int i = 0; i < dataObjects_.size(); i++) { + output.writeMessage(12, dataObjects_.get(i)); } - if (hasStringTable()) { - output.writeMessage(15, getStringTable()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(15, stringTable_); } getUnknownFields().writeTo(output); } @@ -4307,23 +7621,30 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasBaseId()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(10, getBaseId()); + .computeUInt64Size(10, baseId_); } - for (net.osmand.binary.OsmandOdb.MapData element : getDataObjectsList()) { + for (int i = 0; i < dataObjects_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, element); + .computeMessageSize(12, dataObjects_.get(i)); } - if (hasStringTable()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getStringTable()); + .computeMessageSize(15, stringTable_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.MapDataBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4398,34 +7719,65 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.MapDataBlock result; - - // Construct using net.osmand.binary.OsmandOdb.MapDataBlock.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.MapDataBlock(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapDataBlock_descriptor; } - protected net.osmand.binary.OsmandOdb.MapDataBlock internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapDataBlock_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.MapDataBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getDataObjectsFieldBuilder(); + getStringTableFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + baseId_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + if (dataObjectsBuilder_ == null) { + dataObjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + dataObjectsBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.MapDataBlock(); + if (stringTableBuilder_ == null) { + stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + } else { + stringTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -4437,37 +7789,52 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.MapDataBlock.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.MapDataBlock build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.MapDataBlock result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.MapDataBlock buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.MapDataBlock result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.MapDataBlock buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.MapDataBlock result = new net.osmand.binary.OsmandOdb.MapDataBlock(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.dataObjects_ != java.util.Collections.EMPTY_LIST) { - result.dataObjects_ = - java.util.Collections.unmodifiableList(result.dataObjects_); + result.baseId_ = baseId_; + if (dataObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + dataObjects_ = java.util.Collections.unmodifiableList(dataObjects_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dataObjects_ = dataObjects_; + } else { + result.dataObjects_ = dataObjectsBuilder_.build(); } - net.osmand.binary.OsmandOdb.MapDataBlock returnMe = result; - result = null; - return returnMe; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + if (stringTableBuilder_ == null) { + result.stringTable_ = stringTable_; + } else { + result.stringTable_ = stringTableBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -4484,11 +7851,31 @@ public final class OsmandOdb { if (other.hasBaseId()) { setBaseId(other.getBaseId()); } - if (!other.dataObjects_.isEmpty()) { - if (result.dataObjects_.isEmpty()) { - result.dataObjects_ = new java.util.ArrayList(); + if (dataObjectsBuilder_ == null) { + if (!other.dataObjects_.isEmpty()) { + if (dataObjects_.isEmpty()) { + dataObjects_ = other.dataObjects_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDataObjectsIsMutable(); + dataObjects_.addAll(other.dataObjects_); + } + onChanged(); + } + } else { + if (!other.dataObjects_.isEmpty()) { + if (dataObjectsBuilder_.isEmpty()) { + dataObjectsBuilder_.dispose(); + dataObjectsBuilder_ = null; + dataObjects_ = other.dataObjects_; + bitField0_ = (bitField0_ & ~0x00000002); + dataObjectsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getDataObjectsFieldBuilder() : null; + } else { + dataObjectsBuilder_.addAllMessages(other.dataObjects_); + } } - result.dataObjects_.addAll(other.dataObjects_); } if (other.hasStringTable()) { mergeStringTable(other.getStringTable()); @@ -4497,6 +7884,16 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + for (int i = 0; i < getDataObjectsCount(); i++) { + if (!getDataObjects(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4509,17 +7906,20 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 80: { - setBaseId(input.readUInt64()); + bitField0_ |= 0x00000001; + baseId_ = input.readUInt64(); break; } case 98: { @@ -4541,130 +7941,358 @@ public final class OsmandOdb { } } + private int bitField0_; // optional uint64 baseId = 10; + private long baseId_ ; public boolean hasBaseId() { - return result.hasBaseId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public long getBaseId() { - return result.getBaseId(); + return baseId_; } public Builder setBaseId(long value) { - result.hasBaseId = true; - result.baseId_ = value; + bitField0_ |= 0x00000001; + baseId_ = value; + onChanged(); return this; } public Builder clearBaseId() { - result.hasBaseId = false; - result.baseId_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + baseId_ = 0L; + onChanged(); return this; } // repeated .OsmAnd.OBF.MapData dataObjects = 12; + private java.util.List dataObjects_ = + java.util.Collections.emptyList(); + private void ensureDataObjectsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + dataObjects_ = new java.util.ArrayList(dataObjects_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.MapData, net.osmand.binary.OsmandOdb.MapData.Builder, net.osmand.binary.OsmandOdb.MapDataOrBuilder> dataObjectsBuilder_; + public java.util.List getDataObjectsList() { - return java.util.Collections.unmodifiableList(result.dataObjects_); + if (dataObjectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataObjects_); + } else { + return dataObjectsBuilder_.getMessageList(); + } } public int getDataObjectsCount() { - return result.getDataObjectsCount(); + if (dataObjectsBuilder_ == null) { + return dataObjects_.size(); + } else { + return dataObjectsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.MapData getDataObjects(int index) { - return result.getDataObjects(index); - } - public Builder setDataObjects(int index, net.osmand.binary.OsmandOdb.MapData value) { - if (value == null) { - throw new NullPointerException(); + if (dataObjectsBuilder_ == null) { + return dataObjects_.get(index); + } else { + return dataObjectsBuilder_.getMessage(index); + } + } + public Builder setDataObjects( + int index, net.osmand.binary.OsmandOdb.MapData value) { + if (dataObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataObjectsIsMutable(); + dataObjects_.set(index, value); + onChanged(); + } else { + dataObjectsBuilder_.setMessage(index, value); } - result.dataObjects_.set(index, value); return this; } - public Builder setDataObjects(int index, net.osmand.binary.OsmandOdb.MapData.Builder builderForValue) { - result.dataObjects_.set(index, builderForValue.build()); + public Builder setDataObjects( + int index, net.osmand.binary.OsmandOdb.MapData.Builder builderForValue) { + if (dataObjectsBuilder_ == null) { + ensureDataObjectsIsMutable(); + dataObjects_.set(index, builderForValue.build()); + onChanged(); + } else { + dataObjectsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addDataObjects(net.osmand.binary.OsmandOdb.MapData value) { - if (value == null) { - throw new NullPointerException(); + if (dataObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataObjectsIsMutable(); + dataObjects_.add(value); + onChanged(); + } else { + dataObjectsBuilder_.addMessage(value); } - if (result.dataObjects_.isEmpty()) { - result.dataObjects_ = new java.util.ArrayList(); - } - result.dataObjects_.add(value); return this; } - public Builder addDataObjects(net.osmand.binary.OsmandOdb.MapData.Builder builderForValue) { - if (result.dataObjects_.isEmpty()) { - result.dataObjects_ = new java.util.ArrayList(); + public Builder addDataObjects( + int index, net.osmand.binary.OsmandOdb.MapData value) { + if (dataObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataObjectsIsMutable(); + dataObjects_.add(index, value); + onChanged(); + } else { + dataObjectsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addDataObjects( + net.osmand.binary.OsmandOdb.MapData.Builder builderForValue) { + if (dataObjectsBuilder_ == null) { + ensureDataObjectsIsMutable(); + dataObjects_.add(builderForValue.build()); + onChanged(); + } else { + dataObjectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addDataObjects( + int index, net.osmand.binary.OsmandOdb.MapData.Builder builderForValue) { + if (dataObjectsBuilder_ == null) { + ensureDataObjectsIsMutable(); + dataObjects_.add(index, builderForValue.build()); + onChanged(); + } else { + dataObjectsBuilder_.addMessage(index, builderForValue.build()); } - result.dataObjects_.add(builderForValue.build()); return this; } public Builder addAllDataObjects( java.lang.Iterable values) { - if (result.dataObjects_.isEmpty()) { - result.dataObjects_ = new java.util.ArrayList(); + if (dataObjectsBuilder_ == null) { + ensureDataObjectsIsMutable(); + super.addAll(values, dataObjects_); + onChanged(); + } else { + dataObjectsBuilder_.addAllMessages(values); } - super.addAll(values, result.dataObjects_); return this; } public Builder clearDataObjects() { - result.dataObjects_ = java.util.Collections.emptyList(); + if (dataObjectsBuilder_ == null) { + dataObjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dataObjectsBuilder_.clear(); + } return this; } + public Builder removeDataObjects(int index) { + if (dataObjectsBuilder_ == null) { + ensureDataObjectsIsMutable(); + dataObjects_.remove(index); + onChanged(); + } else { + dataObjectsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.MapData.Builder getDataObjectsBuilder( + int index) { + return getDataObjectsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.MapDataOrBuilder getDataObjectsOrBuilder( + int index) { + if (dataObjectsBuilder_ == null) { + return dataObjects_.get(index); } else { + return dataObjectsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getDataObjectsOrBuilderList() { + if (dataObjectsBuilder_ != null) { + return dataObjectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataObjects_); + } + } + public net.osmand.binary.OsmandOdb.MapData.Builder addDataObjectsBuilder() { + return getDataObjectsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.MapData.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.MapData.Builder addDataObjectsBuilder( + int index) { + return getDataObjectsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.MapData.getDefaultInstance()); + } + public java.util.List + getDataObjectsBuilderList() { + return getDataObjectsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.MapData, net.osmand.binary.OsmandOdb.MapData.Builder, net.osmand.binary.OsmandOdb.MapDataOrBuilder> + getDataObjectsFieldBuilder() { + if (dataObjectsBuilder_ == null) { + dataObjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.MapData, net.osmand.binary.OsmandOdb.MapData.Builder, net.osmand.binary.OsmandOdb.MapDataOrBuilder>( + dataObjects_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + dataObjects_ = null; + } + return dataObjectsBuilder_; + } // optional .OsmAnd.OBF.StringTable stringTable = 15; + private net.osmand.binary.OsmandOdb.StringTable stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> stringTableBuilder_; public boolean hasStringTable() { - return result.hasStringTable(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public net.osmand.binary.OsmandOdb.StringTable getStringTable() { - return result.getStringTable(); + if (stringTableBuilder_ == null) { + return stringTable_; + } else { + return stringTableBuilder_.getMessage(); + } } public Builder setStringTable(net.osmand.binary.OsmandOdb.StringTable value) { - if (value == null) { - throw new NullPointerException(); + if (stringTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stringTable_ = value; + onChanged(); + } else { + stringTableBuilder_.setMessage(value); } - result.hasStringTable = true; - result.stringTable_ = value; + bitField0_ |= 0x00000004; return this; } - public Builder setStringTable(net.osmand.binary.OsmandOdb.StringTable.Builder builderForValue) { - result.hasStringTable = true; - result.stringTable_ = builderForValue.build(); + public Builder setStringTable( + net.osmand.binary.OsmandOdb.StringTable.Builder builderForValue) { + if (stringTableBuilder_ == null) { + stringTable_ = builderForValue.build(); + onChanged(); + } else { + stringTableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; return this; } public Builder mergeStringTable(net.osmand.binary.OsmandOdb.StringTable value) { - if (result.hasStringTable() && - result.stringTable_ != net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) { - result.stringTable_ = - net.osmand.binary.OsmandOdb.StringTable.newBuilder(result.stringTable_).mergeFrom(value).buildPartial(); + if (stringTableBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + stringTable_ != net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) { + stringTable_ = + net.osmand.binary.OsmandOdb.StringTable.newBuilder(stringTable_).mergeFrom(value).buildPartial(); + } else { + stringTable_ = value; + } + onChanged(); } else { - result.stringTable_ = value; + stringTableBuilder_.mergeFrom(value); } - result.hasStringTable = true; + bitField0_ |= 0x00000004; return this; } public Builder clearStringTable() { - result.hasStringTable = false; - result.stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + if (stringTableBuilder_ == null) { + stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + onChanged(); + } else { + stringTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } + public net.osmand.binary.OsmandOdb.StringTable.Builder getStringTableBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStringTableFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { + if (stringTableBuilder_ != null) { + return stringTableBuilder_.getMessageOrBuilder(); + } else { + return stringTable_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> + getStringTableFieldBuilder() { + if (stringTableBuilder_ == null) { + stringTableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder>( + stringTable_, + getParentForChildren(), + isClean()); + stringTable_ = null; + } + return stringTableBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.MapDataBlock) } static { defaultInstance = new MapDataBlock(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.MapDataBlock) } + public interface MapDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional bytes coordinates = 1; + boolean hasCoordinates(); + com.google.protobuf.ByteString getCoordinates(); + + // optional bytes areaCoordinates = 2; + boolean hasAreaCoordinates(); + com.google.protobuf.ByteString getAreaCoordinates(); + + // repeated bytes polygonInnerCoordinates = 4; + java.util.List getPolygonInnerCoordinatesList(); + int getPolygonInnerCoordinatesCount(); + com.google.protobuf.ByteString getPolygonInnerCoordinates(int index); + + // optional bytes additionalTypes = 6; + boolean hasAdditionalTypes(); + com.google.protobuf.ByteString getAdditionalTypes(); + + // required bytes types = 7; + boolean hasTypes(); + com.google.protobuf.ByteString getTypes(); + + // optional bytes stringNames = 10; + boolean hasStringNames(); + com.google.protobuf.ByteString getStringNames(); + + // required sint64 id = 12; + boolean hasId(); + long getId(); + + // optional bytes rasterBytes = 15; + boolean hasRasterBytes(); + com.google.protobuf.ByteString getRasterBytes(); + } public static final class MapData extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements MapDataOrBuilder { // Use MapData.newBuilder() to construct. - private MapData() { - initFields(); + private MapData(Builder builder) { + super(builder); } private MapData(boolean noInit) {} @@ -4687,101 +8315,144 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapData_fieldAccessorTable; } + private int bitField0_; // optional bytes coordinates = 1; public static final int COORDINATES_FIELD_NUMBER = 1; - private boolean hasCoordinates; - private com.google.protobuf.ByteString coordinates_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasCoordinates() { return hasCoordinates; } - public com.google.protobuf.ByteString getCoordinates() { return coordinates_; } + private com.google.protobuf.ByteString coordinates_; + public boolean hasCoordinates() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getCoordinates() { + return coordinates_; + } // optional bytes areaCoordinates = 2; public static final int AREACOORDINATES_FIELD_NUMBER = 2; - private boolean hasAreaCoordinates; - private com.google.protobuf.ByteString areaCoordinates_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasAreaCoordinates() { return hasAreaCoordinates; } - public com.google.protobuf.ByteString getAreaCoordinates() { return areaCoordinates_; } + private com.google.protobuf.ByteString areaCoordinates_; + public boolean hasAreaCoordinates() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public com.google.protobuf.ByteString getAreaCoordinates() { + return areaCoordinates_; + } // repeated bytes polygonInnerCoordinates = 4; public static final int POLYGONINNERCOORDINATES_FIELD_NUMBER = 4; - private java.util.List polygonInnerCoordinates_ = - java.util.Collections.emptyList(); - public java.util.List getPolygonInnerCoordinatesList() { + private java.util.List polygonInnerCoordinates_; + public java.util.List + getPolygonInnerCoordinatesList() { return polygonInnerCoordinates_; } - public int getPolygonInnerCoordinatesCount() { return polygonInnerCoordinates_.size(); } + public int getPolygonInnerCoordinatesCount() { + return polygonInnerCoordinates_.size(); + } public com.google.protobuf.ByteString getPolygonInnerCoordinates(int index) { return polygonInnerCoordinates_.get(index); } // optional bytes additionalTypes = 6; public static final int ADDITIONALTYPES_FIELD_NUMBER = 6; - private boolean hasAdditionalTypes; - private com.google.protobuf.ByteString additionalTypes_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasAdditionalTypes() { return hasAdditionalTypes; } - public com.google.protobuf.ByteString getAdditionalTypes() { return additionalTypes_; } + private com.google.protobuf.ByteString additionalTypes_; + public boolean hasAdditionalTypes() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public com.google.protobuf.ByteString getAdditionalTypes() { + return additionalTypes_; + } // required bytes types = 7; public static final int TYPES_FIELD_NUMBER = 7; - private boolean hasTypes; - private com.google.protobuf.ByteString types_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasTypes() { return hasTypes; } - public com.google.protobuf.ByteString getTypes() { return types_; } + private com.google.protobuf.ByteString types_; + public boolean hasTypes() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public com.google.protobuf.ByteString getTypes() { + return types_; + } // optional bytes stringNames = 10; public static final int STRINGNAMES_FIELD_NUMBER = 10; - private boolean hasStringNames; - private com.google.protobuf.ByteString stringNames_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasStringNames() { return hasStringNames; } - public com.google.protobuf.ByteString getStringNames() { return stringNames_; } + private com.google.protobuf.ByteString stringNames_; + public boolean hasStringNames() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public com.google.protobuf.ByteString getStringNames() { + return stringNames_; + } // required sint64 id = 12; public static final int ID_FIELD_NUMBER = 12; - private boolean hasId; - private long id_ = 0L; - public boolean hasId() { return hasId; } - public long getId() { return id_; } + private long id_; + public boolean hasId() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public long getId() { + return id_; + } // optional bytes rasterBytes = 15; public static final int RASTERBYTES_FIELD_NUMBER = 15; - private boolean hasRasterBytes; - private com.google.protobuf.ByteString rasterBytes_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasRasterBytes() { return hasRasterBytes; } - public com.google.protobuf.ByteString getRasterBytes() { return rasterBytes_; } + private com.google.protobuf.ByteString rasterBytes_; + public boolean hasRasterBytes() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public com.google.protobuf.ByteString getRasterBytes() { + return rasterBytes_; + } private void initFields() { + coordinates_ = com.google.protobuf.ByteString.EMPTY; + areaCoordinates_ = com.google.protobuf.ByteString.EMPTY; + polygonInnerCoordinates_ = java.util.Collections.emptyList();; + additionalTypes_ = com.google.protobuf.ByteString.EMPTY; + types_ = com.google.protobuf.ByteString.EMPTY; + stringNames_ = com.google.protobuf.ByteString.EMPTY; + id_ = 0L; + rasterBytes_ = com.google.protobuf.ByteString.EMPTY; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasTypes) return false; - if (!hasId) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasTypes()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasCoordinates()) { - output.writeBytes(1, getCoordinates()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, coordinates_); } - if (hasAreaCoordinates()) { - output.writeBytes(2, getAreaCoordinates()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, areaCoordinates_); } - for (com.google.protobuf.ByteString element : getPolygonInnerCoordinatesList()) { - output.writeBytes(4, element); + for (int i = 0; i < polygonInnerCoordinates_.size(); i++) { + output.writeBytes(4, polygonInnerCoordinates_.get(i)); } - if (hasAdditionalTypes()) { - output.writeBytes(6, getAdditionalTypes()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(6, additionalTypes_); } - if (hasTypes()) { - output.writeBytes(7, getTypes()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(7, types_); } - if (hasStringNames()) { - output.writeBytes(10, getStringNames()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(10, stringNames_); } - if (hasId()) { - output.writeSInt64(12, getId()); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeSInt64(12, id_); } - if (hasRasterBytes()) { - output.writeBytes(15, getRasterBytes()); + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBytes(15, rasterBytes_); } getUnknownFields().writeTo(output); } @@ -4792,48 +8463,55 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasCoordinates()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getCoordinates()); + .computeBytesSize(1, coordinates_); } - if (hasAreaCoordinates()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getAreaCoordinates()); + .computeBytesSize(2, areaCoordinates_); } { int dataSize = 0; - for (com.google.protobuf.ByteString element : getPolygonInnerCoordinatesList()) { + for (int i = 0; i < polygonInnerCoordinates_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(element); + .computeBytesSizeNoTag(polygonInnerCoordinates_.get(i)); } size += dataSize; size += 1 * getPolygonInnerCoordinatesList().size(); } - if (hasAdditionalTypes()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getAdditionalTypes()); + .computeBytesSize(6, additionalTypes_); } - if (hasTypes()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getTypes()); + .computeBytesSize(7, types_); } - if (hasStringNames()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getStringNames()); + .computeBytesSize(10, stringNames_); } - if (hasId()) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(12, getId()); + .computeSInt64Size(12, id_); } - if (hasRasterBytes()) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, getRasterBytes()); + .computeBytesSize(15, rasterBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.MapData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4908,34 +8586,65 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.MapData result; - - // Construct using net.osmand.binary.OsmandOdb.MapData.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.MapData(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.MapDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapData_descriptor; } - protected net.osmand.binary.OsmandOdb.MapData internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapData_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.MapData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.MapData(); + super.clear(); + coordinates_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + areaCoordinates_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + polygonInnerCoordinates_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + additionalTypes_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + types_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + stringNames_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + rasterBytes_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -4947,37 +8656,64 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.MapData.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.MapData build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.MapData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.MapData buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.MapData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.MapData buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.MapData result = new net.osmand.binary.OsmandOdb.MapData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.polygonInnerCoordinates_ != java.util.Collections.EMPTY_LIST) { - result.polygonInnerCoordinates_ = - java.util.Collections.unmodifiableList(result.polygonInnerCoordinates_); + result.coordinates_ = coordinates_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - net.osmand.binary.OsmandOdb.MapData returnMe = result; - result = null; - return returnMe; + result.areaCoordinates_ = areaCoordinates_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + polygonInnerCoordinates_ = java.util.Collections.unmodifiableList(polygonInnerCoordinates_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.polygonInnerCoordinates_ = polygonInnerCoordinates_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; + } + result.additionalTypes_ = additionalTypes_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.types_ = types_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.stringNames_ = stringNames_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000040; + } + result.rasterBytes_ = rasterBytes_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -4998,10 +8734,14 @@ public final class OsmandOdb { setAreaCoordinates(other.getAreaCoordinates()); } if (!other.polygonInnerCoordinates_.isEmpty()) { - if (result.polygonInnerCoordinates_.isEmpty()) { - result.polygonInnerCoordinates_ = new java.util.ArrayList(); + if (polygonInnerCoordinates_.isEmpty()) { + polygonInnerCoordinates_ = other.polygonInnerCoordinates_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePolygonInnerCoordinatesIsMutable(); + polygonInnerCoordinates_.addAll(other.polygonInnerCoordinates_); } - result.polygonInnerCoordinates_.addAll(other.polygonInnerCoordinates_); + onChanged(); } if (other.hasAdditionalTypes()) { setAdditionalTypes(other.getAdditionalTypes()); @@ -5022,6 +8762,18 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasTypes()) { + + return false; + } + if (!hasId()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5034,233 +8786,276 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setCoordinates(input.readBytes()); + bitField0_ |= 0x00000001; + coordinates_ = input.readBytes(); break; } case 18: { - setAreaCoordinates(input.readBytes()); + bitField0_ |= 0x00000002; + areaCoordinates_ = input.readBytes(); break; } case 34: { - addPolygonInnerCoordinates(input.readBytes()); + ensurePolygonInnerCoordinatesIsMutable(); + polygonInnerCoordinates_.add(input.readBytes()); break; } case 50: { - setAdditionalTypes(input.readBytes()); + bitField0_ |= 0x00000008; + additionalTypes_ = input.readBytes(); break; } case 58: { - setTypes(input.readBytes()); + bitField0_ |= 0x00000010; + types_ = input.readBytes(); break; } case 82: { - setStringNames(input.readBytes()); + bitField0_ |= 0x00000020; + stringNames_ = input.readBytes(); break; } case 96: { - setId(input.readSInt64()); + bitField0_ |= 0x00000040; + id_ = input.readSInt64(); break; } case 122: { - setRasterBytes(input.readBytes()); + bitField0_ |= 0x00000080; + rasterBytes_ = input.readBytes(); break; } } } } + private int bitField0_; // optional bytes coordinates = 1; + private com.google.protobuf.ByteString coordinates_ = com.google.protobuf.ByteString.EMPTY; public boolean hasCoordinates() { - return result.hasCoordinates(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public com.google.protobuf.ByteString getCoordinates() { - return result.getCoordinates(); + return coordinates_; } public Builder setCoordinates(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.hasCoordinates = true; - result.coordinates_ = value; + bitField0_ |= 0x00000001; + coordinates_ = value; + onChanged(); return this; } public Builder clearCoordinates() { - result.hasCoordinates = false; - result.coordinates_ = getDefaultInstance().getCoordinates(); + bitField0_ = (bitField0_ & ~0x00000001); + coordinates_ = getDefaultInstance().getCoordinates(); + onChanged(); return this; } // optional bytes areaCoordinates = 2; + private com.google.protobuf.ByteString areaCoordinates_ = com.google.protobuf.ByteString.EMPTY; public boolean hasAreaCoordinates() { - return result.hasAreaCoordinates(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public com.google.protobuf.ByteString getAreaCoordinates() { - return result.getAreaCoordinates(); + return areaCoordinates_; } public Builder setAreaCoordinates(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.hasAreaCoordinates = true; - result.areaCoordinates_ = value; + bitField0_ |= 0x00000002; + areaCoordinates_ = value; + onChanged(); return this; } public Builder clearAreaCoordinates() { - result.hasAreaCoordinates = false; - result.areaCoordinates_ = getDefaultInstance().getAreaCoordinates(); + bitField0_ = (bitField0_ & ~0x00000002); + areaCoordinates_ = getDefaultInstance().getAreaCoordinates(); + onChanged(); return this; } // repeated bytes polygonInnerCoordinates = 4; - public java.util.List getPolygonInnerCoordinatesList() { - return java.util.Collections.unmodifiableList(result.polygonInnerCoordinates_); + private java.util.List polygonInnerCoordinates_ = java.util.Collections.emptyList();; + private void ensurePolygonInnerCoordinatesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + polygonInnerCoordinates_ = new java.util.ArrayList(polygonInnerCoordinates_); + bitField0_ |= 0x00000004; + } + } + public java.util.List + getPolygonInnerCoordinatesList() { + return java.util.Collections.unmodifiableList(polygonInnerCoordinates_); } public int getPolygonInnerCoordinatesCount() { - return result.getPolygonInnerCoordinatesCount(); + return polygonInnerCoordinates_.size(); } public com.google.protobuf.ByteString getPolygonInnerCoordinates(int index) { - return result.getPolygonInnerCoordinates(index); + return polygonInnerCoordinates_.get(index); } - public Builder setPolygonInnerCoordinates(int index, com.google.protobuf.ByteString value) { + public Builder setPolygonInnerCoordinates( + int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.polygonInnerCoordinates_.set(index, value); + ensurePolygonInnerCoordinatesIsMutable(); + polygonInnerCoordinates_.set(index, value); + onChanged(); return this; } public Builder addPolygonInnerCoordinates(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - if (result.polygonInnerCoordinates_.isEmpty()) { - result.polygonInnerCoordinates_ = new java.util.ArrayList(); - } - result.polygonInnerCoordinates_.add(value); + ensurePolygonInnerCoordinatesIsMutable(); + polygonInnerCoordinates_.add(value); + onChanged(); return this; } public Builder addAllPolygonInnerCoordinates( java.lang.Iterable values) { - if (result.polygonInnerCoordinates_.isEmpty()) { - result.polygonInnerCoordinates_ = new java.util.ArrayList(); - } - super.addAll(values, result.polygonInnerCoordinates_); + ensurePolygonInnerCoordinatesIsMutable(); + super.addAll(values, polygonInnerCoordinates_); + onChanged(); return this; } public Builder clearPolygonInnerCoordinates() { - result.polygonInnerCoordinates_ = java.util.Collections.emptyList(); + polygonInnerCoordinates_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); return this; } // optional bytes additionalTypes = 6; + private com.google.protobuf.ByteString additionalTypes_ = com.google.protobuf.ByteString.EMPTY; public boolean hasAdditionalTypes() { - return result.hasAdditionalTypes(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public com.google.protobuf.ByteString getAdditionalTypes() { - return result.getAdditionalTypes(); + return additionalTypes_; } public Builder setAdditionalTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.hasAdditionalTypes = true; - result.additionalTypes_ = value; + bitField0_ |= 0x00000008; + additionalTypes_ = value; + onChanged(); return this; } public Builder clearAdditionalTypes() { - result.hasAdditionalTypes = false; - result.additionalTypes_ = getDefaultInstance().getAdditionalTypes(); + bitField0_ = (bitField0_ & ~0x00000008); + additionalTypes_ = getDefaultInstance().getAdditionalTypes(); + onChanged(); return this; } // required bytes types = 7; + private com.google.protobuf.ByteString types_ = com.google.protobuf.ByteString.EMPTY; public boolean hasTypes() { - return result.hasTypes(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public com.google.protobuf.ByteString getTypes() { - return result.getTypes(); + return types_; } public Builder setTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.hasTypes = true; - result.types_ = value; + bitField0_ |= 0x00000010; + types_ = value; + onChanged(); return this; } public Builder clearTypes() { - result.hasTypes = false; - result.types_ = getDefaultInstance().getTypes(); + bitField0_ = (bitField0_ & ~0x00000010); + types_ = getDefaultInstance().getTypes(); + onChanged(); return this; } // optional bytes stringNames = 10; + private com.google.protobuf.ByteString stringNames_ = com.google.protobuf.ByteString.EMPTY; public boolean hasStringNames() { - return result.hasStringNames(); + return ((bitField0_ & 0x00000020) == 0x00000020); } public com.google.protobuf.ByteString getStringNames() { - return result.getStringNames(); + return stringNames_; } public Builder setStringNames(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.hasStringNames = true; - result.stringNames_ = value; + bitField0_ |= 0x00000020; + stringNames_ = value; + onChanged(); return this; } public Builder clearStringNames() { - result.hasStringNames = false; - result.stringNames_ = getDefaultInstance().getStringNames(); + bitField0_ = (bitField0_ & ~0x00000020); + stringNames_ = getDefaultInstance().getStringNames(); + onChanged(); return this; } // required sint64 id = 12; + private long id_ ; public boolean hasId() { - return result.hasId(); + return ((bitField0_ & 0x00000040) == 0x00000040); } public long getId() { - return result.getId(); + return id_; } public Builder setId(long value) { - result.hasId = true; - result.id_ = value; + bitField0_ |= 0x00000040; + id_ = value; + onChanged(); return this; } public Builder clearId() { - result.hasId = false; - result.id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + id_ = 0L; + onChanged(); return this; } // optional bytes rasterBytes = 15; + private com.google.protobuf.ByteString rasterBytes_ = com.google.protobuf.ByteString.EMPTY; public boolean hasRasterBytes() { - return result.hasRasterBytes(); + return ((bitField0_ & 0x00000080) == 0x00000080); } public com.google.protobuf.ByteString getRasterBytes() { - return result.getRasterBytes(); + return rasterBytes_; } public Builder setRasterBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.hasRasterBytes = true; - result.rasterBytes_ = value; + bitField0_ |= 0x00000080; + rasterBytes_ = value; + onChanged(); return this; } public Builder clearRasterBytes() { - result.hasRasterBytes = false; - result.rasterBytes_ = getDefaultInstance().getRasterBytes(); + bitField0_ = (bitField0_ & ~0x00000080); + rasterBytes_ = getDefaultInstance().getRasterBytes(); + onChanged(); return this; } @@ -5269,18 +9064,54 @@ public final class OsmandOdb { static { defaultInstance = new MapData(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.MapData) } + public interface OsmAndAddressIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string name = 1; + boolean hasName(); + String getName(); + + // optional string name_en = 2; + boolean hasNameEn(); + String getNameEn(); + + // optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3; + boolean hasBoundaries(); + net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries(); + net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder(); + + // repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6; + java.util.List + getCitiesList(); + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex getCities(int index); + int getCitiesCount(); + java.util.List + getCitiesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder getCitiesOrBuilder( + int index); + + // optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7; + boolean hasNameIndex(); + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getNameIndex(); + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder getNameIndexOrBuilder(); + + // optional .OsmAnd.OBF.StringTable attributeTagsTable = 8; + boolean hasAttributeTagsTable(); + net.osmand.binary.OsmandOdb.StringTable getAttributeTagsTable(); + net.osmand.binary.OsmandOdb.StringTableOrBuilder getAttributeTagsTableOrBuilder(); + } public static final class OsmAndAddressIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndAddressIndexOrBuilder { // Use OsmAndAddressIndex.newBuilder() to construct. - private OsmAndAddressIndex() { - initFields(); + private OsmAndAddressIndex(Builder builder) { + super(builder); } private OsmAndAddressIndex(boolean noInit) {} @@ -5303,11 +9134,39 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_fieldAccessorTable; } + public interface CitiesIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2; + boolean hasType(); + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType getType(); + + // repeated .OsmAnd.OBF.CityIndex cities = 5; + java.util.List + getCitiesList(); + net.osmand.binary.OsmandOdb.CityIndex getCities(int index); + int getCitiesCount(); + java.util.List + getCitiesOrBuilderList(); + net.osmand.binary.OsmandOdb.CityIndexOrBuilder getCitiesOrBuilder( + int index); + + // repeated .OsmAnd.OBF.CityBlockIndex blocks = 7; + java.util.List + getBlocksList(); + net.osmand.binary.OsmandOdb.CityBlockIndex getBlocks(int index); + int getBlocksCount(); + java.util.List + getBlocksOrBuilderList(); + net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder getBlocksOrBuilder( + int index); + } public static final class CitiesIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements CitiesIndexOrBuilder { // Use CitiesIndex.newBuilder() to construct. - private CitiesIndex() { - initFields(); + private CitiesIndex(Builder builder) { + super(builder); } private CitiesIndex(boolean noInit) {} @@ -5337,6 +9196,10 @@ public final class OsmandOdb { Villages(2, 3), ; + public static final int CitiesOrTowns_VALUE = 1; + public static final int Postcodes_VALUE = 2; + public static final int Villages_VALUE = 3; + public final int getNumber() { return value; } @@ -5357,8 +9220,8 @@ public final class OsmandOdb { internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CitiesType findValueByNumber(int number) { - return CitiesType.valueOf(number) - ; } + return CitiesType.valueOf(number); + } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor @@ -5377,6 +9240,7 @@ public final class OsmandOdb { private static final CitiesType[] VALUES = { CitiesOrTowns, Postcodes, Villages, }; + public static CitiesType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -5385,76 +9249,112 @@ public final class OsmandOdb { } return VALUES[desc.getIndex()]; } + private final int index; private final int value; + private CitiesType(int index, int value) { this.index = index; this.value = value; } - static { - net.osmand.binary.OsmandOdb.getDescriptor(); - } - // @@protoc_insertion_point(enum_scope:OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType) } + private int bitField0_; // required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2; public static final int TYPE_FIELD_NUMBER = 2; - private boolean hasType; private net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType type_; - public boolean hasType() { return hasType; } - public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType getType() { return type_; } + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType getType() { + return type_; + } // repeated .OsmAnd.OBF.CityIndex cities = 5; public static final int CITIES_FIELD_NUMBER = 5; - private java.util.List cities_ = - java.util.Collections.emptyList(); + private java.util.List cities_; public java.util.List getCitiesList() { return cities_; } - public int getCitiesCount() { return cities_.size(); } + public java.util.List + getCitiesOrBuilderList() { + return cities_; + } + public int getCitiesCount() { + return cities_.size(); + } public net.osmand.binary.OsmandOdb.CityIndex getCities(int index) { return cities_.get(index); } + public net.osmand.binary.OsmandOdb.CityIndexOrBuilder getCitiesOrBuilder( + int index) { + return cities_.get(index); + } // repeated .OsmAnd.OBF.CityBlockIndex blocks = 7; public static final int BLOCKS_FIELD_NUMBER = 7; - private java.util.List blocks_ = - java.util.Collections.emptyList(); + private java.util.List blocks_; public java.util.List getBlocksList() { return blocks_; } - public int getBlocksCount() { return blocks_.size(); } + public java.util.List + getBlocksOrBuilderList() { + return blocks_; + } + public int getBlocksCount() { + return blocks_.size(); + } public net.osmand.binary.OsmandOdb.CityBlockIndex getBlocks(int index) { return blocks_.get(index); } + public net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder getBlocksOrBuilder( + int index) { + return blocks_.get(index); + } private void initFields() { type_ = net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType.CitiesOrTowns; + cities_ = java.util.Collections.emptyList(); + blocks_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasType) return false; - for (net.osmand.binary.OsmandOdb.CityIndex element : getCitiesList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasType()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.CityBlockIndex element : getBlocksList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getCitiesCount(); i++) { + if (!getCities(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + for (int i = 0; i < getBlocksCount(); i++) { + if (!getBlocks(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasType()) { - output.writeEnum(2, getType().getNumber()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(2, type_.getNumber()); } - for (net.osmand.binary.OsmandOdb.CityIndex element : getCitiesList()) { - output.writeMessage(5, element); + for (int i = 0; i < cities_.size(); i++) { + output.writeMessage(5, cities_.get(i)); } - for (net.osmand.binary.OsmandOdb.CityBlockIndex element : getBlocksList()) { - output.writeMessage(7, element); + for (int i = 0; i < blocks_.size(); i++) { + output.writeMessage(7, blocks_.get(i)); } getUnknownFields().writeTo(output); } @@ -5465,23 +9365,30 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasType()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, getType().getNumber()); + .computeEnumSize(2, type_.getNumber()); } - for (net.osmand.binary.OsmandOdb.CityIndex element : getCitiesList()) { + for (int i = 0; i < cities_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, element); + .computeMessageSize(5, cities_.get(i)); } - for (net.osmand.binary.OsmandOdb.CityBlockIndex element : getBlocksList()) { + for (int i = 0; i < blocks_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, element); + .computeMessageSize(7, blocks_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5556,34 +9463,65 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getCitiesFieldBuilder(); + getBlocksFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + type_ = net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType.CitiesOrTowns; + bitField0_ = (bitField0_ & ~0x00000001); + if (citiesBuilder_ == null) { + cities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + citiesBuilder_.clear(); + } + if (blocksBuilder_ == null) { + blocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + blocksBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -5595,41 +9533,53 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex result = new net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.cities_ != java.util.Collections.EMPTY_LIST) { - result.cities_ = - java.util.Collections.unmodifiableList(result.cities_); + result.type_ = type_; + if (citiesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + cities_ = java.util.Collections.unmodifiableList(cities_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cities_ = cities_; + } else { + result.cities_ = citiesBuilder_.build(); } - if (result.blocks_ != java.util.Collections.EMPTY_LIST) { - result.blocks_ = - java.util.Collections.unmodifiableList(result.blocks_); + if (blocksBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + blocks_ = java.util.Collections.unmodifiableList(blocks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.blocks_ = blocks_; + } else { + result.blocks_ = blocksBuilder_.build(); } - net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex returnMe = result; - result = null; - return returnMe; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -5646,22 +9596,82 @@ public final class OsmandOdb { if (other.hasType()) { setType(other.getType()); } - if (!other.cities_.isEmpty()) { - if (result.cities_.isEmpty()) { - result.cities_ = new java.util.ArrayList(); + if (citiesBuilder_ == null) { + if (!other.cities_.isEmpty()) { + if (cities_.isEmpty()) { + cities_ = other.cities_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCitiesIsMutable(); + cities_.addAll(other.cities_); + } + onChanged(); + } + } else { + if (!other.cities_.isEmpty()) { + if (citiesBuilder_.isEmpty()) { + citiesBuilder_.dispose(); + citiesBuilder_ = null; + cities_ = other.cities_; + bitField0_ = (bitField0_ & ~0x00000002); + citiesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getCitiesFieldBuilder() : null; + } else { + citiesBuilder_.addAllMessages(other.cities_); + } } - result.cities_.addAll(other.cities_); } - if (!other.blocks_.isEmpty()) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); + if (blocksBuilder_ == null) { + if (!other.blocks_.isEmpty()) { + if (blocks_.isEmpty()) { + blocks_ = other.blocks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureBlocksIsMutable(); + blocks_.addAll(other.blocks_); + } + onChanged(); + } + } else { + if (!other.blocks_.isEmpty()) { + if (blocksBuilder_.isEmpty()) { + blocksBuilder_.dispose(); + blocksBuilder_ = null; + blocks_ = other.blocks_; + bitField0_ = (bitField0_ & ~0x00000004); + blocksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBlocksFieldBuilder() : null; + } else { + blocksBuilder_.addAllMessages(other.blocks_); + } } - result.blocks_.addAll(other.blocks_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasType()) { + + return false; + } + for (int i = 0; i < getCitiesCount(); i++) { + if (!getCities(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getBlocksCount(); i++) { + if (!getBlocks(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5674,11 +9684,13 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; @@ -5689,7 +9701,8 @@ public final class OsmandOdb { if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { - setType(value); + bitField0_ |= 0x00000001; + type_ = value; } break; } @@ -5709,217 +9722,599 @@ public final class OsmandOdb { } } + private int bitField0_; // required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2; + private net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType type_ = net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType.CitiesOrTowns; public boolean hasType() { - return result.hasType(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType getType() { - return result.getType(); + return type_; } public Builder setType(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType value) { if (value == null) { throw new NullPointerException(); } - result.hasType = true; - result.type_ = value; + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); return this; } public Builder clearType() { - result.hasType = false; - result.type_ = net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType.CitiesOrTowns; + bitField0_ = (bitField0_ & ~0x00000001); + type_ = net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType.CitiesOrTowns; + onChanged(); return this; } // repeated .OsmAnd.OBF.CityIndex cities = 5; + private java.util.List cities_ = + java.util.Collections.emptyList(); + private void ensureCitiesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + cities_ = new java.util.ArrayList(cities_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.CityIndex, net.osmand.binary.OsmandOdb.CityIndex.Builder, net.osmand.binary.OsmandOdb.CityIndexOrBuilder> citiesBuilder_; + public java.util.List getCitiesList() { - return java.util.Collections.unmodifiableList(result.cities_); + if (citiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(cities_); + } else { + return citiesBuilder_.getMessageList(); + } } public int getCitiesCount() { - return result.getCitiesCount(); + if (citiesBuilder_ == null) { + return cities_.size(); + } else { + return citiesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.CityIndex getCities(int index) { - return result.getCities(index); - } - public Builder setCities(int index, net.osmand.binary.OsmandOdb.CityIndex value) { - if (value == null) { - throw new NullPointerException(); + if (citiesBuilder_ == null) { + return cities_.get(index); + } else { + return citiesBuilder_.getMessage(index); + } + } + public Builder setCities( + int index, net.osmand.binary.OsmandOdb.CityIndex value) { + if (citiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitiesIsMutable(); + cities_.set(index, value); + onChanged(); + } else { + citiesBuilder_.setMessage(index, value); } - result.cities_.set(index, value); return this; } - public Builder setCities(int index, net.osmand.binary.OsmandOdb.CityIndex.Builder builderForValue) { - result.cities_.set(index, builderForValue.build()); + public Builder setCities( + int index, net.osmand.binary.OsmandOdb.CityIndex.Builder builderForValue) { + if (citiesBuilder_ == null) { + ensureCitiesIsMutable(); + cities_.set(index, builderForValue.build()); + onChanged(); + } else { + citiesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addCities(net.osmand.binary.OsmandOdb.CityIndex value) { - if (value == null) { - throw new NullPointerException(); + if (citiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitiesIsMutable(); + cities_.add(value); + onChanged(); + } else { + citiesBuilder_.addMessage(value); } - if (result.cities_.isEmpty()) { - result.cities_ = new java.util.ArrayList(); - } - result.cities_.add(value); return this; } - public Builder addCities(net.osmand.binary.OsmandOdb.CityIndex.Builder builderForValue) { - if (result.cities_.isEmpty()) { - result.cities_ = new java.util.ArrayList(); + public Builder addCities( + int index, net.osmand.binary.OsmandOdb.CityIndex value) { + if (citiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitiesIsMutable(); + cities_.add(index, value); + onChanged(); + } else { + citiesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addCities( + net.osmand.binary.OsmandOdb.CityIndex.Builder builderForValue) { + if (citiesBuilder_ == null) { + ensureCitiesIsMutable(); + cities_.add(builderForValue.build()); + onChanged(); + } else { + citiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addCities( + int index, net.osmand.binary.OsmandOdb.CityIndex.Builder builderForValue) { + if (citiesBuilder_ == null) { + ensureCitiesIsMutable(); + cities_.add(index, builderForValue.build()); + onChanged(); + } else { + citiesBuilder_.addMessage(index, builderForValue.build()); } - result.cities_.add(builderForValue.build()); return this; } public Builder addAllCities( java.lang.Iterable values) { - if (result.cities_.isEmpty()) { - result.cities_ = new java.util.ArrayList(); + if (citiesBuilder_ == null) { + ensureCitiesIsMutable(); + super.addAll(values, cities_); + onChanged(); + } else { + citiesBuilder_.addAllMessages(values); } - super.addAll(values, result.cities_); return this; } public Builder clearCities() { - result.cities_ = java.util.Collections.emptyList(); + if (citiesBuilder_ == null) { + cities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + citiesBuilder_.clear(); + } return this; } + public Builder removeCities(int index) { + if (citiesBuilder_ == null) { + ensureCitiesIsMutable(); + cities_.remove(index); + onChanged(); + } else { + citiesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.CityIndex.Builder getCitiesBuilder( + int index) { + return getCitiesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.CityIndexOrBuilder getCitiesOrBuilder( + int index) { + if (citiesBuilder_ == null) { + return cities_.get(index); } else { + return citiesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getCitiesOrBuilderList() { + if (citiesBuilder_ != null) { + return citiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cities_); + } + } + public net.osmand.binary.OsmandOdb.CityIndex.Builder addCitiesBuilder() { + return getCitiesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.CityIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.CityIndex.Builder addCitiesBuilder( + int index) { + return getCitiesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.CityIndex.getDefaultInstance()); + } + public java.util.List + getCitiesBuilderList() { + return getCitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.CityIndex, net.osmand.binary.OsmandOdb.CityIndex.Builder, net.osmand.binary.OsmandOdb.CityIndexOrBuilder> + getCitiesFieldBuilder() { + if (citiesBuilder_ == null) { + citiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.CityIndex, net.osmand.binary.OsmandOdb.CityIndex.Builder, net.osmand.binary.OsmandOdb.CityIndexOrBuilder>( + cities_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + cities_ = null; + } + return citiesBuilder_; + } // repeated .OsmAnd.OBF.CityBlockIndex blocks = 7; + private java.util.List blocks_ = + java.util.Collections.emptyList(); + private void ensureBlocksIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + blocks_ = new java.util.ArrayList(blocks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.CityBlockIndex, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder, net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder> blocksBuilder_; + public java.util.List getBlocksList() { - return java.util.Collections.unmodifiableList(result.blocks_); + if (blocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(blocks_); + } else { + return blocksBuilder_.getMessageList(); + } } public int getBlocksCount() { - return result.getBlocksCount(); + if (blocksBuilder_ == null) { + return blocks_.size(); + } else { + return blocksBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.CityBlockIndex getBlocks(int index) { - return result.getBlocks(index); - } - public Builder setBlocks(int index, net.osmand.binary.OsmandOdb.CityBlockIndex value) { - if (value == null) { - throw new NullPointerException(); + if (blocksBuilder_ == null) { + return blocks_.get(index); + } else { + return blocksBuilder_.getMessage(index); + } + } + public Builder setBlocks( + int index, net.osmand.binary.OsmandOdb.CityBlockIndex value) { + if (blocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlocksIsMutable(); + blocks_.set(index, value); + onChanged(); + } else { + blocksBuilder_.setMessage(index, value); } - result.blocks_.set(index, value); return this; } - public Builder setBlocks(int index, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder builderForValue) { - result.blocks_.set(index, builderForValue.build()); + public Builder setBlocks( + int index, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder builderForValue) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.set(index, builderForValue.build()); + onChanged(); + } else { + blocksBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addBlocks(net.osmand.binary.OsmandOdb.CityBlockIndex value) { - if (value == null) { - throw new NullPointerException(); + if (blocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlocksIsMutable(); + blocks_.add(value); + onChanged(); + } else { + blocksBuilder_.addMessage(value); } - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); - } - result.blocks_.add(value); return this; } - public Builder addBlocks(net.osmand.binary.OsmandOdb.CityBlockIndex.Builder builderForValue) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); + public Builder addBlocks( + int index, net.osmand.binary.OsmandOdb.CityBlockIndex value) { + if (blocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlocksIsMutable(); + blocks_.add(index, value); + onChanged(); + } else { + blocksBuilder_.addMessage(index, value); + } + return this; + } + public Builder addBlocks( + net.osmand.binary.OsmandOdb.CityBlockIndex.Builder builderForValue) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.add(builderForValue.build()); + onChanged(); + } else { + blocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addBlocks( + int index, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder builderForValue) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.add(index, builderForValue.build()); + onChanged(); + } else { + blocksBuilder_.addMessage(index, builderForValue.build()); } - result.blocks_.add(builderForValue.build()); return this; } public Builder addAllBlocks( java.lang.Iterable values) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + super.addAll(values, blocks_); + onChanged(); + } else { + blocksBuilder_.addAllMessages(values); } - super.addAll(values, result.blocks_); return this; } public Builder clearBlocks() { - result.blocks_ = java.util.Collections.emptyList(); + if (blocksBuilder_ == null) { + blocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + blocksBuilder_.clear(); + } return this; } + public Builder removeBlocks(int index) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.remove(index); + onChanged(); + } else { + blocksBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.CityBlockIndex.Builder getBlocksBuilder( + int index) { + return getBlocksFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder getBlocksOrBuilder( + int index) { + if (blocksBuilder_ == null) { + return blocks_.get(index); } else { + return blocksBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getBlocksOrBuilderList() { + if (blocksBuilder_ != null) { + return blocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blocks_); + } + } + public net.osmand.binary.OsmandOdb.CityBlockIndex.Builder addBlocksBuilder() { + return getBlocksFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.CityBlockIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.CityBlockIndex.Builder addBlocksBuilder( + int index) { + return getBlocksFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.CityBlockIndex.getDefaultInstance()); + } + public java.util.List + getBlocksBuilderList() { + return getBlocksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.CityBlockIndex, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder, net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder> + getBlocksFieldBuilder() { + if (blocksBuilder_ == null) { + blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.CityBlockIndex, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder, net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder>( + blocks_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + blocks_ = null; + } + return blocksBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex) } static { defaultInstance = new CitiesIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex) } + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string name_en = 2; public static final int NAME_EN_FIELD_NUMBER = 2; - private boolean hasNameEn; - private java.lang.String nameEn_ = ""; - public boolean hasNameEn() { return hasNameEn; } - public java.lang.String getNameEn() { return nameEn_; } + private java.lang.Object nameEn_; + public boolean hasNameEn() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + nameEn_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameEnBytes() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + nameEn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3; public static final int BOUNDARIES_FIELD_NUMBER = 3; - private boolean hasBoundaries; private net.osmand.binary.OsmandOdb.OsmAndTileBox boundaries_; - public boolean hasBoundaries() { return hasBoundaries; } - public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { return boundaries_; } + public boolean hasBoundaries() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { + return boundaries_; + } + public net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder() { + return boundaries_; + } // repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6; public static final int CITIES_FIELD_NUMBER = 6; - private java.util.List cities_ = - java.util.Collections.emptyList(); + private java.util.List cities_; public java.util.List getCitiesList() { return cities_; } - public int getCitiesCount() { return cities_.size(); } + public java.util.List + getCitiesOrBuilderList() { + return cities_; + } + public int getCitiesCount() { + return cities_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex getCities(int index) { return cities_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder getCitiesOrBuilder( + int index) { + return cities_.get(index); + } // optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7; public static final int NAMEINDEX_FIELD_NUMBER = 7; - private boolean hasNameIndex; private net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData nameIndex_; - public boolean hasNameIndex() { return hasNameIndex; } - public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getNameIndex() { return nameIndex_; } + public boolean hasNameIndex() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getNameIndex() { + return nameIndex_; + } + public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder getNameIndexOrBuilder() { + return nameIndex_; + } + + // optional .OsmAnd.OBF.StringTable attributeTagsTable = 8; + public static final int ATTRIBUTETAGSTABLE_FIELD_NUMBER = 8; + private net.osmand.binary.OsmandOdb.StringTable attributeTagsTable_; + public boolean hasAttributeTagsTable() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public net.osmand.binary.OsmandOdb.StringTable getAttributeTagsTable() { + return attributeTagsTable_; + } + public net.osmand.binary.OsmandOdb.StringTableOrBuilder getAttributeTagsTableOrBuilder() { + return attributeTagsTable_; + } private void initFields() { + name_ = ""; + nameEn_ = ""; boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); + cities_ = java.util.Collections.emptyList(); nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); + attributeTagsTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasName) return false; - if (hasBoundaries()) { - if (!getBoundaries().isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex element : getCitiesList()) { - if (!element.isInitialized()) return false; + if (hasBoundaries()) { + if (!getBoundaries().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getCitiesCount(); i++) { + if (!getCities(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } if (hasNameIndex()) { - if (!getNameIndex().isInitialized()) return false; + if (!getNameIndex().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasName()) { - output.writeString(1, getName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); } - if (hasNameEn()) { - output.writeString(2, getNameEn()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNameEnBytes()); } - if (hasBoundaries()) { - output.writeMessage(3, getBoundaries()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, boundaries_); } - for (net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex element : getCitiesList()) { - output.writeMessage(6, element); + for (int i = 0; i < cities_.size(); i++) { + output.writeMessage(6, cities_.get(i)); } - if (hasNameIndex()) { - output.writeMessage(7, getNameIndex()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(7, nameIndex_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(8, attributeTagsTable_); } getUnknownFields().writeTo(output); } @@ -5930,31 +10325,42 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasName()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getName()); + .computeBytesSize(1, getNameBytes()); } - if (hasNameEn()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNameEn()); + .computeBytesSize(2, getNameEnBytes()); } - if (hasBoundaries()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBoundaries()); + .computeMessageSize(3, boundaries_); } - for (net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex element : getCitiesList()) { + for (int i = 0; i < cities_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, element); + .computeMessageSize(6, cities_.get(i)); } - if (hasNameIndex()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getNameIndex()); + .computeMessageSize(7, nameIndex_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, attributeTagsTable_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6029,34 +10435,81 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndAddressIndex result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndAddressIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndAddressIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getBoundariesFieldBuilder(); + getCitiesFieldBuilder(); + getNameIndexFieldBuilder(); + getAttributeTagsTableFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + nameEn_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (boundariesBuilder_ == null) { + boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); + } else { + boundariesBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndAddressIndex(); + bitField0_ = (bitField0_ & ~0x00000004); + if (citiesBuilder_ == null) { + cities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + citiesBuilder_.clear(); + } + if (nameIndexBuilder_ == null) { + nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); + } else { + nameIndexBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (attributeTagsTableBuilder_ == null) { + attributeTagsTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + } else { + attributeTagsTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -6068,37 +10521,72 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndAddressIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndAddressIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndAddressIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndAddressIndex result = new net.osmand.binary.OsmandOdb.OsmAndAddressIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.cities_ != java.util.Collections.EMPTY_LIST) { - result.cities_ = - java.util.Collections.unmodifiableList(result.cities_); + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - net.osmand.binary.OsmandOdb.OsmAndAddressIndex returnMe = result; - result = null; - return returnMe; + result.nameEn_ = nameEn_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (boundariesBuilder_ == null) { + result.boundaries_ = boundaries_; + } else { + result.boundaries_ = boundariesBuilder_.build(); + } + if (citiesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + cities_ = java.util.Collections.unmodifiableList(cities_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.cities_ = cities_; + } else { + result.cities_ = citiesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + if (nameIndexBuilder_ == null) { + result.nameIndex_ = nameIndex_; + } else { + result.nameIndex_ = nameIndexBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + if (attributeTagsTableBuilder_ == null) { + result.attributeTagsTable_ = attributeTagsTable_; + } else { + result.attributeTagsTable_ = attributeTagsTableBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -6121,19 +10609,68 @@ public final class OsmandOdb { if (other.hasBoundaries()) { mergeBoundaries(other.getBoundaries()); } - if (!other.cities_.isEmpty()) { - if (result.cities_.isEmpty()) { - result.cities_ = new java.util.ArrayList(); + if (citiesBuilder_ == null) { + if (!other.cities_.isEmpty()) { + if (cities_.isEmpty()) { + cities_ = other.cities_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureCitiesIsMutable(); + cities_.addAll(other.cities_); + } + onChanged(); + } + } else { + if (!other.cities_.isEmpty()) { + if (citiesBuilder_.isEmpty()) { + citiesBuilder_.dispose(); + citiesBuilder_ = null; + cities_ = other.cities_; + bitField0_ = (bitField0_ & ~0x00000008); + citiesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getCitiesFieldBuilder() : null; + } else { + citiesBuilder_.addAllMessages(other.cities_); + } } - result.cities_.addAll(other.cities_); } if (other.hasNameIndex()) { mergeNameIndex(other.getNameIndex()); } + if (other.hasAttributeTagsTable()) { + mergeAttributeTagsTable(other.getAttributeTagsTable()); + } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (hasBoundaries()) { + if (!getBoundaries().isInitialized()) { + + return false; + } + } + for (int i = 0; i < getCitiesCount(); i++) { + if (!getCities(i).isInitialized()) { + + return false; + } + } + if (hasNameIndex()) { + if (!getNameIndex().isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6146,21 +10683,25 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setName(input.readString()); + bitField0_ |= 0x00000001; + name_ = input.readBytes(); break; } case 18: { - setNameEn(input.readString()); + bitField0_ |= 0x00000002; + nameEn_ = input.readBytes(); break; } case 26: { @@ -6187,195 +10728,584 @@ public final class OsmandOdb { setNameIndex(subBuilder.buildPartial()); break; } + case 66: { + net.osmand.binary.OsmandOdb.StringTable.Builder subBuilder = net.osmand.binary.OsmandOdb.StringTable.newBuilder(); + if (hasAttributeTagsTable()) { + subBuilder.mergeFrom(getAttributeTagsTable()); + } + input.readMessage(subBuilder, extensionRegistry); + setAttributeTagsTable(subBuilder.buildPartial()); + break; + } } } } + private int bitField0_; // required string name = 1; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + } // optional string name_en = 2; + private java.lang.Object nameEn_ = ""; public boolean hasNameEn() { - return result.hasNameEn(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - public java.lang.String getNameEn() { - return result.getNameEn(); + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + nameEn_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setNameEn(java.lang.String value) { + public Builder setNameEn(String value) { if (value == null) { throw new NullPointerException(); } - result.hasNameEn = true; - result.nameEn_ = value; + bitField0_ |= 0x00000002; + nameEn_ = value; + onChanged(); return this; } public Builder clearNameEn() { - result.hasNameEn = false; - result.nameEn_ = getDefaultInstance().getNameEn(); + bitField0_ = (bitField0_ & ~0x00000002); + nameEn_ = getDefaultInstance().getNameEn(); + onChanged(); return this; } + void setNameEn(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + nameEn_ = value; + onChanged(); + } // optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3; + private net.osmand.binary.OsmandOdb.OsmAndTileBox boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndTileBox, net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder, net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder> boundariesBuilder_; public boolean hasBoundaries() { - return result.hasBoundaries(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { - return result.getBoundaries(); + if (boundariesBuilder_ == null) { + return boundaries_; + } else { + return boundariesBuilder_.getMessage(); + } } public Builder setBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox value) { - if (value == null) { - throw new NullPointerException(); + if (boundariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boundaries_ = value; + onChanged(); + } else { + boundariesBuilder_.setMessage(value); } - result.hasBoundaries = true; - result.boundaries_ = value; + bitField0_ |= 0x00000004; return this; } - public Builder setBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder builderForValue) { - result.hasBoundaries = true; - result.boundaries_ = builderForValue.build(); + public Builder setBoundaries( + net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder builderForValue) { + if (boundariesBuilder_ == null) { + boundaries_ = builderForValue.build(); + onChanged(); + } else { + boundariesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; return this; } public Builder mergeBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox value) { - if (result.hasBoundaries() && - result.boundaries_ != net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance()) { - result.boundaries_ = - net.osmand.binary.OsmandOdb.OsmAndTileBox.newBuilder(result.boundaries_).mergeFrom(value).buildPartial(); + if (boundariesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + boundaries_ != net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance()) { + boundaries_ = + net.osmand.binary.OsmandOdb.OsmAndTileBox.newBuilder(boundaries_).mergeFrom(value).buildPartial(); + } else { + boundaries_ = value; + } + onChanged(); } else { - result.boundaries_ = value; + boundariesBuilder_.mergeFrom(value); } - result.hasBoundaries = true; + bitField0_ |= 0x00000004; return this; } public Builder clearBoundaries() { - result.hasBoundaries = false; - result.boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); + if (boundariesBuilder_ == null) { + boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); + onChanged(); + } else { + boundariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } + public net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder getBoundariesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getBoundariesFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder() { + if (boundariesBuilder_ != null) { + return boundariesBuilder_.getMessageOrBuilder(); + } else { + return boundaries_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndTileBox, net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder, net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder> + getBoundariesFieldBuilder() { + if (boundariesBuilder_ == null) { + boundariesBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndTileBox, net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder, net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder>( + boundaries_, + getParentForChildren(), + isClean()); + boundaries_ = null; + } + return boundariesBuilder_; + } // repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6; + private java.util.List cities_ = + java.util.Collections.emptyList(); + private void ensureCitiesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + cities_ = new java.util.ArrayList(cities_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder> citiesBuilder_; + public java.util.List getCitiesList() { - return java.util.Collections.unmodifiableList(result.cities_); + if (citiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(cities_); + } else { + return citiesBuilder_.getMessageList(); + } } public int getCitiesCount() { - return result.getCitiesCount(); + if (citiesBuilder_ == null) { + return cities_.size(); + } else { + return citiesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex getCities(int index) { - return result.getCities(index); - } - public Builder setCities(int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex value) { - if (value == null) { - throw new NullPointerException(); + if (citiesBuilder_ == null) { + return cities_.get(index); + } else { + return citiesBuilder_.getMessage(index); + } + } + public Builder setCities( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex value) { + if (citiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitiesIsMutable(); + cities_.set(index, value); + onChanged(); + } else { + citiesBuilder_.setMessage(index, value); } - result.cities_.set(index, value); return this; } - public Builder setCities(int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder builderForValue) { - result.cities_.set(index, builderForValue.build()); + public Builder setCities( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder builderForValue) { + if (citiesBuilder_ == null) { + ensureCitiesIsMutable(); + cities_.set(index, builderForValue.build()); + onChanged(); + } else { + citiesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addCities(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex value) { - if (value == null) { - throw new NullPointerException(); + if (citiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitiesIsMutable(); + cities_.add(value); + onChanged(); + } else { + citiesBuilder_.addMessage(value); } - if (result.cities_.isEmpty()) { - result.cities_ = new java.util.ArrayList(); - } - result.cities_.add(value); return this; } - public Builder addCities(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder builderForValue) { - if (result.cities_.isEmpty()) { - result.cities_ = new java.util.ArrayList(); + public Builder addCities( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex value) { + if (citiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitiesIsMutable(); + cities_.add(index, value); + onChanged(); + } else { + citiesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addCities( + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder builderForValue) { + if (citiesBuilder_ == null) { + ensureCitiesIsMutable(); + cities_.add(builderForValue.build()); + onChanged(); + } else { + citiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addCities( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder builderForValue) { + if (citiesBuilder_ == null) { + ensureCitiesIsMutable(); + cities_.add(index, builderForValue.build()); + onChanged(); + } else { + citiesBuilder_.addMessage(index, builderForValue.build()); } - result.cities_.add(builderForValue.build()); return this; } public Builder addAllCities( java.lang.Iterable values) { - if (result.cities_.isEmpty()) { - result.cities_ = new java.util.ArrayList(); + if (citiesBuilder_ == null) { + ensureCitiesIsMutable(); + super.addAll(values, cities_); + onChanged(); + } else { + citiesBuilder_.addAllMessages(values); } - super.addAll(values, result.cities_); return this; } public Builder clearCities() { - result.cities_ = java.util.Collections.emptyList(); + if (citiesBuilder_ == null) { + cities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + citiesBuilder_.clear(); + } return this; } + public Builder removeCities(int index) { + if (citiesBuilder_ == null) { + ensureCitiesIsMutable(); + cities_.remove(index); + onChanged(); + } else { + citiesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder getCitiesBuilder( + int index) { + return getCitiesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder getCitiesOrBuilder( + int index) { + if (citiesBuilder_ == null) { + return cities_.get(index); } else { + return citiesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getCitiesOrBuilderList() { + if (citiesBuilder_ != null) { + return citiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cities_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder addCitiesBuilder() { + return getCitiesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder addCitiesBuilder( + int index) { + return getCitiesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.getDefaultInstance()); + } + public java.util.List + getCitiesBuilderList() { + return getCitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder> + getCitiesFieldBuilder() { + if (citiesBuilder_ == null) { + citiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder>( + cities_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + cities_ = null; + } + return citiesBuilder_; + } // optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7; + private net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder> nameIndexBuilder_; public boolean hasNameIndex() { - return result.hasNameIndex(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getNameIndex() { - return result.getNameIndex(); + if (nameIndexBuilder_ == null) { + return nameIndex_; + } else { + return nameIndexBuilder_.getMessage(); + } } public Builder setNameIndex(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData value) { - if (value == null) { - throw new NullPointerException(); + if (nameIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nameIndex_ = value; + onChanged(); + } else { + nameIndexBuilder_.setMessage(value); } - result.hasNameIndex = true; - result.nameIndex_ = value; + bitField0_ |= 0x00000010; return this; } - public Builder setNameIndex(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder builderForValue) { - result.hasNameIndex = true; - result.nameIndex_ = builderForValue.build(); + public Builder setNameIndex( + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder builderForValue) { + if (nameIndexBuilder_ == null) { + nameIndex_ = builderForValue.build(); + onChanged(); + } else { + nameIndexBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; return this; } public Builder mergeNameIndex(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData value) { - if (result.hasNameIndex() && - result.nameIndex_ != net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance()) { - result.nameIndex_ = - net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.newBuilder(result.nameIndex_).mergeFrom(value).buildPartial(); + if (nameIndexBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + nameIndex_ != net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance()) { + nameIndex_ = + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.newBuilder(nameIndex_).mergeFrom(value).buildPartial(); + } else { + nameIndex_ = value; + } + onChanged(); } else { - result.nameIndex_ = value; + nameIndexBuilder_.mergeFrom(value); } - result.hasNameIndex = true; + bitField0_ |= 0x00000010; return this; } public Builder clearNameIndex() { - result.hasNameIndex = false; - result.nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); + if (nameIndexBuilder_ == null) { + nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); + onChanged(); + } else { + nameIndexBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); return this; } + public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder getNameIndexBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getNameIndexFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder getNameIndexOrBuilder() { + if (nameIndexBuilder_ != null) { + return nameIndexBuilder_.getMessageOrBuilder(); + } else { + return nameIndex_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder> + getNameIndexFieldBuilder() { + if (nameIndexBuilder_ == null) { + nameIndexBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder>( + nameIndex_, + getParentForChildren(), + isClean()); + nameIndex_ = null; + } + return nameIndexBuilder_; + } + + // optional .OsmAnd.OBF.StringTable attributeTagsTable = 8; + private net.osmand.binary.OsmandOdb.StringTable attributeTagsTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> attributeTagsTableBuilder_; + public boolean hasAttributeTagsTable() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public net.osmand.binary.OsmandOdb.StringTable getAttributeTagsTable() { + if (attributeTagsTableBuilder_ == null) { + return attributeTagsTable_; + } else { + return attributeTagsTableBuilder_.getMessage(); + } + } + public Builder setAttributeTagsTable(net.osmand.binary.OsmandOdb.StringTable value) { + if (attributeTagsTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributeTagsTable_ = value; + onChanged(); + } else { + attributeTagsTableBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + public Builder setAttributeTagsTable( + net.osmand.binary.OsmandOdb.StringTable.Builder builderForValue) { + if (attributeTagsTableBuilder_ == null) { + attributeTagsTable_ = builderForValue.build(); + onChanged(); + } else { + attributeTagsTableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + public Builder mergeAttributeTagsTable(net.osmand.binary.OsmandOdb.StringTable value) { + if (attributeTagsTableBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + attributeTagsTable_ != net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) { + attributeTagsTable_ = + net.osmand.binary.OsmandOdb.StringTable.newBuilder(attributeTagsTable_).mergeFrom(value).buildPartial(); + } else { + attributeTagsTable_ = value; + } + onChanged(); + } else { + attributeTagsTableBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + public Builder clearAttributeTagsTable() { + if (attributeTagsTableBuilder_ == null) { + attributeTagsTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + onChanged(); + } else { + attributeTagsTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + public net.osmand.binary.OsmandOdb.StringTable.Builder getAttributeTagsTableBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getAttributeTagsTableFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.StringTableOrBuilder getAttributeTagsTableOrBuilder() { + if (attributeTagsTableBuilder_ != null) { + return attributeTagsTableBuilder_.getMessageOrBuilder(); + } else { + return attributeTagsTable_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> + getAttributeTagsTableFieldBuilder() { + if (attributeTagsTableBuilder_ == null) { + attributeTagsTableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder>( + attributeTagsTable_, + getParentForChildren(), + isClean()); + attributeTagsTable_ = null; + } + return attributeTagsTableBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndAddressIndex) } static { defaultInstance = new OsmAndAddressIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndAddressIndex) } + public interface OsmAndAddressNameIndexDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .OsmAnd.OBF.IndexedStringTable table = 4; + boolean hasTable(); + net.osmand.binary.OsmandOdb.IndexedStringTable getTable(); + net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder(); + + // repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7; + java.util.List + getAtomList(); + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData getAtom(int index); + int getAtomCount(); + java.util.List + getAtomOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder getAtomOrBuilder( + int index); + } public static final class OsmAndAddressNameIndexData extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndAddressNameIndexDataOrBuilder { // Use OsmAndAddressNameIndexData.newBuilder() to construct. - private OsmAndAddressNameIndexData() { - initFields(); + private OsmAndAddressNameIndexData(Builder builder) { + super(builder); } private OsmAndAddressNameIndexData(boolean noInit) {} @@ -6398,11 +11328,25 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_fieldAccessorTable; } + public interface AddressNameIndexDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; + java.util.List + getAtomList(); + net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom getAtom(int index); + int getAtomCount(); + java.util.List + getAtomOrBuilderList(); + net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder getAtomOrBuilder( + int index); + } public static final class AddressNameIndexData extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements AddressNameIndexDataOrBuilder { // Use AddressNameIndexData.newBuilder() to construct. - private AddressNameIndexData() { - initFields(); + private AddressNameIndexData(Builder builder) { + super(builder); } private AddressNameIndexData(boolean noInit) {} @@ -6427,30 +11371,48 @@ public final class OsmandOdb { // repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; public static final int ATOM_FIELD_NUMBER = 4; - private java.util.List atom_ = - java.util.Collections.emptyList(); + private java.util.List atom_; public java.util.List getAtomList() { return atom_; } - public int getAtomCount() { return atom_.size(); } + public java.util.List + getAtomOrBuilderList() { + return atom_; + } + public int getAtomCount() { + return atom_.size(); + } public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom getAtom(int index) { return atom_.get(index); } + public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder getAtomOrBuilder( + int index) { + return atom_.get(index); + } private void initFields() { + atom_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - for (net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom element : getAtomList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getAtomCount(); i++) { + if (!getAtom(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - for (net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom element : getAtomList()) { - output.writeMessage(4, element); + for (int i = 0; i < atom_.size(); i++) { + output.writeMessage(4, atom_.get(i)); } getUnknownFields().writeTo(output); } @@ -6461,15 +11423,22 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - for (net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom element : getAtomList()) { + for (int i = 0; i < atom_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, element); + .computeMessageSize(4, atom_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6544,34 +11513,56 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getAtomFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + if (atomBuilder_ == null) { + atom_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + atomBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -6583,37 +11574,38 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData result = new net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData(this); + int from_bitField0_ = bitField0_; + if (atomBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + atom_ = java.util.Collections.unmodifiableList(atom_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.atom_ = atom_; + } else { + result.atom_ = atomBuilder_.build(); } - if (result.atom_ != java.util.Collections.EMPTY_LIST) { - result.atom_ = - java.util.Collections.unmodifiableList(result.atom_); - } - net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData returnMe = result; - result = null; - return returnMe; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -6627,16 +11619,46 @@ public final class OsmandOdb { public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData other) { if (other == net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.getDefaultInstance()) return this; - if (!other.atom_.isEmpty()) { - if (result.atom_.isEmpty()) { - result.atom_ = new java.util.ArrayList(); + if (atomBuilder_ == null) { + if (!other.atom_.isEmpty()) { + if (atom_.isEmpty()) { + atom_ = other.atom_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAtomIsMutable(); + atom_.addAll(other.atom_); + } + onChanged(); + } + } else { + if (!other.atom_.isEmpty()) { + if (atomBuilder_.isEmpty()) { + atomBuilder_.dispose(); + atomBuilder_ = null; + atom_ = other.atom_; + bitField0_ = (bitField0_ & ~0x00000001); + atomBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAtomFieldBuilder() : null; + } else { + atomBuilder_.addAllMessages(other.atom_); + } } - result.atom_.addAll(other.atom_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + for (int i = 0; i < getAtomCount(); i++) { + if (!getAtom(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6649,11 +11671,13 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; @@ -6668,108 +11692,271 @@ public final class OsmandOdb { } } + private int bitField0_; // repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; + private java.util.List atom_ = + java.util.Collections.emptyList(); + private void ensureAtomIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + atom_ = new java.util.ArrayList(atom_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder> atomBuilder_; + public java.util.List getAtomList() { - return java.util.Collections.unmodifiableList(result.atom_); + if (atomBuilder_ == null) { + return java.util.Collections.unmodifiableList(atom_); + } else { + return atomBuilder_.getMessageList(); + } } public int getAtomCount() { - return result.getAtomCount(); + if (atomBuilder_ == null) { + return atom_.size(); + } else { + return atomBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom getAtom(int index) { - return result.getAtom(index); - } - public Builder setAtom(int index, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom value) { - if (value == null) { - throw new NullPointerException(); + if (atomBuilder_ == null) { + return atom_.get(index); + } else { + return atomBuilder_.getMessage(index); + } + } + public Builder setAtom( + int index, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom value) { + if (atomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAtomIsMutable(); + atom_.set(index, value); + onChanged(); + } else { + atomBuilder_.setMessage(index, value); } - result.atom_.set(index, value); return this; } - public Builder setAtom(int index, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder builderForValue) { - result.atom_.set(index, builderForValue.build()); + public Builder setAtom( + int index, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder builderForValue) { + if (atomBuilder_ == null) { + ensureAtomIsMutable(); + atom_.set(index, builderForValue.build()); + onChanged(); + } else { + atomBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addAtom(net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom value) { - if (value == null) { - throw new NullPointerException(); + if (atomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAtomIsMutable(); + atom_.add(value); + onChanged(); + } else { + atomBuilder_.addMessage(value); } - if (result.atom_.isEmpty()) { - result.atom_ = new java.util.ArrayList(); - } - result.atom_.add(value); return this; } - public Builder addAtom(net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder builderForValue) { - if (result.atom_.isEmpty()) { - result.atom_ = new java.util.ArrayList(); + public Builder addAtom( + int index, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom value) { + if (atomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAtomIsMutable(); + atom_.add(index, value); + onChanged(); + } else { + atomBuilder_.addMessage(index, value); + } + return this; + } + public Builder addAtom( + net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder builderForValue) { + if (atomBuilder_ == null) { + ensureAtomIsMutable(); + atom_.add(builderForValue.build()); + onChanged(); + } else { + atomBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addAtom( + int index, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder builderForValue) { + if (atomBuilder_ == null) { + ensureAtomIsMutable(); + atom_.add(index, builderForValue.build()); + onChanged(); + } else { + atomBuilder_.addMessage(index, builderForValue.build()); } - result.atom_.add(builderForValue.build()); return this; } public Builder addAllAtom( java.lang.Iterable values) { - if (result.atom_.isEmpty()) { - result.atom_ = new java.util.ArrayList(); + if (atomBuilder_ == null) { + ensureAtomIsMutable(); + super.addAll(values, atom_); + onChanged(); + } else { + atomBuilder_.addAllMessages(values); } - super.addAll(values, result.atom_); return this; } public Builder clearAtom() { - result.atom_ = java.util.Collections.emptyList(); + if (atomBuilder_ == null) { + atom_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + atomBuilder_.clear(); + } return this; } + public Builder removeAtom(int index) { + if (atomBuilder_ == null) { + ensureAtomIsMutable(); + atom_.remove(index); + onChanged(); + } else { + atomBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder getAtomBuilder( + int index) { + return getAtomFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder getAtomOrBuilder( + int index) { + if (atomBuilder_ == null) { + return atom_.get(index); } else { + return atomBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getAtomOrBuilderList() { + if (atomBuilder_ != null) { + return atomBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(atom_); + } + } + public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder addAtomBuilder() { + return getAtomFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder addAtomBuilder( + int index) { + return getAtomFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.getDefaultInstance()); + } + public java.util.List + getAtomBuilderList() { + return getAtomFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder> + getAtomFieldBuilder() { + if (atomBuilder_ == null) { + atomBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder>( + atom_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + atom_ = null; + } + return atomBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData) } static { defaultInstance = new AddressNameIndexData(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData) } + private int bitField0_; // required .OsmAnd.OBF.IndexedStringTable table = 4; public static final int TABLE_FIELD_NUMBER = 4; - private boolean hasTable; private net.osmand.binary.OsmandOdb.IndexedStringTable table_; - public boolean hasTable() { return hasTable; } - public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { return table_; } + public boolean hasTable() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { + return table_; + } + public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder() { + return table_; + } // repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7; public static final int ATOM_FIELD_NUMBER = 7; - private java.util.List atom_ = - java.util.Collections.emptyList(); + private java.util.List atom_; public java.util.List getAtomList() { return atom_; } - public int getAtomCount() { return atom_.size(); } + public java.util.List + getAtomOrBuilderList() { + return atom_; + } + public int getAtomCount() { + return atom_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData getAtom(int index) { return atom_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder getAtomOrBuilder( + int index) { + return atom_.get(index); + } private void initFields() { table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); + atom_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasTable) return false; - for (net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData element : getAtomList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasTable()) { + memoizedIsInitialized = 0; + return false; } + for (int i = 0; i < getAtomCount(); i++) { + if (!getAtom(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasTable()) { - output.writeMessage(4, getTable()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(4, table_); } - for (net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData element : getAtomList()) { - output.writeMessage(7, element); + for (int i = 0; i < atom_.size(); i++) { + output.writeMessage(7, atom_.get(i)); } getUnknownFields().writeTo(output); } @@ -6780,19 +11967,26 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasTable()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTable()); + .computeMessageSize(4, table_); } - for (net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData element : getAtomList()) { + for (int i = 0; i < atom_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, element); + .computeMessageSize(7, atom_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6867,34 +12061,63 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getTableFieldBuilder(); + getAtomFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + if (tableBuilder_ == null) { + table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); + } else { + tableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (atomBuilder_ == null) { + atom_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + atomBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -6906,37 +12129,48 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData result = new net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.atom_ != java.util.Collections.EMPTY_LIST) { - result.atom_ = - java.util.Collections.unmodifiableList(result.atom_); + if (tableBuilder_ == null) { + result.table_ = table_; + } else { + result.table_ = tableBuilder_.build(); } - net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData returnMe = result; - result = null; - return returnMe; + if (atomBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + atom_ = java.util.Collections.unmodifiableList(atom_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.atom_ = atom_; + } else { + result.atom_ = atomBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -6953,16 +12187,50 @@ public final class OsmandOdb { if (other.hasTable()) { mergeTable(other.getTable()); } - if (!other.atom_.isEmpty()) { - if (result.atom_.isEmpty()) { - result.atom_ = new java.util.ArrayList(); + if (atomBuilder_ == null) { + if (!other.atom_.isEmpty()) { + if (atom_.isEmpty()) { + atom_ = other.atom_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAtomIsMutable(); + atom_.addAll(other.atom_); + } + onChanged(); + } + } else { + if (!other.atom_.isEmpty()) { + if (atomBuilder_.isEmpty()) { + atomBuilder_.dispose(); + atomBuilder_ = null; + atom_ = other.atom_; + bitField0_ = (bitField0_ & ~0x00000002); + atomBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAtomFieldBuilder() : null; + } else { + atomBuilder_.addAllMessages(other.atom_); + } } - result.atom_.addAll(other.atom_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasTable()) { + + return false; + } + for (int i = 0; i < getAtomCount(); i++) { + if (!getAtom(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6975,11 +12243,13 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; @@ -7003,112 +12273,326 @@ public final class OsmandOdb { } } + private int bitField0_; // required .OsmAnd.OBF.IndexedStringTable table = 4; + private net.osmand.binary.OsmandOdb.IndexedStringTable table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> tableBuilder_; public boolean hasTable() { - return result.hasTable(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { - return result.getTable(); + if (tableBuilder_ == null) { + return table_; + } else { + return tableBuilder_.getMessage(); + } } public Builder setTable(net.osmand.binary.OsmandOdb.IndexedStringTable value) { - if (value == null) { - throw new NullPointerException(); + if (tableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + onChanged(); + } else { + tableBuilder_.setMessage(value); } - result.hasTable = true; - result.table_ = value; + bitField0_ |= 0x00000001; return this; } - public Builder setTable(net.osmand.binary.OsmandOdb.IndexedStringTable.Builder builderForValue) { - result.hasTable = true; - result.table_ = builderForValue.build(); + public Builder setTable( + net.osmand.binary.OsmandOdb.IndexedStringTable.Builder builderForValue) { + if (tableBuilder_ == null) { + table_ = builderForValue.build(); + onChanged(); + } else { + tableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; return this; } public Builder mergeTable(net.osmand.binary.OsmandOdb.IndexedStringTable value) { - if (result.hasTable() && - result.table_ != net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()) { - result.table_ = - net.osmand.binary.OsmandOdb.IndexedStringTable.newBuilder(result.table_).mergeFrom(value).buildPartial(); + if (tableBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + table_ != net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()) { + table_ = + net.osmand.binary.OsmandOdb.IndexedStringTable.newBuilder(table_).mergeFrom(value).buildPartial(); + } else { + table_ = value; + } + onChanged(); } else { - result.table_ = value; + tableBuilder_.mergeFrom(value); } - result.hasTable = true; + bitField0_ |= 0x00000001; return this; } public Builder clearTable() { - result.hasTable = false; - result.table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); + if (tableBuilder_ == null) { + table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); + onChanged(); + } else { + tableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); return this; } + public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder getTableBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTableFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder() { + if (tableBuilder_ != null) { + return tableBuilder_.getMessageOrBuilder(); + } else { + return table_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> + getTableFieldBuilder() { + if (tableBuilder_ == null) { + tableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder>( + table_, + getParentForChildren(), + isClean()); + table_ = null; + } + return tableBuilder_; + } // repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7; + private java.util.List atom_ = + java.util.Collections.emptyList(); + private void ensureAtomIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + atom_ = new java.util.ArrayList(atom_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder> atomBuilder_; + public java.util.List getAtomList() { - return java.util.Collections.unmodifiableList(result.atom_); + if (atomBuilder_ == null) { + return java.util.Collections.unmodifiableList(atom_); + } else { + return atomBuilder_.getMessageList(); + } } public int getAtomCount() { - return result.getAtomCount(); + if (atomBuilder_ == null) { + return atom_.size(); + } else { + return atomBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData getAtom(int index) { - return result.getAtom(index); - } - public Builder setAtom(int index, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData value) { - if (value == null) { - throw new NullPointerException(); + if (atomBuilder_ == null) { + return atom_.get(index); + } else { + return atomBuilder_.getMessage(index); + } + } + public Builder setAtom( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData value) { + if (atomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAtomIsMutable(); + atom_.set(index, value); + onChanged(); + } else { + atomBuilder_.setMessage(index, value); } - result.atom_.set(index, value); return this; } - public Builder setAtom(int index, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder builderForValue) { - result.atom_.set(index, builderForValue.build()); + public Builder setAtom( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder builderForValue) { + if (atomBuilder_ == null) { + ensureAtomIsMutable(); + atom_.set(index, builderForValue.build()); + onChanged(); + } else { + atomBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addAtom(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData value) { - if (value == null) { - throw new NullPointerException(); + if (atomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAtomIsMutable(); + atom_.add(value); + onChanged(); + } else { + atomBuilder_.addMessage(value); } - if (result.atom_.isEmpty()) { - result.atom_ = new java.util.ArrayList(); - } - result.atom_.add(value); return this; } - public Builder addAtom(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder builderForValue) { - if (result.atom_.isEmpty()) { - result.atom_ = new java.util.ArrayList(); + public Builder addAtom( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData value) { + if (atomBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAtomIsMutable(); + atom_.add(index, value); + onChanged(); + } else { + atomBuilder_.addMessage(index, value); + } + return this; + } + public Builder addAtom( + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder builderForValue) { + if (atomBuilder_ == null) { + ensureAtomIsMutable(); + atom_.add(builderForValue.build()); + onChanged(); + } else { + atomBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addAtom( + int index, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder builderForValue) { + if (atomBuilder_ == null) { + ensureAtomIsMutable(); + atom_.add(index, builderForValue.build()); + onChanged(); + } else { + atomBuilder_.addMessage(index, builderForValue.build()); } - result.atom_.add(builderForValue.build()); return this; } public Builder addAllAtom( java.lang.Iterable values) { - if (result.atom_.isEmpty()) { - result.atom_ = new java.util.ArrayList(); + if (atomBuilder_ == null) { + ensureAtomIsMutable(); + super.addAll(values, atom_); + onChanged(); + } else { + atomBuilder_.addAllMessages(values); } - super.addAll(values, result.atom_); return this; } public Builder clearAtom() { - result.atom_ = java.util.Collections.emptyList(); + if (atomBuilder_ == null) { + atom_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + atomBuilder_.clear(); + } return this; } + public Builder removeAtom(int index) { + if (atomBuilder_ == null) { + ensureAtomIsMutable(); + atom_.remove(index); + onChanged(); + } else { + atomBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder getAtomBuilder( + int index) { + return getAtomFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder getAtomOrBuilder( + int index) { + if (atomBuilder_ == null) { + return atom_.get(index); } else { + return atomBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getAtomOrBuilderList() { + if (atomBuilder_ != null) { + return atomBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(atom_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder addAtomBuilder() { + return getAtomFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder addAtomBuilder( + int index) { + return getAtomFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.getDefaultInstance()); + } + public java.util.List + getAtomBuilderList() { + return getAtomFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder> + getAtomFieldBuilder() { + if (atomBuilder_ == null) { + atomBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder>( + atom_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + atom_ = null; + } + return atomBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndAddressNameIndexData) } static { defaultInstance = new OsmAndAddressNameIndexData(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndAddressNameIndexData) } + public interface AddressNameIndexDataAtomOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string name = 1; + boolean hasName(); + String getName(); + + // optional string nameEn = 2; + boolean hasNameEn(); + String getNameEn(); + + // required uint32 type = 3; + boolean hasType(); + int getType(); + + // repeated int32 shiftToIndex = 5; + java.util.List getShiftToIndexList(); + int getShiftToIndexCount(); + int getShiftToIndex(int index); + + // repeated int32 shiftToCityIndex = 6; + java.util.List getShiftToCityIndexList(); + int getShiftToCityIndexCount(); + int getShiftToCityIndex(int index); + } public static final class AddressNameIndexDataAtom extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements AddressNameIndexDataAtomOrBuilder { // Use AddressNameIndexDataAtom.newBuilder() to construct. - private AddressNameIndexDataAtom() { - initFields(); + private AddressNameIndexDataAtom(Builder builder) { + super(builder); } private AddressNameIndexDataAtom(boolean noInit) {} @@ -7131,75 +12615,146 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_fieldAccessorTable; } + private int bitField0_; // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string nameEn = 2; public static final int NAMEEN_FIELD_NUMBER = 2; - private boolean hasNameEn; - private java.lang.String nameEn_ = ""; - public boolean hasNameEn() { return hasNameEn; } - public java.lang.String getNameEn() { return nameEn_; } + private java.lang.Object nameEn_; + public boolean hasNameEn() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + nameEn_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameEnBytes() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + nameEn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // required uint32 type = 3; public static final int TYPE_FIELD_NUMBER = 3; - private boolean hasType; - private int type_ = 0; - public boolean hasType() { return hasType; } - public int getType() { return type_; } + private int type_; + public boolean hasType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getType() { + return type_; + } // repeated int32 shiftToIndex = 5; public static final int SHIFTTOINDEX_FIELD_NUMBER = 5; - private java.util.List shiftToIndex_ = - java.util.Collections.emptyList(); - public java.util.List getShiftToIndexList() { + private java.util.List shiftToIndex_; + public java.util.List + getShiftToIndexList() { return shiftToIndex_; } - public int getShiftToIndexCount() { return shiftToIndex_.size(); } + public int getShiftToIndexCount() { + return shiftToIndex_.size(); + } public int getShiftToIndex(int index) { return shiftToIndex_.get(index); } // repeated int32 shiftToCityIndex = 6; public static final int SHIFTTOCITYINDEX_FIELD_NUMBER = 6; - private java.util.List shiftToCityIndex_ = - java.util.Collections.emptyList(); - public java.util.List getShiftToCityIndexList() { + private java.util.List shiftToCityIndex_; + public java.util.List + getShiftToCityIndexList() { return shiftToCityIndex_; } - public int getShiftToCityIndexCount() { return shiftToCityIndex_.size(); } + public int getShiftToCityIndexCount() { + return shiftToCityIndex_.size(); + } public int getShiftToCityIndex(int index) { return shiftToCityIndex_.get(index); } private void initFields() { + name_ = ""; + nameEn_ = ""; + type_ = 0; + shiftToIndex_ = java.util.Collections.emptyList();; + shiftToCityIndex_ = java.util.Collections.emptyList();; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasType) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasType()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasName()) { - output.writeString(1, getName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); } - if (hasNameEn()) { - output.writeString(2, getNameEn()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNameEnBytes()); } - if (hasType()) { - output.writeUInt32(3, getType()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, type_); } - for (int element : getShiftToIndexList()) { - output.writeInt32(5, element); + for (int i = 0; i < shiftToIndex_.size(); i++) { + output.writeInt32(5, shiftToIndex_.get(i)); } - for (int element : getShiftToCityIndexList()) { - output.writeInt32(6, element); + for (int i = 0; i < shiftToCityIndex_.size(); i++) { + output.writeInt32(6, shiftToCityIndex_.get(i)); } getUnknownFields().writeTo(output); } @@ -7210,32 +12765,32 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasName()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getName()); + .computeBytesSize(1, getNameBytes()); } - if (hasNameEn()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNameEn()); + .computeBytesSize(2, getNameEnBytes()); } - if (hasType()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, getType()); + .computeUInt32Size(3, type_); } { int dataSize = 0; - for (int element : getShiftToIndexList()) { + for (int i = 0; i < shiftToIndex_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(element); + .computeInt32SizeNoTag(shiftToIndex_.get(i)); } size += dataSize; size += 1 * getShiftToIndexList().size(); } { int dataSize = 0; - for (int element : getShiftToCityIndexList()) { + for (int i = 0; i < shiftToCityIndex_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(element); + .computeInt32SizeNoTag(shiftToCityIndex_.get(i)); } size += dataSize; size += 1 * getShiftToCityIndexList().size(); @@ -7245,6 +12800,13 @@ public final class OsmandOdb { return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7319,34 +12881,59 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom result; - - // Construct using net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_descriptor; } - protected net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom(); + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + nameEn_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + shiftToIndex_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + shiftToCityIndex_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -7358,41 +12945,53 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom result = new net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.shiftToIndex_ != java.util.Collections.EMPTY_LIST) { - result.shiftToIndex_ = - java.util.Collections.unmodifiableList(result.shiftToIndex_); + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - if (result.shiftToCityIndex_ != java.util.Collections.EMPTY_LIST) { - result.shiftToCityIndex_ = - java.util.Collections.unmodifiableList(result.shiftToCityIndex_); + result.nameEn_ = nameEn_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom returnMe = result; - result = null; - return returnMe; + result.type_ = type_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + shiftToIndex_ = java.util.Collections.unmodifiableList(shiftToIndex_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.shiftToIndex_ = shiftToIndex_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + shiftToCityIndex_ = java.util.Collections.unmodifiableList(shiftToCityIndex_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.shiftToCityIndex_ = shiftToCityIndex_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -7416,21 +13015,37 @@ public final class OsmandOdb { setType(other.getType()); } if (!other.shiftToIndex_.isEmpty()) { - if (result.shiftToIndex_.isEmpty()) { - result.shiftToIndex_ = new java.util.ArrayList(); + if (shiftToIndex_.isEmpty()) { + shiftToIndex_ = other.shiftToIndex_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureShiftToIndexIsMutable(); + shiftToIndex_.addAll(other.shiftToIndex_); } - result.shiftToIndex_.addAll(other.shiftToIndex_); + onChanged(); } if (!other.shiftToCityIndex_.isEmpty()) { - if (result.shiftToCityIndex_.isEmpty()) { - result.shiftToCityIndex_ = new java.util.ArrayList(); + if (shiftToCityIndex_.isEmpty()) { + shiftToCityIndex_ = other.shiftToCityIndex_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureShiftToCityIndexIsMutable(); + shiftToCityIndex_.addAll(other.shiftToCityIndex_); } - result.shiftToCityIndex_.addAll(other.shiftToCityIndex_); + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasType()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7443,29 +13058,35 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setName(input.readString()); + bitField0_ |= 0x00000001; + name_ = input.readBytes(); break; } case 18: { - setNameEn(input.readString()); + bitField0_ |= 0x00000002; + nameEn_ = input.readBytes(); break; } case 24: { - setType(input.readUInt32()); + bitField0_ |= 0x00000004; + type_ = input.readUInt32(); break; } case 40: { - addShiftToIndex(input.readInt32()); + ensureShiftToIndexIsMutable(); + shiftToIndex_.add(input.readInt32()); break; } case 42: { @@ -7478,7 +13099,8 @@ public final class OsmandOdb { break; } case 48: { - addShiftToCityIndex(input.readInt32()); + ensureShiftToCityIndexIsMutable(); + shiftToCityIndex_.add(input.readInt32()); break; } case 50: { @@ -7494,132 +13116,188 @@ public final class OsmandOdb { } } + private int bitField0_; // optional string name = 1; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + } // optional string nameEn = 2; + private java.lang.Object nameEn_ = ""; public boolean hasNameEn() { - return result.hasNameEn(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - public java.lang.String getNameEn() { - return result.getNameEn(); + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + nameEn_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setNameEn(java.lang.String value) { + public Builder setNameEn(String value) { if (value == null) { throw new NullPointerException(); } - result.hasNameEn = true; - result.nameEn_ = value; + bitField0_ |= 0x00000002; + nameEn_ = value; + onChanged(); return this; } public Builder clearNameEn() { - result.hasNameEn = false; - result.nameEn_ = getDefaultInstance().getNameEn(); + bitField0_ = (bitField0_ & ~0x00000002); + nameEn_ = getDefaultInstance().getNameEn(); + onChanged(); return this; } + void setNameEn(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + nameEn_ = value; + onChanged(); + } // required uint32 type = 3; + private int type_ ; public boolean hasType() { - return result.hasType(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getType() { - return result.getType(); + return type_; } public Builder setType(int value) { - result.hasType = true; - result.type_ = value; + bitField0_ |= 0x00000004; + type_ = value; + onChanged(); return this; } public Builder clearType() { - result.hasType = false; - result.type_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + type_ = 0; + onChanged(); return this; } // repeated int32 shiftToIndex = 5; - public java.util.List getShiftToIndexList() { - return java.util.Collections.unmodifiableList(result.shiftToIndex_); + private java.util.List shiftToIndex_ = java.util.Collections.emptyList();; + private void ensureShiftToIndexIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + shiftToIndex_ = new java.util.ArrayList(shiftToIndex_); + bitField0_ |= 0x00000008; + } + } + public java.util.List + getShiftToIndexList() { + return java.util.Collections.unmodifiableList(shiftToIndex_); } public int getShiftToIndexCount() { - return result.getShiftToIndexCount(); + return shiftToIndex_.size(); } public int getShiftToIndex(int index) { - return result.getShiftToIndex(index); + return shiftToIndex_.get(index); } - public Builder setShiftToIndex(int index, int value) { - result.shiftToIndex_.set(index, value); + public Builder setShiftToIndex( + int index, int value) { + ensureShiftToIndexIsMutable(); + shiftToIndex_.set(index, value); + onChanged(); return this; } public Builder addShiftToIndex(int value) { - if (result.shiftToIndex_.isEmpty()) { - result.shiftToIndex_ = new java.util.ArrayList(); - } - result.shiftToIndex_.add(value); + ensureShiftToIndexIsMutable(); + shiftToIndex_.add(value); + onChanged(); return this; } public Builder addAllShiftToIndex( java.lang.Iterable values) { - if (result.shiftToIndex_.isEmpty()) { - result.shiftToIndex_ = new java.util.ArrayList(); - } - super.addAll(values, result.shiftToIndex_); + ensureShiftToIndexIsMutable(); + super.addAll(values, shiftToIndex_); + onChanged(); return this; } public Builder clearShiftToIndex() { - result.shiftToIndex_ = java.util.Collections.emptyList(); + shiftToIndex_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); return this; } // repeated int32 shiftToCityIndex = 6; - public java.util.List getShiftToCityIndexList() { - return java.util.Collections.unmodifiableList(result.shiftToCityIndex_); + private java.util.List shiftToCityIndex_ = java.util.Collections.emptyList();; + private void ensureShiftToCityIndexIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + shiftToCityIndex_ = new java.util.ArrayList(shiftToCityIndex_); + bitField0_ |= 0x00000010; + } + } + public java.util.List + getShiftToCityIndexList() { + return java.util.Collections.unmodifiableList(shiftToCityIndex_); } public int getShiftToCityIndexCount() { - return result.getShiftToCityIndexCount(); + return shiftToCityIndex_.size(); } public int getShiftToCityIndex(int index) { - return result.getShiftToCityIndex(index); + return shiftToCityIndex_.get(index); } - public Builder setShiftToCityIndex(int index, int value) { - result.shiftToCityIndex_.set(index, value); + public Builder setShiftToCityIndex( + int index, int value) { + ensureShiftToCityIndexIsMutable(); + shiftToCityIndex_.set(index, value); + onChanged(); return this; } public Builder addShiftToCityIndex(int value) { - if (result.shiftToCityIndex_.isEmpty()) { - result.shiftToCityIndex_ = new java.util.ArrayList(); - } - result.shiftToCityIndex_.add(value); + ensureShiftToCityIndexIsMutable(); + shiftToCityIndex_.add(value); + onChanged(); return this; } public Builder addAllShiftToCityIndex( java.lang.Iterable values) { - if (result.shiftToCityIndex_.isEmpty()) { - result.shiftToCityIndex_ = new java.util.ArrayList(); - } - super.addAll(values, result.shiftToCityIndex_); + ensureShiftToCityIndexIsMutable(); + super.addAll(values, shiftToCityIndex_); + onChanged(); return this; } public Builder clearShiftToCityIndex() { - result.shiftToCityIndex_ = java.util.Collections.emptyList(); + shiftToCityIndex_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); return this; } @@ -7628,18 +13306,59 @@ public final class OsmandOdb { static { defaultInstance = new AddressNameIndexDataAtom(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.AddressNameIndexDataAtom) } + public interface CityIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint32 city_type = 1; + boolean hasCityType(); + int getCityType(); + + // required string name = 2; + boolean hasName(); + String getName(); + + // optional string name_en = 3; + boolean hasNameEn(); + String getNameEn(); + + // repeated uint32 attributeTagIds = 11; + java.util.List getAttributeTagIdsList(); + int getAttributeTagIdsCount(); + int getAttributeTagIds(int index); + + // repeated string attributeValues = 12; + java.util.List getAttributeValuesList(); + int getAttributeValuesCount(); + String getAttributeValues(int index); + + // optional uint64 id = 4; + boolean hasId(); + long getId(); + + // required uint32 x = 5; + boolean hasX(); + int getX(); + + // required uint32 y = 6; + boolean hasY(); + int getY(); + + // optional fixed32 shiftToCityBlockIndex = 10; + boolean hasShiftToCityBlockIndex(); + int getShiftToCityBlockIndex(); + } public static final class CityIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements CityIndexOrBuilder { // Use CityIndex.newBuilder() to construct. - private CityIndex() { - initFields(); + private CityIndex(Builder builder) { + super(builder); } private CityIndex(boolean noInit) {} @@ -7662,87 +13381,210 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityIndex_fieldAccessorTable; } + private int bitField0_; // optional uint32 city_type = 1; public static final int CITY_TYPE_FIELD_NUMBER = 1; - private boolean hasCityType; - private int cityType_ = 0; - public boolean hasCityType() { return hasCityType; } - public int getCityType() { return cityType_; } + private int cityType_; + public boolean hasCityType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getCityType() { + return cityType_; + } // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string name_en = 3; public static final int NAME_EN_FIELD_NUMBER = 3; - private boolean hasNameEn; - private java.lang.String nameEn_ = ""; - public boolean hasNameEn() { return hasNameEn; } - public java.lang.String getNameEn() { return nameEn_; } + private java.lang.Object nameEn_; + public boolean hasNameEn() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + nameEn_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameEnBytes() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + nameEn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // repeated uint32 attributeTagIds = 11; + public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 11; + private java.util.List attributeTagIds_; + public java.util.List + getAttributeTagIdsList() { + return attributeTagIds_; + } + public int getAttributeTagIdsCount() { + return attributeTagIds_.size(); + } + public int getAttributeTagIds(int index) { + return attributeTagIds_.get(index); + } + + // repeated string attributeValues = 12; + public static final int ATTRIBUTEVALUES_FIELD_NUMBER = 12; + private com.google.protobuf.LazyStringList attributeValues_; + public java.util.List + getAttributeValuesList() { + return attributeValues_; + } + public int getAttributeValuesCount() { + return attributeValues_.size(); + } + public String getAttributeValues(int index) { + return attributeValues_.get(index); + } // optional uint64 id = 4; public static final int ID_FIELD_NUMBER = 4; - private boolean hasId; - private long id_ = 0L; - public boolean hasId() { return hasId; } - public long getId() { return id_; } + private long id_; + public boolean hasId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public long getId() { + return id_; + } // required uint32 x = 5; public static final int X_FIELD_NUMBER = 5; - private boolean hasX; - private int x_ = 0; - public boolean hasX() { return hasX; } - public int getX() { return x_; } + private int x_; + public boolean hasX() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getX() { + return x_; + } // required uint32 y = 6; public static final int Y_FIELD_NUMBER = 6; - private boolean hasY; - private int y_ = 0; - public boolean hasY() { return hasY; } - public int getY() { return y_; } + private int y_; + public boolean hasY() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getY() { + return y_; + } // optional fixed32 shiftToCityBlockIndex = 10; public static final int SHIFTTOCITYBLOCKINDEX_FIELD_NUMBER = 10; - private boolean hasShiftToCityBlockIndex; - private int shiftToCityBlockIndex_ = 0; - public boolean hasShiftToCityBlockIndex() { return hasShiftToCityBlockIndex; } - public int getShiftToCityBlockIndex() { return shiftToCityBlockIndex_; } + private int shiftToCityBlockIndex_; + public boolean hasShiftToCityBlockIndex() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public int getShiftToCityBlockIndex() { + return shiftToCityBlockIndex_; + } private void initFields() { + cityType_ = 0; + name_ = ""; + nameEn_ = ""; + attributeTagIds_ = java.util.Collections.emptyList();; + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + id_ = 0L; + x_ = 0; + y_ = 0; + shiftToCityBlockIndex_ = 0; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasName) return false; - if (!hasX) return false; - if (!hasY) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasX()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasY()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasCityType()) { - output.writeUInt32(1, getCityType()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, cityType_); } - if (hasName()) { - output.writeString(2, getName()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNameBytes()); } - if (hasNameEn()) { - output.writeString(3, getNameEn()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getNameEnBytes()); } - if (hasId()) { - output.writeUInt64(4, getId()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt64(4, id_); } - if (hasX()) { - output.writeUInt32(5, getX()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(5, x_); } - if (hasY()) { - output.writeUInt32(6, getY()); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeUInt32(6, y_); } - if (hasShiftToCityBlockIndex()) { - output.writeFixed32(10, getShiftToCityBlockIndex()); + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeFixed32(10, shiftToCityBlockIndex_); + } + for (int i = 0; i < attributeTagIds_.size(); i++) { + output.writeUInt32(11, attributeTagIds_.get(i)); + } + for (int i = 0; i < attributeValues_.size(); i++) { + output.writeBytes(12, attributeValues_.getByteString(i)); } getUnknownFields().writeTo(output); } @@ -7753,39 +13595,64 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasCityType()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, getCityType()); + .computeUInt32Size(1, cityType_); } - if (hasName()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getName()); + .computeBytesSize(2, getNameBytes()); } - if (hasNameEn()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getNameEn()); + .computeBytesSize(3, getNameEnBytes()); } - if (hasId()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, getId()); + .computeUInt64Size(4, id_); } - if (hasX()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, getX()); + .computeUInt32Size(5, x_); } - if (hasY()) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, getY()); + .computeUInt32Size(6, y_); } - if (hasShiftToCityBlockIndex()) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(10, getShiftToCityBlockIndex()); + .computeFixed32Size(10, shiftToCityBlockIndex_); + } + { + int dataSize = 0; + for (int i = 0; i < attributeTagIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(attributeTagIds_.get(i)); + } + size += dataSize; + size += 1 * getAttributeTagIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < attributeValues_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(attributeValues_.getByteString(i)); + } + size += dataSize; + size += 1 * getAttributeValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.CityIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7860,34 +13727,67 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.CityIndex result; - - // Construct using net.osmand.binary.OsmandOdb.CityIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.CityIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.CityIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.CityIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.CityIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.CityIndex(); + super.clear(); + cityType_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + nameEn_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + attributeTagIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000020); + x_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + y_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + shiftToCityBlockIndex_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -7899,33 +13799,70 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.CityIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.CityIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.CityIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.CityIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.CityIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.CityIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.CityIndex result = new net.osmand.binary.OsmandOdb.CityIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.CityIndex returnMe = result; - result = null; - return returnMe; + result.cityType_ = cityType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.nameEn_ = nameEn_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.attributeTagIds_ = attributeTagIds_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList( + attributeValues_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.attributeValues_ = attributeValues_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000008; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000010; + } + result.x_ = x_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000020; + } + result.y_ = y_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000040; + } + result.shiftToCityBlockIndex_ = shiftToCityBlockIndex_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -7948,6 +13885,26 @@ public final class OsmandOdb { if (other.hasNameEn()) { setNameEn(other.getNameEn()); } + if (!other.attributeTagIds_.isEmpty()) { + if (attributeTagIds_.isEmpty()) { + attributeTagIds_ = other.attributeTagIds_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.addAll(other.attributeTagIds_); + } + onChanged(); + } + if (!other.attributeValues_.isEmpty()) { + if (attributeValues_.isEmpty()) { + attributeValues_ = other.attributeValues_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAttributeValuesIsMutable(); + attributeValues_.addAll(other.attributeValues_); + } + onChanged(); + } if (other.hasId()) { setId(other.getId()); } @@ -7964,6 +13921,22 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasX()) { + + return false; + } + if (!hasY()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7976,177 +13949,352 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setCityType(input.readUInt32()); + bitField0_ |= 0x00000001; + cityType_ = input.readUInt32(); break; } case 18: { - setName(input.readString()); + bitField0_ |= 0x00000002; + name_ = input.readBytes(); break; } case 26: { - setNameEn(input.readString()); + bitField0_ |= 0x00000004; + nameEn_ = input.readBytes(); break; } case 32: { - setId(input.readUInt64()); + bitField0_ |= 0x00000020; + id_ = input.readUInt64(); break; } case 40: { - setX(input.readUInt32()); + bitField0_ |= 0x00000040; + x_ = input.readUInt32(); break; } case 48: { - setY(input.readUInt32()); + bitField0_ |= 0x00000080; + y_ = input.readUInt32(); break; } case 85: { - setShiftToCityBlockIndex(input.readFixed32()); + bitField0_ |= 0x00000100; + shiftToCityBlockIndex_ = input.readFixed32(); + break; + } + case 88: { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.add(input.readUInt32()); + break; + } + case 90: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addAttributeTagIds(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 98: { + ensureAttributeValuesIsMutable(); + attributeValues_.add(input.readBytes()); break; } } } } + private int bitField0_; // optional uint32 city_type = 1; + private int cityType_ ; public boolean hasCityType() { - return result.hasCityType(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getCityType() { - return result.getCityType(); + return cityType_; } public Builder setCityType(int value) { - result.hasCityType = true; - result.cityType_ = value; + bitField0_ |= 0x00000001; + cityType_ = value; + onChanged(); return this; } public Builder clearCityType() { - result.hasCityType = false; - result.cityType_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + cityType_ = 0; + onChanged(); return this; } // required string name = 2; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + } // optional string name_en = 3; + private java.lang.Object nameEn_ = ""; public boolean hasNameEn() { - return result.hasNameEn(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - public java.lang.String getNameEn() { - return result.getNameEn(); + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + nameEn_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setNameEn(java.lang.String value) { + public Builder setNameEn(String value) { if (value == null) { throw new NullPointerException(); } - result.hasNameEn = true; - result.nameEn_ = value; + bitField0_ |= 0x00000004; + nameEn_ = value; + onChanged(); return this; } public Builder clearNameEn() { - result.hasNameEn = false; - result.nameEn_ = getDefaultInstance().getNameEn(); + bitField0_ = (bitField0_ & ~0x00000004); + nameEn_ = getDefaultInstance().getNameEn(); + onChanged(); + return this; + } + void setNameEn(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000004; + nameEn_ = value; + onChanged(); + } + + // repeated uint32 attributeTagIds = 11; + private java.util.List attributeTagIds_ = java.util.Collections.emptyList();; + private void ensureAttributeTagIdsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + attributeTagIds_ = new java.util.ArrayList(attributeTagIds_); + bitField0_ |= 0x00000008; + } + } + public java.util.List + getAttributeTagIdsList() { + return java.util.Collections.unmodifiableList(attributeTagIds_); + } + public int getAttributeTagIdsCount() { + return attributeTagIds_.size(); + } + public int getAttributeTagIds(int index) { + return attributeTagIds_.get(index); + } + public Builder setAttributeTagIds( + int index, int value) { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.set(index, value); + onChanged(); + return this; + } + public Builder addAttributeTagIds(int value) { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.add(value); + onChanged(); + return this; + } + public Builder addAllAttributeTagIds( + java.lang.Iterable values) { + ensureAttributeTagIdsIsMutable(); + super.addAll(values, attributeTagIds_); + onChanged(); + return this; + } + public Builder clearAttributeTagIds() { + attributeTagIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); return this; } + // repeated string attributeValues = 12; + private com.google.protobuf.LazyStringList attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAttributeValuesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + attributeValues_ = new com.google.protobuf.LazyStringArrayList(attributeValues_); + bitField0_ |= 0x00000010; + } + } + public java.util.List + getAttributeValuesList() { + return java.util.Collections.unmodifiableList(attributeValues_); + } + public int getAttributeValuesCount() { + return attributeValues_.size(); + } + public String getAttributeValues(int index) { + return attributeValues_.get(index); + } + public Builder setAttributeValues( + int index, String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeValuesIsMutable(); + attributeValues_.set(index, value); + onChanged(); + return this; + } + public Builder addAttributeValues(String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeValuesIsMutable(); + attributeValues_.add(value); + onChanged(); + return this; + } + public Builder addAllAttributeValues( + java.lang.Iterable values) { + ensureAttributeValuesIsMutable(); + super.addAll(values, attributeValues_); + onChanged(); + return this; + } + public Builder clearAttributeValues() { + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + void addAttributeValues(com.google.protobuf.ByteString value) { + ensureAttributeValuesIsMutable(); + attributeValues_.add(value); + onChanged(); + } + // optional uint64 id = 4; + private long id_ ; public boolean hasId() { - return result.hasId(); + return ((bitField0_ & 0x00000020) == 0x00000020); } public long getId() { - return result.getId(); + return id_; } public Builder setId(long value) { - result.hasId = true; - result.id_ = value; + bitField0_ |= 0x00000020; + id_ = value; + onChanged(); return this; } public Builder clearId() { - result.hasId = false; - result.id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000020); + id_ = 0L; + onChanged(); return this; } // required uint32 x = 5; + private int x_ ; public boolean hasX() { - return result.hasX(); + return ((bitField0_ & 0x00000040) == 0x00000040); } public int getX() { - return result.getX(); + return x_; } public Builder setX(int value) { - result.hasX = true; - result.x_ = value; + bitField0_ |= 0x00000040; + x_ = value; + onChanged(); return this; } public Builder clearX() { - result.hasX = false; - result.x_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + x_ = 0; + onChanged(); return this; } // required uint32 y = 6; + private int y_ ; public boolean hasY() { - return result.hasY(); + return ((bitField0_ & 0x00000080) == 0x00000080); } public int getY() { - return result.getY(); + return y_; } public Builder setY(int value) { - result.hasY = true; - result.y_ = value; + bitField0_ |= 0x00000080; + y_ = value; + onChanged(); return this; } public Builder clearY() { - result.hasY = false; - result.y_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + y_ = 0; + onChanged(); return this; } // optional fixed32 shiftToCityBlockIndex = 10; + private int shiftToCityBlockIndex_ ; public boolean hasShiftToCityBlockIndex() { - return result.hasShiftToCityBlockIndex(); + return ((bitField0_ & 0x00000100) == 0x00000100); } public int getShiftToCityBlockIndex() { - return result.getShiftToCityBlockIndex(); + return shiftToCityBlockIndex_; } public Builder setShiftToCityBlockIndex(int value) { - result.hasShiftToCityBlockIndex = true; - result.shiftToCityBlockIndex_ = value; + bitField0_ |= 0x00000100; + shiftToCityBlockIndex_ = value; + onChanged(); return this; } public Builder clearShiftToCityBlockIndex() { - result.hasShiftToCityBlockIndex = false; - result.shiftToCityBlockIndex_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); + shiftToCityBlockIndex_ = 0; + onChanged(); return this; } @@ -8155,18 +14303,45 @@ public final class OsmandOdb { static { defaultInstance = new CityIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.CityIndex) } + public interface CityBlockIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional fixed32 shiftToCityIndex = 4; + boolean hasShiftToCityIndex(); + int getShiftToCityIndex(); + + // repeated .OsmAnd.OBF.BuildingIndex buildings = 10; + java.util.List + getBuildingsList(); + net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index); + int getBuildingsCount(); + java.util.List + getBuildingsOrBuilderList(); + net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( + int index); + + // repeated .OsmAnd.OBF.StreetIndex streets = 12; + java.util.List + getStreetsList(); + net.osmand.binary.OsmandOdb.StreetIndex getStreets(int index); + int getStreetsCount(); + java.util.List + getStreetsOrBuilderList(); + net.osmand.binary.OsmandOdb.StreetIndexOrBuilder getStreetsOrBuilder( + int index); + } public static final class CityBlockIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements CityBlockIndexOrBuilder { // Use CityBlockIndex.newBuilder() to construct. - private CityBlockIndex() { - initFields(); + private CityBlockIndex(Builder builder) { + super(builder); } private CityBlockIndex(boolean noInit) {} @@ -8189,60 +14364,96 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityBlockIndex_fieldAccessorTable; } + private int bitField0_; // optional fixed32 shiftToCityIndex = 4; public static final int SHIFTTOCITYINDEX_FIELD_NUMBER = 4; - private boolean hasShiftToCityIndex; - private int shiftToCityIndex_ = 0; - public boolean hasShiftToCityIndex() { return hasShiftToCityIndex; } - public int getShiftToCityIndex() { return shiftToCityIndex_; } + private int shiftToCityIndex_; + public boolean hasShiftToCityIndex() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getShiftToCityIndex() { + return shiftToCityIndex_; + } // repeated .OsmAnd.OBF.BuildingIndex buildings = 10; public static final int BUILDINGS_FIELD_NUMBER = 10; - private java.util.List buildings_ = - java.util.Collections.emptyList(); + private java.util.List buildings_; public java.util.List getBuildingsList() { return buildings_; } - public int getBuildingsCount() { return buildings_.size(); } + public java.util.List + getBuildingsOrBuilderList() { + return buildings_; + } + public int getBuildingsCount() { + return buildings_.size(); + } public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { return buildings_.get(index); } + public net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( + int index) { + return buildings_.get(index); + } // repeated .OsmAnd.OBF.StreetIndex streets = 12; public static final int STREETS_FIELD_NUMBER = 12; - private java.util.List streets_ = - java.util.Collections.emptyList(); + private java.util.List streets_; public java.util.List getStreetsList() { return streets_; } - public int getStreetsCount() { return streets_.size(); } + public java.util.List + getStreetsOrBuilderList() { + return streets_; + } + public int getStreetsCount() { + return streets_.size(); + } public net.osmand.binary.OsmandOdb.StreetIndex getStreets(int index) { return streets_.get(index); } + public net.osmand.binary.OsmandOdb.StreetIndexOrBuilder getStreetsOrBuilder( + int index) { + return streets_.get(index); + } private void initFields() { + shiftToCityIndex_ = 0; + buildings_ = java.util.Collections.emptyList(); + streets_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - for (net.osmand.binary.OsmandOdb.BuildingIndex element : getBuildingsList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getBuildingsCount(); i++) { + if (!getBuildings(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - for (net.osmand.binary.OsmandOdb.StreetIndex element : getStreetsList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getStreetsCount(); i++) { + if (!getStreets(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasShiftToCityIndex()) { - output.writeFixed32(4, getShiftToCityIndex()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeFixed32(4, shiftToCityIndex_); } - for (net.osmand.binary.OsmandOdb.BuildingIndex element : getBuildingsList()) { - output.writeMessage(10, element); + for (int i = 0; i < buildings_.size(); i++) { + output.writeMessage(10, buildings_.get(i)); } - for (net.osmand.binary.OsmandOdb.StreetIndex element : getStreetsList()) { - output.writeMessage(12, element); + for (int i = 0; i < streets_.size(); i++) { + output.writeMessage(12, streets_.get(i)); } getUnknownFields().writeTo(output); } @@ -8253,23 +14464,30 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasShiftToCityIndex()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(4, getShiftToCityIndex()); + .computeFixed32Size(4, shiftToCityIndex_); } - for (net.osmand.binary.OsmandOdb.BuildingIndex element : getBuildingsList()) { + for (int i = 0; i < buildings_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, element); + .computeMessageSize(10, buildings_.get(i)); } - for (net.osmand.binary.OsmandOdb.StreetIndex element : getStreetsList()) { + for (int i = 0; i < streets_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, element); + .computeMessageSize(12, streets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.CityBlockIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8344,34 +14562,65 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.CityBlockIndex result; - - // Construct using net.osmand.binary.OsmandOdb.CityBlockIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.CityBlockIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityBlockIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.CityBlockIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityBlockIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.CityBlockIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getBuildingsFieldBuilder(); + getStreetsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + shiftToCityIndex_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (buildingsBuilder_ == null) { + buildings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + buildingsBuilder_.clear(); + } + if (streetsBuilder_ == null) { + streets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + streetsBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.CityBlockIndex(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -8383,41 +14632,53 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.CityBlockIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.CityBlockIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.CityBlockIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.CityBlockIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.CityBlockIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.CityBlockIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.CityBlockIndex result = new net.osmand.binary.OsmandOdb.CityBlockIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.buildings_ != java.util.Collections.EMPTY_LIST) { - result.buildings_ = - java.util.Collections.unmodifiableList(result.buildings_); + result.shiftToCityIndex_ = shiftToCityIndex_; + if (buildingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + buildings_ = java.util.Collections.unmodifiableList(buildings_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.buildings_ = buildings_; + } else { + result.buildings_ = buildingsBuilder_.build(); } - if (result.streets_ != java.util.Collections.EMPTY_LIST) { - result.streets_ = - java.util.Collections.unmodifiableList(result.streets_); + if (streetsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + streets_ = java.util.Collections.unmodifiableList(streets_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.streets_ = streets_; + } else { + result.streets_ = streetsBuilder_.build(); } - net.osmand.binary.OsmandOdb.CityBlockIndex returnMe = result; - result = null; - return returnMe; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -8434,22 +14695,78 @@ public final class OsmandOdb { if (other.hasShiftToCityIndex()) { setShiftToCityIndex(other.getShiftToCityIndex()); } - if (!other.buildings_.isEmpty()) { - if (result.buildings_.isEmpty()) { - result.buildings_ = new java.util.ArrayList(); + if (buildingsBuilder_ == null) { + if (!other.buildings_.isEmpty()) { + if (buildings_.isEmpty()) { + buildings_ = other.buildings_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBuildingsIsMutable(); + buildings_.addAll(other.buildings_); + } + onChanged(); + } + } else { + if (!other.buildings_.isEmpty()) { + if (buildingsBuilder_.isEmpty()) { + buildingsBuilder_.dispose(); + buildingsBuilder_ = null; + buildings_ = other.buildings_; + bitField0_ = (bitField0_ & ~0x00000002); + buildingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBuildingsFieldBuilder() : null; + } else { + buildingsBuilder_.addAllMessages(other.buildings_); + } } - result.buildings_.addAll(other.buildings_); } - if (!other.streets_.isEmpty()) { - if (result.streets_.isEmpty()) { - result.streets_ = new java.util.ArrayList(); + if (streetsBuilder_ == null) { + if (!other.streets_.isEmpty()) { + if (streets_.isEmpty()) { + streets_ = other.streets_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureStreetsIsMutable(); + streets_.addAll(other.streets_); + } + onChanged(); + } + } else { + if (!other.streets_.isEmpty()) { + if (streetsBuilder_.isEmpty()) { + streetsBuilder_.dispose(); + streetsBuilder_ = null; + streets_ = other.streets_; + bitField0_ = (bitField0_ & ~0x00000004); + streetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getStreetsFieldBuilder() : null; + } else { + streetsBuilder_.addAllMessages(other.streets_); + } } - result.streets_.addAll(other.streets_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + for (int i = 0; i < getBuildingsCount(); i++) { + if (!getBuildings(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getStreetsCount(); i++) { + if (!getStreets(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8462,17 +14779,20 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 37: { - setShiftToCityIndex(input.readFixed32()); + bitField0_ |= 0x00000001; + shiftToCityIndex_ = input.readFixed32(); break; } case 82: { @@ -8491,144 +14811,471 @@ public final class OsmandOdb { } } + private int bitField0_; // optional fixed32 shiftToCityIndex = 4; + private int shiftToCityIndex_ ; public boolean hasShiftToCityIndex() { - return result.hasShiftToCityIndex(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getShiftToCityIndex() { - return result.getShiftToCityIndex(); + return shiftToCityIndex_; } public Builder setShiftToCityIndex(int value) { - result.hasShiftToCityIndex = true; - result.shiftToCityIndex_ = value; + bitField0_ |= 0x00000001; + shiftToCityIndex_ = value; + onChanged(); return this; } public Builder clearShiftToCityIndex() { - result.hasShiftToCityIndex = false; - result.shiftToCityIndex_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + shiftToCityIndex_ = 0; + onChanged(); return this; } // repeated .OsmAnd.OBF.BuildingIndex buildings = 10; + private java.util.List buildings_ = + java.util.Collections.emptyList(); + private void ensureBuildingsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + buildings_ = new java.util.ArrayList(buildings_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> buildingsBuilder_; + public java.util.List getBuildingsList() { - return java.util.Collections.unmodifiableList(result.buildings_); + if (buildingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(buildings_); + } else { + return buildingsBuilder_.getMessageList(); + } } public int getBuildingsCount() { - return result.getBuildingsCount(); + if (buildingsBuilder_ == null) { + return buildings_.size(); + } else { + return buildingsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { - return result.getBuildings(index); - } - public Builder setBuildings(int index, net.osmand.binary.OsmandOdb.BuildingIndex value) { - if (value == null) { - throw new NullPointerException(); + if (buildingsBuilder_ == null) { + return buildings_.get(index); + } else { + return buildingsBuilder_.getMessage(index); + } + } + public Builder setBuildings( + int index, net.osmand.binary.OsmandOdb.BuildingIndex value) { + if (buildingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuildingsIsMutable(); + buildings_.set(index, value); + onChanged(); + } else { + buildingsBuilder_.setMessage(index, value); } - result.buildings_.set(index, value); return this; } - public Builder setBuildings(int index, net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { - result.buildings_.set(index, builderForValue.build()); + public Builder setBuildings( + int index, net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { + if (buildingsBuilder_ == null) { + ensureBuildingsIsMutable(); + buildings_.set(index, builderForValue.build()); + onChanged(); + } else { + buildingsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addBuildings(net.osmand.binary.OsmandOdb.BuildingIndex value) { - if (value == null) { - throw new NullPointerException(); + if (buildingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuildingsIsMutable(); + buildings_.add(value); + onChanged(); + } else { + buildingsBuilder_.addMessage(value); } - if (result.buildings_.isEmpty()) { - result.buildings_ = new java.util.ArrayList(); - } - result.buildings_.add(value); return this; } - public Builder addBuildings(net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { - if (result.buildings_.isEmpty()) { - result.buildings_ = new java.util.ArrayList(); + public Builder addBuildings( + int index, net.osmand.binary.OsmandOdb.BuildingIndex value) { + if (buildingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuildingsIsMutable(); + buildings_.add(index, value); + onChanged(); + } else { + buildingsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addBuildings( + net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { + if (buildingsBuilder_ == null) { + ensureBuildingsIsMutable(); + buildings_.add(builderForValue.build()); + onChanged(); + } else { + buildingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addBuildings( + int index, net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { + if (buildingsBuilder_ == null) { + ensureBuildingsIsMutable(); + buildings_.add(index, builderForValue.build()); + onChanged(); + } else { + buildingsBuilder_.addMessage(index, builderForValue.build()); } - result.buildings_.add(builderForValue.build()); return this; } public Builder addAllBuildings( java.lang.Iterable values) { - if (result.buildings_.isEmpty()) { - result.buildings_ = new java.util.ArrayList(); + if (buildingsBuilder_ == null) { + ensureBuildingsIsMutable(); + super.addAll(values, buildings_); + onChanged(); + } else { + buildingsBuilder_.addAllMessages(values); } - super.addAll(values, result.buildings_); return this; } public Builder clearBuildings() { - result.buildings_ = java.util.Collections.emptyList(); + if (buildingsBuilder_ == null) { + buildings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + buildingsBuilder_.clear(); + } return this; } + public Builder removeBuildings(int index) { + if (buildingsBuilder_ == null) { + ensureBuildingsIsMutable(); + buildings_.remove(index); + onChanged(); + } else { + buildingsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.BuildingIndex.Builder getBuildingsBuilder( + int index) { + return getBuildingsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( + int index) { + if (buildingsBuilder_ == null) { + return buildings_.get(index); } else { + return buildingsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getBuildingsOrBuilderList() { + if (buildingsBuilder_ != null) { + return buildingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(buildings_); + } + } + public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder() { + return getBuildingsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder( + int index) { + return getBuildingsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); + } + public java.util.List + getBuildingsBuilderList() { + return getBuildingsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> + getBuildingsFieldBuilder() { + if (buildingsBuilder_ == null) { + buildingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder>( + buildings_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + buildings_ = null; + } + return buildingsBuilder_; + } // repeated .OsmAnd.OBF.StreetIndex streets = 12; + private java.util.List streets_ = + java.util.Collections.emptyList(); + private void ensureStreetsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + streets_ = new java.util.ArrayList(streets_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.StreetIndex, net.osmand.binary.OsmandOdb.StreetIndex.Builder, net.osmand.binary.OsmandOdb.StreetIndexOrBuilder> streetsBuilder_; + public java.util.List getStreetsList() { - return java.util.Collections.unmodifiableList(result.streets_); + if (streetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(streets_); + } else { + return streetsBuilder_.getMessageList(); + } } public int getStreetsCount() { - return result.getStreetsCount(); + if (streetsBuilder_ == null) { + return streets_.size(); + } else { + return streetsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.StreetIndex getStreets(int index) { - return result.getStreets(index); - } - public Builder setStreets(int index, net.osmand.binary.OsmandOdb.StreetIndex value) { - if (value == null) { - throw new NullPointerException(); + if (streetsBuilder_ == null) { + return streets_.get(index); + } else { + return streetsBuilder_.getMessage(index); + } + } + public Builder setStreets( + int index, net.osmand.binary.OsmandOdb.StreetIndex value) { + if (streetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStreetsIsMutable(); + streets_.set(index, value); + onChanged(); + } else { + streetsBuilder_.setMessage(index, value); } - result.streets_.set(index, value); return this; } - public Builder setStreets(int index, net.osmand.binary.OsmandOdb.StreetIndex.Builder builderForValue) { - result.streets_.set(index, builderForValue.build()); + public Builder setStreets( + int index, net.osmand.binary.OsmandOdb.StreetIndex.Builder builderForValue) { + if (streetsBuilder_ == null) { + ensureStreetsIsMutable(); + streets_.set(index, builderForValue.build()); + onChanged(); + } else { + streetsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addStreets(net.osmand.binary.OsmandOdb.StreetIndex value) { - if (value == null) { - throw new NullPointerException(); + if (streetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStreetsIsMutable(); + streets_.add(value); + onChanged(); + } else { + streetsBuilder_.addMessage(value); } - if (result.streets_.isEmpty()) { - result.streets_ = new java.util.ArrayList(); - } - result.streets_.add(value); return this; } - public Builder addStreets(net.osmand.binary.OsmandOdb.StreetIndex.Builder builderForValue) { - if (result.streets_.isEmpty()) { - result.streets_ = new java.util.ArrayList(); + public Builder addStreets( + int index, net.osmand.binary.OsmandOdb.StreetIndex value) { + if (streetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStreetsIsMutable(); + streets_.add(index, value); + onChanged(); + } else { + streetsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addStreets( + net.osmand.binary.OsmandOdb.StreetIndex.Builder builderForValue) { + if (streetsBuilder_ == null) { + ensureStreetsIsMutable(); + streets_.add(builderForValue.build()); + onChanged(); + } else { + streetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addStreets( + int index, net.osmand.binary.OsmandOdb.StreetIndex.Builder builderForValue) { + if (streetsBuilder_ == null) { + ensureStreetsIsMutable(); + streets_.add(index, builderForValue.build()); + onChanged(); + } else { + streetsBuilder_.addMessage(index, builderForValue.build()); } - result.streets_.add(builderForValue.build()); return this; } public Builder addAllStreets( java.lang.Iterable values) { - if (result.streets_.isEmpty()) { - result.streets_ = new java.util.ArrayList(); + if (streetsBuilder_ == null) { + ensureStreetsIsMutable(); + super.addAll(values, streets_); + onChanged(); + } else { + streetsBuilder_.addAllMessages(values); } - super.addAll(values, result.streets_); return this; } public Builder clearStreets() { - result.streets_ = java.util.Collections.emptyList(); + if (streetsBuilder_ == null) { + streets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + streetsBuilder_.clear(); + } return this; } + public Builder removeStreets(int index) { + if (streetsBuilder_ == null) { + ensureStreetsIsMutable(); + streets_.remove(index); + onChanged(); + } else { + streetsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.StreetIndex.Builder getStreetsBuilder( + int index) { + return getStreetsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.StreetIndexOrBuilder getStreetsOrBuilder( + int index) { + if (streetsBuilder_ == null) { + return streets_.get(index); } else { + return streetsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getStreetsOrBuilderList() { + if (streetsBuilder_ != null) { + return streetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(streets_); + } + } + public net.osmand.binary.OsmandOdb.StreetIndex.Builder addStreetsBuilder() { + return getStreetsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.StreetIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.StreetIndex.Builder addStreetsBuilder( + int index) { + return getStreetsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.StreetIndex.getDefaultInstance()); + } + public java.util.List + getStreetsBuilderList() { + return getStreetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.StreetIndex, net.osmand.binary.OsmandOdb.StreetIndex.Builder, net.osmand.binary.OsmandOdb.StreetIndexOrBuilder> + getStreetsFieldBuilder() { + if (streetsBuilder_ == null) { + streetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.StreetIndex, net.osmand.binary.OsmandOdb.StreetIndex.Builder, net.osmand.binary.OsmandOdb.StreetIndexOrBuilder>( + streets_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + streets_ = null; + } + return streetsBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.CityBlockIndex) } static { defaultInstance = new CityBlockIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.CityBlockIndex) } + public interface StreetIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string name = 1; + boolean hasName(); + String getName(); + + // optional string name_en = 2; + boolean hasNameEn(); + String getNameEn(); + + // repeated uint32 attributeTagIds = 13; + java.util.List getAttributeTagIdsList(); + int getAttributeTagIdsCount(); + int getAttributeTagIds(int index); + + // repeated string attributeValues = 14; + java.util.List getAttributeValuesList(); + int getAttributeValuesCount(); + String getAttributeValues(int index); + + // required sint32 x = 3; + boolean hasX(); + int getX(); + + // required sint32 y = 4; + boolean hasY(); + int getY(); + + // optional uint64 id = 6; + boolean hasId(); + long getId(); + + // repeated .OsmAnd.OBF.BuildingIndex buildings = 12; + java.util.List + getBuildingsList(); + net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index); + int getBuildingsCount(); + java.util.List + getBuildingsOrBuilderList(); + net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( + int index); + + // repeated .OsmAnd.OBF.StreetIntersection intersections = 5; + java.util.List + getIntersectionsList(); + net.osmand.binary.OsmandOdb.StreetIntersection getIntersections(int index); + int getIntersectionsCount(); + java.util.List + getIntersectionsOrBuilderList(); + net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder getIntersectionsOrBuilder( + int index); + } public static final class StreetIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements StreetIndexOrBuilder { // Use StreetIndex.newBuilder() to construct. - private StreetIndex() { - initFields(); + private StreetIndex(Builder builder) { + super(builder); } private StreetIndex(boolean noInit) {} @@ -8651,103 +15298,244 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIndex_fieldAccessorTable; } + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string name_en = 2; public static final int NAME_EN_FIELD_NUMBER = 2; - private boolean hasNameEn; - private java.lang.String nameEn_ = ""; - public boolean hasNameEn() { return hasNameEn; } - public java.lang.String getNameEn() { return nameEn_; } + private java.lang.Object nameEn_; + public boolean hasNameEn() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + nameEn_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameEnBytes() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + nameEn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // repeated uint32 attributeTagIds = 13; + public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 13; + private java.util.List attributeTagIds_; + public java.util.List + getAttributeTagIdsList() { + return attributeTagIds_; + } + public int getAttributeTagIdsCount() { + return attributeTagIds_.size(); + } + public int getAttributeTagIds(int index) { + return attributeTagIds_.get(index); + } + + // repeated string attributeValues = 14; + public static final int ATTRIBUTEVALUES_FIELD_NUMBER = 14; + private com.google.protobuf.LazyStringList attributeValues_; + public java.util.List + getAttributeValuesList() { + return attributeValues_; + } + public int getAttributeValuesCount() { + return attributeValues_.size(); + } + public String getAttributeValues(int index) { + return attributeValues_.get(index); + } // required sint32 x = 3; public static final int X_FIELD_NUMBER = 3; - private boolean hasX; - private int x_ = 0; - public boolean hasX() { return hasX; } - public int getX() { return x_; } + private int x_; + public boolean hasX() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getX() { + return x_; + } // required sint32 y = 4; public static final int Y_FIELD_NUMBER = 4; - private boolean hasY; - private int y_ = 0; - public boolean hasY() { return hasY; } - public int getY() { return y_; } + private int y_; + public boolean hasY() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getY() { + return y_; + } // optional uint64 id = 6; public static final int ID_FIELD_NUMBER = 6; - private boolean hasId; - private long id_ = 0L; - public boolean hasId() { return hasId; } - public long getId() { return id_; } + private long id_; + public boolean hasId() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public long getId() { + return id_; + } // repeated .OsmAnd.OBF.BuildingIndex buildings = 12; public static final int BUILDINGS_FIELD_NUMBER = 12; - private java.util.List buildings_ = - java.util.Collections.emptyList(); + private java.util.List buildings_; public java.util.List getBuildingsList() { return buildings_; } - public int getBuildingsCount() { return buildings_.size(); } + public java.util.List + getBuildingsOrBuilderList() { + return buildings_; + } + public int getBuildingsCount() { + return buildings_.size(); + } public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { return buildings_.get(index); } + public net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( + int index) { + return buildings_.get(index); + } // repeated .OsmAnd.OBF.StreetIntersection intersections = 5; public static final int INTERSECTIONS_FIELD_NUMBER = 5; - private java.util.List intersections_ = - java.util.Collections.emptyList(); + private java.util.List intersections_; public java.util.List getIntersectionsList() { return intersections_; } - public int getIntersectionsCount() { return intersections_.size(); } + public java.util.List + getIntersectionsOrBuilderList() { + return intersections_; + } + public int getIntersectionsCount() { + return intersections_.size(); + } public net.osmand.binary.OsmandOdb.StreetIntersection getIntersections(int index) { return intersections_.get(index); } + public net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder getIntersectionsOrBuilder( + int index) { + return intersections_.get(index); + } private void initFields() { + name_ = ""; + nameEn_ = ""; + attributeTagIds_ = java.util.Collections.emptyList();; + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + x_ = 0; + y_ = 0; + id_ = 0L; + buildings_ = java.util.Collections.emptyList(); + intersections_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasName) return false; - if (!hasX) return false; - if (!hasY) return false; - for (net.osmand.binary.OsmandOdb.BuildingIndex element : getBuildingsList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.StreetIntersection element : getIntersectionsList()) { - if (!element.isInitialized()) return false; + if (!hasX()) { + memoizedIsInitialized = 0; + return false; } + if (!hasY()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getBuildingsCount(); i++) { + if (!getBuildings(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getIntersectionsCount(); i++) { + if (!getIntersections(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasName()) { - output.writeString(1, getName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); } - if (hasNameEn()) { - output.writeString(2, getNameEn()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNameEnBytes()); } - if (hasX()) { - output.writeSInt32(3, getX()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeSInt32(3, x_); } - if (hasY()) { - output.writeSInt32(4, getY()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeSInt32(4, y_); } - for (net.osmand.binary.OsmandOdb.StreetIntersection element : getIntersectionsList()) { - output.writeMessage(5, element); + for (int i = 0; i < intersections_.size(); i++) { + output.writeMessage(5, intersections_.get(i)); } - if (hasId()) { - output.writeUInt64(6, getId()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt64(6, id_); } - for (net.osmand.binary.OsmandOdb.BuildingIndex element : getBuildingsList()) { - output.writeMessage(12, element); + for (int i = 0; i < buildings_.size(); i++) { + output.writeMessage(12, buildings_.get(i)); + } + for (int i = 0; i < attributeTagIds_.size(); i++) { + output.writeUInt32(13, attributeTagIds_.get(i)); + } + for (int i = 0; i < attributeValues_.size(); i++) { + output.writeBytes(14, attributeValues_.getByteString(i)); } getUnknownFields().writeTo(output); } @@ -8758,39 +15546,64 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasName()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getName()); + .computeBytesSize(1, getNameBytes()); } - if (hasNameEn()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNameEn()); + .computeBytesSize(2, getNameEnBytes()); } - if (hasX()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(3, getX()); + .computeSInt32Size(3, x_); } - if (hasY()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(4, getY()); + .computeSInt32Size(4, y_); } - for (net.osmand.binary.OsmandOdb.StreetIntersection element : getIntersectionsList()) { + for (int i = 0; i < intersections_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, element); + .computeMessageSize(5, intersections_.get(i)); } - if (hasId()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, getId()); + .computeUInt64Size(6, id_); } - for (net.osmand.binary.OsmandOdb.BuildingIndex element : getBuildingsList()) { + for (int i = 0; i < buildings_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, element); + .computeMessageSize(12, buildings_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < attributeTagIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(attributeTagIds_.get(i)); + } + size += dataSize; + size += 1 * getAttributeTagIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < attributeValues_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(attributeValues_.getByteString(i)); + } + size += dataSize; + size += 1 * getAttributeValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.StreetIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8865,34 +15678,77 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.StreetIndex result; - - // Construct using net.osmand.binary.OsmandOdb.StreetIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.StreetIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.StreetIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.StreetIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.StreetIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getBuildingsFieldBuilder(); + getIntersectionsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + nameEn_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + attributeTagIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + x_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + y_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + if (buildingsBuilder_ == null) { + buildings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + buildingsBuilder_.clear(); + } + if (intersectionsBuilder_ == null) { + intersections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + } else { + intersectionsBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.StreetIndex(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -8904,41 +15760,80 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.StreetIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.StreetIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.StreetIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.StreetIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.StreetIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.StreetIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.StreetIndex result = new net.osmand.binary.OsmandOdb.StreetIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.buildings_ != java.util.Collections.EMPTY_LIST) { - result.buildings_ = - java.util.Collections.unmodifiableList(result.buildings_); + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - if (result.intersections_ != java.util.Collections.EMPTY_LIST) { - result.intersections_ = - java.util.Collections.unmodifiableList(result.intersections_); + result.nameEn_ = nameEn_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); + bitField0_ = (bitField0_ & ~0x00000004); } - net.osmand.binary.OsmandOdb.StreetIndex returnMe = result; - result = null; - return returnMe; + result.attributeTagIds_ = attributeTagIds_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList( + attributeValues_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.attributeValues_ = attributeValues_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000004; + } + result.x_ = x_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000008; + } + result.y_ = y_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000010; + } + result.id_ = id_; + if (buildingsBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + buildings_ = java.util.Collections.unmodifiableList(buildings_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.buildings_ = buildings_; + } else { + result.buildings_ = buildingsBuilder_.build(); + } + if (intersectionsBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { + intersections_ = java.util.Collections.unmodifiableList(intersections_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.intersections_ = intersections_; + } else { + result.intersections_ = intersectionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -8958,6 +15853,26 @@ public final class OsmandOdb { if (other.hasNameEn()) { setNameEn(other.getNameEn()); } + if (!other.attributeTagIds_.isEmpty()) { + if (attributeTagIds_.isEmpty()) { + attributeTagIds_ = other.attributeTagIds_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.addAll(other.attributeTagIds_); + } + onChanged(); + } + if (!other.attributeValues_.isEmpty()) { + if (attributeValues_.isEmpty()) { + attributeValues_ = other.attributeValues_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAttributeValuesIsMutable(); + attributeValues_.addAll(other.attributeValues_); + } + onChanged(); + } if (other.hasX()) { setX(other.getX()); } @@ -8967,22 +15882,90 @@ public final class OsmandOdb { if (other.hasId()) { setId(other.getId()); } - if (!other.buildings_.isEmpty()) { - if (result.buildings_.isEmpty()) { - result.buildings_ = new java.util.ArrayList(); + if (buildingsBuilder_ == null) { + if (!other.buildings_.isEmpty()) { + if (buildings_.isEmpty()) { + buildings_ = other.buildings_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureBuildingsIsMutable(); + buildings_.addAll(other.buildings_); + } + onChanged(); + } + } else { + if (!other.buildings_.isEmpty()) { + if (buildingsBuilder_.isEmpty()) { + buildingsBuilder_.dispose(); + buildingsBuilder_ = null; + buildings_ = other.buildings_; + bitField0_ = (bitField0_ & ~0x00000080); + buildingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBuildingsFieldBuilder() : null; + } else { + buildingsBuilder_.addAllMessages(other.buildings_); + } } - result.buildings_.addAll(other.buildings_); } - if (!other.intersections_.isEmpty()) { - if (result.intersections_.isEmpty()) { - result.intersections_ = new java.util.ArrayList(); + if (intersectionsBuilder_ == null) { + if (!other.intersections_.isEmpty()) { + if (intersections_.isEmpty()) { + intersections_ = other.intersections_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureIntersectionsIsMutable(); + intersections_.addAll(other.intersections_); + } + onChanged(); + } + } else { + if (!other.intersections_.isEmpty()) { + if (intersectionsBuilder_.isEmpty()) { + intersectionsBuilder_.dispose(); + intersectionsBuilder_ = null; + intersections_ = other.intersections_; + bitField0_ = (bitField0_ & ~0x00000100); + intersectionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getIntersectionsFieldBuilder() : null; + } else { + intersectionsBuilder_.addAllMessages(other.intersections_); + } } - result.intersections_.addAll(other.intersections_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasX()) { + + return false; + } + if (!hasY()) { + + return false; + } + for (int i = 0; i < getBuildingsCount(); i++) { + if (!getBuildings(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getIntersectionsCount(); i++) { + if (!getIntersections(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8995,29 +15978,35 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setName(input.readString()); + bitField0_ |= 0x00000001; + name_ = input.readBytes(); break; } case 18: { - setNameEn(input.readString()); + bitField0_ |= 0x00000002; + nameEn_ = input.readBytes(); break; } case 24: { - setX(input.readSInt32()); + bitField0_ |= 0x00000010; + x_ = input.readSInt32(); break; } case 32: { - setY(input.readSInt32()); + bitField0_ |= 0x00000020; + y_ = input.readSInt32(); break; } case 42: { @@ -9027,7 +16016,8 @@ public final class OsmandOdb { break; } case 48: { - setId(input.readUInt64()); + bitField0_ |= 0x00000040; + id_ = input.readUInt64(); break; } case 98: { @@ -9036,226 +16026,685 @@ public final class OsmandOdb { addBuildings(subBuilder.buildPartial()); break; } + case 104: { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.add(input.readUInt32()); + break; + } + case 106: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addAttributeTagIds(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 114: { + ensureAttributeValuesIsMutable(); + attributeValues_.add(input.readBytes()); + break; + } } } } + private int bitField0_; // required string name = 1; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + } // optional string name_en = 2; + private java.lang.Object nameEn_ = ""; public boolean hasNameEn() { - return result.hasNameEn(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - public java.lang.String getNameEn() { - return result.getNameEn(); + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + nameEn_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setNameEn(java.lang.String value) { + public Builder setNameEn(String value) { if (value == null) { throw new NullPointerException(); } - result.hasNameEn = true; - result.nameEn_ = value; + bitField0_ |= 0x00000002; + nameEn_ = value; + onChanged(); return this; } public Builder clearNameEn() { - result.hasNameEn = false; - result.nameEn_ = getDefaultInstance().getNameEn(); + bitField0_ = (bitField0_ & ~0x00000002); + nameEn_ = getDefaultInstance().getNameEn(); + onChanged(); + return this; + } + void setNameEn(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + nameEn_ = value; + onChanged(); + } + + // repeated uint32 attributeTagIds = 13; + private java.util.List attributeTagIds_ = java.util.Collections.emptyList();; + private void ensureAttributeTagIdsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + attributeTagIds_ = new java.util.ArrayList(attributeTagIds_); + bitField0_ |= 0x00000004; + } + } + public java.util.List + getAttributeTagIdsList() { + return java.util.Collections.unmodifiableList(attributeTagIds_); + } + public int getAttributeTagIdsCount() { + return attributeTagIds_.size(); + } + public int getAttributeTagIds(int index) { + return attributeTagIds_.get(index); + } + public Builder setAttributeTagIds( + int index, int value) { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.set(index, value); + onChanged(); + return this; + } + public Builder addAttributeTagIds(int value) { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.add(value); + onChanged(); + return this; + } + public Builder addAllAttributeTagIds( + java.lang.Iterable values) { + ensureAttributeTagIdsIsMutable(); + super.addAll(values, attributeTagIds_); + onChanged(); + return this; + } + public Builder clearAttributeTagIds() { + attributeTagIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); return this; } + // repeated string attributeValues = 14; + private com.google.protobuf.LazyStringList attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAttributeValuesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + attributeValues_ = new com.google.protobuf.LazyStringArrayList(attributeValues_); + bitField0_ |= 0x00000008; + } + } + public java.util.List + getAttributeValuesList() { + return java.util.Collections.unmodifiableList(attributeValues_); + } + public int getAttributeValuesCount() { + return attributeValues_.size(); + } + public String getAttributeValues(int index) { + return attributeValues_.get(index); + } + public Builder setAttributeValues( + int index, String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeValuesIsMutable(); + attributeValues_.set(index, value); + onChanged(); + return this; + } + public Builder addAttributeValues(String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeValuesIsMutable(); + attributeValues_.add(value); + onChanged(); + return this; + } + public Builder addAllAttributeValues( + java.lang.Iterable values) { + ensureAttributeValuesIsMutable(); + super.addAll(values, attributeValues_); + onChanged(); + return this; + } + public Builder clearAttributeValues() { + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + void addAttributeValues(com.google.protobuf.ByteString value) { + ensureAttributeValuesIsMutable(); + attributeValues_.add(value); + onChanged(); + } + // required sint32 x = 3; + private int x_ ; public boolean hasX() { - return result.hasX(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public int getX() { - return result.getX(); + return x_; } public Builder setX(int value) { - result.hasX = true; - result.x_ = value; + bitField0_ |= 0x00000010; + x_ = value; + onChanged(); return this; } public Builder clearX() { - result.hasX = false; - result.x_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + x_ = 0; + onChanged(); return this; } // required sint32 y = 4; + private int y_ ; public boolean hasY() { - return result.hasY(); + return ((bitField0_ & 0x00000020) == 0x00000020); } public int getY() { - return result.getY(); + return y_; } public Builder setY(int value) { - result.hasY = true; - result.y_ = value; + bitField0_ |= 0x00000020; + y_ = value; + onChanged(); return this; } public Builder clearY() { - result.hasY = false; - result.y_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + y_ = 0; + onChanged(); return this; } // optional uint64 id = 6; + private long id_ ; public boolean hasId() { - return result.hasId(); + return ((bitField0_ & 0x00000040) == 0x00000040); } public long getId() { - return result.getId(); + return id_; } public Builder setId(long value) { - result.hasId = true; - result.id_ = value; + bitField0_ |= 0x00000040; + id_ = value; + onChanged(); return this; } public Builder clearId() { - result.hasId = false; - result.id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + id_ = 0L; + onChanged(); return this; } // repeated .OsmAnd.OBF.BuildingIndex buildings = 12; + private java.util.List buildings_ = + java.util.Collections.emptyList(); + private void ensureBuildingsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + buildings_ = new java.util.ArrayList(buildings_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> buildingsBuilder_; + public java.util.List getBuildingsList() { - return java.util.Collections.unmodifiableList(result.buildings_); + if (buildingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(buildings_); + } else { + return buildingsBuilder_.getMessageList(); + } } public int getBuildingsCount() { - return result.getBuildingsCount(); + if (buildingsBuilder_ == null) { + return buildings_.size(); + } else { + return buildingsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { - return result.getBuildings(index); - } - public Builder setBuildings(int index, net.osmand.binary.OsmandOdb.BuildingIndex value) { - if (value == null) { - throw new NullPointerException(); + if (buildingsBuilder_ == null) { + return buildings_.get(index); + } else { + return buildingsBuilder_.getMessage(index); + } + } + public Builder setBuildings( + int index, net.osmand.binary.OsmandOdb.BuildingIndex value) { + if (buildingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuildingsIsMutable(); + buildings_.set(index, value); + onChanged(); + } else { + buildingsBuilder_.setMessage(index, value); } - result.buildings_.set(index, value); return this; } - public Builder setBuildings(int index, net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { - result.buildings_.set(index, builderForValue.build()); + public Builder setBuildings( + int index, net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { + if (buildingsBuilder_ == null) { + ensureBuildingsIsMutable(); + buildings_.set(index, builderForValue.build()); + onChanged(); + } else { + buildingsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addBuildings(net.osmand.binary.OsmandOdb.BuildingIndex value) { - if (value == null) { - throw new NullPointerException(); + if (buildingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuildingsIsMutable(); + buildings_.add(value); + onChanged(); + } else { + buildingsBuilder_.addMessage(value); } - if (result.buildings_.isEmpty()) { - result.buildings_ = new java.util.ArrayList(); - } - result.buildings_.add(value); return this; } - public Builder addBuildings(net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { - if (result.buildings_.isEmpty()) { - result.buildings_ = new java.util.ArrayList(); + public Builder addBuildings( + int index, net.osmand.binary.OsmandOdb.BuildingIndex value) { + if (buildingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuildingsIsMutable(); + buildings_.add(index, value); + onChanged(); + } else { + buildingsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addBuildings( + net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { + if (buildingsBuilder_ == null) { + ensureBuildingsIsMutable(); + buildings_.add(builderForValue.build()); + onChanged(); + } else { + buildingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addBuildings( + int index, net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { + if (buildingsBuilder_ == null) { + ensureBuildingsIsMutable(); + buildings_.add(index, builderForValue.build()); + onChanged(); + } else { + buildingsBuilder_.addMessage(index, builderForValue.build()); } - result.buildings_.add(builderForValue.build()); return this; } public Builder addAllBuildings( java.lang.Iterable values) { - if (result.buildings_.isEmpty()) { - result.buildings_ = new java.util.ArrayList(); + if (buildingsBuilder_ == null) { + ensureBuildingsIsMutable(); + super.addAll(values, buildings_); + onChanged(); + } else { + buildingsBuilder_.addAllMessages(values); } - super.addAll(values, result.buildings_); return this; } public Builder clearBuildings() { - result.buildings_ = java.util.Collections.emptyList(); + if (buildingsBuilder_ == null) { + buildings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + buildingsBuilder_.clear(); + } return this; } + public Builder removeBuildings(int index) { + if (buildingsBuilder_ == null) { + ensureBuildingsIsMutable(); + buildings_.remove(index); + onChanged(); + } else { + buildingsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.BuildingIndex.Builder getBuildingsBuilder( + int index) { + return getBuildingsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( + int index) { + if (buildingsBuilder_ == null) { + return buildings_.get(index); } else { + return buildingsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getBuildingsOrBuilderList() { + if (buildingsBuilder_ != null) { + return buildingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(buildings_); + } + } + public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder() { + return getBuildingsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder( + int index) { + return getBuildingsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); + } + public java.util.List + getBuildingsBuilderList() { + return getBuildingsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> + getBuildingsFieldBuilder() { + if (buildingsBuilder_ == null) { + buildingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder>( + buildings_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + buildings_ = null; + } + return buildingsBuilder_; + } // repeated .OsmAnd.OBF.StreetIntersection intersections = 5; + private java.util.List intersections_ = + java.util.Collections.emptyList(); + private void ensureIntersectionsIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + intersections_ = new java.util.ArrayList(intersections_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.StreetIntersection, net.osmand.binary.OsmandOdb.StreetIntersection.Builder, net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder> intersectionsBuilder_; + public java.util.List getIntersectionsList() { - return java.util.Collections.unmodifiableList(result.intersections_); + if (intersectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(intersections_); + } else { + return intersectionsBuilder_.getMessageList(); + } } public int getIntersectionsCount() { - return result.getIntersectionsCount(); + if (intersectionsBuilder_ == null) { + return intersections_.size(); + } else { + return intersectionsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.StreetIntersection getIntersections(int index) { - return result.getIntersections(index); - } - public Builder setIntersections(int index, net.osmand.binary.OsmandOdb.StreetIntersection value) { - if (value == null) { - throw new NullPointerException(); + if (intersectionsBuilder_ == null) { + return intersections_.get(index); + } else { + return intersectionsBuilder_.getMessage(index); + } + } + public Builder setIntersections( + int index, net.osmand.binary.OsmandOdb.StreetIntersection value) { + if (intersectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntersectionsIsMutable(); + intersections_.set(index, value); + onChanged(); + } else { + intersectionsBuilder_.setMessage(index, value); } - result.intersections_.set(index, value); return this; } - public Builder setIntersections(int index, net.osmand.binary.OsmandOdb.StreetIntersection.Builder builderForValue) { - result.intersections_.set(index, builderForValue.build()); + public Builder setIntersections( + int index, net.osmand.binary.OsmandOdb.StreetIntersection.Builder builderForValue) { + if (intersectionsBuilder_ == null) { + ensureIntersectionsIsMutable(); + intersections_.set(index, builderForValue.build()); + onChanged(); + } else { + intersectionsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addIntersections(net.osmand.binary.OsmandOdb.StreetIntersection value) { - if (value == null) { - throw new NullPointerException(); + if (intersectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntersectionsIsMutable(); + intersections_.add(value); + onChanged(); + } else { + intersectionsBuilder_.addMessage(value); } - if (result.intersections_.isEmpty()) { - result.intersections_ = new java.util.ArrayList(); - } - result.intersections_.add(value); return this; } - public Builder addIntersections(net.osmand.binary.OsmandOdb.StreetIntersection.Builder builderForValue) { - if (result.intersections_.isEmpty()) { - result.intersections_ = new java.util.ArrayList(); + public Builder addIntersections( + int index, net.osmand.binary.OsmandOdb.StreetIntersection value) { + if (intersectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIntersectionsIsMutable(); + intersections_.add(index, value); + onChanged(); + } else { + intersectionsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addIntersections( + net.osmand.binary.OsmandOdb.StreetIntersection.Builder builderForValue) { + if (intersectionsBuilder_ == null) { + ensureIntersectionsIsMutable(); + intersections_.add(builderForValue.build()); + onChanged(); + } else { + intersectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addIntersections( + int index, net.osmand.binary.OsmandOdb.StreetIntersection.Builder builderForValue) { + if (intersectionsBuilder_ == null) { + ensureIntersectionsIsMutable(); + intersections_.add(index, builderForValue.build()); + onChanged(); + } else { + intersectionsBuilder_.addMessage(index, builderForValue.build()); } - result.intersections_.add(builderForValue.build()); return this; } public Builder addAllIntersections( java.lang.Iterable values) { - if (result.intersections_.isEmpty()) { - result.intersections_ = new java.util.ArrayList(); + if (intersectionsBuilder_ == null) { + ensureIntersectionsIsMutable(); + super.addAll(values, intersections_); + onChanged(); + } else { + intersectionsBuilder_.addAllMessages(values); } - super.addAll(values, result.intersections_); return this; } public Builder clearIntersections() { - result.intersections_ = java.util.Collections.emptyList(); + if (intersectionsBuilder_ == null) { + intersections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + intersectionsBuilder_.clear(); + } return this; } + public Builder removeIntersections(int index) { + if (intersectionsBuilder_ == null) { + ensureIntersectionsIsMutable(); + intersections_.remove(index); + onChanged(); + } else { + intersectionsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.StreetIntersection.Builder getIntersectionsBuilder( + int index) { + return getIntersectionsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder getIntersectionsOrBuilder( + int index) { + if (intersectionsBuilder_ == null) { + return intersections_.get(index); } else { + return intersectionsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getIntersectionsOrBuilderList() { + if (intersectionsBuilder_ != null) { + return intersectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(intersections_); + } + } + public net.osmand.binary.OsmandOdb.StreetIntersection.Builder addIntersectionsBuilder() { + return getIntersectionsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.StreetIntersection.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.StreetIntersection.Builder addIntersectionsBuilder( + int index) { + return getIntersectionsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.StreetIntersection.getDefaultInstance()); + } + public java.util.List + getIntersectionsBuilderList() { + return getIntersectionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.StreetIntersection, net.osmand.binary.OsmandOdb.StreetIntersection.Builder, net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder> + getIntersectionsFieldBuilder() { + if (intersectionsBuilder_ == null) { + intersectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.StreetIntersection, net.osmand.binary.OsmandOdb.StreetIntersection.Builder, net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder>( + intersections_, + ((bitField0_ & 0x00000100) == 0x00000100), + getParentForChildren(), + isClean()); + intersections_ = null; + } + return intersectionsBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.StreetIndex) } static { defaultInstance = new StreetIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.StreetIndex) } + public interface StreetIntersectionOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string name = 2; + boolean hasName(); + String getName(); + + // optional string name_en = 3; + boolean hasNameEn(); + String getNameEn(); + + // repeated uint32 attributeTagIds = 6; + java.util.List getAttributeTagIdsList(); + int getAttributeTagIdsCount(); + int getAttributeTagIds(int index); + + // repeated string attributeValues = 7; + java.util.List getAttributeValuesList(); + int getAttributeValuesCount(); + String getAttributeValues(int index); + + // required sint32 intersectedX = 4; + boolean hasIntersectedX(); + int getIntersectedX(); + + // required sint32 intersectedY = 5; + boolean hasIntersectedY(); + int getIntersectedY(); + } public static final class StreetIntersection extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements StreetIntersectionOrBuilder { // Use StreetIntersection.newBuilder() to construct. - private StreetIntersection() { - initFields(); + private StreetIntersection(Builder builder) { + super(builder); } private StreetIntersection(boolean noInit) {} @@ -9278,57 +16727,168 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIntersection_fieldAccessorTable; } + private int bitField0_; // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string name_en = 3; public static final int NAME_EN_FIELD_NUMBER = 3; - private boolean hasNameEn; - private java.lang.String nameEn_ = ""; - public boolean hasNameEn() { return hasNameEn; } - public java.lang.String getNameEn() { return nameEn_; } + private java.lang.Object nameEn_; + public boolean hasNameEn() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + nameEn_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameEnBytes() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + nameEn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // repeated uint32 attributeTagIds = 6; + public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 6; + private java.util.List attributeTagIds_; + public java.util.List + getAttributeTagIdsList() { + return attributeTagIds_; + } + public int getAttributeTagIdsCount() { + return attributeTagIds_.size(); + } + public int getAttributeTagIds(int index) { + return attributeTagIds_.get(index); + } + + // repeated string attributeValues = 7; + public static final int ATTRIBUTEVALUES_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList attributeValues_; + public java.util.List + getAttributeValuesList() { + return attributeValues_; + } + public int getAttributeValuesCount() { + return attributeValues_.size(); + } + public String getAttributeValues(int index) { + return attributeValues_.get(index); + } // required sint32 intersectedX = 4; public static final int INTERSECTEDX_FIELD_NUMBER = 4; - private boolean hasIntersectedX; - private int intersectedX_ = 0; - public boolean hasIntersectedX() { return hasIntersectedX; } - public int getIntersectedX() { return intersectedX_; } + private int intersectedX_; + public boolean hasIntersectedX() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getIntersectedX() { + return intersectedX_; + } // required sint32 intersectedY = 5; public static final int INTERSECTEDY_FIELD_NUMBER = 5; - private boolean hasIntersectedY; - private int intersectedY_ = 0; - public boolean hasIntersectedY() { return hasIntersectedY; } - public int getIntersectedY() { return intersectedY_; } + private int intersectedY_; + public boolean hasIntersectedY() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getIntersectedY() { + return intersectedY_; + } private void initFields() { + name_ = ""; + nameEn_ = ""; + attributeTagIds_ = java.util.Collections.emptyList();; + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + intersectedX_ = 0; + intersectedY_ = 0; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasName) return false; - if (!hasIntersectedX) return false; - if (!hasIntersectedY) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIntersectedX()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIntersectedY()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasName()) { - output.writeString(2, getName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(2, getNameBytes()); } - if (hasNameEn()) { - output.writeString(3, getNameEn()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(3, getNameEnBytes()); } - if (hasIntersectedX()) { - output.writeSInt32(4, getIntersectedX()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeSInt32(4, intersectedX_); } - if (hasIntersectedY()) { - output.writeSInt32(5, getIntersectedY()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeSInt32(5, intersectedY_); + } + for (int i = 0; i < attributeTagIds_.size(); i++) { + output.writeUInt32(6, attributeTagIds_.get(i)); + } + for (int i = 0; i < attributeValues_.size(); i++) { + output.writeBytes(7, attributeValues_.getByteString(i)); } getUnknownFields().writeTo(output); } @@ -9339,27 +16899,52 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasName()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getName()); + .computeBytesSize(2, getNameBytes()); } - if (hasNameEn()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getNameEn()); + .computeBytesSize(3, getNameEnBytes()); } - if (hasIntersectedX()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(4, getIntersectedX()); + .computeSInt32Size(4, intersectedX_); } - if (hasIntersectedY()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(5, getIntersectedY()); + .computeSInt32Size(5, intersectedY_); + } + { + int dataSize = 0; + for (int i = 0; i < attributeTagIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(attributeTagIds_.get(i)); + } + size += dataSize; + size += 1 * getAttributeTagIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < attributeValues_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(attributeValues_.getByteString(i)); + } + size += dataSize; + size += 1 * getAttributeValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.StreetIntersection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9434,34 +17019,61 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.StreetIntersection result; - - // Construct using net.osmand.binary.OsmandOdb.StreetIntersection.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.StreetIntersection(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIntersection_descriptor; } - protected net.osmand.binary.OsmandOdb.StreetIntersection internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIntersection_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.StreetIntersection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.StreetIntersection(); + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + nameEn_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + attributeTagIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + intersectedX_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + intersectedY_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -9473,33 +17085,58 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.StreetIntersection.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.StreetIntersection build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.StreetIntersection result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.StreetIntersection buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.StreetIntersection result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.StreetIntersection buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.StreetIntersection result = new net.osmand.binary.OsmandOdb.StreetIntersection(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.StreetIntersection returnMe = result; - result = null; - return returnMe; + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.nameEn_ = nameEn_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.attributeTagIds_ = attributeTagIds_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList( + attributeValues_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.attributeValues_ = attributeValues_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000004; + } + result.intersectedX_ = intersectedX_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000008; + } + result.intersectedY_ = intersectedY_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -9519,6 +17156,26 @@ public final class OsmandOdb { if (other.hasNameEn()) { setNameEn(other.getNameEn()); } + if (!other.attributeTagIds_.isEmpty()) { + if (attributeTagIds_.isEmpty()) { + attributeTagIds_ = other.attributeTagIds_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.addAll(other.attributeTagIds_); + } + onChanged(); + } + if (!other.attributeValues_.isEmpty()) { + if (attributeValues_.isEmpty()) { + attributeValues_ = other.attributeValues_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAttributeValuesIsMutable(); + attributeValues_.addAll(other.attributeValues_); + } + onChanged(); + } if (other.hasIntersectedX()) { setIntersectedX(other.getIntersectedX()); } @@ -9529,6 +17186,22 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasIntersectedX()) { + + return false; + } + if (!hasIntersectedY()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -9541,111 +17214,274 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 18: { - setName(input.readString()); + bitField0_ |= 0x00000001; + name_ = input.readBytes(); break; } case 26: { - setNameEn(input.readString()); + bitField0_ |= 0x00000002; + nameEn_ = input.readBytes(); break; } case 32: { - setIntersectedX(input.readSInt32()); + bitField0_ |= 0x00000010; + intersectedX_ = input.readSInt32(); break; } case 40: { - setIntersectedY(input.readSInt32()); + bitField0_ |= 0x00000020; + intersectedY_ = input.readSInt32(); + break; + } + case 48: { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.add(input.readUInt32()); + break; + } + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addAttributeTagIds(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 58: { + ensureAttributeValuesIsMutable(); + attributeValues_.add(input.readBytes()); break; } } } } + private int bitField0_; // required string name = 2; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + } // optional string name_en = 3; + private java.lang.Object nameEn_ = ""; public boolean hasNameEn() { - return result.hasNameEn(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - public java.lang.String getNameEn() { - return result.getNameEn(); + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + nameEn_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setNameEn(java.lang.String value) { + public Builder setNameEn(String value) { if (value == null) { throw new NullPointerException(); } - result.hasNameEn = true; - result.nameEn_ = value; + bitField0_ |= 0x00000002; + nameEn_ = value; + onChanged(); return this; } public Builder clearNameEn() { - result.hasNameEn = false; - result.nameEn_ = getDefaultInstance().getNameEn(); + bitField0_ = (bitField0_ & ~0x00000002); + nameEn_ = getDefaultInstance().getNameEn(); + onChanged(); + return this; + } + void setNameEn(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + nameEn_ = value; + onChanged(); + } + + // repeated uint32 attributeTagIds = 6; + private java.util.List attributeTagIds_ = java.util.Collections.emptyList();; + private void ensureAttributeTagIdsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + attributeTagIds_ = new java.util.ArrayList(attributeTagIds_); + bitField0_ |= 0x00000004; + } + } + public java.util.List + getAttributeTagIdsList() { + return java.util.Collections.unmodifiableList(attributeTagIds_); + } + public int getAttributeTagIdsCount() { + return attributeTagIds_.size(); + } + public int getAttributeTagIds(int index) { + return attributeTagIds_.get(index); + } + public Builder setAttributeTagIds( + int index, int value) { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.set(index, value); + onChanged(); + return this; + } + public Builder addAttributeTagIds(int value) { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.add(value); + onChanged(); + return this; + } + public Builder addAllAttributeTagIds( + java.lang.Iterable values) { + ensureAttributeTagIdsIsMutable(); + super.addAll(values, attributeTagIds_); + onChanged(); + return this; + } + public Builder clearAttributeTagIds() { + attributeTagIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); return this; } + // repeated string attributeValues = 7; + private com.google.protobuf.LazyStringList attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAttributeValuesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + attributeValues_ = new com.google.protobuf.LazyStringArrayList(attributeValues_); + bitField0_ |= 0x00000008; + } + } + public java.util.List + getAttributeValuesList() { + return java.util.Collections.unmodifiableList(attributeValues_); + } + public int getAttributeValuesCount() { + return attributeValues_.size(); + } + public String getAttributeValues(int index) { + return attributeValues_.get(index); + } + public Builder setAttributeValues( + int index, String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeValuesIsMutable(); + attributeValues_.set(index, value); + onChanged(); + return this; + } + public Builder addAttributeValues(String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeValuesIsMutable(); + attributeValues_.add(value); + onChanged(); + return this; + } + public Builder addAllAttributeValues( + java.lang.Iterable values) { + ensureAttributeValuesIsMutable(); + super.addAll(values, attributeValues_); + onChanged(); + return this; + } + public Builder clearAttributeValues() { + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + void addAttributeValues(com.google.protobuf.ByteString value) { + ensureAttributeValuesIsMutable(); + attributeValues_.add(value); + onChanged(); + } + // required sint32 intersectedX = 4; + private int intersectedX_ ; public boolean hasIntersectedX() { - return result.hasIntersectedX(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public int getIntersectedX() { - return result.getIntersectedX(); + return intersectedX_; } public Builder setIntersectedX(int value) { - result.hasIntersectedX = true; - result.intersectedX_ = value; + bitField0_ |= 0x00000010; + intersectedX_ = value; + onChanged(); return this; } public Builder clearIntersectedX() { - result.hasIntersectedX = false; - result.intersectedX_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + intersectedX_ = 0; + onChanged(); return this; } // required sint32 intersectedY = 5; + private int intersectedY_ ; public boolean hasIntersectedY() { - return result.hasIntersectedY(); + return ((bitField0_ & 0x00000020) == 0x00000020); } public int getIntersectedY() { - return result.getIntersectedY(); + return intersectedY_; } public Builder setIntersectedY(int value) { - result.hasIntersectedY = true; - result.intersectedY_ = value; + bitField0_ |= 0x00000020; + intersectedY_ = value; + onChanged(); return this; } public Builder clearIntersectedY() { - result.hasIntersectedY = false; - result.intersectedY_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + intersectedY_ = 0; + onChanged(); return this; } @@ -9654,18 +17490,85 @@ public final class OsmandOdb { static { defaultInstance = new StreetIntersection(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.StreetIntersection) } + public interface BuildingIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string name = 1; + boolean hasName(); + String getName(); + + // optional string name_en = 2; + boolean hasNameEn(); + String getNameEn(); + + // repeated uint32 attributeTagIds = 15; + java.util.List getAttributeTagIdsList(); + int getAttributeTagIdsCount(); + int getAttributeTagIds(int index); + + // repeated string attributeValues = 16; + java.util.List getAttributeValuesList(); + int getAttributeValuesCount(); + String getAttributeValues(int index); + + // optional string name2 = 3; + boolean hasName2(); + String getName2(); + + // optional string name_en2 = 4; + boolean hasNameEn2(); + String getNameEn2(); + + // repeated uint32 attributeTagIds2 = 17; + java.util.List getAttributeTagIds2List(); + int getAttributeTagIds2Count(); + int getAttributeTagIds2(int index); + + // repeated string attributeValues2 = 18; + java.util.List getAttributeValues2List(); + int getAttributeValues2Count(); + String getAttributeValues2(int index); + + // optional sint32 interpolation = 5; + boolean hasInterpolation(); + int getInterpolation(); + + // required sint32 x = 7; + boolean hasX(); + int getX(); + + // required sint32 y = 8; + boolean hasY(); + int getY(); + + // optional sint32 x2 = 9; + boolean hasX2(); + int getX2(); + + // optional sint32 y2 = 10; + boolean hasY2(); + int getY2(); + + // optional uint64 id = 13; + boolean hasId(); + long getId(); + + // optional string postcode = 14; + boolean hasPostcode(); + String getPostcode(); + } public static final class BuildingIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements BuildingIndexOrBuilder { // Use BuildingIndex.newBuilder() to construct. - private BuildingIndex() { - initFields(); + private BuildingIndex(Builder builder) { + super(builder); } private BuildingIndex(boolean noInit) {} @@ -9688,127 +17591,368 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_BuildingIndex_fieldAccessorTable; } + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string name_en = 2; public static final int NAME_EN_FIELD_NUMBER = 2; - private boolean hasNameEn; - private java.lang.String nameEn_ = ""; - public boolean hasNameEn() { return hasNameEn; } - public java.lang.String getNameEn() { return nameEn_; } + private java.lang.Object nameEn_; + public boolean hasNameEn() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + nameEn_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameEnBytes() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + nameEn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // repeated uint32 attributeTagIds = 15; + public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 15; + private java.util.List attributeTagIds_; + public java.util.List + getAttributeTagIdsList() { + return attributeTagIds_; + } + public int getAttributeTagIdsCount() { + return attributeTagIds_.size(); + } + public int getAttributeTagIds(int index) { + return attributeTagIds_.get(index); + } + + // repeated string attributeValues = 16; + public static final int ATTRIBUTEVALUES_FIELD_NUMBER = 16; + private com.google.protobuf.LazyStringList attributeValues_; + public java.util.List + getAttributeValuesList() { + return attributeValues_; + } + public int getAttributeValuesCount() { + return attributeValues_.size(); + } + public String getAttributeValues(int index) { + return attributeValues_.get(index); + } // optional string name2 = 3; public static final int NAME2_FIELD_NUMBER = 3; - private boolean hasName2; - private java.lang.String name2_ = ""; - public boolean hasName2() { return hasName2; } - public java.lang.String getName2() { return name2_; } + private java.lang.Object name2_; + public boolean hasName2() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public String getName2() { + java.lang.Object ref = name2_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name2_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getName2Bytes() { + java.lang.Object ref = name2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string name_en2 = 4; public static final int NAME_EN2_FIELD_NUMBER = 4; - private boolean hasNameEn2; - private java.lang.String nameEn2_ = ""; - public boolean hasNameEn2() { return hasNameEn2; } - public java.lang.String getNameEn2() { return nameEn2_; } + private java.lang.Object nameEn2_; + public boolean hasNameEn2() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public String getNameEn2() { + java.lang.Object ref = nameEn2_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + nameEn2_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameEn2Bytes() { + java.lang.Object ref = nameEn2_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + nameEn2_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // repeated uint32 attributeTagIds2 = 17; + public static final int ATTRIBUTETAGIDS2_FIELD_NUMBER = 17; + private java.util.List attributeTagIds2_; + public java.util.List + getAttributeTagIds2List() { + return attributeTagIds2_; + } + public int getAttributeTagIds2Count() { + return attributeTagIds2_.size(); + } + public int getAttributeTagIds2(int index) { + return attributeTagIds2_.get(index); + } + + // repeated string attributeValues2 = 18; + public static final int ATTRIBUTEVALUES2_FIELD_NUMBER = 18; + private com.google.protobuf.LazyStringList attributeValues2_; + public java.util.List + getAttributeValues2List() { + return attributeValues2_; + } + public int getAttributeValues2Count() { + return attributeValues2_.size(); + } + public String getAttributeValues2(int index) { + return attributeValues2_.get(index); + } // optional sint32 interpolation = 5; public static final int INTERPOLATION_FIELD_NUMBER = 5; - private boolean hasInterpolation; - private int interpolation_ = 0; - public boolean hasInterpolation() { return hasInterpolation; } - public int getInterpolation() { return interpolation_; } + private int interpolation_; + public boolean hasInterpolation() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getInterpolation() { + return interpolation_; + } // required sint32 x = 7; public static final int X_FIELD_NUMBER = 7; - private boolean hasX; - private int x_ = 0; - public boolean hasX() { return hasX; } - public int getX() { return x_; } + private int x_; + public boolean hasX() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getX() { + return x_; + } // required sint32 y = 8; public static final int Y_FIELD_NUMBER = 8; - private boolean hasY; - private int y_ = 0; - public boolean hasY() { return hasY; } - public int getY() { return y_; } + private int y_; + public boolean hasY() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public int getY() { + return y_; + } // optional sint32 x2 = 9; public static final int X2_FIELD_NUMBER = 9; - private boolean hasX2; - private int x2_ = 0; - public boolean hasX2() { return hasX2; } - public int getX2() { return x2_; } + private int x2_; + public boolean hasX2() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public int getX2() { + return x2_; + } // optional sint32 y2 = 10; public static final int Y2_FIELD_NUMBER = 10; - private boolean hasY2; - private int y2_ = 0; - public boolean hasY2() { return hasY2; } - public int getY2() { return y2_; } + private int y2_; + public boolean hasY2() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + public int getY2() { + return y2_; + } // optional uint64 id = 13; public static final int ID_FIELD_NUMBER = 13; - private boolean hasId; - private long id_ = 0L; - public boolean hasId() { return hasId; } - public long getId() { return id_; } + private long id_; + public boolean hasId() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + public long getId() { + return id_; + } // optional string postcode = 14; public static final int POSTCODE_FIELD_NUMBER = 14; - private boolean hasPostcode; - private java.lang.String postcode_ = ""; - public boolean hasPostcode() { return hasPostcode; } - public java.lang.String getPostcode() { return postcode_; } + private java.lang.Object postcode_; + public boolean hasPostcode() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + public String getPostcode() { + java.lang.Object ref = postcode_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + postcode_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getPostcodeBytes() { + java.lang.Object ref = postcode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + postcode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } private void initFields() { + name_ = ""; + nameEn_ = ""; + attributeTagIds_ = java.util.Collections.emptyList();; + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + name2_ = ""; + nameEn2_ = ""; + attributeTagIds2_ = java.util.Collections.emptyList();; + attributeValues2_ = com.google.protobuf.LazyStringArrayList.EMPTY; + interpolation_ = 0; + x_ = 0; + y_ = 0; + x2_ = 0; + y2_ = 0; + id_ = 0L; + postcode_ = ""; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasName) return false; - if (!hasX) return false; - if (!hasY) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasX()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasY()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasName()) { - output.writeString(1, getName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); } - if (hasNameEn()) { - output.writeString(2, getNameEn()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNameEnBytes()); } - if (hasName2()) { - output.writeString(3, getName2()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getName2Bytes()); } - if (hasNameEn2()) { - output.writeString(4, getNameEn2()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getNameEn2Bytes()); } - if (hasInterpolation()) { - output.writeSInt32(5, getInterpolation()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeSInt32(5, interpolation_); } - if (hasX()) { - output.writeSInt32(7, getX()); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeSInt32(7, x_); } - if (hasY()) { - output.writeSInt32(8, getY()); + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeSInt32(8, y_); } - if (hasX2()) { - output.writeSInt32(9, getX2()); + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeSInt32(9, x2_); } - if (hasY2()) { - output.writeSInt32(10, getY2()); + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeSInt32(10, y2_); } - if (hasId()) { - output.writeUInt64(13, getId()); + if (((bitField0_ & 0x00000200) == 0x00000200)) { + output.writeUInt64(13, id_); } - if (hasPostcode()) { - output.writeString(14, getPostcode()); + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeBytes(14, getPostcodeBytes()); + } + for (int i = 0; i < attributeTagIds_.size(); i++) { + output.writeUInt32(15, attributeTagIds_.get(i)); + } + for (int i = 0; i < attributeValues_.size(); i++) { + output.writeBytes(16, attributeValues_.getByteString(i)); + } + for (int i = 0; i < attributeTagIds2_.size(); i++) { + output.writeUInt32(17, attributeTagIds2_.get(i)); + } + for (int i = 0; i < attributeValues2_.size(); i++) { + output.writeBytes(18, attributeValues2_.getByteString(i)); } getUnknownFields().writeTo(output); } @@ -9819,55 +17963,98 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasName()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getName()); + .computeBytesSize(1, getNameBytes()); } - if (hasNameEn()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getNameEn()); + .computeBytesSize(2, getNameEnBytes()); } - if (hasName2()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getName2()); + .computeBytesSize(3, getName2Bytes()); } - if (hasNameEn2()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getNameEn2()); + .computeBytesSize(4, getNameEn2Bytes()); } - if (hasInterpolation()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(5, getInterpolation()); + .computeSInt32Size(5, interpolation_); } - if (hasX()) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(7, getX()); + .computeSInt32Size(7, x_); } - if (hasY()) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(8, getY()); + .computeSInt32Size(8, y_); } - if (hasX2()) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(9, getX2()); + .computeSInt32Size(9, x2_); } - if (hasY2()) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(10, getY2()); + .computeSInt32Size(10, y2_); } - if (hasId()) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(13, getId()); + .computeUInt64Size(13, id_); } - if (hasPostcode()) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(14, getPostcode()); + .computeBytesSize(14, getPostcodeBytes()); + } + { + int dataSize = 0; + for (int i = 0; i < attributeTagIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(attributeTagIds_.get(i)); + } + size += dataSize; + size += 1 * getAttributeTagIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < attributeValues_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(attributeValues_.getByteString(i)); + } + size += dataSize; + size += 2 * getAttributeValuesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < attributeTagIds2_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(attributeTagIds2_.get(i)); + } + size += dataSize; + size += 2 * getAttributeTagIds2List().size(); + } + { + int dataSize = 0; + for (int i = 0; i < attributeValues2_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(attributeValues2_.getByteString(i)); + } + size += dataSize; + size += 2 * getAttributeValues2List().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.BuildingIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9942,34 +18129,79 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.BuildingIndex result; - - // Construct using net.osmand.binary.OsmandOdb.BuildingIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.BuildingIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_BuildingIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.BuildingIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_BuildingIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.BuildingIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.BuildingIndex(); + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + nameEn_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + attributeTagIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + name2_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + nameEn2_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + attributeTagIds2_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000040); + attributeValues2_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + interpolation_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); + x_ = 0; + bitField0_ = (bitField0_ & ~0x00000200); + y_ = 0; + bitField0_ = (bitField0_ & ~0x00000400); + x2_ = 0; + bitField0_ = (bitField0_ & ~0x00000800); + y2_ = 0; + bitField0_ = (bitField0_ & ~0x00001000); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00002000); + postcode_ = ""; + bitField0_ = (bitField0_ & ~0x00004000); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -9981,33 +18213,97 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.BuildingIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.BuildingIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.BuildingIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.BuildingIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.BuildingIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.BuildingIndex result = new net.osmand.binary.OsmandOdb.BuildingIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.BuildingIndex returnMe = result; - result = null; - return returnMe; + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.nameEn_ = nameEn_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.attributeTagIds_ = attributeTagIds_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList( + attributeValues_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.attributeValues_ = attributeValues_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000004; + } + result.name2_ = name2_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000008; + } + result.nameEn2_ = nameEn2_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + attributeTagIds2_ = java.util.Collections.unmodifiableList(attributeTagIds2_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.attributeTagIds2_ = attributeTagIds2_; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + attributeValues2_ = new com.google.protobuf.UnmodifiableLazyStringList( + attributeValues2_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.attributeValues2_ = attributeValues2_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000010; + } + result.interpolation_ = interpolation_; + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000020; + } + result.x_ = x_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000040; + } + result.y_ = y_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000080; + } + result.x2_ = x2_; + if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + to_bitField0_ |= 0x00000100; + } + result.y2_ = y2_; + if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + to_bitField0_ |= 0x00000200; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + to_bitField0_ |= 0x00000400; + } + result.postcode_ = postcode_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -10027,12 +18323,52 @@ public final class OsmandOdb { if (other.hasNameEn()) { setNameEn(other.getNameEn()); } + if (!other.attributeTagIds_.isEmpty()) { + if (attributeTagIds_.isEmpty()) { + attributeTagIds_ = other.attributeTagIds_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.addAll(other.attributeTagIds_); + } + onChanged(); + } + if (!other.attributeValues_.isEmpty()) { + if (attributeValues_.isEmpty()) { + attributeValues_ = other.attributeValues_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAttributeValuesIsMutable(); + attributeValues_.addAll(other.attributeValues_); + } + onChanged(); + } if (other.hasName2()) { setName2(other.getName2()); } if (other.hasNameEn2()) { setNameEn2(other.getNameEn2()); } + if (!other.attributeTagIds2_.isEmpty()) { + if (attributeTagIds2_.isEmpty()) { + attributeTagIds2_ = other.attributeTagIds2_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureAttributeTagIds2IsMutable(); + attributeTagIds2_.addAll(other.attributeTagIds2_); + } + onChanged(); + } + if (!other.attributeValues2_.isEmpty()) { + if (attributeValues2_.isEmpty()) { + attributeValues2_ = other.attributeValues2_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureAttributeValues2IsMutable(); + attributeValues2_.addAll(other.attributeValues2_); + } + onChanged(); + } if (other.hasInterpolation()) { setInterpolation(other.getInterpolation()); } @@ -10058,6 +18394,22 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasX()) { + + return false; + } + if (!hasY()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10070,294 +18422,654 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setName(input.readString()); + bitField0_ |= 0x00000001; + name_ = input.readBytes(); break; } case 18: { - setNameEn(input.readString()); + bitField0_ |= 0x00000002; + nameEn_ = input.readBytes(); break; } case 26: { - setName2(input.readString()); + bitField0_ |= 0x00000010; + name2_ = input.readBytes(); break; } case 34: { - setNameEn2(input.readString()); + bitField0_ |= 0x00000020; + nameEn2_ = input.readBytes(); break; } case 40: { - setInterpolation(input.readSInt32()); + bitField0_ |= 0x00000100; + interpolation_ = input.readSInt32(); break; } case 56: { - setX(input.readSInt32()); + bitField0_ |= 0x00000200; + x_ = input.readSInt32(); break; } case 64: { - setY(input.readSInt32()); + bitField0_ |= 0x00000400; + y_ = input.readSInt32(); break; } case 72: { - setX2(input.readSInt32()); + bitField0_ |= 0x00000800; + x2_ = input.readSInt32(); break; } case 80: { - setY2(input.readSInt32()); + bitField0_ |= 0x00001000; + y2_ = input.readSInt32(); break; } case 104: { - setId(input.readUInt64()); + bitField0_ |= 0x00002000; + id_ = input.readUInt64(); break; } case 114: { - setPostcode(input.readString()); + bitField0_ |= 0x00004000; + postcode_ = input.readBytes(); + break; + } + case 120: { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.add(input.readUInt32()); + break; + } + case 122: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addAttributeTagIds(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 130: { + ensureAttributeValuesIsMutable(); + attributeValues_.add(input.readBytes()); + break; + } + case 136: { + ensureAttributeTagIds2IsMutable(); + attributeTagIds2_.add(input.readUInt32()); + break; + } + case 138: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addAttributeTagIds2(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 146: { + ensureAttributeValues2IsMutable(); + attributeValues2_.add(input.readBytes()); break; } } } } + private int bitField0_; // required string name = 1; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + } // optional string name_en = 2; + private java.lang.Object nameEn_ = ""; public boolean hasNameEn() { - return result.hasNameEn(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - public java.lang.String getNameEn() { - return result.getNameEn(); + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + nameEn_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setNameEn(java.lang.String value) { + public Builder setNameEn(String value) { if (value == null) { throw new NullPointerException(); } - result.hasNameEn = true; - result.nameEn_ = value; + bitField0_ |= 0x00000002; + nameEn_ = value; + onChanged(); return this; } public Builder clearNameEn() { - result.hasNameEn = false; - result.nameEn_ = getDefaultInstance().getNameEn(); + bitField0_ = (bitField0_ & ~0x00000002); + nameEn_ = getDefaultInstance().getNameEn(); + onChanged(); return this; } + void setNameEn(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + nameEn_ = value; + onChanged(); + } + + // repeated uint32 attributeTagIds = 15; + private java.util.List attributeTagIds_ = java.util.Collections.emptyList();; + private void ensureAttributeTagIdsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + attributeTagIds_ = new java.util.ArrayList(attributeTagIds_); + bitField0_ |= 0x00000004; + } + } + public java.util.List + getAttributeTagIdsList() { + return java.util.Collections.unmodifiableList(attributeTagIds_); + } + public int getAttributeTagIdsCount() { + return attributeTagIds_.size(); + } + public int getAttributeTagIds(int index) { + return attributeTagIds_.get(index); + } + public Builder setAttributeTagIds( + int index, int value) { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.set(index, value); + onChanged(); + return this; + } + public Builder addAttributeTagIds(int value) { + ensureAttributeTagIdsIsMutable(); + attributeTagIds_.add(value); + onChanged(); + return this; + } + public Builder addAllAttributeTagIds( + java.lang.Iterable values) { + ensureAttributeTagIdsIsMutable(); + super.addAll(values, attributeTagIds_); + onChanged(); + return this; + } + public Builder clearAttributeTagIds() { + attributeTagIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + // repeated string attributeValues = 16; + private com.google.protobuf.LazyStringList attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAttributeValuesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + attributeValues_ = new com.google.protobuf.LazyStringArrayList(attributeValues_); + bitField0_ |= 0x00000008; + } + } + public java.util.List + getAttributeValuesList() { + return java.util.Collections.unmodifiableList(attributeValues_); + } + public int getAttributeValuesCount() { + return attributeValues_.size(); + } + public String getAttributeValues(int index) { + return attributeValues_.get(index); + } + public Builder setAttributeValues( + int index, String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeValuesIsMutable(); + attributeValues_.set(index, value); + onChanged(); + return this; + } + public Builder addAttributeValues(String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeValuesIsMutable(); + attributeValues_.add(value); + onChanged(); + return this; + } + public Builder addAllAttributeValues( + java.lang.Iterable values) { + ensureAttributeValuesIsMutable(); + super.addAll(values, attributeValues_); + onChanged(); + return this; + } + public Builder clearAttributeValues() { + attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + void addAttributeValues(com.google.protobuf.ByteString value) { + ensureAttributeValuesIsMutable(); + attributeValues_.add(value); + onChanged(); + } // optional string name2 = 3; + private java.lang.Object name2_ = ""; public boolean hasName2() { - return result.hasName2(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - public java.lang.String getName2() { - return result.getName2(); + public String getName2() { + java.lang.Object ref = name2_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name2_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName2(java.lang.String value) { + public Builder setName2(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName2 = true; - result.name2_ = value; + bitField0_ |= 0x00000010; + name2_ = value; + onChanged(); return this; } public Builder clearName2() { - result.hasName2 = false; - result.name2_ = getDefaultInstance().getName2(); + bitField0_ = (bitField0_ & ~0x00000010); + name2_ = getDefaultInstance().getName2(); + onChanged(); return this; } + void setName2(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000010; + name2_ = value; + onChanged(); + } // optional string name_en2 = 4; + private java.lang.Object nameEn2_ = ""; public boolean hasNameEn2() { - return result.hasNameEn2(); + return ((bitField0_ & 0x00000020) == 0x00000020); } - public java.lang.String getNameEn2() { - return result.getNameEn2(); + public String getNameEn2() { + java.lang.Object ref = nameEn2_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + nameEn2_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setNameEn2(java.lang.String value) { + public Builder setNameEn2(String value) { if (value == null) { throw new NullPointerException(); } - result.hasNameEn2 = true; - result.nameEn2_ = value; + bitField0_ |= 0x00000020; + nameEn2_ = value; + onChanged(); return this; } public Builder clearNameEn2() { - result.hasNameEn2 = false; - result.nameEn2_ = getDefaultInstance().getNameEn2(); + bitField0_ = (bitField0_ & ~0x00000020); + nameEn2_ = getDefaultInstance().getNameEn2(); + onChanged(); + return this; + } + void setNameEn2(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000020; + nameEn2_ = value; + onChanged(); + } + + // repeated uint32 attributeTagIds2 = 17; + private java.util.List attributeTagIds2_ = java.util.Collections.emptyList();; + private void ensureAttributeTagIds2IsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + attributeTagIds2_ = new java.util.ArrayList(attributeTagIds2_); + bitField0_ |= 0x00000040; + } + } + public java.util.List + getAttributeTagIds2List() { + return java.util.Collections.unmodifiableList(attributeTagIds2_); + } + public int getAttributeTagIds2Count() { + return attributeTagIds2_.size(); + } + public int getAttributeTagIds2(int index) { + return attributeTagIds2_.get(index); + } + public Builder setAttributeTagIds2( + int index, int value) { + ensureAttributeTagIds2IsMutable(); + attributeTagIds2_.set(index, value); + onChanged(); + return this; + } + public Builder addAttributeTagIds2(int value) { + ensureAttributeTagIds2IsMutable(); + attributeTagIds2_.add(value); + onChanged(); + return this; + } + public Builder addAllAttributeTagIds2( + java.lang.Iterable values) { + ensureAttributeTagIds2IsMutable(); + super.addAll(values, attributeTagIds2_); + onChanged(); + return this; + } + public Builder clearAttributeTagIds2() { + attributeTagIds2_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); return this; } + // repeated string attributeValues2 = 18; + private com.google.protobuf.LazyStringList attributeValues2_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAttributeValues2IsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + attributeValues2_ = new com.google.protobuf.LazyStringArrayList(attributeValues2_); + bitField0_ |= 0x00000080; + } + } + public java.util.List + getAttributeValues2List() { + return java.util.Collections.unmodifiableList(attributeValues2_); + } + public int getAttributeValues2Count() { + return attributeValues2_.size(); + } + public String getAttributeValues2(int index) { + return attributeValues2_.get(index); + } + public Builder setAttributeValues2( + int index, String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeValues2IsMutable(); + attributeValues2_.set(index, value); + onChanged(); + return this; + } + public Builder addAttributeValues2(String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeValues2IsMutable(); + attributeValues2_.add(value); + onChanged(); + return this; + } + public Builder addAllAttributeValues2( + java.lang.Iterable values) { + ensureAttributeValues2IsMutable(); + super.addAll(values, attributeValues2_); + onChanged(); + return this; + } + public Builder clearAttributeValues2() { + attributeValues2_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + void addAttributeValues2(com.google.protobuf.ByteString value) { + ensureAttributeValues2IsMutable(); + attributeValues2_.add(value); + onChanged(); + } + // optional sint32 interpolation = 5; + private int interpolation_ ; public boolean hasInterpolation() { - return result.hasInterpolation(); + return ((bitField0_ & 0x00000100) == 0x00000100); } public int getInterpolation() { - return result.getInterpolation(); + return interpolation_; } public Builder setInterpolation(int value) { - result.hasInterpolation = true; - result.interpolation_ = value; + bitField0_ |= 0x00000100; + interpolation_ = value; + onChanged(); return this; } public Builder clearInterpolation() { - result.hasInterpolation = false; - result.interpolation_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); + interpolation_ = 0; + onChanged(); return this; } // required sint32 x = 7; + private int x_ ; public boolean hasX() { - return result.hasX(); + return ((bitField0_ & 0x00000200) == 0x00000200); } public int getX() { - return result.getX(); + return x_; } public Builder setX(int value) { - result.hasX = true; - result.x_ = value; + bitField0_ |= 0x00000200; + x_ = value; + onChanged(); return this; } public Builder clearX() { - result.hasX = false; - result.x_ = 0; + bitField0_ = (bitField0_ & ~0x00000200); + x_ = 0; + onChanged(); return this; } // required sint32 y = 8; + private int y_ ; public boolean hasY() { - return result.hasY(); + return ((bitField0_ & 0x00000400) == 0x00000400); } public int getY() { - return result.getY(); + return y_; } public Builder setY(int value) { - result.hasY = true; - result.y_ = value; + bitField0_ |= 0x00000400; + y_ = value; + onChanged(); return this; } public Builder clearY() { - result.hasY = false; - result.y_ = 0; + bitField0_ = (bitField0_ & ~0x00000400); + y_ = 0; + onChanged(); return this; } // optional sint32 x2 = 9; + private int x2_ ; public boolean hasX2() { - return result.hasX2(); + return ((bitField0_ & 0x00000800) == 0x00000800); } public int getX2() { - return result.getX2(); + return x2_; } public Builder setX2(int value) { - result.hasX2 = true; - result.x2_ = value; + bitField0_ |= 0x00000800; + x2_ = value; + onChanged(); return this; } public Builder clearX2() { - result.hasX2 = false; - result.x2_ = 0; + bitField0_ = (bitField0_ & ~0x00000800); + x2_ = 0; + onChanged(); return this; } // optional sint32 y2 = 10; + private int y2_ ; public boolean hasY2() { - return result.hasY2(); + return ((bitField0_ & 0x00001000) == 0x00001000); } public int getY2() { - return result.getY2(); + return y2_; } public Builder setY2(int value) { - result.hasY2 = true; - result.y2_ = value; + bitField0_ |= 0x00001000; + y2_ = value; + onChanged(); return this; } public Builder clearY2() { - result.hasY2 = false; - result.y2_ = 0; + bitField0_ = (bitField0_ & ~0x00001000); + y2_ = 0; + onChanged(); return this; } // optional uint64 id = 13; + private long id_ ; public boolean hasId() { - return result.hasId(); + return ((bitField0_ & 0x00002000) == 0x00002000); } public long getId() { - return result.getId(); + return id_; } public Builder setId(long value) { - result.hasId = true; - result.id_ = value; + bitField0_ |= 0x00002000; + id_ = value; + onChanged(); return this; } public Builder clearId() { - result.hasId = false; - result.id_ = 0L; + bitField0_ = (bitField0_ & ~0x00002000); + id_ = 0L; + onChanged(); return this; } // optional string postcode = 14; + private java.lang.Object postcode_ = ""; public boolean hasPostcode() { - return result.hasPostcode(); + return ((bitField0_ & 0x00004000) == 0x00004000); } - public java.lang.String getPostcode() { - return result.getPostcode(); + public String getPostcode() { + java.lang.Object ref = postcode_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + postcode_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setPostcode(java.lang.String value) { + public Builder setPostcode(String value) { if (value == null) { throw new NullPointerException(); } - result.hasPostcode = true; - result.postcode_ = value; + bitField0_ |= 0x00004000; + postcode_ = value; + onChanged(); return this; } public Builder clearPostcode() { - result.hasPostcode = false; - result.postcode_ = getDefaultInstance().getPostcode(); + bitField0_ = (bitField0_ & ~0x00004000); + postcode_ = getDefaultInstance().getPostcode(); + onChanged(); return this; } + void setPostcode(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00004000; + postcode_ = value; + onChanged(); + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.BuildingIndex) } static { defaultInstance = new BuildingIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.BuildingIndex) } + public interface TransportRoutesOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated .OsmAnd.OBF.TransportRoute routes = 6; + java.util.List + getRoutesList(); + net.osmand.binary.OsmandOdb.TransportRoute getRoutes(int index); + int getRoutesCount(); + java.util.List + getRoutesOrBuilderList(); + net.osmand.binary.OsmandOdb.TransportRouteOrBuilder getRoutesOrBuilder( + int index); + } public static final class TransportRoutes extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements TransportRoutesOrBuilder { // Use TransportRoutes.newBuilder() to construct. - private TransportRoutes() { - initFields(); + private TransportRoutes(Builder builder) { + super(builder); } private TransportRoutes(boolean noInit) {} @@ -10382,30 +19094,48 @@ public final class OsmandOdb { // repeated .OsmAnd.OBF.TransportRoute routes = 6; public static final int ROUTES_FIELD_NUMBER = 6; - private java.util.List routes_ = - java.util.Collections.emptyList(); + private java.util.List routes_; public java.util.List getRoutesList() { return routes_; } - public int getRoutesCount() { return routes_.size(); } + public java.util.List + getRoutesOrBuilderList() { + return routes_; + } + public int getRoutesCount() { + return routes_.size(); + } public net.osmand.binary.OsmandOdb.TransportRoute getRoutes(int index) { return routes_.get(index); } + public net.osmand.binary.OsmandOdb.TransportRouteOrBuilder getRoutesOrBuilder( + int index) { + return routes_.get(index); + } private void initFields() { + routes_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - for (net.osmand.binary.OsmandOdb.TransportRoute element : getRoutesList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getRoutesCount(); i++) { + if (!getRoutes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - for (net.osmand.binary.OsmandOdb.TransportRoute element : getRoutesList()) { - output.writeMessage(6, element); + for (int i = 0; i < routes_.size(); i++) { + output.writeMessage(6, routes_.get(i)); } getUnknownFields().writeTo(output); } @@ -10416,15 +19146,22 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - for (net.osmand.binary.OsmandOdb.TransportRoute element : getRoutesList()) { + for (int i = 0; i < routes_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, element); + .computeMessageSize(6, routes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.TransportRoutes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10499,34 +19236,56 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.TransportRoutes result; - - // Construct using net.osmand.binary.OsmandOdb.TransportRoutes.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.TransportRoutes(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoutes_descriptor; } - protected net.osmand.binary.OsmandOdb.TransportRoutes internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoutes_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.TransportRoutes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getRoutesFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + if (routesBuilder_ == null) { + routes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + routesBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.TransportRoutes(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -10538,37 +19297,38 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.TransportRoutes build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.TransportRoutes result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.TransportRoutes buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.TransportRoutes result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.TransportRoutes buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.TransportRoutes result = new net.osmand.binary.OsmandOdb.TransportRoutes(this); + int from_bitField0_ = bitField0_; + if (routesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + routes_ = java.util.Collections.unmodifiableList(routes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.routes_ = routes_; + } else { + result.routes_ = routesBuilder_.build(); } - if (result.routes_ != java.util.Collections.EMPTY_LIST) { - result.routes_ = - java.util.Collections.unmodifiableList(result.routes_); - } - net.osmand.binary.OsmandOdb.TransportRoutes returnMe = result; - result = null; - return returnMe; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -10582,16 +19342,46 @@ public final class OsmandOdb { public Builder mergeFrom(net.osmand.binary.OsmandOdb.TransportRoutes other) { if (other == net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance()) return this; - if (!other.routes_.isEmpty()) { - if (result.routes_.isEmpty()) { - result.routes_ = new java.util.ArrayList(); + if (routesBuilder_ == null) { + if (!other.routes_.isEmpty()) { + if (routes_.isEmpty()) { + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRoutesIsMutable(); + routes_.addAll(other.routes_); + } + onChanged(); + } + } else { + if (!other.routes_.isEmpty()) { + if (routesBuilder_.isEmpty()) { + routesBuilder_.dispose(); + routesBuilder_ = null; + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00000001); + routesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRoutesFieldBuilder() : null; + } else { + routesBuilder_.addAllMessages(other.routes_); + } } - result.routes_.addAll(other.routes_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + for (int i = 0; i < getRoutesCount(); i++) { + if (!getRoutes(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10604,11 +19394,13 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; @@ -10623,75 +19415,262 @@ public final class OsmandOdb { } } + private int bitField0_; // repeated .OsmAnd.OBF.TransportRoute routes = 6; + private java.util.List routes_ = + java.util.Collections.emptyList(); + private void ensureRoutesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + routes_ = new java.util.ArrayList(routes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRoute, net.osmand.binary.OsmandOdb.TransportRoute.Builder, net.osmand.binary.OsmandOdb.TransportRouteOrBuilder> routesBuilder_; + public java.util.List getRoutesList() { - return java.util.Collections.unmodifiableList(result.routes_); + if (routesBuilder_ == null) { + return java.util.Collections.unmodifiableList(routes_); + } else { + return routesBuilder_.getMessageList(); + } } public int getRoutesCount() { - return result.getRoutesCount(); + if (routesBuilder_ == null) { + return routes_.size(); + } else { + return routesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.TransportRoute getRoutes(int index) { - return result.getRoutes(index); - } - public Builder setRoutes(int index, net.osmand.binary.OsmandOdb.TransportRoute value) { - if (value == null) { - throw new NullPointerException(); + if (routesBuilder_ == null) { + return routes_.get(index); + } else { + return routesBuilder_.getMessage(index); + } + } + public Builder setRoutes( + int index, net.osmand.binary.OsmandOdb.TransportRoute value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.set(index, value); + onChanged(); + } else { + routesBuilder_.setMessage(index, value); } - result.routes_.set(index, value); return this; } - public Builder setRoutes(int index, net.osmand.binary.OsmandOdb.TransportRoute.Builder builderForValue) { - result.routes_.set(index, builderForValue.build()); + public Builder setRoutes( + int index, net.osmand.binary.OsmandOdb.TransportRoute.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.set(index, builderForValue.build()); + onChanged(); + } else { + routesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addRoutes(net.osmand.binary.OsmandOdb.TransportRoute value) { - if (value == null) { - throw new NullPointerException(); + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.add(value); + onChanged(); + } else { + routesBuilder_.addMessage(value); } - if (result.routes_.isEmpty()) { - result.routes_ = new java.util.ArrayList(); - } - result.routes_.add(value); return this; } - public Builder addRoutes(net.osmand.binary.OsmandOdb.TransportRoute.Builder builderForValue) { - if (result.routes_.isEmpty()) { - result.routes_ = new java.util.ArrayList(); + public Builder addRoutes( + int index, net.osmand.binary.OsmandOdb.TransportRoute value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.add(index, value); + onChanged(); + } else { + routesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addRoutes( + net.osmand.binary.OsmandOdb.TransportRoute.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(builderForValue.build()); + onChanged(); + } else { + routesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addRoutes( + int index, net.osmand.binary.OsmandOdb.TransportRoute.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(index, builderForValue.build()); + onChanged(); + } else { + routesBuilder_.addMessage(index, builderForValue.build()); } - result.routes_.add(builderForValue.build()); return this; } public Builder addAllRoutes( java.lang.Iterable values) { - if (result.routes_.isEmpty()) { - result.routes_ = new java.util.ArrayList(); + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + super.addAll(values, routes_); + onChanged(); + } else { + routesBuilder_.addAllMessages(values); } - super.addAll(values, result.routes_); return this; } public Builder clearRoutes() { - result.routes_ = java.util.Collections.emptyList(); + if (routesBuilder_ == null) { + routes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + routesBuilder_.clear(); + } return this; } + public Builder removeRoutes(int index) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.remove(index); + onChanged(); + } else { + routesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.TransportRoute.Builder getRoutesBuilder( + int index) { + return getRoutesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.TransportRouteOrBuilder getRoutesOrBuilder( + int index) { + if (routesBuilder_ == null) { + return routes_.get(index); } else { + return routesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getRoutesOrBuilderList() { + if (routesBuilder_ != null) { + return routesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(routes_); + } + } + public net.osmand.binary.OsmandOdb.TransportRoute.Builder addRoutesBuilder() { + return getRoutesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.TransportRoute.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.TransportRoute.Builder addRoutesBuilder( + int index) { + return getRoutesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.TransportRoute.getDefaultInstance()); + } + public java.util.List + getRoutesBuilderList() { + return getRoutesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRoute, net.osmand.binary.OsmandOdb.TransportRoute.Builder, net.osmand.binary.OsmandOdb.TransportRouteOrBuilder> + getRoutesFieldBuilder() { + if (routesBuilder_ == null) { + routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRoute, net.osmand.binary.OsmandOdb.TransportRoute.Builder, net.osmand.binary.OsmandOdb.TransportRouteOrBuilder>( + routes_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + routes_ = null; + } + return routesBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.TransportRoutes) } static { defaultInstance = new TransportRoutes(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportRoutes) } + public interface TransportRouteOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint64 id = 1; + boolean hasId(); + long getId(); + + // optional uint32 type = 3; + boolean hasType(); + int getType(); + + // optional uint32 operator = 4; + boolean hasOperator(); + int getOperator(); + + // optional string ref = 5; + boolean hasRef(); + String getRef(); + + // optional uint32 name = 6; + boolean hasName(); + int getName(); + + // optional uint32 name_en = 7; + boolean hasNameEn(); + int getNameEn(); + + // optional uint32 distance = 8; + boolean hasDistance(); + int getDistance(); + + // repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; + java.util.List + getDirectStopsList(); + net.osmand.binary.OsmandOdb.TransportRouteStop getDirectStops(int index); + int getDirectStopsCount(); + java.util.List + getDirectStopsOrBuilderList(); + net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getDirectStopsOrBuilder( + int index); + + // repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; + java.util.List + getReverseStopsList(); + net.osmand.binary.OsmandOdb.TransportRouteStop getReverseStops(int index); + int getReverseStopsCount(); + java.util.List + getReverseStopsOrBuilderList(); + net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getReverseStopsOrBuilder( + int index); + } public static final class TransportRoute extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements TransportRouteOrBuilder { // Use TransportRoute.newBuilder() to construct. - private TransportRoute() { - initFields(); + private TransportRoute(Builder builder) { + super(builder); } private TransportRoute(boolean noInit) {} @@ -10714,121 +19693,206 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoute_fieldAccessorTable; } + private int bitField0_; // required uint64 id = 1; public static final int ID_FIELD_NUMBER = 1; - private boolean hasId; - private long id_ = 0L; - public boolean hasId() { return hasId; } - public long getId() { return id_; } + private long id_; + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public long getId() { + return id_; + } // optional uint32 type = 3; public static final int TYPE_FIELD_NUMBER = 3; - private boolean hasType; - private int type_ = 0; - public boolean hasType() { return hasType; } - public int getType() { return type_; } + private int type_; + public boolean hasType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getType() { + return type_; + } // optional uint32 operator = 4; public static final int OPERATOR_FIELD_NUMBER = 4; - private boolean hasOperator; - private int operator_ = 0; - public boolean hasOperator() { return hasOperator; } - public int getOperator() { return operator_; } + private int operator_; + public boolean hasOperator() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getOperator() { + return operator_; + } // optional string ref = 5; public static final int REF_FIELD_NUMBER = 5; - private boolean hasRef; - private java.lang.String ref_ = ""; - public boolean hasRef() { return hasRef; } - public java.lang.String getRef() { return ref_; } + private java.lang.Object ref_; + public boolean hasRef() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public String getRef() { + java.lang.Object ref = ref_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + ref_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional uint32 name = 6; public static final int NAME_FIELD_NUMBER = 6; - private boolean hasName; - private int name_ = 0; - public boolean hasName() { return hasName; } - public int getName() { return name_; } + private int name_; + public boolean hasName() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getName() { + return name_; + } // optional uint32 name_en = 7; public static final int NAME_EN_FIELD_NUMBER = 7; - private boolean hasNameEn; - private int nameEn_ = 0; - public boolean hasNameEn() { return hasNameEn; } - public int getNameEn() { return nameEn_; } + private int nameEn_; + public boolean hasNameEn() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getNameEn() { + return nameEn_; + } // optional uint32 distance = 8; public static final int DISTANCE_FIELD_NUMBER = 8; - private boolean hasDistance; - private int distance_ = 0; - public boolean hasDistance() { return hasDistance; } - public int getDistance() { return distance_; } + private int distance_; + public boolean hasDistance() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public int getDistance() { + return distance_; + } // repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; public static final int DIRECTSTOPS_FIELD_NUMBER = 15; - private java.util.List directStops_ = - java.util.Collections.emptyList(); + private java.util.List directStops_; public java.util.List getDirectStopsList() { return directStops_; } - public int getDirectStopsCount() { return directStops_.size(); } + public java.util.List + getDirectStopsOrBuilderList() { + return directStops_; + } + public int getDirectStopsCount() { + return directStops_.size(); + } public net.osmand.binary.OsmandOdb.TransportRouteStop getDirectStops(int index) { return directStops_.get(index); } + public net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getDirectStopsOrBuilder( + int index) { + return directStops_.get(index); + } // repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; public static final int REVERSESTOPS_FIELD_NUMBER = 16; - private java.util.List reverseStops_ = - java.util.Collections.emptyList(); + private java.util.List reverseStops_; public java.util.List getReverseStopsList() { return reverseStops_; } - public int getReverseStopsCount() { return reverseStops_.size(); } + public java.util.List + getReverseStopsOrBuilderList() { + return reverseStops_; + } + public int getReverseStopsCount() { + return reverseStops_.size(); + } public net.osmand.binary.OsmandOdb.TransportRouteStop getReverseStops(int index) { return reverseStops_.get(index); } + public net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getReverseStopsOrBuilder( + int index) { + return reverseStops_.get(index); + } private void initFields() { + id_ = 0L; + type_ = 0; + operator_ = 0; + ref_ = ""; + name_ = 0; + nameEn_ = 0; + distance_ = 0; + directStops_ = java.util.Collections.emptyList(); + reverseStops_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasId) return false; - for (net.osmand.binary.OsmandOdb.TransportRouteStop element : getDirectStopsList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasId()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.TransportRouteStop element : getReverseStopsList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getDirectStopsCount(); i++) { + if (!getDirectStops(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + for (int i = 0; i < getReverseStopsCount(); i++) { + if (!getReverseStops(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasId()) { - output.writeUInt64(1, getId()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(1, id_); } - if (hasType()) { - output.writeUInt32(3, getType()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(3, type_); } - if (hasOperator()) { - output.writeUInt32(4, getOperator()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(4, operator_); } - if (hasRef()) { - output.writeString(5, getRef()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(5, getRefBytes()); } - if (hasName()) { - output.writeUInt32(6, getName()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(6, name_); } - if (hasNameEn()) { - output.writeUInt32(7, getNameEn()); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeUInt32(7, nameEn_); } - if (hasDistance()) { - output.writeUInt32(8, getDistance()); + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeUInt32(8, distance_); } - for (net.osmand.binary.OsmandOdb.TransportRouteStop element : getDirectStopsList()) { - output.writeMessage(15, element); + for (int i = 0; i < directStops_.size(); i++) { + output.writeMessage(15, directStops_.get(i)); } - for (net.osmand.binary.OsmandOdb.TransportRouteStop element : getReverseStopsList()) { - output.writeMessage(16, element); + for (int i = 0; i < reverseStops_.size(); i++) { + output.writeMessage(16, reverseStops_.get(i)); } getUnknownFields().writeTo(output); } @@ -10839,47 +19903,54 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasId()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, getId()); + .computeUInt64Size(1, id_); } - if (hasType()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, getType()); + .computeUInt32Size(3, type_); } - if (hasOperator()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, getOperator()); + .computeUInt32Size(4, operator_); } - if (hasRef()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getRef()); + .computeBytesSize(5, getRefBytes()); } - if (hasName()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, getName()); + .computeUInt32Size(6, name_); } - if (hasNameEn()) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, getNameEn()); + .computeUInt32Size(7, nameEn_); } - if (hasDistance()) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, getDistance()); + .computeUInt32Size(8, distance_); } - for (net.osmand.binary.OsmandOdb.TransportRouteStop element : getDirectStopsList()) { + for (int i = 0; i < directStops_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, element); + .computeMessageSize(15, directStops_.get(i)); } - for (net.osmand.binary.OsmandOdb.TransportRouteStop element : getReverseStopsList()) { + for (int i = 0; i < reverseStops_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, element); + .computeMessageSize(16, reverseStops_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.TransportRoute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10954,34 +20025,77 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.TransportRoute result; - - // Construct using net.osmand.binary.OsmandOdb.TransportRoute.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.TransportRoute(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.TransportRouteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoute_descriptor; } - protected net.osmand.binary.OsmandOdb.TransportRoute internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoute_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.TransportRoute.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getDirectStopsFieldBuilder(); + getReverseStopsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + operator_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + ref_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + name_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + nameEn_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + distance_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + if (directStopsBuilder_ == null) { + directStops_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + directStopsBuilder_.clear(); + } + if (reverseStopsBuilder_ == null) { + reverseStops_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + } else { + reverseStopsBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.TransportRoute(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -10993,41 +20107,77 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.TransportRoute.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.TransportRoute build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.TransportRoute result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.TransportRoute buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.TransportRoute result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.TransportRoute buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.TransportRoute result = new net.osmand.binary.OsmandOdb.TransportRoute(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.directStops_ != java.util.Collections.EMPTY_LIST) { - result.directStops_ = - java.util.Collections.unmodifiableList(result.directStops_); + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - if (result.reverseStops_ != java.util.Collections.EMPTY_LIST) { - result.reverseStops_ = - java.util.Collections.unmodifiableList(result.reverseStops_); + result.type_ = type_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - net.osmand.binary.OsmandOdb.TransportRoute returnMe = result; - result = null; - return returnMe; + result.operator_ = operator_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.ref_ = ref_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.nameEn_ = nameEn_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.distance_ = distance_; + if (directStopsBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + directStops_ = java.util.Collections.unmodifiableList(directStops_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.directStops_ = directStops_; + } else { + result.directStops_ = directStopsBuilder_.build(); + } + if (reverseStopsBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { + reverseStops_ = java.util.Collections.unmodifiableList(reverseStops_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.reverseStops_ = reverseStops_; + } else { + result.reverseStops_ = reverseStopsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -11062,22 +20212,82 @@ public final class OsmandOdb { if (other.hasDistance()) { setDistance(other.getDistance()); } - if (!other.directStops_.isEmpty()) { - if (result.directStops_.isEmpty()) { - result.directStops_ = new java.util.ArrayList(); + if (directStopsBuilder_ == null) { + if (!other.directStops_.isEmpty()) { + if (directStops_.isEmpty()) { + directStops_ = other.directStops_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureDirectStopsIsMutable(); + directStops_.addAll(other.directStops_); + } + onChanged(); + } + } else { + if (!other.directStops_.isEmpty()) { + if (directStopsBuilder_.isEmpty()) { + directStopsBuilder_.dispose(); + directStopsBuilder_ = null; + directStops_ = other.directStops_; + bitField0_ = (bitField0_ & ~0x00000080); + directStopsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getDirectStopsFieldBuilder() : null; + } else { + directStopsBuilder_.addAllMessages(other.directStops_); + } } - result.directStops_.addAll(other.directStops_); } - if (!other.reverseStops_.isEmpty()) { - if (result.reverseStops_.isEmpty()) { - result.reverseStops_ = new java.util.ArrayList(); + if (reverseStopsBuilder_ == null) { + if (!other.reverseStops_.isEmpty()) { + if (reverseStops_.isEmpty()) { + reverseStops_ = other.reverseStops_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureReverseStopsIsMutable(); + reverseStops_.addAll(other.reverseStops_); + } + onChanged(); + } + } else { + if (!other.reverseStops_.isEmpty()) { + if (reverseStopsBuilder_.isEmpty()) { + reverseStopsBuilder_.dispose(); + reverseStopsBuilder_ = null; + reverseStops_ = other.reverseStops_; + bitField0_ = (bitField0_ & ~0x00000100); + reverseStopsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getReverseStopsFieldBuilder() : null; + } else { + reverseStopsBuilder_.addAllMessages(other.reverseStops_); + } } - result.reverseStops_.addAll(other.reverseStops_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasId()) { + + return false; + } + for (int i = 0; i < getDirectStopsCount(); i++) { + if (!getDirectStops(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getReverseStopsCount(); i++) { + if (!getReverseStops(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -11090,41 +20300,50 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setId(input.readUInt64()); + bitField0_ |= 0x00000001; + id_ = input.readUInt64(); break; } case 24: { - setType(input.readUInt32()); + bitField0_ |= 0x00000002; + type_ = input.readUInt32(); break; } case 32: { - setOperator(input.readUInt32()); + bitField0_ |= 0x00000004; + operator_ = input.readUInt32(); break; } case 42: { - setRef(input.readString()); + bitField0_ |= 0x00000008; + ref_ = input.readBytes(); break; } case 48: { - setName(input.readUInt32()); + bitField0_ |= 0x00000010; + name_ = input.readUInt32(); break; } case 56: { - setNameEn(input.readUInt32()); + bitField0_ |= 0x00000020; + nameEn_ = input.readUInt32(); break; } case 64: { - setDistance(input.readUInt32()); + bitField0_ |= 0x00000040; + distance_ = input.readUInt32(); break; } case 122: { @@ -11143,255 +20362,582 @@ public final class OsmandOdb { } } + private int bitField0_; // required uint64 id = 1; + private long id_ ; public boolean hasId() { - return result.hasId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public long getId() { - return result.getId(); + return id_; } public Builder setId(long value) { - result.hasId = true; - result.id_ = value; + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); return this; } public Builder clearId() { - result.hasId = false; - result.id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0L; + onChanged(); return this; } // optional uint32 type = 3; + private int type_ ; public boolean hasType() { - return result.hasType(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getType() { - return result.getType(); + return type_; } public Builder setType(int value) { - result.hasType = true; - result.type_ = value; + bitField0_ |= 0x00000002; + type_ = value; + onChanged(); return this; } public Builder clearType() { - result.hasType = false; - result.type_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); return this; } // optional uint32 operator = 4; + private int operator_ ; public boolean hasOperator() { - return result.hasOperator(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getOperator() { - return result.getOperator(); + return operator_; } public Builder setOperator(int value) { - result.hasOperator = true; - result.operator_ = value; + bitField0_ |= 0x00000004; + operator_ = value; + onChanged(); return this; } public Builder clearOperator() { - result.hasOperator = false; - result.operator_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + operator_ = 0; + onChanged(); return this; } // optional string ref = 5; + private java.lang.Object ref_ = ""; public boolean hasRef() { - return result.hasRef(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - public java.lang.String getRef() { - return result.getRef(); + public String getRef() { + java.lang.Object ref = ref_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + ref_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setRef(java.lang.String value) { + public Builder setRef(String value) { if (value == null) { throw new NullPointerException(); } - result.hasRef = true; - result.ref_ = value; + bitField0_ |= 0x00000008; + ref_ = value; + onChanged(); return this; } public Builder clearRef() { - result.hasRef = false; - result.ref_ = getDefaultInstance().getRef(); + bitField0_ = (bitField0_ & ~0x00000008); + ref_ = getDefaultInstance().getRef(); + onChanged(); return this; } + void setRef(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000008; + ref_ = value; + onChanged(); + } // optional uint32 name = 6; + private int name_ ; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public int getName() { - return result.getName(); + return name_; } public Builder setName(int value) { - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000010; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + name_ = 0; + onChanged(); return this; } // optional uint32 name_en = 7; + private int nameEn_ ; public boolean hasNameEn() { - return result.hasNameEn(); + return ((bitField0_ & 0x00000020) == 0x00000020); } public int getNameEn() { - return result.getNameEn(); + return nameEn_; } public Builder setNameEn(int value) { - result.hasNameEn = true; - result.nameEn_ = value; + bitField0_ |= 0x00000020; + nameEn_ = value; + onChanged(); return this; } public Builder clearNameEn() { - result.hasNameEn = false; - result.nameEn_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + nameEn_ = 0; + onChanged(); return this; } // optional uint32 distance = 8; + private int distance_ ; public boolean hasDistance() { - return result.hasDistance(); + return ((bitField0_ & 0x00000040) == 0x00000040); } public int getDistance() { - return result.getDistance(); + return distance_; } public Builder setDistance(int value) { - result.hasDistance = true; - result.distance_ = value; + bitField0_ |= 0x00000040; + distance_ = value; + onChanged(); return this; } public Builder clearDistance() { - result.hasDistance = false; - result.distance_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + distance_ = 0; + onChanged(); return this; } // repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; + private java.util.List directStops_ = + java.util.Collections.emptyList(); + private void ensureDirectStopsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + directStops_ = new java.util.ArrayList(directStops_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> directStopsBuilder_; + public java.util.List getDirectStopsList() { - return java.util.Collections.unmodifiableList(result.directStops_); + if (directStopsBuilder_ == null) { + return java.util.Collections.unmodifiableList(directStops_); + } else { + return directStopsBuilder_.getMessageList(); + } } public int getDirectStopsCount() { - return result.getDirectStopsCount(); + if (directStopsBuilder_ == null) { + return directStops_.size(); + } else { + return directStopsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.TransportRouteStop getDirectStops(int index) { - return result.getDirectStops(index); - } - public Builder setDirectStops(int index, net.osmand.binary.OsmandOdb.TransportRouteStop value) { - if (value == null) { - throw new NullPointerException(); + if (directStopsBuilder_ == null) { + return directStops_.get(index); + } else { + return directStopsBuilder_.getMessage(index); + } + } + public Builder setDirectStops( + int index, net.osmand.binary.OsmandOdb.TransportRouteStop value) { + if (directStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDirectStopsIsMutable(); + directStops_.set(index, value); + onChanged(); + } else { + directStopsBuilder_.setMessage(index, value); } - result.directStops_.set(index, value); return this; } - public Builder setDirectStops(int index, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { - result.directStops_.set(index, builderForValue.build()); + public Builder setDirectStops( + int index, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { + if (directStopsBuilder_ == null) { + ensureDirectStopsIsMutable(); + directStops_.set(index, builderForValue.build()); + onChanged(); + } else { + directStopsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addDirectStops(net.osmand.binary.OsmandOdb.TransportRouteStop value) { - if (value == null) { - throw new NullPointerException(); + if (directStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDirectStopsIsMutable(); + directStops_.add(value); + onChanged(); + } else { + directStopsBuilder_.addMessage(value); } - if (result.directStops_.isEmpty()) { - result.directStops_ = new java.util.ArrayList(); - } - result.directStops_.add(value); return this; } - public Builder addDirectStops(net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { - if (result.directStops_.isEmpty()) { - result.directStops_ = new java.util.ArrayList(); + public Builder addDirectStops( + int index, net.osmand.binary.OsmandOdb.TransportRouteStop value) { + if (directStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDirectStopsIsMutable(); + directStops_.add(index, value); + onChanged(); + } else { + directStopsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addDirectStops( + net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { + if (directStopsBuilder_ == null) { + ensureDirectStopsIsMutable(); + directStops_.add(builderForValue.build()); + onChanged(); + } else { + directStopsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addDirectStops( + int index, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { + if (directStopsBuilder_ == null) { + ensureDirectStopsIsMutable(); + directStops_.add(index, builderForValue.build()); + onChanged(); + } else { + directStopsBuilder_.addMessage(index, builderForValue.build()); } - result.directStops_.add(builderForValue.build()); return this; } public Builder addAllDirectStops( java.lang.Iterable values) { - if (result.directStops_.isEmpty()) { - result.directStops_ = new java.util.ArrayList(); + if (directStopsBuilder_ == null) { + ensureDirectStopsIsMutable(); + super.addAll(values, directStops_); + onChanged(); + } else { + directStopsBuilder_.addAllMessages(values); } - super.addAll(values, result.directStops_); return this; } public Builder clearDirectStops() { - result.directStops_ = java.util.Collections.emptyList(); + if (directStopsBuilder_ == null) { + directStops_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + directStopsBuilder_.clear(); + } return this; } + public Builder removeDirectStops(int index) { + if (directStopsBuilder_ == null) { + ensureDirectStopsIsMutable(); + directStops_.remove(index); + onChanged(); + } else { + directStopsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder getDirectStopsBuilder( + int index) { + return getDirectStopsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getDirectStopsOrBuilder( + int index) { + if (directStopsBuilder_ == null) { + return directStops_.get(index); } else { + return directStopsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getDirectStopsOrBuilderList() { + if (directStopsBuilder_ != null) { + return directStopsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(directStops_); + } + } + public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addDirectStopsBuilder() { + return getDirectStopsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addDirectStopsBuilder( + int index) { + return getDirectStopsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); + } + public java.util.List + getDirectStopsBuilderList() { + return getDirectStopsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> + getDirectStopsFieldBuilder() { + if (directStopsBuilder_ == null) { + directStopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder>( + directStops_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + directStops_ = null; + } + return directStopsBuilder_; + } // repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; + private java.util.List reverseStops_ = + java.util.Collections.emptyList(); + private void ensureReverseStopsIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + reverseStops_ = new java.util.ArrayList(reverseStops_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> reverseStopsBuilder_; + public java.util.List getReverseStopsList() { - return java.util.Collections.unmodifiableList(result.reverseStops_); + if (reverseStopsBuilder_ == null) { + return java.util.Collections.unmodifiableList(reverseStops_); + } else { + return reverseStopsBuilder_.getMessageList(); + } } public int getReverseStopsCount() { - return result.getReverseStopsCount(); + if (reverseStopsBuilder_ == null) { + return reverseStops_.size(); + } else { + return reverseStopsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.TransportRouteStop getReverseStops(int index) { - return result.getReverseStops(index); - } - public Builder setReverseStops(int index, net.osmand.binary.OsmandOdb.TransportRouteStop value) { - if (value == null) { - throw new NullPointerException(); + if (reverseStopsBuilder_ == null) { + return reverseStops_.get(index); + } else { + return reverseStopsBuilder_.getMessage(index); + } + } + public Builder setReverseStops( + int index, net.osmand.binary.OsmandOdb.TransportRouteStop value) { + if (reverseStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReverseStopsIsMutable(); + reverseStops_.set(index, value); + onChanged(); + } else { + reverseStopsBuilder_.setMessage(index, value); } - result.reverseStops_.set(index, value); return this; } - public Builder setReverseStops(int index, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { - result.reverseStops_.set(index, builderForValue.build()); + public Builder setReverseStops( + int index, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { + if (reverseStopsBuilder_ == null) { + ensureReverseStopsIsMutable(); + reverseStops_.set(index, builderForValue.build()); + onChanged(); + } else { + reverseStopsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addReverseStops(net.osmand.binary.OsmandOdb.TransportRouteStop value) { - if (value == null) { - throw new NullPointerException(); + if (reverseStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReverseStopsIsMutable(); + reverseStops_.add(value); + onChanged(); + } else { + reverseStopsBuilder_.addMessage(value); } - if (result.reverseStops_.isEmpty()) { - result.reverseStops_ = new java.util.ArrayList(); - } - result.reverseStops_.add(value); return this; } - public Builder addReverseStops(net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { - if (result.reverseStops_.isEmpty()) { - result.reverseStops_ = new java.util.ArrayList(); + public Builder addReverseStops( + int index, net.osmand.binary.OsmandOdb.TransportRouteStop value) { + if (reverseStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReverseStopsIsMutable(); + reverseStops_.add(index, value); + onChanged(); + } else { + reverseStopsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addReverseStops( + net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { + if (reverseStopsBuilder_ == null) { + ensureReverseStopsIsMutable(); + reverseStops_.add(builderForValue.build()); + onChanged(); + } else { + reverseStopsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addReverseStops( + int index, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { + if (reverseStopsBuilder_ == null) { + ensureReverseStopsIsMutable(); + reverseStops_.add(index, builderForValue.build()); + onChanged(); + } else { + reverseStopsBuilder_.addMessage(index, builderForValue.build()); } - result.reverseStops_.add(builderForValue.build()); return this; } public Builder addAllReverseStops( java.lang.Iterable values) { - if (result.reverseStops_.isEmpty()) { - result.reverseStops_ = new java.util.ArrayList(); + if (reverseStopsBuilder_ == null) { + ensureReverseStopsIsMutable(); + super.addAll(values, reverseStops_); + onChanged(); + } else { + reverseStopsBuilder_.addAllMessages(values); } - super.addAll(values, result.reverseStops_); return this; } public Builder clearReverseStops() { - result.reverseStops_ = java.util.Collections.emptyList(); + if (reverseStopsBuilder_ == null) { + reverseStops_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + reverseStopsBuilder_.clear(); + } return this; } + public Builder removeReverseStops(int index) { + if (reverseStopsBuilder_ == null) { + ensureReverseStopsIsMutable(); + reverseStops_.remove(index); + onChanged(); + } else { + reverseStopsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder getReverseStopsBuilder( + int index) { + return getReverseStopsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getReverseStopsOrBuilder( + int index) { + if (reverseStopsBuilder_ == null) { + return reverseStops_.get(index); } else { + return reverseStopsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getReverseStopsOrBuilderList() { + if (reverseStopsBuilder_ != null) { + return reverseStopsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reverseStops_); + } + } + public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addReverseStopsBuilder() { + return getReverseStopsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addReverseStopsBuilder( + int index) { + return getReverseStopsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); + } + public java.util.List + getReverseStopsBuilderList() { + return getReverseStopsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> + getReverseStopsFieldBuilder() { + if (reverseStopsBuilder_ == null) { + reverseStopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder>( + reverseStops_, + ((bitField0_ & 0x00000100) == 0x00000100), + getParentForChildren(), + isClean()); + reverseStops_ = null; + } + return reverseStopsBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.TransportRoute) } static { defaultInstance = new TransportRoute(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportRoute) } + public interface TransportRouteStopOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required sint64 id = 1; + boolean hasId(); + long getId(); + + // required sint32 dx = 2; + boolean hasDx(); + int getDx(); + + // required sint32 dy = 3; + boolean hasDy(); + int getDy(); + + // required uint32 name = 6; + boolean hasName(); + int getName(); + + // optional uint32 name_en = 7; + boolean hasNameEn(); + int getNameEn(); + } public static final class TransportRouteStop extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements TransportRouteStopOrBuilder { // Use TransportRouteStop.newBuilder() to construct. - private TransportRouteStop() { - initFields(); + private TransportRouteStop(Builder builder) { + super(builder); } private TransportRouteStop(boolean noInit) {} @@ -11414,68 +20960,106 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteStop_fieldAccessorTable; } + private int bitField0_; // required sint64 id = 1; public static final int ID_FIELD_NUMBER = 1; - private boolean hasId; - private long id_ = 0L; - public boolean hasId() { return hasId; } - public long getId() { return id_; } + private long id_; + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public long getId() { + return id_; + } // required sint32 dx = 2; public static final int DX_FIELD_NUMBER = 2; - private boolean hasDx; - private int dx_ = 0; - public boolean hasDx() { return hasDx; } - public int getDx() { return dx_; } + private int dx_; + public boolean hasDx() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getDx() { + return dx_; + } // required sint32 dy = 3; public static final int DY_FIELD_NUMBER = 3; - private boolean hasDy; - private int dy_ = 0; - public boolean hasDy() { return hasDy; } - public int getDy() { return dy_; } + private int dy_; + public boolean hasDy() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getDy() { + return dy_; + } // required uint32 name = 6; public static final int NAME_FIELD_NUMBER = 6; - private boolean hasName; - private int name_ = 0; - public boolean hasName() { return hasName; } - public int getName() { return name_; } + private int name_; + public boolean hasName() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getName() { + return name_; + } // optional uint32 name_en = 7; public static final int NAME_EN_FIELD_NUMBER = 7; - private boolean hasNameEn; - private int nameEn_ = 0; - public boolean hasNameEn() { return hasNameEn; } - public int getNameEn() { return nameEn_; } + private int nameEn_; + public boolean hasNameEn() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getNameEn() { + return nameEn_; + } private void initFields() { + id_ = 0L; + dx_ = 0; + dy_ = 0; + name_ = 0; + nameEn_ = 0; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasId) return false; - if (!hasDx) return false; - if (!hasDy) return false; - if (!hasName) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDx()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDy()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasId()) { - output.writeSInt64(1, getId()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeSInt64(1, id_); } - if (hasDx()) { - output.writeSInt32(2, getDx()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeSInt32(2, dx_); } - if (hasDy()) { - output.writeSInt32(3, getDy()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeSInt32(3, dy_); } - if (hasName()) { - output.writeUInt32(6, getName()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(6, name_); } - if (hasNameEn()) { - output.writeUInt32(7, getNameEn()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(7, nameEn_); } getUnknownFields().writeTo(output); } @@ -11486,31 +21070,38 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasId()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, getId()); + .computeSInt64Size(1, id_); } - if (hasDx()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(2, getDx()); + .computeSInt32Size(2, dx_); } - if (hasDy()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(3, getDy()); + .computeSInt32Size(3, dy_); } - if (hasName()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, getName()); + .computeUInt32Size(6, name_); } - if (hasNameEn()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, getNameEn()); + .computeUInt32Size(7, nameEn_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.TransportRouteStop parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -11585,34 +21176,59 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.TransportRouteStop result; - - // Construct using net.osmand.binary.OsmandOdb.TransportRouteStop.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.TransportRouteStop(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteStop_descriptor; } - protected net.osmand.binary.OsmandOdb.TransportRouteStop internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteStop_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.TransportRouteStop.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.TransportRouteStop(); + super.clear(); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + dx_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + dy_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + name_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + nameEn_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -11624,33 +21240,51 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.TransportRouteStop build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.TransportRouteStop result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.TransportRouteStop buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.TransportRouteStop result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.TransportRouteStop buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.TransportRouteStop result = new net.osmand.binary.OsmandOdb.TransportRouteStop(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.TransportRouteStop returnMe = result; - result = null; - return returnMe; + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.dx_ = dx_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.dy_ = dy_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.nameEn_ = nameEn_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -11683,6 +21317,26 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasId()) { + + return false; + } + if (!hasDx()) { + + return false; + } + if (!hasDy()) { + + return false; + } + if (!hasName()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -11695,127 +21349,150 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setId(input.readSInt64()); + bitField0_ |= 0x00000001; + id_ = input.readSInt64(); break; } case 16: { - setDx(input.readSInt32()); + bitField0_ |= 0x00000002; + dx_ = input.readSInt32(); break; } case 24: { - setDy(input.readSInt32()); + bitField0_ |= 0x00000004; + dy_ = input.readSInt32(); break; } case 48: { - setName(input.readUInt32()); + bitField0_ |= 0x00000008; + name_ = input.readUInt32(); break; } case 56: { - setNameEn(input.readUInt32()); + bitField0_ |= 0x00000010; + nameEn_ = input.readUInt32(); break; } } } } + private int bitField0_; // required sint64 id = 1; + private long id_ ; public boolean hasId() { - return result.hasId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public long getId() { - return result.getId(); + return id_; } public Builder setId(long value) { - result.hasId = true; - result.id_ = value; + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); return this; } public Builder clearId() { - result.hasId = false; - result.id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0L; + onChanged(); return this; } // required sint32 dx = 2; + private int dx_ ; public boolean hasDx() { - return result.hasDx(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getDx() { - return result.getDx(); + return dx_; } public Builder setDx(int value) { - result.hasDx = true; - result.dx_ = value; + bitField0_ |= 0x00000002; + dx_ = value; + onChanged(); return this; } public Builder clearDx() { - result.hasDx = false; - result.dx_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + dx_ = 0; + onChanged(); return this; } // required sint32 dy = 3; + private int dy_ ; public boolean hasDy() { - return result.hasDy(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getDy() { - return result.getDy(); + return dy_; } public Builder setDy(int value) { - result.hasDy = true; - result.dy_ = value; + bitField0_ |= 0x00000004; + dy_ = value; + onChanged(); return this; } public Builder clearDy() { - result.hasDy = false; - result.dy_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + dy_ = 0; + onChanged(); return this; } // required uint32 name = 6; + private int name_ ; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getName() { - return result.getName(); + return name_; } public Builder setName(int value) { - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000008; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + name_ = 0; + onChanged(); return this; } // optional uint32 name_en = 7; + private int nameEn_ ; public boolean hasNameEn() { - return result.hasNameEn(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public int getNameEn() { - return result.getNameEn(); + return nameEn_; } public Builder setNameEn(int value) { - result.hasNameEn = true; - result.nameEn_ = value; + bitField0_ |= 0x00000010; + nameEn_ = value; + onChanged(); return this; } public Builder clearNameEn() { - result.hasNameEn = false; - result.nameEn_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + nameEn_ = 0; + onChanged(); return this; } @@ -11824,18 +21501,46 @@ public final class OsmandOdb { static { defaultInstance = new TransportRouteStop(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportRouteStop) } + public interface TransportStopOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required sint32 dx = 1; + boolean hasDx(); + int getDx(); + + // required sint32 dy = 2; + boolean hasDy(); + int getDy(); + + // required sint64 id = 5; + boolean hasId(); + long getId(); + + // required uint32 name = 6; + boolean hasName(); + int getName(); + + // optional uint32 name_en = 7; + boolean hasNameEn(); + int getNameEn(); + + // repeated uint32 routes = 16; + java.util.List getRoutesList(); + int getRoutesCount(); + int getRoutes(int index); + } public static final class TransportStop extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements TransportStopOrBuilder { // Use TransportStop.newBuilder() to construct. - private TransportStop() { - initFields(); + private TransportStop(Builder builder) { + super(builder); } private TransportStop(boolean noInit) {} @@ -11858,83 +21563,124 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStop_fieldAccessorTable; } + private int bitField0_; // required sint32 dx = 1; public static final int DX_FIELD_NUMBER = 1; - private boolean hasDx; - private int dx_ = 0; - public boolean hasDx() { return hasDx; } - public int getDx() { return dx_; } + private int dx_; + public boolean hasDx() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getDx() { + return dx_; + } // required sint32 dy = 2; public static final int DY_FIELD_NUMBER = 2; - private boolean hasDy; - private int dy_ = 0; - public boolean hasDy() { return hasDy; } - public int getDy() { return dy_; } + private int dy_; + public boolean hasDy() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getDy() { + return dy_; + } // required sint64 id = 5; public static final int ID_FIELD_NUMBER = 5; - private boolean hasId; - private long id_ = 0L; - public boolean hasId() { return hasId; } - public long getId() { return id_; } + private long id_; + public boolean hasId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public long getId() { + return id_; + } // required uint32 name = 6; public static final int NAME_FIELD_NUMBER = 6; - private boolean hasName; - private int name_ = 0; - public boolean hasName() { return hasName; } - public int getName() { return name_; } + private int name_; + public boolean hasName() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getName() { + return name_; + } // optional uint32 name_en = 7; public static final int NAME_EN_FIELD_NUMBER = 7; - private boolean hasNameEn; - private int nameEn_ = 0; - public boolean hasNameEn() { return hasNameEn; } - public int getNameEn() { return nameEn_; } + private int nameEn_; + public boolean hasNameEn() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getNameEn() { + return nameEn_; + } // repeated uint32 routes = 16; public static final int ROUTES_FIELD_NUMBER = 16; - private java.util.List routes_ = - java.util.Collections.emptyList(); - public java.util.List getRoutesList() { + private java.util.List routes_; + public java.util.List + getRoutesList() { return routes_; } - public int getRoutesCount() { return routes_.size(); } + public int getRoutesCount() { + return routes_.size(); + } public int getRoutes(int index) { return routes_.get(index); } private void initFields() { + dx_ = 0; + dy_ = 0; + id_ = 0L; + name_ = 0; + nameEn_ = 0; + routes_ = java.util.Collections.emptyList();; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasDx) return false; - if (!hasDy) return false; - if (!hasId) return false; - if (!hasName) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasDx()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDy()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasDx()) { - output.writeSInt32(1, getDx()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeSInt32(1, dx_); } - if (hasDy()) { - output.writeSInt32(2, getDy()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeSInt32(2, dy_); } - if (hasId()) { - output.writeSInt64(5, getId()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeSInt64(5, id_); } - if (hasName()) { - output.writeUInt32(6, getName()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(6, name_); } - if (hasNameEn()) { - output.writeUInt32(7, getNameEn()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(7, nameEn_); } - for (int element : getRoutesList()) { - output.writeUInt32(16, element); + for (int i = 0; i < routes_.size(); i++) { + output.writeUInt32(16, routes_.get(i)); } getUnknownFields().writeTo(output); } @@ -11945,31 +21691,31 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasDx()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, getDx()); + .computeSInt32Size(1, dx_); } - if (hasDy()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(2, getDy()); + .computeSInt32Size(2, dy_); } - if (hasId()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(5, getId()); + .computeSInt64Size(5, id_); } - if (hasName()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, getName()); + .computeUInt32Size(6, name_); } - if (hasNameEn()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, getNameEn()); + .computeUInt32Size(7, nameEn_); } { int dataSize = 0; - for (int element : getRoutesList()) { + for (int i = 0; i < routes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(element); + .computeUInt32SizeNoTag(routes_.get(i)); } size += dataSize; size += 2 * getRoutesList().size(); @@ -11979,6 +21725,13 @@ public final class OsmandOdb { return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.TransportStop parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -12053,34 +21806,61 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.TransportStop result; - - // Construct using net.osmand.binary.OsmandOdb.TransportStop.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.TransportStop(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.TransportStopOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStop_descriptor; } - protected net.osmand.binary.OsmandOdb.TransportStop internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStop_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.TransportStop.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.TransportStop(); + super.clear(); + dx_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + dy_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000004); + name_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + nameEn_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + routes_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -12092,37 +21872,56 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.TransportStop.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.TransportStop build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.TransportStop result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.TransportStop buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.TransportStop result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.TransportStop buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.TransportStop result = new net.osmand.binary.OsmandOdb.TransportStop(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.routes_ != java.util.Collections.EMPTY_LIST) { - result.routes_ = - java.util.Collections.unmodifiableList(result.routes_); + result.dx_ = dx_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - net.osmand.binary.OsmandOdb.TransportStop returnMe = result; - result = null; - return returnMe; + result.dy_ = dy_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.nameEn_ = nameEn_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + routes_ = java.util.Collections.unmodifiableList(routes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.routes_ = routes_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -12152,15 +21951,39 @@ public final class OsmandOdb { setNameEn(other.getNameEn()); } if (!other.routes_.isEmpty()) { - if (result.routes_.isEmpty()) { - result.routes_ = new java.util.ArrayList(); + if (routes_.isEmpty()) { + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureRoutesIsMutable(); + routes_.addAll(other.routes_); } - result.routes_.addAll(other.routes_); + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasDx()) { + + return false; + } + if (!hasDy()) { + + return false; + } + if (!hasId()) { + + return false; + } + if (!hasName()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -12173,37 +21996,45 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setDx(input.readSInt32()); + bitField0_ |= 0x00000001; + dx_ = input.readSInt32(); break; } case 16: { - setDy(input.readSInt32()); + bitField0_ |= 0x00000002; + dy_ = input.readSInt32(); break; } case 40: { - setId(input.readSInt64()); + bitField0_ |= 0x00000004; + id_ = input.readSInt64(); break; } case 48: { - setName(input.readUInt32()); + bitField0_ |= 0x00000008; + name_ = input.readUInt32(); break; } case 56: { - setNameEn(input.readUInt32()); + bitField0_ |= 0x00000010; + nameEn_ = input.readUInt32(); break; } case 128: { - addRoutes(input.readUInt32()); + ensureRoutesIsMutable(); + routes_.add(input.readUInt32()); break; } case 130: { @@ -12219,128 +22050,155 @@ public final class OsmandOdb { } } + private int bitField0_; // required sint32 dx = 1; + private int dx_ ; public boolean hasDx() { - return result.hasDx(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getDx() { - return result.getDx(); + return dx_; } public Builder setDx(int value) { - result.hasDx = true; - result.dx_ = value; + bitField0_ |= 0x00000001; + dx_ = value; + onChanged(); return this; } public Builder clearDx() { - result.hasDx = false; - result.dx_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + dx_ = 0; + onChanged(); return this; } // required sint32 dy = 2; + private int dy_ ; public boolean hasDy() { - return result.hasDy(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getDy() { - return result.getDy(); + return dy_; } public Builder setDy(int value) { - result.hasDy = true; - result.dy_ = value; + bitField0_ |= 0x00000002; + dy_ = value; + onChanged(); return this; } public Builder clearDy() { - result.hasDy = false; - result.dy_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + dy_ = 0; + onChanged(); return this; } // required sint64 id = 5; + private long id_ ; public boolean hasId() { - return result.hasId(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public long getId() { - return result.getId(); + return id_; } public Builder setId(long value) { - result.hasId = true; - result.id_ = value; + bitField0_ |= 0x00000004; + id_ = value; + onChanged(); return this; } public Builder clearId() { - result.hasId = false; - result.id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000004); + id_ = 0L; + onChanged(); return this; } // required uint32 name = 6; + private int name_ ; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getName() { - return result.getName(); + return name_; } public Builder setName(int value) { - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000008; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + name_ = 0; + onChanged(); return this; } // optional uint32 name_en = 7; + private int nameEn_ ; public boolean hasNameEn() { - return result.hasNameEn(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public int getNameEn() { - return result.getNameEn(); + return nameEn_; } public Builder setNameEn(int value) { - result.hasNameEn = true; - result.nameEn_ = value; + bitField0_ |= 0x00000010; + nameEn_ = value; + onChanged(); return this; } public Builder clearNameEn() { - result.hasNameEn = false; - result.nameEn_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + nameEn_ = 0; + onChanged(); return this; } // repeated uint32 routes = 16; - public java.util.List getRoutesList() { - return java.util.Collections.unmodifiableList(result.routes_); + private java.util.List routes_ = java.util.Collections.emptyList();; + private void ensureRoutesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + routes_ = new java.util.ArrayList(routes_); + bitField0_ |= 0x00000020; + } + } + public java.util.List + getRoutesList() { + return java.util.Collections.unmodifiableList(routes_); } public int getRoutesCount() { - return result.getRoutesCount(); + return routes_.size(); } public int getRoutes(int index) { - return result.getRoutes(index); + return routes_.get(index); } - public Builder setRoutes(int index, int value) { - result.routes_.set(index, value); + public Builder setRoutes( + int index, int value) { + ensureRoutesIsMutable(); + routes_.set(index, value); + onChanged(); return this; } public Builder addRoutes(int value) { - if (result.routes_.isEmpty()) { - result.routes_ = new java.util.ArrayList(); - } - result.routes_.add(value); + ensureRoutesIsMutable(); + routes_.add(value); + onChanged(); return this; } public Builder addAllRoutes( java.lang.Iterable values) { - if (result.routes_.isEmpty()) { - result.routes_ = new java.util.ArrayList(); - } - super.addAll(values, result.routes_); + ensureRoutesIsMutable(); + super.addAll(values, routes_); + onChanged(); return this; } public Builder clearRoutes() { - result.routes_ = java.util.Collections.emptyList(); + routes_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); return this; } @@ -12349,18 +22207,61 @@ public final class OsmandOdb { static { defaultInstance = new TransportStop(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportStop) } + public interface TransportStopsTreeOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required sint32 left = 1; + boolean hasLeft(); + int getLeft(); + + // required sint32 right = 2; + boolean hasRight(); + int getRight(); + + // required sint32 top = 3; + boolean hasTop(); + int getTop(); + + // required sint32 bottom = 4; + boolean hasBottom(); + int getBottom(); + + // repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; + java.util.List + getSubtreesList(); + net.osmand.binary.OsmandOdb.TransportStopsTree getSubtrees(int index); + int getSubtreesCount(); + java.util.List + getSubtreesOrBuilderList(); + net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getSubtreesOrBuilder( + int index); + + // repeated .OsmAnd.OBF.TransportStop leafs = 8; + java.util.List + getLeafsList(); + net.osmand.binary.OsmandOdb.TransportStop getLeafs(int index); + int getLeafsCount(); + java.util.List + getLeafsOrBuilderList(); + net.osmand.binary.OsmandOdb.TransportStopOrBuilder getLeafsOrBuilder( + int index); + + // optional uint64 baseId = 16; + boolean hasBaseId(); + long getBaseId(); + } public static final class TransportStopsTree extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements TransportStopsTreeOrBuilder { // Use TransportStopsTree.newBuilder() to construct. - private TransportStopsTree() { - initFields(); + private TransportStopsTree(Builder builder) { + super(builder); } private TransportStopsTree(boolean noInit) {} @@ -12383,104 +22284,168 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopsTree_fieldAccessorTable; } + private int bitField0_; // required sint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; - private boolean hasLeft; - private int left_ = 0; - public boolean hasLeft() { return hasLeft; } - public int getLeft() { return left_; } + private int left_; + public boolean hasLeft() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getLeft() { + return left_; + } // required sint32 right = 2; public static final int RIGHT_FIELD_NUMBER = 2; - private boolean hasRight; - private int right_ = 0; - public boolean hasRight() { return hasRight; } - public int getRight() { return right_; } + private int right_; + public boolean hasRight() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getRight() { + return right_; + } // required sint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; - private boolean hasTop; - private int top_ = 0; - public boolean hasTop() { return hasTop; } - public int getTop() { return top_; } + private int top_; + public boolean hasTop() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getTop() { + return top_; + } // required sint32 bottom = 4; public static final int BOTTOM_FIELD_NUMBER = 4; - private boolean hasBottom; - private int bottom_ = 0; - public boolean hasBottom() { return hasBottom; } - public int getBottom() { return bottom_; } + private int bottom_; + public boolean hasBottom() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getBottom() { + return bottom_; + } // repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; public static final int SUBTREES_FIELD_NUMBER = 7; - private java.util.List subtrees_ = - java.util.Collections.emptyList(); + private java.util.List subtrees_; public java.util.List getSubtreesList() { return subtrees_; } - public int getSubtreesCount() { return subtrees_.size(); } + public java.util.List + getSubtreesOrBuilderList() { + return subtrees_; + } + public int getSubtreesCount() { + return subtrees_.size(); + } public net.osmand.binary.OsmandOdb.TransportStopsTree getSubtrees(int index) { return subtrees_.get(index); } + public net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getSubtreesOrBuilder( + int index) { + return subtrees_.get(index); + } // repeated .OsmAnd.OBF.TransportStop leafs = 8; public static final int LEAFS_FIELD_NUMBER = 8; - private java.util.List leafs_ = - java.util.Collections.emptyList(); + private java.util.List leafs_; public java.util.List getLeafsList() { return leafs_; } - public int getLeafsCount() { return leafs_.size(); } + public java.util.List + getLeafsOrBuilderList() { + return leafs_; + } + public int getLeafsCount() { + return leafs_.size(); + } public net.osmand.binary.OsmandOdb.TransportStop getLeafs(int index) { return leafs_.get(index); } + public net.osmand.binary.OsmandOdb.TransportStopOrBuilder getLeafsOrBuilder( + int index) { + return leafs_.get(index); + } // optional uint64 baseId = 16; public static final int BASEID_FIELD_NUMBER = 16; - private boolean hasBaseId; - private long baseId_ = 0L; - public boolean hasBaseId() { return hasBaseId; } - public long getBaseId() { return baseId_; } + private long baseId_; + public boolean hasBaseId() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public long getBaseId() { + return baseId_; + } private void initFields() { + left_ = 0; + right_ = 0; + top_ = 0; + bottom_ = 0; + subtrees_ = java.util.Collections.emptyList(); + leafs_ = java.util.Collections.emptyList(); + baseId_ = 0L; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasLeft) return false; - if (!hasRight) return false; - if (!hasTop) return false; - if (!hasBottom) return false; - for (net.osmand.binary.OsmandOdb.TransportStopsTree element : getSubtreesList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasLeft()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.TransportStop element : getLeafsList()) { - if (!element.isInitialized()) return false; + if (!hasRight()) { + memoizedIsInitialized = 0; + return false; } + if (!hasTop()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasBottom()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getSubtreesCount(); i++) { + if (!getSubtrees(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getLeafsCount(); i++) { + if (!getLeafs(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasLeft()) { - output.writeSInt32(1, getLeft()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeSInt32(1, left_); } - if (hasRight()) { - output.writeSInt32(2, getRight()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeSInt32(2, right_); } - if (hasTop()) { - output.writeSInt32(3, getTop()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeSInt32(3, top_); } - if (hasBottom()) { - output.writeSInt32(4, getBottom()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeSInt32(4, bottom_); } - for (net.osmand.binary.OsmandOdb.TransportStopsTree element : getSubtreesList()) { - output.writeMessage(7, element); + for (int i = 0; i < subtrees_.size(); i++) { + output.writeMessage(7, subtrees_.get(i)); } - for (net.osmand.binary.OsmandOdb.TransportStop element : getLeafsList()) { - output.writeMessage(8, element); + for (int i = 0; i < leafs_.size(); i++) { + output.writeMessage(8, leafs_.get(i)); } - if (hasBaseId()) { - output.writeUInt64(16, getBaseId()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt64(16, baseId_); } getUnknownFields().writeTo(output); } @@ -12491,39 +22456,46 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasLeft()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, getLeft()); + .computeSInt32Size(1, left_); } - if (hasRight()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(2, getRight()); + .computeSInt32Size(2, right_); } - if (hasTop()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(3, getTop()); + .computeSInt32Size(3, top_); } - if (hasBottom()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(4, getBottom()); + .computeSInt32Size(4, bottom_); } - for (net.osmand.binary.OsmandOdb.TransportStopsTree element : getSubtreesList()) { + for (int i = 0; i < subtrees_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, element); + .computeMessageSize(7, subtrees_.get(i)); } - for (net.osmand.binary.OsmandOdb.TransportStop element : getLeafsList()) { + for (int i = 0; i < leafs_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, element); + .computeMessageSize(8, leafs_.get(i)); } - if (hasBaseId()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(16, getBaseId()); + .computeUInt64Size(16, baseId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.TransportStopsTree parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -12598,34 +22570,73 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.TransportStopsTree result; - - // Construct using net.osmand.binary.OsmandOdb.TransportStopsTree.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.TransportStopsTree(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopsTree_descriptor; } - protected net.osmand.binary.OsmandOdb.TransportStopsTree internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopsTree_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.TransportStopsTree.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getSubtreesFieldBuilder(); + getLeafsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + left_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + right_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + top_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + bottom_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + if (subtreesBuilder_ == null) { + subtrees_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + subtreesBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.TransportStopsTree(); + if (leafsBuilder_ == null) { + leafs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + leafsBuilder_.clear(); + } + baseId_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -12637,41 +22648,69 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.TransportStopsTree build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.TransportStopsTree result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.TransportStopsTree buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.TransportStopsTree result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.TransportStopsTree buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.TransportStopsTree result = new net.osmand.binary.OsmandOdb.TransportStopsTree(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.subtrees_ != java.util.Collections.EMPTY_LIST) { - result.subtrees_ = - java.util.Collections.unmodifiableList(result.subtrees_); + result.left_ = left_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - if (result.leafs_ != java.util.Collections.EMPTY_LIST) { - result.leafs_ = - java.util.Collections.unmodifiableList(result.leafs_); + result.right_ = right_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - net.osmand.binary.OsmandOdb.TransportStopsTree returnMe = result; - result = null; - return returnMe; + result.top_ = top_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.bottom_ = bottom_; + if (subtreesBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subtrees_ = java.util.Collections.unmodifiableList(subtrees_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.subtrees_ = subtrees_; + } else { + result.subtrees_ = subtreesBuilder_.build(); + } + if (leafsBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + leafs_ = java.util.Collections.unmodifiableList(leafs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.leafs_ = leafs_; + } else { + result.leafs_ = leafsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000010; + } + result.baseId_ = baseId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -12697,17 +22736,57 @@ public final class OsmandOdb { if (other.hasBottom()) { setBottom(other.getBottom()); } - if (!other.subtrees_.isEmpty()) { - if (result.subtrees_.isEmpty()) { - result.subtrees_ = new java.util.ArrayList(); + if (subtreesBuilder_ == null) { + if (!other.subtrees_.isEmpty()) { + if (subtrees_.isEmpty()) { + subtrees_ = other.subtrees_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSubtreesIsMutable(); + subtrees_.addAll(other.subtrees_); + } + onChanged(); + } + } else { + if (!other.subtrees_.isEmpty()) { + if (subtreesBuilder_.isEmpty()) { + subtreesBuilder_.dispose(); + subtreesBuilder_ = null; + subtrees_ = other.subtrees_; + bitField0_ = (bitField0_ & ~0x00000010); + subtreesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSubtreesFieldBuilder() : null; + } else { + subtreesBuilder_.addAllMessages(other.subtrees_); + } } - result.subtrees_.addAll(other.subtrees_); } - if (!other.leafs_.isEmpty()) { - if (result.leafs_.isEmpty()) { - result.leafs_ = new java.util.ArrayList(); + if (leafsBuilder_ == null) { + if (!other.leafs_.isEmpty()) { + if (leafs_.isEmpty()) { + leafs_ = other.leafs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureLeafsIsMutable(); + leafs_.addAll(other.leafs_); + } + onChanged(); + } + } else { + if (!other.leafs_.isEmpty()) { + if (leafsBuilder_.isEmpty()) { + leafsBuilder_.dispose(); + leafsBuilder_ = null; + leafs_ = other.leafs_; + bitField0_ = (bitField0_ & ~0x00000020); + leafsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getLeafsFieldBuilder() : null; + } else { + leafsBuilder_.addAllMessages(other.leafs_); + } } - result.leafs_.addAll(other.leafs_); } if (other.hasBaseId()) { setBaseId(other.getBaseId()); @@ -12716,6 +22795,38 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasLeft()) { + + return false; + } + if (!hasRight()) { + + return false; + } + if (!hasTop()) { + + return false; + } + if (!hasBottom()) { + + return false; + } + for (int i = 0; i < getSubtreesCount(); i++) { + if (!getSubtrees(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getLeafsCount(); i++) { + if (!getLeafs(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -12728,29 +22839,35 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setLeft(input.readSInt32()); + bitField0_ |= 0x00000001; + left_ = input.readSInt32(); break; } case 16: { - setRight(input.readSInt32()); + bitField0_ |= 0x00000002; + right_ = input.readSInt32(); break; } case 24: { - setTop(input.readSInt32()); + bitField0_ |= 0x00000004; + top_ = input.readSInt32(); break; } case 32: { - setBottom(input.readSInt32()); + bitField0_ |= 0x00000008; + bottom_ = input.readSInt32(); break; } case 58: { @@ -12766,203 +22883,490 @@ public final class OsmandOdb { break; } case 128: { - setBaseId(input.readUInt64()); + bitField0_ |= 0x00000040; + baseId_ = input.readUInt64(); break; } } } } + private int bitField0_; // required sint32 left = 1; + private int left_ ; public boolean hasLeft() { - return result.hasLeft(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getLeft() { - return result.getLeft(); + return left_; } public Builder setLeft(int value) { - result.hasLeft = true; - result.left_ = value; + bitField0_ |= 0x00000001; + left_ = value; + onChanged(); return this; } public Builder clearLeft() { - result.hasLeft = false; - result.left_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + left_ = 0; + onChanged(); return this; } // required sint32 right = 2; + private int right_ ; public boolean hasRight() { - return result.hasRight(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getRight() { - return result.getRight(); + return right_; } public Builder setRight(int value) { - result.hasRight = true; - result.right_ = value; + bitField0_ |= 0x00000002; + right_ = value; + onChanged(); return this; } public Builder clearRight() { - result.hasRight = false; - result.right_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + right_ = 0; + onChanged(); return this; } // required sint32 top = 3; + private int top_ ; public boolean hasTop() { - return result.hasTop(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getTop() { - return result.getTop(); + return top_; } public Builder setTop(int value) { - result.hasTop = true; - result.top_ = value; + bitField0_ |= 0x00000004; + top_ = value; + onChanged(); return this; } public Builder clearTop() { - result.hasTop = false; - result.top_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + top_ = 0; + onChanged(); return this; } // required sint32 bottom = 4; + private int bottom_ ; public boolean hasBottom() { - return result.hasBottom(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getBottom() { - return result.getBottom(); + return bottom_; } public Builder setBottom(int value) { - result.hasBottom = true; - result.bottom_ = value; + bitField0_ |= 0x00000008; + bottom_ = value; + onChanged(); return this; } public Builder clearBottom() { - result.hasBottom = false; - result.bottom_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + bottom_ = 0; + onChanged(); return this; } // repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; + private java.util.List subtrees_ = + java.util.Collections.emptyList(); + private void ensureSubtreesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + subtrees_ = new java.util.ArrayList(subtrees_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> subtreesBuilder_; + public java.util.List getSubtreesList() { - return java.util.Collections.unmodifiableList(result.subtrees_); + if (subtreesBuilder_ == null) { + return java.util.Collections.unmodifiableList(subtrees_); + } else { + return subtreesBuilder_.getMessageList(); + } } public int getSubtreesCount() { - return result.getSubtreesCount(); + if (subtreesBuilder_ == null) { + return subtrees_.size(); + } else { + return subtreesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.TransportStopsTree getSubtrees(int index) { - return result.getSubtrees(index); - } - public Builder setSubtrees(int index, net.osmand.binary.OsmandOdb.TransportStopsTree value) { - if (value == null) { - throw new NullPointerException(); + if (subtreesBuilder_ == null) { + return subtrees_.get(index); + } else { + return subtreesBuilder_.getMessage(index); + } + } + public Builder setSubtrees( + int index, net.osmand.binary.OsmandOdb.TransportStopsTree value) { + if (subtreesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubtreesIsMutable(); + subtrees_.set(index, value); + onChanged(); + } else { + subtreesBuilder_.setMessage(index, value); } - result.subtrees_.set(index, value); return this; } - public Builder setSubtrees(int index, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { - result.subtrees_.set(index, builderForValue.build()); + public Builder setSubtrees( + int index, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { + if (subtreesBuilder_ == null) { + ensureSubtreesIsMutable(); + subtrees_.set(index, builderForValue.build()); + onChanged(); + } else { + subtreesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addSubtrees(net.osmand.binary.OsmandOdb.TransportStopsTree value) { - if (value == null) { - throw new NullPointerException(); + if (subtreesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubtreesIsMutable(); + subtrees_.add(value); + onChanged(); + } else { + subtreesBuilder_.addMessage(value); } - if (result.subtrees_.isEmpty()) { - result.subtrees_ = new java.util.ArrayList(); - } - result.subtrees_.add(value); return this; } - public Builder addSubtrees(net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { - if (result.subtrees_.isEmpty()) { - result.subtrees_ = new java.util.ArrayList(); + public Builder addSubtrees( + int index, net.osmand.binary.OsmandOdb.TransportStopsTree value) { + if (subtreesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubtreesIsMutable(); + subtrees_.add(index, value); + onChanged(); + } else { + subtreesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addSubtrees( + net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { + if (subtreesBuilder_ == null) { + ensureSubtreesIsMutable(); + subtrees_.add(builderForValue.build()); + onChanged(); + } else { + subtreesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addSubtrees( + int index, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { + if (subtreesBuilder_ == null) { + ensureSubtreesIsMutable(); + subtrees_.add(index, builderForValue.build()); + onChanged(); + } else { + subtreesBuilder_.addMessage(index, builderForValue.build()); } - result.subtrees_.add(builderForValue.build()); return this; } public Builder addAllSubtrees( java.lang.Iterable values) { - if (result.subtrees_.isEmpty()) { - result.subtrees_ = new java.util.ArrayList(); + if (subtreesBuilder_ == null) { + ensureSubtreesIsMutable(); + super.addAll(values, subtrees_); + onChanged(); + } else { + subtreesBuilder_.addAllMessages(values); } - super.addAll(values, result.subtrees_); return this; } public Builder clearSubtrees() { - result.subtrees_ = java.util.Collections.emptyList(); + if (subtreesBuilder_ == null) { + subtrees_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + subtreesBuilder_.clear(); + } return this; } + public Builder removeSubtrees(int index) { + if (subtreesBuilder_ == null) { + ensureSubtreesIsMutable(); + subtrees_.remove(index); + onChanged(); + } else { + subtreesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder getSubtreesBuilder( + int index) { + return getSubtreesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getSubtreesOrBuilder( + int index) { + if (subtreesBuilder_ == null) { + return subtrees_.get(index); } else { + return subtreesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getSubtreesOrBuilderList() { + if (subtreesBuilder_ != null) { + return subtreesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subtrees_); + } + } + public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder addSubtreesBuilder() { + return getSubtreesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder addSubtreesBuilder( + int index) { + return getSubtreesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance()); + } + public java.util.List + getSubtreesBuilderList() { + return getSubtreesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> + getSubtreesFieldBuilder() { + if (subtreesBuilder_ == null) { + subtreesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder>( + subtrees_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + subtrees_ = null; + } + return subtreesBuilder_; + } // repeated .OsmAnd.OBF.TransportStop leafs = 8; + private java.util.List leafs_ = + java.util.Collections.emptyList(); + private void ensureLeafsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + leafs_ = new java.util.ArrayList(leafs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportStop, net.osmand.binary.OsmandOdb.TransportStop.Builder, net.osmand.binary.OsmandOdb.TransportStopOrBuilder> leafsBuilder_; + public java.util.List getLeafsList() { - return java.util.Collections.unmodifiableList(result.leafs_); + if (leafsBuilder_ == null) { + return java.util.Collections.unmodifiableList(leafs_); + } else { + return leafsBuilder_.getMessageList(); + } } public int getLeafsCount() { - return result.getLeafsCount(); + if (leafsBuilder_ == null) { + return leafs_.size(); + } else { + return leafsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.TransportStop getLeafs(int index) { - return result.getLeafs(index); - } - public Builder setLeafs(int index, net.osmand.binary.OsmandOdb.TransportStop value) { - if (value == null) { - throw new NullPointerException(); + if (leafsBuilder_ == null) { + return leafs_.get(index); + } else { + return leafsBuilder_.getMessage(index); + } + } + public Builder setLeafs( + int index, net.osmand.binary.OsmandOdb.TransportStop value) { + if (leafsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLeafsIsMutable(); + leafs_.set(index, value); + onChanged(); + } else { + leafsBuilder_.setMessage(index, value); } - result.leafs_.set(index, value); return this; } - public Builder setLeafs(int index, net.osmand.binary.OsmandOdb.TransportStop.Builder builderForValue) { - result.leafs_.set(index, builderForValue.build()); + public Builder setLeafs( + int index, net.osmand.binary.OsmandOdb.TransportStop.Builder builderForValue) { + if (leafsBuilder_ == null) { + ensureLeafsIsMutable(); + leafs_.set(index, builderForValue.build()); + onChanged(); + } else { + leafsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addLeafs(net.osmand.binary.OsmandOdb.TransportStop value) { - if (value == null) { - throw new NullPointerException(); + if (leafsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLeafsIsMutable(); + leafs_.add(value); + onChanged(); + } else { + leafsBuilder_.addMessage(value); } - if (result.leafs_.isEmpty()) { - result.leafs_ = new java.util.ArrayList(); - } - result.leafs_.add(value); return this; } - public Builder addLeafs(net.osmand.binary.OsmandOdb.TransportStop.Builder builderForValue) { - if (result.leafs_.isEmpty()) { - result.leafs_ = new java.util.ArrayList(); + public Builder addLeafs( + int index, net.osmand.binary.OsmandOdb.TransportStop value) { + if (leafsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLeafsIsMutable(); + leafs_.add(index, value); + onChanged(); + } else { + leafsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addLeafs( + net.osmand.binary.OsmandOdb.TransportStop.Builder builderForValue) { + if (leafsBuilder_ == null) { + ensureLeafsIsMutable(); + leafs_.add(builderForValue.build()); + onChanged(); + } else { + leafsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addLeafs( + int index, net.osmand.binary.OsmandOdb.TransportStop.Builder builderForValue) { + if (leafsBuilder_ == null) { + ensureLeafsIsMutable(); + leafs_.add(index, builderForValue.build()); + onChanged(); + } else { + leafsBuilder_.addMessage(index, builderForValue.build()); } - result.leafs_.add(builderForValue.build()); return this; } public Builder addAllLeafs( java.lang.Iterable values) { - if (result.leafs_.isEmpty()) { - result.leafs_ = new java.util.ArrayList(); + if (leafsBuilder_ == null) { + ensureLeafsIsMutable(); + super.addAll(values, leafs_); + onChanged(); + } else { + leafsBuilder_.addAllMessages(values); } - super.addAll(values, result.leafs_); return this; } public Builder clearLeafs() { - result.leafs_ = java.util.Collections.emptyList(); + if (leafsBuilder_ == null) { + leafs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + leafsBuilder_.clear(); + } return this; } + public Builder removeLeafs(int index) { + if (leafsBuilder_ == null) { + ensureLeafsIsMutable(); + leafs_.remove(index); + onChanged(); + } else { + leafsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.TransportStop.Builder getLeafsBuilder( + int index) { + return getLeafsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.TransportStopOrBuilder getLeafsOrBuilder( + int index) { + if (leafsBuilder_ == null) { + return leafs_.get(index); } else { + return leafsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getLeafsOrBuilderList() { + if (leafsBuilder_ != null) { + return leafsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(leafs_); + } + } + public net.osmand.binary.OsmandOdb.TransportStop.Builder addLeafsBuilder() { + return getLeafsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.TransportStop.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.TransportStop.Builder addLeafsBuilder( + int index) { + return getLeafsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.TransportStop.getDefaultInstance()); + } + public java.util.List + getLeafsBuilderList() { + return getLeafsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportStop, net.osmand.binary.OsmandOdb.TransportStop.Builder, net.osmand.binary.OsmandOdb.TransportStopOrBuilder> + getLeafsFieldBuilder() { + if (leafsBuilder_ == null) { + leafsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.TransportStop, net.osmand.binary.OsmandOdb.TransportStop.Builder, net.osmand.binary.OsmandOdb.TransportStopOrBuilder>( + leafs_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + leafs_ = null; + } + return leafsBuilder_; + } // optional uint64 baseId = 16; + private long baseId_ ; public boolean hasBaseId() { - return result.hasBaseId(); + return ((bitField0_ & 0x00000040) == 0x00000040); } public long getBaseId() { - return result.getBaseId(); + return baseId_; } public Builder setBaseId(long value) { - result.hasBaseId = true; - result.baseId_ = value; + bitField0_ |= 0x00000040; + baseId_ = value; + onChanged(); return this; } public Builder clearBaseId() { - result.hasBaseId = false; - result.baseId_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + baseId_ = 0L; + onChanged(); return this; } @@ -12971,18 +23375,40 @@ public final class OsmandOdb { static { defaultInstance = new TransportStopsTree(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportStopsTree) } + public interface OsmAndTransportIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string name = 1; + boolean hasName(); + String getName(); + + // optional .OsmAnd.OBF.TransportRoutes routes = 3; + boolean hasRoutes(); + net.osmand.binary.OsmandOdb.TransportRoutes getRoutes(); + net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder getRoutesOrBuilder(); + + // optional .OsmAnd.OBF.TransportStopsTree stops = 6; + boolean hasStops(); + net.osmand.binary.OsmandOdb.TransportStopsTree getStops(); + net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getStopsOrBuilder(); + + // required .OsmAnd.OBF.StringTable stringTable = 9; + boolean hasStringTable(); + net.osmand.binary.OsmandOdb.StringTable getStringTable(); + net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder(); + } public static final class OsmAndTransportIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndTransportIndexOrBuilder { // Use OsmAndTransportIndex.newBuilder() to construct. - private OsmAndTransportIndex() { - initFields(); + private OsmAndTransportIndex(Builder builder) { + super(builder); } private OsmAndTransportIndex(boolean noInit) {} @@ -13005,64 +23431,123 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTransportIndex_fieldAccessorTable; } + private int bitField0_; // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional .OsmAnd.OBF.TransportRoutes routes = 3; public static final int ROUTES_FIELD_NUMBER = 3; - private boolean hasRoutes; private net.osmand.binary.OsmandOdb.TransportRoutes routes_; - public boolean hasRoutes() { return hasRoutes; } - public net.osmand.binary.OsmandOdb.TransportRoutes getRoutes() { return routes_; } + public boolean hasRoutes() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public net.osmand.binary.OsmandOdb.TransportRoutes getRoutes() { + return routes_; + } + public net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder getRoutesOrBuilder() { + return routes_; + } // optional .OsmAnd.OBF.TransportStopsTree stops = 6; public static final int STOPS_FIELD_NUMBER = 6; - private boolean hasStops; private net.osmand.binary.OsmandOdb.TransportStopsTree stops_; - public boolean hasStops() { return hasStops; } - public net.osmand.binary.OsmandOdb.TransportStopsTree getStops() { return stops_; } + public boolean hasStops() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public net.osmand.binary.OsmandOdb.TransportStopsTree getStops() { + return stops_; + } + public net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getStopsOrBuilder() { + return stops_; + } // required .OsmAnd.OBF.StringTable stringTable = 9; public static final int STRINGTABLE_FIELD_NUMBER = 9; - private boolean hasStringTable; private net.osmand.binary.OsmandOdb.StringTable stringTable_; - public boolean hasStringTable() { return hasStringTable; } - public net.osmand.binary.OsmandOdb.StringTable getStringTable() { return stringTable_; } + public boolean hasStringTable() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public net.osmand.binary.OsmandOdb.StringTable getStringTable() { + return stringTable_; + } + public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { + return stringTable_; + } private void initFields() { + name_ = ""; routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasStringTable) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasStringTable()) { + memoizedIsInitialized = 0; + return false; + } if (hasRoutes()) { - if (!getRoutes().isInitialized()) return false; + if (!getRoutes().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } if (hasStops()) { - if (!getStops().isInitialized()) return false; + if (!getStops().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasName()) { - output.writeString(1, getName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); } - if (hasRoutes()) { - output.writeMessage(3, getRoutes()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(3, routes_); } - if (hasStops()) { - output.writeMessage(6, getStops()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(6, stops_); } - if (hasStringTable()) { - output.writeMessage(9, getStringTable()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(9, stringTable_); } getUnknownFields().writeTo(output); } @@ -13073,27 +23558,34 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasName()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getName()); + .computeBytesSize(1, getNameBytes()); } - if (hasRoutes()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRoutes()); + .computeMessageSize(3, routes_); } - if (hasStops()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getStops()); + .computeMessageSize(6, stops_); } - if (hasStringTable()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getStringTable()); + .computeMessageSize(9, stringTable_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndTransportIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13168,34 +23660,72 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndTransportIndex result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndTransportIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndTransportIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTransportIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndTransportIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTransportIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndTransportIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getRoutesFieldBuilder(); + getStopsFieldBuilder(); + getStringTableFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (routesBuilder_ == null) { + routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); + } else { + routesBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndTransportIndex(); + bitField0_ = (bitField0_ & ~0x00000002); + if (stopsBuilder_ == null) { + stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); + } else { + stopsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (stringTableBuilder_ == null) { + stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + } else { + stringTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -13207,33 +23737,59 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndTransportIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndTransportIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndTransportIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndTransportIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndTransportIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndTransportIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndTransportIndex result = new net.osmand.binary.OsmandOdb.OsmAndTransportIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.OsmAndTransportIndex returnMe = result; - result = null; - return returnMe; + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (routesBuilder_ == null) { + result.routes_ = routes_; + } else { + result.routes_ = routesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (stopsBuilder_ == null) { + result.stops_ = stops_; + } else { + result.stops_ = stopsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (stringTableBuilder_ == null) { + result.stringTable_ = stringTable_; + } else { + result.stringTable_ = stringTableBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -13263,6 +23819,26 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasStringTable()) { + + return false; + } + if (hasRoutes()) { + if (!getRoutes().isInitialized()) { + + return false; + } + } + if (hasStops()) { + if (!getStops().isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -13275,17 +23851,20 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setName(input.readString()); + bitField0_ |= 0x00000001; + name_ = input.readBytes(); break; } case 26: { @@ -13319,156 +23898,383 @@ public final class OsmandOdb { } } + private int bitField0_; // optional string name = 1; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + } // optional .OsmAnd.OBF.TransportRoutes routes = 3; + private net.osmand.binary.OsmandOdb.TransportRoutes routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRoutes, net.osmand.binary.OsmandOdb.TransportRoutes.Builder, net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder> routesBuilder_; public boolean hasRoutes() { - return result.hasRoutes(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public net.osmand.binary.OsmandOdb.TransportRoutes getRoutes() { - return result.getRoutes(); + if (routesBuilder_ == null) { + return routes_; + } else { + return routesBuilder_.getMessage(); + } } public Builder setRoutes(net.osmand.binary.OsmandOdb.TransportRoutes value) { - if (value == null) { - throw new NullPointerException(); + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + routes_ = value; + onChanged(); + } else { + routesBuilder_.setMessage(value); } - result.hasRoutes = true; - result.routes_ = value; + bitField0_ |= 0x00000002; return this; } - public Builder setRoutes(net.osmand.binary.OsmandOdb.TransportRoutes.Builder builderForValue) { - result.hasRoutes = true; - result.routes_ = builderForValue.build(); + public Builder setRoutes( + net.osmand.binary.OsmandOdb.TransportRoutes.Builder builderForValue) { + if (routesBuilder_ == null) { + routes_ = builderForValue.build(); + onChanged(); + } else { + routesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; return this; } public Builder mergeRoutes(net.osmand.binary.OsmandOdb.TransportRoutes value) { - if (result.hasRoutes() && - result.routes_ != net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance()) { - result.routes_ = - net.osmand.binary.OsmandOdb.TransportRoutes.newBuilder(result.routes_).mergeFrom(value).buildPartial(); + if (routesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + routes_ != net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance()) { + routes_ = + net.osmand.binary.OsmandOdb.TransportRoutes.newBuilder(routes_).mergeFrom(value).buildPartial(); + } else { + routes_ = value; + } + onChanged(); } else { - result.routes_ = value; + routesBuilder_.mergeFrom(value); } - result.hasRoutes = true; + bitField0_ |= 0x00000002; return this; } public Builder clearRoutes() { - result.hasRoutes = false; - result.routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); + if (routesBuilder_ == null) { + routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); + onChanged(); + } else { + routesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } + public net.osmand.binary.OsmandOdb.TransportRoutes.Builder getRoutesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRoutesFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder getRoutesOrBuilder() { + if (routesBuilder_ != null) { + return routesBuilder_.getMessageOrBuilder(); + } else { + return routes_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRoutes, net.osmand.binary.OsmandOdb.TransportRoutes.Builder, net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder> + getRoutesFieldBuilder() { + if (routesBuilder_ == null) { + routesBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.TransportRoutes, net.osmand.binary.OsmandOdb.TransportRoutes.Builder, net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder>( + routes_, + getParentForChildren(), + isClean()); + routes_ = null; + } + return routesBuilder_; + } // optional .OsmAnd.OBF.TransportStopsTree stops = 6; + private net.osmand.binary.OsmandOdb.TransportStopsTree stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> stopsBuilder_; public boolean hasStops() { - return result.hasStops(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public net.osmand.binary.OsmandOdb.TransportStopsTree getStops() { - return result.getStops(); + if (stopsBuilder_ == null) { + return stops_; + } else { + return stopsBuilder_.getMessage(); + } } public Builder setStops(net.osmand.binary.OsmandOdb.TransportStopsTree value) { - if (value == null) { - throw new NullPointerException(); + if (stopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stops_ = value; + onChanged(); + } else { + stopsBuilder_.setMessage(value); } - result.hasStops = true; - result.stops_ = value; + bitField0_ |= 0x00000004; return this; } - public Builder setStops(net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { - result.hasStops = true; - result.stops_ = builderForValue.build(); + public Builder setStops( + net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { + if (stopsBuilder_ == null) { + stops_ = builderForValue.build(); + onChanged(); + } else { + stopsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; return this; } public Builder mergeStops(net.osmand.binary.OsmandOdb.TransportStopsTree value) { - if (result.hasStops() && - result.stops_ != net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance()) { - result.stops_ = - net.osmand.binary.OsmandOdb.TransportStopsTree.newBuilder(result.stops_).mergeFrom(value).buildPartial(); + if (stopsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + stops_ != net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance()) { + stops_ = + net.osmand.binary.OsmandOdb.TransportStopsTree.newBuilder(stops_).mergeFrom(value).buildPartial(); + } else { + stops_ = value; + } + onChanged(); } else { - result.stops_ = value; + stopsBuilder_.mergeFrom(value); } - result.hasStops = true; + bitField0_ |= 0x00000004; return this; } public Builder clearStops() { - result.hasStops = false; - result.stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); + if (stopsBuilder_ == null) { + stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); + onChanged(); + } else { + stopsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } + public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder getStopsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStopsFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getStopsOrBuilder() { + if (stopsBuilder_ != null) { + return stopsBuilder_.getMessageOrBuilder(); + } else { + return stops_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> + getStopsFieldBuilder() { + if (stopsBuilder_ == null) { + stopsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder>( + stops_, + getParentForChildren(), + isClean()); + stops_ = null; + } + return stopsBuilder_; + } // required .OsmAnd.OBF.StringTable stringTable = 9; + private net.osmand.binary.OsmandOdb.StringTable stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> stringTableBuilder_; public boolean hasStringTable() { - return result.hasStringTable(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public net.osmand.binary.OsmandOdb.StringTable getStringTable() { - return result.getStringTable(); + if (stringTableBuilder_ == null) { + return stringTable_; + } else { + return stringTableBuilder_.getMessage(); + } } public Builder setStringTable(net.osmand.binary.OsmandOdb.StringTable value) { - if (value == null) { - throw new NullPointerException(); + if (stringTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stringTable_ = value; + onChanged(); + } else { + stringTableBuilder_.setMessage(value); } - result.hasStringTable = true; - result.stringTable_ = value; + bitField0_ |= 0x00000008; return this; } - public Builder setStringTable(net.osmand.binary.OsmandOdb.StringTable.Builder builderForValue) { - result.hasStringTable = true; - result.stringTable_ = builderForValue.build(); + public Builder setStringTable( + net.osmand.binary.OsmandOdb.StringTable.Builder builderForValue) { + if (stringTableBuilder_ == null) { + stringTable_ = builderForValue.build(); + onChanged(); + } else { + stringTableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; return this; } public Builder mergeStringTable(net.osmand.binary.OsmandOdb.StringTable value) { - if (result.hasStringTable() && - result.stringTable_ != net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) { - result.stringTable_ = - net.osmand.binary.OsmandOdb.StringTable.newBuilder(result.stringTable_).mergeFrom(value).buildPartial(); + if (stringTableBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + stringTable_ != net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) { + stringTable_ = + net.osmand.binary.OsmandOdb.StringTable.newBuilder(stringTable_).mergeFrom(value).buildPartial(); + } else { + stringTable_ = value; + } + onChanged(); } else { - result.stringTable_ = value; + stringTableBuilder_.mergeFrom(value); } - result.hasStringTable = true; + bitField0_ |= 0x00000008; return this; } public Builder clearStringTable() { - result.hasStringTable = false; - result.stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + if (stringTableBuilder_ == null) { + stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + onChanged(); + } else { + stringTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } + public net.osmand.binary.OsmandOdb.StringTable.Builder getStringTableBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStringTableFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { + if (stringTableBuilder_ != null) { + return stringTableBuilder_.getMessageOrBuilder(); + } else { + return stringTable_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> + getStringTableFieldBuilder() { + if (stringTableBuilder_ == null) { + stringTableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder>( + stringTable_, + getParentForChildren(), + isClean()); + stringTable_ = null; + } + return stringTableBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndTransportIndex) } static { defaultInstance = new OsmAndTransportIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndTransportIndex) } + public interface OsmAndPoiIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string name = 1; + boolean hasName(); + String getName(); + + // required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; + boolean hasBoundaries(); + net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries(); + net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder(); + + // repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; + java.util.List + getCategoriesTableList(); + net.osmand.binary.OsmandOdb.OsmAndCategoryTable getCategoriesTable(int index); + int getCategoriesTableCount(); + java.util.List + getCategoriesTableOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder getCategoriesTableOrBuilder( + int index); + + // optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; + boolean hasNameIndex(); + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getNameIndex(); + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder getNameIndexOrBuilder(); + + // optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; + boolean hasSubtypesTable(); + net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getSubtypesTable(); + net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder getSubtypesTableOrBuilder(); + + // repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; + java.util.List + getBoxesList(); + net.osmand.binary.OsmandOdb.OsmAndPoiBox getBoxes(int index); + int getBoxesCount(); + java.util.List + getBoxesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getBoxesOrBuilder( + int index); + + // repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; + java.util.List + getPoiDataList(); + net.osmand.binary.OsmandOdb.OsmAndPoiBoxData getPoiData(int index); + int getPoiDataCount(); + java.util.List + getPoiDataOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder getPoiDataOrBuilder( + int index); + } public static final class OsmAndPoiIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndPoiIndexOrBuilder { // Use OsmAndPoiIndex.newBuilder() to construct. - private OsmAndPoiIndex() { - initFields(); + private OsmAndPoiIndex(Builder builder) { + super(builder); } private OsmAndPoiIndex(boolean noInit) {} @@ -13491,120 +24297,224 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiIndex_fieldAccessorTable; } + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; public static final int BOUNDARIES_FIELD_NUMBER = 2; - private boolean hasBoundaries; private net.osmand.binary.OsmandOdb.OsmAndTileBox boundaries_; - public boolean hasBoundaries() { return hasBoundaries; } - public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { return boundaries_; } + public boolean hasBoundaries() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { + return boundaries_; + } + public net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder() { + return boundaries_; + } // repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; public static final int CATEGORIESTABLE_FIELD_NUMBER = 3; - private java.util.List categoriesTable_ = - java.util.Collections.emptyList(); + private java.util.List categoriesTable_; public java.util.List getCategoriesTableList() { return categoriesTable_; } - public int getCategoriesTableCount() { return categoriesTable_.size(); } + public java.util.List + getCategoriesTableOrBuilderList() { + return categoriesTable_; + } + public int getCategoriesTableCount() { + return categoriesTable_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndCategoryTable getCategoriesTable(int index) { return categoriesTable_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder getCategoriesTableOrBuilder( + int index) { + return categoriesTable_.get(index); + } // optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; public static final int NAMEINDEX_FIELD_NUMBER = 4; - private boolean hasNameIndex; private net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex nameIndex_; - public boolean hasNameIndex() { return hasNameIndex; } - public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getNameIndex() { return nameIndex_; } + public boolean hasNameIndex() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getNameIndex() { + return nameIndex_; + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder getNameIndexOrBuilder() { + return nameIndex_; + } // optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; public static final int SUBTYPESTABLE_FIELD_NUMBER = 5; - private boolean hasSubtypesTable; private net.osmand.binary.OsmandOdb.OsmAndSubtypesTable subtypesTable_; - public boolean hasSubtypesTable() { return hasSubtypesTable; } - public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getSubtypesTable() { return subtypesTable_; } + public boolean hasSubtypesTable() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getSubtypesTable() { + return subtypesTable_; + } + public net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder getSubtypesTableOrBuilder() { + return subtypesTable_; + } // repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; public static final int BOXES_FIELD_NUMBER = 6; - private java.util.List boxes_ = - java.util.Collections.emptyList(); + private java.util.List boxes_; public java.util.List getBoxesList() { return boxes_; } - public int getBoxesCount() { return boxes_.size(); } + public java.util.List + getBoxesOrBuilderList() { + return boxes_; + } + public int getBoxesCount() { + return boxes_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndPoiBox getBoxes(int index) { return boxes_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getBoxesOrBuilder( + int index) { + return boxes_.get(index); + } // repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; public static final int POIDATA_FIELD_NUMBER = 9; - private java.util.List poiData_ = - java.util.Collections.emptyList(); + private java.util.List poiData_; public java.util.List getPoiDataList() { return poiData_; } - public int getPoiDataCount() { return poiData_.size(); } + public java.util.List + getPoiDataOrBuilderList() { + return poiData_; + } + public int getPoiDataCount() { + return poiData_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData getPoiData(int index) { return poiData_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder getPoiDataOrBuilder( + int index) { + return poiData_.get(index); + } private void initFields() { + name_ = ""; boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); + categoriesTable_ = java.util.Collections.emptyList(); nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); + boxes_ = java.util.Collections.emptyList(); + poiData_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasName) return false; - if (!hasBoundaries) return false; - if (!getBoundaries().isInitialized()) return false; - for (net.osmand.binary.OsmandOdb.OsmAndCategoryTable element : getCategoriesTableList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasBoundaries()) { + memoizedIsInitialized = 0; + return false; + } + if (!getBoundaries().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getCategoriesTableCount(); i++) { + if (!getCategoriesTable(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } if (hasNameIndex()) { - if (!getNameIndex().isInitialized()) return false; + if (!getNameIndex().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } if (hasSubtypesTable()) { - if (!getSubtypesTable().isInitialized()) return false; + if (!getSubtypesTable().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - for (net.osmand.binary.OsmandOdb.OsmAndPoiBox element : getBoxesList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getBoxesCount(); i++) { + if (!getBoxes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - for (net.osmand.binary.OsmandOdb.OsmAndPoiBoxData element : getPoiDataList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getPoiDataCount(); i++) { + if (!getPoiData(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasName()) { - output.writeString(1, getName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); } - if (hasBoundaries()) { - output.writeMessage(2, getBoundaries()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, boundaries_); } - for (net.osmand.binary.OsmandOdb.OsmAndCategoryTable element : getCategoriesTableList()) { - output.writeMessage(3, element); + for (int i = 0; i < categoriesTable_.size(); i++) { + output.writeMessage(3, categoriesTable_.get(i)); } - if (hasNameIndex()) { - output.writeMessage(4, getNameIndex()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(4, nameIndex_); } - if (hasSubtypesTable()) { - output.writeMessage(5, getSubtypesTable()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(5, subtypesTable_); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiBox element : getBoxesList()) { - output.writeMessage(6, element); + for (int i = 0; i < boxes_.size(); i++) { + output.writeMessage(6, boxes_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiBoxData element : getPoiDataList()) { - output.writeMessage(9, element); + for (int i = 0; i < poiData_.size(); i++) { + output.writeMessage(9, poiData_.get(i)); } getUnknownFields().writeTo(output); } @@ -13615,39 +24525,46 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasName()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getName()); + .computeBytesSize(1, getNameBytes()); } - if (hasBoundaries()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBoundaries()); + .computeMessageSize(2, boundaries_); } - for (net.osmand.binary.OsmandOdb.OsmAndCategoryTable element : getCategoriesTableList()) { + for (int i = 0; i < categoriesTable_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, element); + .computeMessageSize(3, categoriesTable_.get(i)); } - if (hasNameIndex()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getNameIndex()); + .computeMessageSize(4, nameIndex_); } - if (hasSubtypesTable()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSubtypesTable()); + .computeMessageSize(5, subtypesTable_); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiBox element : getBoxesList()) { + for (int i = 0; i < boxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, element); + .computeMessageSize(6, boxes_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiBoxData element : getPoiDataList()) { + for (int i = 0; i < poiData_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, element); + .computeMessageSize(9, poiData_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndPoiIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13722,34 +24639,93 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndPoiIndex result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndPoiIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndPoiIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getBoundariesFieldBuilder(); + getCategoriesTableFieldBuilder(); + getNameIndexFieldBuilder(); + getSubtypesTableFieldBuilder(); + getBoxesFieldBuilder(); + getPoiDataFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (boundariesBuilder_ == null) { + boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); + } else { + boundariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (categoriesTableBuilder_ == null) { + categoriesTable_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + categoriesTableBuilder_.clear(); + } + if (nameIndexBuilder_ == null) { + nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); + } else { + nameIndexBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (subtypesTableBuilder_ == null) { + subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); + } else { + subtypesTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (boxesBuilder_ == null) { + boxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + boxesBuilder_.clear(); + } + if (poiDataBuilder_ == null) { + poiData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + poiDataBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndPoiIndex(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -13761,45 +24737,86 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndPoiIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndPoiIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndPoiIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndPoiIndex result = new net.osmand.binary.OsmandOdb.OsmAndPoiIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.categoriesTable_ != java.util.Collections.EMPTY_LIST) { - result.categoriesTable_ = - java.util.Collections.unmodifiableList(result.categoriesTable_); + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - if (result.boxes_ != java.util.Collections.EMPTY_LIST) { - result.boxes_ = - java.util.Collections.unmodifiableList(result.boxes_); + if (boundariesBuilder_ == null) { + result.boundaries_ = boundaries_; + } else { + result.boundaries_ = boundariesBuilder_.build(); } - if (result.poiData_ != java.util.Collections.EMPTY_LIST) { - result.poiData_ = - java.util.Collections.unmodifiableList(result.poiData_); + if (categoriesTableBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + categoriesTable_ = java.util.Collections.unmodifiableList(categoriesTable_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.categoriesTable_ = categoriesTable_; + } else { + result.categoriesTable_ = categoriesTableBuilder_.build(); } - net.osmand.binary.OsmandOdb.OsmAndPoiIndex returnMe = result; - result = null; - return returnMe; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; + } + if (nameIndexBuilder_ == null) { + result.nameIndex_ = nameIndex_; + } else { + result.nameIndex_ = nameIndexBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + if (subtypesTableBuilder_ == null) { + result.subtypesTable_ = subtypesTable_; + } else { + result.subtypesTable_ = subtypesTableBuilder_.build(); + } + if (boxesBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + boxes_ = java.util.Collections.unmodifiableList(boxes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.boxes_ = boxes_; + } else { + result.boxes_ = boxesBuilder_.build(); + } + if (poiDataBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + poiData_ = java.util.Collections.unmodifiableList(poiData_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.poiData_ = poiData_; + } else { + result.poiData_ = poiDataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -13819,11 +24836,31 @@ public final class OsmandOdb { if (other.hasBoundaries()) { mergeBoundaries(other.getBoundaries()); } - if (!other.categoriesTable_.isEmpty()) { - if (result.categoriesTable_.isEmpty()) { - result.categoriesTable_ = new java.util.ArrayList(); + if (categoriesTableBuilder_ == null) { + if (!other.categoriesTable_.isEmpty()) { + if (categoriesTable_.isEmpty()) { + categoriesTable_ = other.categoriesTable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureCategoriesTableIsMutable(); + categoriesTable_.addAll(other.categoriesTable_); + } + onChanged(); + } + } else { + if (!other.categoriesTable_.isEmpty()) { + if (categoriesTableBuilder_.isEmpty()) { + categoriesTableBuilder_.dispose(); + categoriesTableBuilder_ = null; + categoriesTable_ = other.categoriesTable_; + bitField0_ = (bitField0_ & ~0x00000004); + categoriesTableBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getCategoriesTableFieldBuilder() : null; + } else { + categoriesTableBuilder_.addAllMessages(other.categoriesTable_); + } } - result.categoriesTable_.addAll(other.categoriesTable_); } if (other.hasNameIndex()) { mergeNameIndex(other.getNameIndex()); @@ -13831,22 +24868,108 @@ public final class OsmandOdb { if (other.hasSubtypesTable()) { mergeSubtypesTable(other.getSubtypesTable()); } - if (!other.boxes_.isEmpty()) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + if (boxesBuilder_ == null) { + if (!other.boxes_.isEmpty()) { + if (boxes_.isEmpty()) { + boxes_ = other.boxes_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureBoxesIsMutable(); + boxes_.addAll(other.boxes_); + } + onChanged(); + } + } else { + if (!other.boxes_.isEmpty()) { + if (boxesBuilder_.isEmpty()) { + boxesBuilder_.dispose(); + boxesBuilder_ = null; + boxes_ = other.boxes_; + bitField0_ = (bitField0_ & ~0x00000020); + boxesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBoxesFieldBuilder() : null; + } else { + boxesBuilder_.addAllMessages(other.boxes_); + } } - result.boxes_.addAll(other.boxes_); } - if (!other.poiData_.isEmpty()) { - if (result.poiData_.isEmpty()) { - result.poiData_ = new java.util.ArrayList(); + if (poiDataBuilder_ == null) { + if (!other.poiData_.isEmpty()) { + if (poiData_.isEmpty()) { + poiData_ = other.poiData_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensurePoiDataIsMutable(); + poiData_.addAll(other.poiData_); + } + onChanged(); + } + } else { + if (!other.poiData_.isEmpty()) { + if (poiDataBuilder_.isEmpty()) { + poiDataBuilder_.dispose(); + poiDataBuilder_ = null; + poiData_ = other.poiData_; + bitField0_ = (bitField0_ & ~0x00000040); + poiDataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPoiDataFieldBuilder() : null; + } else { + poiDataBuilder_.addAllMessages(other.poiData_); + } } - result.poiData_.addAll(other.poiData_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasBoundaries()) { + + return false; + } + if (!getBoundaries().isInitialized()) { + + return false; + } + for (int i = 0; i < getCategoriesTableCount(); i++) { + if (!getCategoriesTable(i).isInitialized()) { + + return false; + } + } + if (hasNameIndex()) { + if (!getNameIndex().isInitialized()) { + + return false; + } + } + if (hasSubtypesTable()) { + if (!getSubtypesTable().isInitialized()) { + + return false; + } + } + for (int i = 0; i < getBoxesCount(); i++) { + if (!getBoxes(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getPoiDataCount(); i++) { + if (!getPoiData(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -13859,17 +24982,20 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setName(input.readString()); + bitField0_ |= 0x00000001; + name_ = input.readBytes(); break; } case 18: { @@ -13921,309 +25047,907 @@ public final class OsmandOdb { } } + private int bitField0_; // required string name = 1; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + } // required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; + private net.osmand.binary.OsmandOdb.OsmAndTileBox boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndTileBox, net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder, net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder> boundariesBuilder_; public boolean hasBoundaries() { - return result.hasBoundaries(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { - return result.getBoundaries(); + if (boundariesBuilder_ == null) { + return boundaries_; + } else { + return boundariesBuilder_.getMessage(); + } } public Builder setBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox value) { - if (value == null) { - throw new NullPointerException(); + if (boundariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boundaries_ = value; + onChanged(); + } else { + boundariesBuilder_.setMessage(value); } - result.hasBoundaries = true; - result.boundaries_ = value; + bitField0_ |= 0x00000002; return this; } - public Builder setBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder builderForValue) { - result.hasBoundaries = true; - result.boundaries_ = builderForValue.build(); + public Builder setBoundaries( + net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder builderForValue) { + if (boundariesBuilder_ == null) { + boundaries_ = builderForValue.build(); + onChanged(); + } else { + boundariesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; return this; } public Builder mergeBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox value) { - if (result.hasBoundaries() && - result.boundaries_ != net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance()) { - result.boundaries_ = - net.osmand.binary.OsmandOdb.OsmAndTileBox.newBuilder(result.boundaries_).mergeFrom(value).buildPartial(); + if (boundariesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + boundaries_ != net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance()) { + boundaries_ = + net.osmand.binary.OsmandOdb.OsmAndTileBox.newBuilder(boundaries_).mergeFrom(value).buildPartial(); + } else { + boundaries_ = value; + } + onChanged(); } else { - result.boundaries_ = value; + boundariesBuilder_.mergeFrom(value); } - result.hasBoundaries = true; + bitField0_ |= 0x00000002; return this; } public Builder clearBoundaries() { - result.hasBoundaries = false; - result.boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); + if (boundariesBuilder_ == null) { + boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); + onChanged(); + } else { + boundariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } + public net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder getBoundariesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getBoundariesFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder() { + if (boundariesBuilder_ != null) { + return boundariesBuilder_.getMessageOrBuilder(); + } else { + return boundaries_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndTileBox, net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder, net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder> + getBoundariesFieldBuilder() { + if (boundariesBuilder_ == null) { + boundariesBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndTileBox, net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder, net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder>( + boundaries_, + getParentForChildren(), + isClean()); + boundaries_ = null; + } + return boundariesBuilder_; + } // repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; + private java.util.List categoriesTable_ = + java.util.Collections.emptyList(); + private void ensureCategoriesTableIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + categoriesTable_ = new java.util.ArrayList(categoriesTable_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndCategoryTable, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder, net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder> categoriesTableBuilder_; + public java.util.List getCategoriesTableList() { - return java.util.Collections.unmodifiableList(result.categoriesTable_); + if (categoriesTableBuilder_ == null) { + return java.util.Collections.unmodifiableList(categoriesTable_); + } else { + return categoriesTableBuilder_.getMessageList(); + } } public int getCategoriesTableCount() { - return result.getCategoriesTableCount(); + if (categoriesTableBuilder_ == null) { + return categoriesTable_.size(); + } else { + return categoriesTableBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndCategoryTable getCategoriesTable(int index) { - return result.getCategoriesTable(index); - } - public Builder setCategoriesTable(int index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable value) { - if (value == null) { - throw new NullPointerException(); + if (categoriesTableBuilder_ == null) { + return categoriesTable_.get(index); + } else { + return categoriesTableBuilder_.getMessage(index); + } + } + public Builder setCategoriesTable( + int index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable value) { + if (categoriesTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesTableIsMutable(); + categoriesTable_.set(index, value); + onChanged(); + } else { + categoriesTableBuilder_.setMessage(index, value); } - result.categoriesTable_.set(index, value); return this; } - public Builder setCategoriesTable(int index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder builderForValue) { - result.categoriesTable_.set(index, builderForValue.build()); + public Builder setCategoriesTable( + int index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder builderForValue) { + if (categoriesTableBuilder_ == null) { + ensureCategoriesTableIsMutable(); + categoriesTable_.set(index, builderForValue.build()); + onChanged(); + } else { + categoriesTableBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addCategoriesTable(net.osmand.binary.OsmandOdb.OsmAndCategoryTable value) { - if (value == null) { - throw new NullPointerException(); + if (categoriesTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesTableIsMutable(); + categoriesTable_.add(value); + onChanged(); + } else { + categoriesTableBuilder_.addMessage(value); } - if (result.categoriesTable_.isEmpty()) { - result.categoriesTable_ = new java.util.ArrayList(); - } - result.categoriesTable_.add(value); return this; } - public Builder addCategoriesTable(net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder builderForValue) { - if (result.categoriesTable_.isEmpty()) { - result.categoriesTable_ = new java.util.ArrayList(); + public Builder addCategoriesTable( + int index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable value) { + if (categoriesTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesTableIsMutable(); + categoriesTable_.add(index, value); + onChanged(); + } else { + categoriesTableBuilder_.addMessage(index, value); + } + return this; + } + public Builder addCategoriesTable( + net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder builderForValue) { + if (categoriesTableBuilder_ == null) { + ensureCategoriesTableIsMutable(); + categoriesTable_.add(builderForValue.build()); + onChanged(); + } else { + categoriesTableBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addCategoriesTable( + int index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder builderForValue) { + if (categoriesTableBuilder_ == null) { + ensureCategoriesTableIsMutable(); + categoriesTable_.add(index, builderForValue.build()); + onChanged(); + } else { + categoriesTableBuilder_.addMessage(index, builderForValue.build()); } - result.categoriesTable_.add(builderForValue.build()); return this; } public Builder addAllCategoriesTable( java.lang.Iterable values) { - if (result.categoriesTable_.isEmpty()) { - result.categoriesTable_ = new java.util.ArrayList(); + if (categoriesTableBuilder_ == null) { + ensureCategoriesTableIsMutable(); + super.addAll(values, categoriesTable_); + onChanged(); + } else { + categoriesTableBuilder_.addAllMessages(values); } - super.addAll(values, result.categoriesTable_); return this; } public Builder clearCategoriesTable() { - result.categoriesTable_ = java.util.Collections.emptyList(); + if (categoriesTableBuilder_ == null) { + categoriesTable_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + categoriesTableBuilder_.clear(); + } return this; } + public Builder removeCategoriesTable(int index) { + if (categoriesTableBuilder_ == null) { + ensureCategoriesTableIsMutable(); + categoriesTable_.remove(index); + onChanged(); + } else { + categoriesTableBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder getCategoriesTableBuilder( + int index) { + return getCategoriesTableFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder getCategoriesTableOrBuilder( + int index) { + if (categoriesTableBuilder_ == null) { + return categoriesTable_.get(index); } else { + return categoriesTableBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getCategoriesTableOrBuilderList() { + if (categoriesTableBuilder_ != null) { + return categoriesTableBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(categoriesTable_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder addCategoriesTableBuilder() { + return getCategoriesTableFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndCategoryTable.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder addCategoriesTableBuilder( + int index) { + return getCategoriesTableFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.getDefaultInstance()); + } + public java.util.List + getCategoriesTableBuilderList() { + return getCategoriesTableFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndCategoryTable, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder, net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder> + getCategoriesTableFieldBuilder() { + if (categoriesTableBuilder_ == null) { + categoriesTableBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndCategoryTable, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder, net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder>( + categoriesTable_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + categoriesTable_ = null; + } + return categoriesTableBuilder_; + } // optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; + private net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder> nameIndexBuilder_; public boolean hasNameIndex() { - return result.hasNameIndex(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getNameIndex() { - return result.getNameIndex(); + if (nameIndexBuilder_ == null) { + return nameIndex_; + } else { + return nameIndexBuilder_.getMessage(); + } } public Builder setNameIndex(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex value) { - if (value == null) { - throw new NullPointerException(); + if (nameIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nameIndex_ = value; + onChanged(); + } else { + nameIndexBuilder_.setMessage(value); } - result.hasNameIndex = true; - result.nameIndex_ = value; + bitField0_ |= 0x00000008; return this; } - public Builder setNameIndex(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder builderForValue) { - result.hasNameIndex = true; - result.nameIndex_ = builderForValue.build(); + public Builder setNameIndex( + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder builderForValue) { + if (nameIndexBuilder_ == null) { + nameIndex_ = builderForValue.build(); + onChanged(); + } else { + nameIndexBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; return this; } public Builder mergeNameIndex(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex value) { - if (result.hasNameIndex() && - result.nameIndex_ != net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance()) { - result.nameIndex_ = - net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.newBuilder(result.nameIndex_).mergeFrom(value).buildPartial(); + if (nameIndexBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + nameIndex_ != net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance()) { + nameIndex_ = + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.newBuilder(nameIndex_).mergeFrom(value).buildPartial(); + } else { + nameIndex_ = value; + } + onChanged(); } else { - result.nameIndex_ = value; + nameIndexBuilder_.mergeFrom(value); } - result.hasNameIndex = true; + bitField0_ |= 0x00000008; return this; } public Builder clearNameIndex() { - result.hasNameIndex = false; - result.nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); + if (nameIndexBuilder_ == null) { + nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); + onChanged(); + } else { + nameIndexBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder getNameIndexBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getNameIndexFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder getNameIndexOrBuilder() { + if (nameIndexBuilder_ != null) { + return nameIndexBuilder_.getMessageOrBuilder(); + } else { + return nameIndex_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder> + getNameIndexFieldBuilder() { + if (nameIndexBuilder_ == null) { + nameIndexBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder>( + nameIndex_, + getParentForChildren(), + isClean()); + nameIndex_ = null; + } + return nameIndexBuilder_; + } // optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; + private net.osmand.binary.OsmandOdb.OsmAndSubtypesTable subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndSubtypesTable, net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder, net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder> subtypesTableBuilder_; public boolean hasSubtypesTable() { - return result.hasSubtypesTable(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getSubtypesTable() { - return result.getSubtypesTable(); + if (subtypesTableBuilder_ == null) { + return subtypesTable_; + } else { + return subtypesTableBuilder_.getMessage(); + } } public Builder setSubtypesTable(net.osmand.binary.OsmandOdb.OsmAndSubtypesTable value) { - if (value == null) { - throw new NullPointerException(); + if (subtypesTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subtypesTable_ = value; + onChanged(); + } else { + subtypesTableBuilder_.setMessage(value); } - result.hasSubtypesTable = true; - result.subtypesTable_ = value; + bitField0_ |= 0x00000010; return this; } - public Builder setSubtypesTable(net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder builderForValue) { - result.hasSubtypesTable = true; - result.subtypesTable_ = builderForValue.build(); + public Builder setSubtypesTable( + net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder builderForValue) { + if (subtypesTableBuilder_ == null) { + subtypesTable_ = builderForValue.build(); + onChanged(); + } else { + subtypesTableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; return this; } public Builder mergeSubtypesTable(net.osmand.binary.OsmandOdb.OsmAndSubtypesTable value) { - if (result.hasSubtypesTable() && - result.subtypesTable_ != net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance()) { - result.subtypesTable_ = - net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.newBuilder(result.subtypesTable_).mergeFrom(value).buildPartial(); + if (subtypesTableBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + subtypesTable_ != net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance()) { + subtypesTable_ = + net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.newBuilder(subtypesTable_).mergeFrom(value).buildPartial(); + } else { + subtypesTable_ = value; + } + onChanged(); } else { - result.subtypesTable_ = value; + subtypesTableBuilder_.mergeFrom(value); } - result.hasSubtypesTable = true; + bitField0_ |= 0x00000010; return this; } public Builder clearSubtypesTable() { - result.hasSubtypesTable = false; - result.subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); + if (subtypesTableBuilder_ == null) { + subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); + onChanged(); + } else { + subtypesTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); return this; } + public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder getSubtypesTableBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getSubtypesTableFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder getSubtypesTableOrBuilder() { + if (subtypesTableBuilder_ != null) { + return subtypesTableBuilder_.getMessageOrBuilder(); + } else { + return subtypesTable_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndSubtypesTable, net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder, net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder> + getSubtypesTableFieldBuilder() { + if (subtypesTableBuilder_ == null) { + subtypesTableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndSubtypesTable, net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder, net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder>( + subtypesTable_, + getParentForChildren(), + isClean()); + subtypesTable_ = null; + } + return subtypesTableBuilder_; + } // repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; + private java.util.List boxes_ = + java.util.Collections.emptyList(); + private void ensureBoxesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + boxes_ = new java.util.ArrayList(boxes_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> boxesBuilder_; + public java.util.List getBoxesList() { - return java.util.Collections.unmodifiableList(result.boxes_); + if (boxesBuilder_ == null) { + return java.util.Collections.unmodifiableList(boxes_); + } else { + return boxesBuilder_.getMessageList(); + } } public int getBoxesCount() { - return result.getBoxesCount(); + if (boxesBuilder_ == null) { + return boxes_.size(); + } else { + return boxesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndPoiBox getBoxes(int index) { - return result.getBoxes(index); - } - public Builder setBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { - if (value == null) { - throw new NullPointerException(); + if (boxesBuilder_ == null) { + return boxes_.get(index); + } else { + return boxesBuilder_.getMessage(index); + } + } + public Builder setBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.set(index, value); + onChanged(); + } else { + boxesBuilder_.setMessage(index, value); } - result.boxes_.set(index, value); return this; } - public Builder setBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { - result.boxes_.set(index, builderForValue.build()); + public Builder setBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.set(index, builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { - if (value == null) { - throw new NullPointerException(); + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.add(value); + onChanged(); + } else { + boxesBuilder_.addMessage(value); } - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); - } - result.boxes_.add(value); return this; } - public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + public Builder addBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.add(index, value); + onChanged(); + } else { + boxesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addBoxes( + net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.add(builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.add(index, builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.addMessage(index, builderForValue.build()); } - result.boxes_.add(builderForValue.build()); return this; } public Builder addAllBoxes( java.lang.Iterable values) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + super.addAll(values, boxes_); + onChanged(); + } else { + boxesBuilder_.addAllMessages(values); } - super.addAll(values, result.boxes_); return this; } public Builder clearBoxes() { - result.boxes_ = java.util.Collections.emptyList(); + if (boxesBuilder_ == null) { + boxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + boxesBuilder_.clear(); + } return this; } + public Builder removeBoxes(int index) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.remove(index); + onChanged(); + } else { + boxesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder getBoxesBuilder( + int index) { + return getBoxesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getBoxesOrBuilder( + int index) { + if (boxesBuilder_ == null) { + return boxes_.get(index); } else { + return boxesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getBoxesOrBuilderList() { + if (boxesBuilder_ != null) { + return boxesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(boxes_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addBoxesBuilder() { + return getBoxesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addBoxesBuilder( + int index) { + return getBoxesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); + } + public java.util.List + getBoxesBuilderList() { + return getBoxesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> + getBoxesFieldBuilder() { + if (boxesBuilder_ == null) { + boxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder>( + boxes_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + boxes_ = null; + } + return boxesBuilder_; + } // repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; + private java.util.List poiData_ = + java.util.Collections.emptyList(); + private void ensurePoiDataIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + poiData_ = new java.util.ArrayList(poiData_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBoxData, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder> poiDataBuilder_; + public java.util.List getPoiDataList() { - return java.util.Collections.unmodifiableList(result.poiData_); + if (poiDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(poiData_); + } else { + return poiDataBuilder_.getMessageList(); + } } public int getPoiDataCount() { - return result.getPoiDataCount(); + if (poiDataBuilder_ == null) { + return poiData_.size(); + } else { + return poiDataBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData getPoiData(int index) { - return result.getPoiData(index); - } - public Builder setPoiData(int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData value) { - if (value == null) { - throw new NullPointerException(); + if (poiDataBuilder_ == null) { + return poiData_.get(index); + } else { + return poiDataBuilder_.getMessage(index); + } + } + public Builder setPoiData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData value) { + if (poiDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoiDataIsMutable(); + poiData_.set(index, value); + onChanged(); + } else { + poiDataBuilder_.setMessage(index, value); } - result.poiData_.set(index, value); return this; } - public Builder setPoiData(int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder builderForValue) { - result.poiData_.set(index, builderForValue.build()); + public Builder setPoiData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder builderForValue) { + if (poiDataBuilder_ == null) { + ensurePoiDataIsMutable(); + poiData_.set(index, builderForValue.build()); + onChanged(); + } else { + poiDataBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addPoiData(net.osmand.binary.OsmandOdb.OsmAndPoiBoxData value) { - if (value == null) { - throw new NullPointerException(); + if (poiDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoiDataIsMutable(); + poiData_.add(value); + onChanged(); + } else { + poiDataBuilder_.addMessage(value); } - if (result.poiData_.isEmpty()) { - result.poiData_ = new java.util.ArrayList(); - } - result.poiData_.add(value); return this; } - public Builder addPoiData(net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder builderForValue) { - if (result.poiData_.isEmpty()) { - result.poiData_ = new java.util.ArrayList(); + public Builder addPoiData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData value) { + if (poiDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoiDataIsMutable(); + poiData_.add(index, value); + onChanged(); + } else { + poiDataBuilder_.addMessage(index, value); + } + return this; + } + public Builder addPoiData( + net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder builderForValue) { + if (poiDataBuilder_ == null) { + ensurePoiDataIsMutable(); + poiData_.add(builderForValue.build()); + onChanged(); + } else { + poiDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addPoiData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder builderForValue) { + if (poiDataBuilder_ == null) { + ensurePoiDataIsMutable(); + poiData_.add(index, builderForValue.build()); + onChanged(); + } else { + poiDataBuilder_.addMessage(index, builderForValue.build()); } - result.poiData_.add(builderForValue.build()); return this; } public Builder addAllPoiData( java.lang.Iterable values) { - if (result.poiData_.isEmpty()) { - result.poiData_ = new java.util.ArrayList(); + if (poiDataBuilder_ == null) { + ensurePoiDataIsMutable(); + super.addAll(values, poiData_); + onChanged(); + } else { + poiDataBuilder_.addAllMessages(values); } - super.addAll(values, result.poiData_); return this; } public Builder clearPoiData() { - result.poiData_ = java.util.Collections.emptyList(); + if (poiDataBuilder_ == null) { + poiData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + poiDataBuilder_.clear(); + } return this; } + public Builder removePoiData(int index) { + if (poiDataBuilder_ == null) { + ensurePoiDataIsMutable(); + poiData_.remove(index); + onChanged(); + } else { + poiDataBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder getPoiDataBuilder( + int index) { + return getPoiDataFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder getPoiDataOrBuilder( + int index) { + if (poiDataBuilder_ == null) { + return poiData_.get(index); } else { + return poiDataBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getPoiDataOrBuilderList() { + if (poiDataBuilder_ != null) { + return poiDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(poiData_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder addPoiDataBuilder() { + return getPoiDataFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder addPoiDataBuilder( + int index) { + return getPoiDataFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.getDefaultInstance()); + } + public java.util.List + getPoiDataBuilderList() { + return getPoiDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBoxData, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder> + getPoiDataFieldBuilder() { + if (poiDataBuilder_ == null) { + poiDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBoxData, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder>( + poiData_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + poiData_ = null; + } + return poiDataBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiIndex) } static { defaultInstance = new OsmAndPoiIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiIndex) } + public interface OsmAndPoiNameIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .OsmAnd.OBF.IndexedStringTable table = 3; + boolean hasTable(); + net.osmand.binary.OsmandOdb.IndexedStringTable getTable(); + net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder(); + + // repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; + java.util.List + getDataList(); + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData getData(int index); + int getDataCount(); + java.util.List + getDataOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder getDataOrBuilder( + int index); + } public static final class OsmAndPoiNameIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndPoiNameIndexOrBuilder { // Use OsmAndPoiNameIndex.newBuilder() to construct. - private OsmAndPoiNameIndex() { - initFields(); + private OsmAndPoiNameIndex(Builder builder) { + super(builder); } private OsmAndPoiNameIndex(boolean noInit) {} @@ -14246,11 +25970,25 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_fieldAccessorTable; } + public interface OsmAndPoiNameIndexDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; + java.util.List + getAtomsList(); + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom getAtoms(int index); + int getAtomsCount(); + java.util.List + getAtomsOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder getAtomsOrBuilder( + int index); + } public static final class OsmAndPoiNameIndexData extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndPoiNameIndexDataOrBuilder { // Use OsmAndPoiNameIndexData.newBuilder() to construct. - private OsmAndPoiNameIndexData() { - initFields(); + private OsmAndPoiNameIndexData(Builder builder) { + super(builder); } private OsmAndPoiNameIndexData(boolean noInit) {} @@ -14275,27 +26013,42 @@ public final class OsmandOdb { // repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; public static final int ATOMS_FIELD_NUMBER = 3; - private java.util.List atoms_ = - java.util.Collections.emptyList(); + private java.util.List atoms_; public java.util.List getAtomsList() { return atoms_; } - public int getAtomsCount() { return atoms_.size(); } + public java.util.List + getAtomsOrBuilderList() { + return atoms_; + } + public int getAtomsCount() { + return atoms_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom getAtoms(int index) { return atoms_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder getAtomsOrBuilder( + int index) { + return atoms_.get(index); + } private void initFields() { + atoms_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - for (net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom element : getAtomsList()) { - output.writeMessage(3, element); + for (int i = 0; i < atoms_.size(); i++) { + output.writeMessage(3, atoms_.get(i)); } getUnknownFields().writeTo(output); } @@ -14306,15 +26059,22 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - for (net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom element : getAtomsList()) { + for (int i = 0; i < atoms_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, element); + .computeMessageSize(3, atoms_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -14389,34 +26149,56 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getAtomsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + if (atomsBuilder_ == null) { + atoms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + atomsBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -14428,37 +26210,38 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData(this); + int from_bitField0_ = bitField0_; + if (atomsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + atoms_ = java.util.Collections.unmodifiableList(atoms_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.atoms_ = atoms_; + } else { + result.atoms_ = atomsBuilder_.build(); } - if (result.atoms_ != java.util.Collections.EMPTY_LIST) { - result.atoms_ = - java.util.Collections.unmodifiableList(result.atoms_); - } - net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData returnMe = result; - result = null; - return returnMe; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -14472,16 +26255,40 @@ public final class OsmandOdb { public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.getDefaultInstance()) return this; - if (!other.atoms_.isEmpty()) { - if (result.atoms_.isEmpty()) { - result.atoms_ = new java.util.ArrayList(); + if (atomsBuilder_ == null) { + if (!other.atoms_.isEmpty()) { + if (atoms_.isEmpty()) { + atoms_ = other.atoms_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAtomsIsMutable(); + atoms_.addAll(other.atoms_); + } + onChanged(); + } + } else { + if (!other.atoms_.isEmpty()) { + if (atomsBuilder_.isEmpty()) { + atomsBuilder_.dispose(); + atomsBuilder_ = null; + atoms_ = other.atoms_; + bitField0_ = (bitField0_ & ~0x00000001); + atomsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAtomsFieldBuilder() : null; + } else { + atomsBuilder_.addAllMessages(other.atoms_); + } } - result.atoms_.addAll(other.atoms_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -14494,11 +26301,13 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; @@ -14513,105 +26322,265 @@ public final class OsmandOdb { } } + private int bitField0_; // repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; + private java.util.List atoms_ = + java.util.Collections.emptyList(); + private void ensureAtomsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + atoms_ = new java.util.ArrayList(atoms_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder> atomsBuilder_; + public java.util.List getAtomsList() { - return java.util.Collections.unmodifiableList(result.atoms_); + if (atomsBuilder_ == null) { + return java.util.Collections.unmodifiableList(atoms_); + } else { + return atomsBuilder_.getMessageList(); + } } public int getAtomsCount() { - return result.getAtomsCount(); + if (atomsBuilder_ == null) { + return atoms_.size(); + } else { + return atomsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom getAtoms(int index) { - return result.getAtoms(index); - } - public Builder setAtoms(int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom value) { - if (value == null) { - throw new NullPointerException(); + if (atomsBuilder_ == null) { + return atoms_.get(index); + } else { + return atomsBuilder_.getMessage(index); + } + } + public Builder setAtoms( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom value) { + if (atomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAtomsIsMutable(); + atoms_.set(index, value); + onChanged(); + } else { + atomsBuilder_.setMessage(index, value); } - result.atoms_.set(index, value); return this; } - public Builder setAtoms(int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder builderForValue) { - result.atoms_.set(index, builderForValue.build()); + public Builder setAtoms( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder builderForValue) { + if (atomsBuilder_ == null) { + ensureAtomsIsMutable(); + atoms_.set(index, builderForValue.build()); + onChanged(); + } else { + atomsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addAtoms(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom value) { - if (value == null) { - throw new NullPointerException(); + if (atomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAtomsIsMutable(); + atoms_.add(value); + onChanged(); + } else { + atomsBuilder_.addMessage(value); } - if (result.atoms_.isEmpty()) { - result.atoms_ = new java.util.ArrayList(); - } - result.atoms_.add(value); return this; } - public Builder addAtoms(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder builderForValue) { - if (result.atoms_.isEmpty()) { - result.atoms_ = new java.util.ArrayList(); + public Builder addAtoms( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom value) { + if (atomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAtomsIsMutable(); + atoms_.add(index, value); + onChanged(); + } else { + atomsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addAtoms( + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder builderForValue) { + if (atomsBuilder_ == null) { + ensureAtomsIsMutable(); + atoms_.add(builderForValue.build()); + onChanged(); + } else { + atomsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addAtoms( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder builderForValue) { + if (atomsBuilder_ == null) { + ensureAtomsIsMutable(); + atoms_.add(index, builderForValue.build()); + onChanged(); + } else { + atomsBuilder_.addMessage(index, builderForValue.build()); } - result.atoms_.add(builderForValue.build()); return this; } public Builder addAllAtoms( java.lang.Iterable values) { - if (result.atoms_.isEmpty()) { - result.atoms_ = new java.util.ArrayList(); + if (atomsBuilder_ == null) { + ensureAtomsIsMutable(); + super.addAll(values, atoms_); + onChanged(); + } else { + atomsBuilder_.addAllMessages(values); } - super.addAll(values, result.atoms_); return this; } public Builder clearAtoms() { - result.atoms_ = java.util.Collections.emptyList(); + if (atomsBuilder_ == null) { + atoms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + atomsBuilder_.clear(); + } return this; } + public Builder removeAtoms(int index) { + if (atomsBuilder_ == null) { + ensureAtomsIsMutable(); + atoms_.remove(index); + onChanged(); + } else { + atomsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder getAtomsBuilder( + int index) { + return getAtomsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder getAtomsOrBuilder( + int index) { + if (atomsBuilder_ == null) { + return atoms_.get(index); } else { + return atomsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getAtomsOrBuilderList() { + if (atomsBuilder_ != null) { + return atomsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(atoms_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder addAtomsBuilder() { + return getAtomsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder addAtomsBuilder( + int index) { + return getAtomsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.getDefaultInstance()); + } + public java.util.List + getAtomsBuilderList() { + return getAtomsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder> + getAtomsFieldBuilder() { + if (atomsBuilder_ == null) { + atomsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder>( + atoms_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + atoms_ = null; + } + return atomsBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData) } static { defaultInstance = new OsmAndPoiNameIndexData(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData) } + private int bitField0_; // required .OsmAnd.OBF.IndexedStringTable table = 3; public static final int TABLE_FIELD_NUMBER = 3; - private boolean hasTable; private net.osmand.binary.OsmandOdb.IndexedStringTable table_; - public boolean hasTable() { return hasTable; } - public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { return table_; } + public boolean hasTable() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { + return table_; + } + public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder() { + return table_; + } // repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; public static final int DATA_FIELD_NUMBER = 5; - private java.util.List data_ = - java.util.Collections.emptyList(); + private java.util.List data_; public java.util.List getDataList() { return data_; } - public int getDataCount() { return data_.size(); } + public java.util.List + getDataOrBuilderList() { + return data_; + } + public int getDataCount() { + return data_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData getData(int index) { return data_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder getDataOrBuilder( + int index) { + return data_.get(index); + } private void initFields() { table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); + data_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasTable) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasTable()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasTable()) { - output.writeMessage(3, getTable()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(3, table_); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData element : getDataList()) { - output.writeMessage(5, element); + for (int i = 0; i < data_.size(); i++) { + output.writeMessage(5, data_.get(i)); } getUnknownFields().writeTo(output); } @@ -14622,19 +26591,26 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasTable()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTable()); + .computeMessageSize(3, table_); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData element : getDataList()) { + for (int i = 0; i < data_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, element); + .computeMessageSize(5, data_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -14709,34 +26685,63 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getTableFieldBuilder(); + getDataFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + if (tableBuilder_ == null) { + table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); + } else { + tableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + dataBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -14748,37 +26753,48 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.data_ != java.util.Collections.EMPTY_LIST) { - result.data_ = - java.util.Collections.unmodifiableList(result.data_); + if (tableBuilder_ == null) { + result.table_ = table_; + } else { + result.table_ = tableBuilder_.build(); } - net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex returnMe = result; - result = null; - return returnMe; + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + data_ = java.util.Collections.unmodifiableList(data_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -14795,16 +26811,44 @@ public final class OsmandOdb { if (other.hasTable()) { mergeTable(other.getTable()); } - if (!other.data_.isEmpty()) { - if (result.data_.isEmpty()) { - result.data_ = new java.util.ArrayList(); + if (dataBuilder_ == null) { + if (!other.data_.isEmpty()) { + if (data_.isEmpty()) { + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDataIsMutable(); + data_.addAll(other.data_); + } + onChanged(); + } + } else { + if (!other.data_.isEmpty()) { + if (dataBuilder_.isEmpty()) { + dataBuilder_.dispose(); + dataBuilder_ = null; + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000002); + dataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getDataFieldBuilder() : null; + } else { + dataBuilder_.addAllMessages(other.data_); + } } - result.data_.addAll(other.data_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasTable()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -14817,11 +26861,13 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; @@ -14845,112 +26891,320 @@ public final class OsmandOdb { } } + private int bitField0_; // required .OsmAnd.OBF.IndexedStringTable table = 3; + private net.osmand.binary.OsmandOdb.IndexedStringTable table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> tableBuilder_; public boolean hasTable() { - return result.hasTable(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { - return result.getTable(); + if (tableBuilder_ == null) { + return table_; + } else { + return tableBuilder_.getMessage(); + } } public Builder setTable(net.osmand.binary.OsmandOdb.IndexedStringTable value) { - if (value == null) { - throw new NullPointerException(); + if (tableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + onChanged(); + } else { + tableBuilder_.setMessage(value); } - result.hasTable = true; - result.table_ = value; + bitField0_ |= 0x00000001; return this; } - public Builder setTable(net.osmand.binary.OsmandOdb.IndexedStringTable.Builder builderForValue) { - result.hasTable = true; - result.table_ = builderForValue.build(); + public Builder setTable( + net.osmand.binary.OsmandOdb.IndexedStringTable.Builder builderForValue) { + if (tableBuilder_ == null) { + table_ = builderForValue.build(); + onChanged(); + } else { + tableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; return this; } public Builder mergeTable(net.osmand.binary.OsmandOdb.IndexedStringTable value) { - if (result.hasTable() && - result.table_ != net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()) { - result.table_ = - net.osmand.binary.OsmandOdb.IndexedStringTable.newBuilder(result.table_).mergeFrom(value).buildPartial(); + if (tableBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + table_ != net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()) { + table_ = + net.osmand.binary.OsmandOdb.IndexedStringTable.newBuilder(table_).mergeFrom(value).buildPartial(); + } else { + table_ = value; + } + onChanged(); } else { - result.table_ = value; + tableBuilder_.mergeFrom(value); } - result.hasTable = true; + bitField0_ |= 0x00000001; return this; } public Builder clearTable() { - result.hasTable = false; - result.table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); + if (tableBuilder_ == null) { + table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); + onChanged(); + } else { + tableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); return this; } + public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder getTableBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTableFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder() { + if (tableBuilder_ != null) { + return tableBuilder_.getMessageOrBuilder(); + } else { + return table_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> + getTableFieldBuilder() { + if (tableBuilder_ == null) { + tableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder>( + table_, + getParentForChildren(), + isClean()); + table_ = null; + } + return tableBuilder_; + } // repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; + private java.util.List data_ = + java.util.Collections.emptyList(); + private void ensureDataIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + data_ = new java.util.ArrayList(data_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder> dataBuilder_; + public java.util.List getDataList() { - return java.util.Collections.unmodifiableList(result.data_); + if (dataBuilder_ == null) { + return java.util.Collections.unmodifiableList(data_); + } else { + return dataBuilder_.getMessageList(); + } } public int getDataCount() { - return result.getDataCount(); + if (dataBuilder_ == null) { + return data_.size(); + } else { + return dataBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData getData(int index) { - return result.getData(index); - } - public Builder setData(int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData value) { - if (value == null) { - throw new NullPointerException(); + if (dataBuilder_ == null) { + return data_.get(index); + } else { + return dataBuilder_.getMessage(index); + } + } + public Builder setData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.set(index, value); + onChanged(); + } else { + dataBuilder_.setMessage(index, value); } - result.data_.set(index, value); return this; } - public Builder setData(int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder builderForValue) { - result.data_.set(index, builderForValue.build()); + public Builder setData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.set(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addData(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData value) { - if (value == null) { - throw new NullPointerException(); + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(value); + onChanged(); + } else { + dataBuilder_.addMessage(value); } - if (result.data_.isEmpty()) { - result.data_ = new java.util.ArrayList(); - } - result.data_.add(value); return this; } - public Builder addData(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder builderForValue) { - if (result.data_.isEmpty()) { - result.data_ = new java.util.ArrayList(); + public Builder addData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(index, value); + onChanged(); + } else { + dataBuilder_.addMessage(index, value); + } + return this; + } + public Builder addData( + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(index, builderForValue.build()); } - result.data_.add(builderForValue.build()); return this; } public Builder addAllData( java.lang.Iterable values) { - if (result.data_.isEmpty()) { - result.data_ = new java.util.ArrayList(); + if (dataBuilder_ == null) { + ensureDataIsMutable(); + super.addAll(values, data_); + onChanged(); + } else { + dataBuilder_.addAllMessages(values); } - super.addAll(values, result.data_); return this; } public Builder clearData() { - result.data_ = java.util.Collections.emptyList(); + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dataBuilder_.clear(); + } return this; } + public Builder removeData(int index) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.remove(index); + onChanged(); + } else { + dataBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder getDataBuilder( + int index) { + return getDataFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder getDataOrBuilder( + int index) { + if (dataBuilder_ == null) { + return data_.get(index); } else { + return dataBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getDataOrBuilderList() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(data_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder addDataBuilder() { + return getDataFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder addDataBuilder( + int index) { + return getDataFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.getDefaultInstance()); + } + public java.util.List + getDataBuilderList() { + return getDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder>( + data_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiNameIndex) } static { defaultInstance = new OsmAndPoiNameIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiNameIndex) } + public interface OsmAndPoiNameIndexDataAtomOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint32 zoom = 2; + boolean hasZoom(); + int getZoom(); + + // optional uint32 x = 3; + boolean hasX(); + int getX(); + + // optional uint32 y = 4; + boolean hasY(); + int getY(); + + // optional fixed32 shiftTo = 14; + boolean hasShiftTo(); + int getShiftTo(); + } public static final class OsmAndPoiNameIndexDataAtom extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndPoiNameIndexDataAtomOrBuilder { // Use OsmAndPoiNameIndexDataAtom.newBuilder() to construct. - private OsmAndPoiNameIndexDataAtom() { - initFields(); + private OsmAndPoiNameIndexDataAtom(Builder builder) { + super(builder); } private OsmAndPoiNameIndexDataAtom(boolean noInit) {} @@ -14973,54 +27227,76 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_fieldAccessorTable; } + private int bitField0_; // optional uint32 zoom = 2; public static final int ZOOM_FIELD_NUMBER = 2; - private boolean hasZoom; - private int zoom_ = 0; - public boolean hasZoom() { return hasZoom; } - public int getZoom() { return zoom_; } + private int zoom_; + public boolean hasZoom() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getZoom() { + return zoom_; + } // optional uint32 x = 3; public static final int X_FIELD_NUMBER = 3; - private boolean hasX; - private int x_ = 0; - public boolean hasX() { return hasX; } - public int getX() { return x_; } + private int x_; + public boolean hasX() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getX() { + return x_; + } // optional uint32 y = 4; public static final int Y_FIELD_NUMBER = 4; - private boolean hasY; - private int y_ = 0; - public boolean hasY() { return hasY; } - public int getY() { return y_; } + private int y_; + public boolean hasY() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getY() { + return y_; + } // optional fixed32 shiftTo = 14; public static final int SHIFTTO_FIELD_NUMBER = 14; - private boolean hasShiftTo; - private int shiftTo_ = 0; - public boolean hasShiftTo() { return hasShiftTo; } - public int getShiftTo() { return shiftTo_; } + private int shiftTo_; + public boolean hasShiftTo() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getShiftTo() { + return shiftTo_; + } private void initFields() { + zoom_ = 0; + x_ = 0; + y_ = 0; + shiftTo_ = 0; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasZoom()) { - output.writeUInt32(2, getZoom()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(2, zoom_); } - if (hasX()) { - output.writeUInt32(3, getX()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(3, x_); } - if (hasY()) { - output.writeUInt32(4, getY()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(4, y_); } - if (hasShiftTo()) { - output.writeFixed32(14, getShiftTo()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeFixed32(14, shiftTo_); } getUnknownFields().writeTo(output); } @@ -15031,27 +27307,34 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasZoom()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, getZoom()); + .computeUInt32Size(2, zoom_); } - if (hasX()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, getX()); + .computeUInt32Size(3, x_); } - if (hasY()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, getY()); + .computeUInt32Size(4, y_); } - if (hasShiftTo()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(14, getShiftTo()); + .computeFixed32Size(14, shiftTo_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15126,34 +27409,57 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom(); + super.clear(); + zoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + x_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + y_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + shiftTo_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -15165,33 +27471,47 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom returnMe = result; - result = null; - return returnMe; + result.zoom_ = zoom_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.x_ = x_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.y_ = y_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.shiftTo_ = shiftTo_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -15221,6 +27541,10 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -15233,105 +27557,124 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 16: { - setZoom(input.readUInt32()); + bitField0_ |= 0x00000001; + zoom_ = input.readUInt32(); break; } case 24: { - setX(input.readUInt32()); + bitField0_ |= 0x00000002; + x_ = input.readUInt32(); break; } case 32: { - setY(input.readUInt32()); + bitField0_ |= 0x00000004; + y_ = input.readUInt32(); break; } case 117: { - setShiftTo(input.readFixed32()); + bitField0_ |= 0x00000008; + shiftTo_ = input.readFixed32(); break; } } } } + private int bitField0_; // optional uint32 zoom = 2; + private int zoom_ ; public boolean hasZoom() { - return result.hasZoom(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getZoom() { - return result.getZoom(); + return zoom_; } public Builder setZoom(int value) { - result.hasZoom = true; - result.zoom_ = value; + bitField0_ |= 0x00000001; + zoom_ = value; + onChanged(); return this; } public Builder clearZoom() { - result.hasZoom = false; - result.zoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + zoom_ = 0; + onChanged(); return this; } // optional uint32 x = 3; + private int x_ ; public boolean hasX() { - return result.hasX(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getX() { - return result.getX(); + return x_; } public Builder setX(int value) { - result.hasX = true; - result.x_ = value; + bitField0_ |= 0x00000002; + x_ = value; + onChanged(); return this; } public Builder clearX() { - result.hasX = false; - result.x_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + x_ = 0; + onChanged(); return this; } // optional uint32 y = 4; + private int y_ ; public boolean hasY() { - return result.hasY(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getY() { - return result.getY(); + return y_; } public Builder setY(int value) { - result.hasY = true; - result.y_ = value; + bitField0_ |= 0x00000004; + y_ = value; + onChanged(); return this; } public Builder clearY() { - result.hasY = false; - result.y_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + y_ = 0; + onChanged(); return this; } // optional fixed32 shiftTo = 14; + private int shiftTo_ ; public boolean hasShiftTo() { - return result.hasShiftTo(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getShiftTo() { - return result.getShiftTo(); + return shiftTo_; } public Builder setShiftTo(int value) { - result.hasShiftTo = true; - result.shiftTo_ = value; + bitField0_ |= 0x00000008; + shiftTo_ = value; + onChanged(); return this; } public Builder clearShiftTo() { - result.hasShiftTo = false; - result.shiftTo_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + shiftTo_ = 0; + onChanged(); return this; } @@ -15340,18 +27683,30 @@ public final class OsmandOdb { static { defaultInstance = new OsmAndPoiNameIndexDataAtom(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiNameIndexDataAtom) } + public interface OsmAndCategoryTableOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string category = 1; + boolean hasCategory(); + String getCategory(); + + // repeated string subcategories = 3; + java.util.List getSubcategoriesList(); + int getSubcategoriesCount(); + String getSubcategories(int index); + } public static final class OsmAndCategoryTable extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndCategoryTableOrBuilder { // Use OsmAndCategoryTable.newBuilder() to construct. - private OsmAndCategoryTable() { - initFields(); + private OsmAndCategoryTable(Builder builder) { + super(builder); } private OsmAndCategoryTable(boolean noInit) {} @@ -15374,40 +27729,78 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndCategoryTable_fieldAccessorTable; } + private int bitField0_; // required string category = 1; public static final int CATEGORY_FIELD_NUMBER = 1; - private boolean hasCategory; - private java.lang.String category_ = ""; - public boolean hasCategory() { return hasCategory; } - public java.lang.String getCategory() { return category_; } + private java.lang.Object category_; + public boolean hasCategory() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getCategory() { + java.lang.Object ref = category_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + category_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getCategoryBytes() { + java.lang.Object ref = category_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + category_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // repeated string subcategories = 3; public static final int SUBCATEGORIES_FIELD_NUMBER = 3; - private java.util.List subcategories_ = - java.util.Collections.emptyList(); - public java.util.List getSubcategoriesList() { + private com.google.protobuf.LazyStringList subcategories_; + public java.util.List + getSubcategoriesList() { return subcategories_; } - public int getSubcategoriesCount() { return subcategories_.size(); } - public java.lang.String getSubcategories(int index) { + public int getSubcategoriesCount() { + return subcategories_.size(); + } + public String getSubcategories(int index) { return subcategories_.get(index); } private void initFields() { + category_ = ""; + subcategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasCategory) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasCategory()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasCategory()) { - output.writeString(1, getCategory()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getCategoryBytes()); } - for (java.lang.String element : getSubcategoriesList()) { - output.writeString(3, element); + for (int i = 0; i < subcategories_.size(); i++) { + output.writeBytes(3, subcategories_.getByteString(i)); } getUnknownFields().writeTo(output); } @@ -15418,15 +27811,15 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasCategory()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getCategory()); + .computeBytesSize(1, getCategoryBytes()); } { int dataSize = 0; - for (java.lang.String element : getSubcategoriesList()) { + for (int i = 0; i < subcategories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeStringSizeNoTag(element); + .computeBytesSizeNoTag(subcategories_.getByteString(i)); } size += dataSize; size += 1 * getSubcategoriesList().size(); @@ -15436,6 +27829,13 @@ public final class OsmandOdb { return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndCategoryTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15510,34 +27910,53 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndCategoryTable result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndCategoryTable.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndCategoryTable(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndCategoryTable_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndCategoryTable internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndCategoryTable_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndCategoryTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndCategoryTable(); + super.clear(); + category_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + subcategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -15549,37 +27968,41 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndCategoryTable.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndCategoryTable build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndCategoryTable result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndCategoryTable buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndCategoryTable result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndCategoryTable buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndCategoryTable result = new net.osmand.binary.OsmandOdb.OsmAndCategoryTable(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.subcategories_ != java.util.Collections.EMPTY_LIST) { - result.subcategories_ = - java.util.Collections.unmodifiableList(result.subcategories_); + result.category_ = category_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subcategories_ = new com.google.protobuf.UnmodifiableLazyStringList( + subcategories_); + bitField0_ = (bitField0_ & ~0x00000002); } - net.osmand.binary.OsmandOdb.OsmAndCategoryTable returnMe = result; - result = null; - return returnMe; + result.subcategories_ = subcategories_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -15597,15 +28020,27 @@ public final class OsmandOdb { setCategory(other.getCategory()); } if (!other.subcategories_.isEmpty()) { - if (result.subcategories_.isEmpty()) { - result.subcategories_ = new java.util.ArrayList(); + if (subcategories_.isEmpty()) { + subcategories_ = other.subcategories_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubcategoriesIsMutable(); + subcategories_.addAll(other.subcategories_); } - result.subcategories_.addAll(other.subcategories_); + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasCategory()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -15618,106 +28053,155 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setCategory(input.readString()); + bitField0_ |= 0x00000001; + category_ = input.readBytes(); break; } case 26: { - addSubcategories(input.readString()); + ensureSubcategoriesIsMutable(); + subcategories_.add(input.readBytes()); break; } } } } + private int bitField0_; // required string category = 1; + private java.lang.Object category_ = ""; public boolean hasCategory() { - return result.hasCategory(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getCategory() { - return result.getCategory(); + public String getCategory() { + java.lang.Object ref = category_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + category_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setCategory(java.lang.String value) { + public Builder setCategory(String value) { if (value == null) { throw new NullPointerException(); } - result.hasCategory = true; - result.category_ = value; + bitField0_ |= 0x00000001; + category_ = value; + onChanged(); return this; } public Builder clearCategory() { - result.hasCategory = false; - result.category_ = getDefaultInstance().getCategory(); + bitField0_ = (bitField0_ & ~0x00000001); + category_ = getDefaultInstance().getCategory(); + onChanged(); return this; } + void setCategory(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + category_ = value; + onChanged(); + } // repeated string subcategories = 3; - public java.util.List getSubcategoriesList() { - return java.util.Collections.unmodifiableList(result.subcategories_); + private com.google.protobuf.LazyStringList subcategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSubcategoriesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + subcategories_ = new com.google.protobuf.LazyStringArrayList(subcategories_); + bitField0_ |= 0x00000002; + } + } + public java.util.List + getSubcategoriesList() { + return java.util.Collections.unmodifiableList(subcategories_); } public int getSubcategoriesCount() { - return result.getSubcategoriesCount(); + return subcategories_.size(); } - public java.lang.String getSubcategories(int index) { - return result.getSubcategories(index); + public String getSubcategories(int index) { + return subcategories_.get(index); } - public Builder setSubcategories(int index, java.lang.String value) { + public Builder setSubcategories( + int index, String value) { if (value == null) { throw new NullPointerException(); } - result.subcategories_.set(index, value); + ensureSubcategoriesIsMutable(); + subcategories_.set(index, value); + onChanged(); return this; } - public Builder addSubcategories(java.lang.String value) { + public Builder addSubcategories(String value) { if (value == null) { throw new NullPointerException(); } - if (result.subcategories_.isEmpty()) { - result.subcategories_ = new java.util.ArrayList(); - } - result.subcategories_.add(value); + ensureSubcategoriesIsMutable(); + subcategories_.add(value); + onChanged(); return this; } public Builder addAllSubcategories( - java.lang.Iterable values) { - if (result.subcategories_.isEmpty()) { - result.subcategories_ = new java.util.ArrayList(); - } - super.addAll(values, result.subcategories_); + java.lang.Iterable values) { + ensureSubcategoriesIsMutable(); + super.addAll(values, subcategories_); + onChanged(); return this; } public Builder clearSubcategories() { - result.subcategories_ = java.util.Collections.emptyList(); + subcategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); return this; } + void addSubcategories(com.google.protobuf.ByteString value) { + ensureSubcategoriesIsMutable(); + subcategories_.add(value); + onChanged(); + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndCategoryTable) } static { defaultInstance = new OsmAndCategoryTable(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndCategoryTable) } + public interface OsmAndSubtypesTableOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; + java.util.List + getSubtypesList(); + net.osmand.binary.OsmandOdb.OsmAndPoiSubtype getSubtypes(int index); + int getSubtypesCount(); + java.util.List + getSubtypesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder getSubtypesOrBuilder( + int index); + } public static final class OsmAndSubtypesTable extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndSubtypesTableOrBuilder { // Use OsmAndSubtypesTable.newBuilder() to construct. - private OsmAndSubtypesTable() { - initFields(); + private OsmAndSubtypesTable(Builder builder) { + super(builder); } private OsmAndSubtypesTable(boolean noInit) {} @@ -15742,30 +28226,48 @@ public final class OsmandOdb { // repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; public static final int SUBTYPES_FIELD_NUMBER = 4; - private java.util.List subtypes_ = - java.util.Collections.emptyList(); + private java.util.List subtypes_; public java.util.List getSubtypesList() { return subtypes_; } - public int getSubtypesCount() { return subtypes_.size(); } + public java.util.List + getSubtypesOrBuilderList() { + return subtypes_; + } + public int getSubtypesCount() { + return subtypes_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype getSubtypes(int index) { return subtypes_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder getSubtypesOrBuilder( + int index) { + return subtypes_.get(index); + } private void initFields() { + subtypes_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - for (net.osmand.binary.OsmandOdb.OsmAndPoiSubtype element : getSubtypesList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getSubtypesCount(); i++) { + if (!getSubtypes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - for (net.osmand.binary.OsmandOdb.OsmAndPoiSubtype element : getSubtypesList()) { - output.writeMessage(4, element); + for (int i = 0; i < subtypes_.size(); i++) { + output.writeMessage(4, subtypes_.get(i)); } getUnknownFields().writeTo(output); } @@ -15776,15 +28278,22 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - for (net.osmand.binary.OsmandOdb.OsmAndPoiSubtype element : getSubtypesList()) { + for (int i = 0; i < subtypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, element); + .computeMessageSize(4, subtypes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndSubtypesTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15859,34 +28368,56 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndSubtypesTable result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndSubtypesTable(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndSubtypesTable_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndSubtypesTable internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndSubtypesTable_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getSubtypesFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + if (subtypesBuilder_ == null) { + subtypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + subtypesBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndSubtypesTable(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -15898,37 +28429,38 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndSubtypesTable result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndSubtypesTable buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndSubtypesTable result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndSubtypesTable result = new net.osmand.binary.OsmandOdb.OsmAndSubtypesTable(this); + int from_bitField0_ = bitField0_; + if (subtypesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subtypes_ = java.util.Collections.unmodifiableList(subtypes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subtypes_ = subtypes_; + } else { + result.subtypes_ = subtypesBuilder_.build(); } - if (result.subtypes_ != java.util.Collections.EMPTY_LIST) { - result.subtypes_ = - java.util.Collections.unmodifiableList(result.subtypes_); - } - net.osmand.binary.OsmandOdb.OsmAndSubtypesTable returnMe = result; - result = null; - return returnMe; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -15942,16 +28474,46 @@ public final class OsmandOdb { public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndSubtypesTable other) { if (other == net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance()) return this; - if (!other.subtypes_.isEmpty()) { - if (result.subtypes_.isEmpty()) { - result.subtypes_ = new java.util.ArrayList(); + if (subtypesBuilder_ == null) { + if (!other.subtypes_.isEmpty()) { + if (subtypes_.isEmpty()) { + subtypes_ = other.subtypes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubtypesIsMutable(); + subtypes_.addAll(other.subtypes_); + } + onChanged(); + } + } else { + if (!other.subtypes_.isEmpty()) { + if (subtypesBuilder_.isEmpty()) { + subtypesBuilder_.dispose(); + subtypesBuilder_ = null; + subtypes_ = other.subtypes_; + bitField0_ = (bitField0_ & ~0x00000001); + subtypesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSubtypesFieldBuilder() : null; + } else { + subtypesBuilder_.addAllMessages(other.subtypes_); + } } - result.subtypes_.addAll(other.subtypes_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + for (int i = 0; i < getSubtypesCount(); i++) { + if (!getSubtypes(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -15964,11 +28526,13 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; @@ -15983,75 +28547,239 @@ public final class OsmandOdb { } } + private int bitField0_; // repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; + private java.util.List subtypes_ = + java.util.Collections.emptyList(); + private void ensureSubtypesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + subtypes_ = new java.util.ArrayList(subtypes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiSubtype, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder> subtypesBuilder_; + public java.util.List getSubtypesList() { - return java.util.Collections.unmodifiableList(result.subtypes_); + if (subtypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(subtypes_); + } else { + return subtypesBuilder_.getMessageList(); + } } public int getSubtypesCount() { - return result.getSubtypesCount(); + if (subtypesBuilder_ == null) { + return subtypes_.size(); + } else { + return subtypesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype getSubtypes(int index) { - return result.getSubtypes(index); - } - public Builder setSubtypes(int index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype value) { - if (value == null) { - throw new NullPointerException(); + if (subtypesBuilder_ == null) { + return subtypes_.get(index); + } else { + return subtypesBuilder_.getMessage(index); + } + } + public Builder setSubtypes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype value) { + if (subtypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubtypesIsMutable(); + subtypes_.set(index, value); + onChanged(); + } else { + subtypesBuilder_.setMessage(index, value); } - result.subtypes_.set(index, value); return this; } - public Builder setSubtypes(int index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder builderForValue) { - result.subtypes_.set(index, builderForValue.build()); + public Builder setSubtypes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder builderForValue) { + if (subtypesBuilder_ == null) { + ensureSubtypesIsMutable(); + subtypes_.set(index, builderForValue.build()); + onChanged(); + } else { + subtypesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addSubtypes(net.osmand.binary.OsmandOdb.OsmAndPoiSubtype value) { - if (value == null) { - throw new NullPointerException(); + if (subtypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubtypesIsMutable(); + subtypes_.add(value); + onChanged(); + } else { + subtypesBuilder_.addMessage(value); } - if (result.subtypes_.isEmpty()) { - result.subtypes_ = new java.util.ArrayList(); - } - result.subtypes_.add(value); return this; } - public Builder addSubtypes(net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder builderForValue) { - if (result.subtypes_.isEmpty()) { - result.subtypes_ = new java.util.ArrayList(); + public Builder addSubtypes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype value) { + if (subtypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubtypesIsMutable(); + subtypes_.add(index, value); + onChanged(); + } else { + subtypesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addSubtypes( + net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder builderForValue) { + if (subtypesBuilder_ == null) { + ensureSubtypesIsMutable(); + subtypes_.add(builderForValue.build()); + onChanged(); + } else { + subtypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addSubtypes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder builderForValue) { + if (subtypesBuilder_ == null) { + ensureSubtypesIsMutable(); + subtypes_.add(index, builderForValue.build()); + onChanged(); + } else { + subtypesBuilder_.addMessage(index, builderForValue.build()); } - result.subtypes_.add(builderForValue.build()); return this; } public Builder addAllSubtypes( java.lang.Iterable values) { - if (result.subtypes_.isEmpty()) { - result.subtypes_ = new java.util.ArrayList(); + if (subtypesBuilder_ == null) { + ensureSubtypesIsMutable(); + super.addAll(values, subtypes_); + onChanged(); + } else { + subtypesBuilder_.addAllMessages(values); } - super.addAll(values, result.subtypes_); return this; } public Builder clearSubtypes() { - result.subtypes_ = java.util.Collections.emptyList(); + if (subtypesBuilder_ == null) { + subtypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + subtypesBuilder_.clear(); + } return this; } + public Builder removeSubtypes(int index) { + if (subtypesBuilder_ == null) { + ensureSubtypesIsMutable(); + subtypes_.remove(index); + onChanged(); + } else { + subtypesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder getSubtypesBuilder( + int index) { + return getSubtypesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder getSubtypesOrBuilder( + int index) { + if (subtypesBuilder_ == null) { + return subtypes_.get(index); } else { + return subtypesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getSubtypesOrBuilderList() { + if (subtypesBuilder_ != null) { + return subtypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subtypes_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder addSubtypesBuilder() { + return getSubtypesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder addSubtypesBuilder( + int index) { + return getSubtypesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.getDefaultInstance()); + } + public java.util.List + getSubtypesBuilderList() { + return getSubtypesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiSubtype, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder> + getSubtypesFieldBuilder() { + if (subtypesBuilder_ == null) { + subtypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiSubtype, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder>( + subtypes_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + subtypes_ = null; + } + return subtypesBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndSubtypesTable) } static { defaultInstance = new OsmAndSubtypesTable(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndSubtypesTable) } + public interface OsmAndPoiSubtypeOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string name = 1; + boolean hasName(); + String getName(); + + // optional string tagname = 2; + boolean hasTagname(); + String getTagname(); + + // required bool isText = 3; + boolean hasIsText(); + boolean getIsText(); + + // optional uint32 frequency = 5; + boolean hasFrequency(); + int getFrequency(); + + // optional uint32 subtypeValuesSize = 6; + boolean hasSubtypeValuesSize(); + int getSubtypeValuesSize(); + + // repeated string subtypeValue = 8; + java.util.List getSubtypeValueList(); + int getSubtypeValueCount(); + String getSubtypeValue(int index); + } public static final class OsmAndPoiSubtype extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndPoiSubtypeOrBuilder { // Use OsmAndPoiSubtype.newBuilder() to construct. - private OsmAndPoiSubtype() { - initFields(); + private OsmAndPoiSubtype(Builder builder) { + super(builder); } private OsmAndPoiSubtype(boolean noInit) {} @@ -16074,81 +28802,160 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiSubtype_fieldAccessorTable; } + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string tagname = 2; public static final int TAGNAME_FIELD_NUMBER = 2; - private boolean hasTagname; - private java.lang.String tagname_ = ""; - public boolean hasTagname() { return hasTagname; } - public java.lang.String getTagname() { return tagname_; } + private java.lang.Object tagname_; + public boolean hasTagname() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getTagname() { + java.lang.Object ref = tagname_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + tagname_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getTagnameBytes() { + java.lang.Object ref = tagname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + tagname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // required bool isText = 3; public static final int ISTEXT_FIELD_NUMBER = 3; - private boolean hasIsText; - private boolean isText_ = false; - public boolean hasIsText() { return hasIsText; } - public boolean getIsText() { return isText_; } + private boolean isText_; + public boolean hasIsText() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getIsText() { + return isText_; + } // optional uint32 frequency = 5; public static final int FREQUENCY_FIELD_NUMBER = 5; - private boolean hasFrequency; - private int frequency_ = 0; - public boolean hasFrequency() { return hasFrequency; } - public int getFrequency() { return frequency_; } + private int frequency_; + public boolean hasFrequency() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getFrequency() { + return frequency_; + } // optional uint32 subtypeValuesSize = 6; public static final int SUBTYPEVALUESSIZE_FIELD_NUMBER = 6; - private boolean hasSubtypeValuesSize; - private int subtypeValuesSize_ = 0; - public boolean hasSubtypeValuesSize() { return hasSubtypeValuesSize; } - public int getSubtypeValuesSize() { return subtypeValuesSize_; } + private int subtypeValuesSize_; + public boolean hasSubtypeValuesSize() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getSubtypeValuesSize() { + return subtypeValuesSize_; + } // repeated string subtypeValue = 8; public static final int SUBTYPEVALUE_FIELD_NUMBER = 8; - private java.util.List subtypeValue_ = - java.util.Collections.emptyList(); - public java.util.List getSubtypeValueList() { + private com.google.protobuf.LazyStringList subtypeValue_; + public java.util.List + getSubtypeValueList() { return subtypeValue_; } - public int getSubtypeValueCount() { return subtypeValue_.size(); } - public java.lang.String getSubtypeValue(int index) { + public int getSubtypeValueCount() { + return subtypeValue_.size(); + } + public String getSubtypeValue(int index) { return subtypeValue_.get(index); } private void initFields() { + name_ = ""; + tagname_ = ""; + isText_ = false; + frequency_ = 0; + subtypeValuesSize_ = 0; + subtypeValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasName) return false; - if (!hasIsText) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIsText()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasName()) { - output.writeString(1, getName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); } - if (hasTagname()) { - output.writeString(2, getTagname()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getTagnameBytes()); } - if (hasIsText()) { - output.writeBool(3, getIsText()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, isText_); } - if (hasFrequency()) { - output.writeUInt32(5, getFrequency()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(5, frequency_); } - if (hasSubtypeValuesSize()) { - output.writeUInt32(6, getSubtypeValuesSize()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(6, subtypeValuesSize_); } - for (java.lang.String element : getSubtypeValueList()) { - output.writeString(8, element); + for (int i = 0; i < subtypeValue_.size(); i++) { + output.writeBytes(8, subtypeValue_.getByteString(i)); } getUnknownFields().writeTo(output); } @@ -16159,31 +28966,31 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasName()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getName()); + .computeBytesSize(1, getNameBytes()); } - if (hasTagname()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getTagname()); + .computeBytesSize(2, getTagnameBytes()); } - if (hasIsText()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, getIsText()); + .computeBoolSize(3, isText_); } - if (hasFrequency()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, getFrequency()); + .computeUInt32Size(5, frequency_); } - if (hasSubtypeValuesSize()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, getSubtypeValuesSize()); + .computeUInt32Size(6, subtypeValuesSize_); } { int dataSize = 0; - for (java.lang.String element : getSubtypeValueList()) { + for (int i = 0; i < subtypeValue_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeStringSizeNoTag(element); + .computeBytesSizeNoTag(subtypeValue_.getByteString(i)); } size += dataSize; size += 1 * getSubtypeValueList().size(); @@ -16193,6 +29000,13 @@ public final class OsmandOdb { return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndPoiSubtype parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -16267,34 +29081,61 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndPoiSubtype result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndPoiSubtype(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiSubtype_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndPoiSubtype internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiSubtype_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndPoiSubtype(); + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + tagname_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + isText_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + frequency_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + subtypeValuesSize_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + subtypeValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -16306,37 +29147,57 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiSubtype result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndPoiSubtype buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiSubtype result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndPoiSubtype result = new net.osmand.binary.OsmandOdb.OsmAndPoiSubtype(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.subtypeValue_ != java.util.Collections.EMPTY_LIST) { - result.subtypeValue_ = - java.util.Collections.unmodifiableList(result.subtypeValue_); + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - net.osmand.binary.OsmandOdb.OsmAndPoiSubtype returnMe = result; - result = null; - return returnMe; + result.tagname_ = tagname_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.isText_ = isText_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.frequency_ = frequency_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.subtypeValuesSize_ = subtypeValuesSize_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + subtypeValue_ = new com.google.protobuf.UnmodifiableLazyStringList( + subtypeValue_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.subtypeValue_ = subtypeValue_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -16366,15 +29227,31 @@ public final class OsmandOdb { setSubtypeValuesSize(other.getSubtypeValuesSize()); } if (!other.subtypeValue_.isEmpty()) { - if (result.subtypeValue_.isEmpty()) { - result.subtypeValue_ = new java.util.ArrayList(); + if (subtypeValue_.isEmpty()) { + subtypeValue_ = other.subtypeValue_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureSubtypeValueIsMutable(); + subtypeValue_.addAll(other.subtypeValue_); } - result.subtypeValue_.addAll(other.subtypeValue_); + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + if (!hasIsText()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -16387,197 +29264,295 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setName(input.readString()); + bitField0_ |= 0x00000001; + name_ = input.readBytes(); break; } case 18: { - setTagname(input.readString()); + bitField0_ |= 0x00000002; + tagname_ = input.readBytes(); break; } case 24: { - setIsText(input.readBool()); + bitField0_ |= 0x00000004; + isText_ = input.readBool(); break; } case 40: { - setFrequency(input.readUInt32()); + bitField0_ |= 0x00000008; + frequency_ = input.readUInt32(); break; } case 48: { - setSubtypeValuesSize(input.readUInt32()); + bitField0_ |= 0x00000010; + subtypeValuesSize_ = input.readUInt32(); break; } case 66: { - addSubtypeValue(input.readString()); + ensureSubtypeValueIsMutable(); + subtypeValue_.add(input.readBytes()); break; } } } } + private int bitField0_; // required string name = 1; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + } // optional string tagname = 2; + private java.lang.Object tagname_ = ""; public boolean hasTagname() { - return result.hasTagname(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - public java.lang.String getTagname() { - return result.getTagname(); + public String getTagname() { + java.lang.Object ref = tagname_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + tagname_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setTagname(java.lang.String value) { + public Builder setTagname(String value) { if (value == null) { throw new NullPointerException(); } - result.hasTagname = true; - result.tagname_ = value; + bitField0_ |= 0x00000002; + tagname_ = value; + onChanged(); return this; } public Builder clearTagname() { - result.hasTagname = false; - result.tagname_ = getDefaultInstance().getTagname(); + bitField0_ = (bitField0_ & ~0x00000002); + tagname_ = getDefaultInstance().getTagname(); + onChanged(); return this; } + void setTagname(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + tagname_ = value; + onChanged(); + } // required bool isText = 3; + private boolean isText_ ; public boolean hasIsText() { - return result.hasIsText(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public boolean getIsText() { - return result.getIsText(); + return isText_; } public Builder setIsText(boolean value) { - result.hasIsText = true; - result.isText_ = value; + bitField0_ |= 0x00000004; + isText_ = value; + onChanged(); return this; } public Builder clearIsText() { - result.hasIsText = false; - result.isText_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + isText_ = false; + onChanged(); return this; } // optional uint32 frequency = 5; + private int frequency_ ; public boolean hasFrequency() { - return result.hasFrequency(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getFrequency() { - return result.getFrequency(); + return frequency_; } public Builder setFrequency(int value) { - result.hasFrequency = true; - result.frequency_ = value; + bitField0_ |= 0x00000008; + frequency_ = value; + onChanged(); return this; } public Builder clearFrequency() { - result.hasFrequency = false; - result.frequency_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + frequency_ = 0; + onChanged(); return this; } // optional uint32 subtypeValuesSize = 6; + private int subtypeValuesSize_ ; public boolean hasSubtypeValuesSize() { - return result.hasSubtypeValuesSize(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public int getSubtypeValuesSize() { - return result.getSubtypeValuesSize(); + return subtypeValuesSize_; } public Builder setSubtypeValuesSize(int value) { - result.hasSubtypeValuesSize = true; - result.subtypeValuesSize_ = value; + bitField0_ |= 0x00000010; + subtypeValuesSize_ = value; + onChanged(); return this; } public Builder clearSubtypeValuesSize() { - result.hasSubtypeValuesSize = false; - result.subtypeValuesSize_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + subtypeValuesSize_ = 0; + onChanged(); return this; } // repeated string subtypeValue = 8; - public java.util.List getSubtypeValueList() { - return java.util.Collections.unmodifiableList(result.subtypeValue_); + private com.google.protobuf.LazyStringList subtypeValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSubtypeValueIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + subtypeValue_ = new com.google.protobuf.LazyStringArrayList(subtypeValue_); + bitField0_ |= 0x00000020; + } + } + public java.util.List + getSubtypeValueList() { + return java.util.Collections.unmodifiableList(subtypeValue_); } public int getSubtypeValueCount() { - return result.getSubtypeValueCount(); + return subtypeValue_.size(); } - public java.lang.String getSubtypeValue(int index) { - return result.getSubtypeValue(index); + public String getSubtypeValue(int index) { + return subtypeValue_.get(index); } - public Builder setSubtypeValue(int index, java.lang.String value) { + public Builder setSubtypeValue( + int index, String value) { if (value == null) { throw new NullPointerException(); } - result.subtypeValue_.set(index, value); + ensureSubtypeValueIsMutable(); + subtypeValue_.set(index, value); + onChanged(); return this; } - public Builder addSubtypeValue(java.lang.String value) { + public Builder addSubtypeValue(String value) { if (value == null) { throw new NullPointerException(); } - if (result.subtypeValue_.isEmpty()) { - result.subtypeValue_ = new java.util.ArrayList(); - } - result.subtypeValue_.add(value); + ensureSubtypeValueIsMutable(); + subtypeValue_.add(value); + onChanged(); return this; } public Builder addAllSubtypeValue( - java.lang.Iterable values) { - if (result.subtypeValue_.isEmpty()) { - result.subtypeValue_ = new java.util.ArrayList(); - } - super.addAll(values, result.subtypeValue_); + java.lang.Iterable values) { + ensureSubtypeValueIsMutable(); + super.addAll(values, subtypeValue_); + onChanged(); return this; } public Builder clearSubtypeValue() { - result.subtypeValue_ = java.util.Collections.emptyList(); + subtypeValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); return this; } + void addSubtypeValue(com.google.protobuf.ByteString value) { + ensureSubtypeValueIsMutable(); + subtypeValue_.add(value); + onChanged(); + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiSubtype) } static { defaultInstance = new OsmAndPoiSubtype(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiSubtype) } + public interface OsmAndPoiBoxOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 zoom = 1; + boolean hasZoom(); + int getZoom(); + + // required sint32 left = 2; + boolean hasLeft(); + int getLeft(); + + // required sint32 top = 3; + boolean hasTop(); + int getTop(); + + // optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; + boolean hasCategories(); + net.osmand.binary.OsmandOdb.OsmAndPoiCategories getCategories(); + net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder getCategoriesOrBuilder(); + + // repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; + java.util.List + getSubBoxesList(); + net.osmand.binary.OsmandOdb.OsmAndPoiBox getSubBoxes(int index); + int getSubBoxesCount(); + java.util.List + getSubBoxesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getSubBoxesOrBuilder( + int index); + + // optional fixed32 shiftToData = 14; + boolean hasShiftToData(); + int getShiftToData(); + } public static final class OsmAndPoiBox extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndPoiBoxOrBuilder { // Use OsmAndPoiBox.newBuilder() to construct. - private OsmAndPoiBox() { - initFields(); + private OsmAndPoiBox(Builder builder) { + super(builder); } private OsmAndPoiBox(boolean noInit) {} @@ -16600,86 +29575,136 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBox_fieldAccessorTable; } + private int bitField0_; // required uint32 zoom = 1; public static final int ZOOM_FIELD_NUMBER = 1; - private boolean hasZoom; - private int zoom_ = 0; - public boolean hasZoom() { return hasZoom; } - public int getZoom() { return zoom_; } + private int zoom_; + public boolean hasZoom() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getZoom() { + return zoom_; + } // required sint32 left = 2; public static final int LEFT_FIELD_NUMBER = 2; - private boolean hasLeft; - private int left_ = 0; - public boolean hasLeft() { return hasLeft; } - public int getLeft() { return left_; } + private int left_; + public boolean hasLeft() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getLeft() { + return left_; + } // required sint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; - private boolean hasTop; - private int top_ = 0; - public boolean hasTop() { return hasTop; } - public int getTop() { return top_; } + private int top_; + public boolean hasTop() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getTop() { + return top_; + } // optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; public static final int CATEGORIES_FIELD_NUMBER = 4; - private boolean hasCategories; private net.osmand.binary.OsmandOdb.OsmAndPoiCategories categories_; - public boolean hasCategories() { return hasCategories; } - public net.osmand.binary.OsmandOdb.OsmAndPoiCategories getCategories() { return categories_; } + public boolean hasCategories() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiCategories getCategories() { + return categories_; + } + public net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder getCategoriesOrBuilder() { + return categories_; + } // repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; public static final int SUBBOXES_FIELD_NUMBER = 10; - private java.util.List subBoxes_ = - java.util.Collections.emptyList(); + private java.util.List subBoxes_; public java.util.List getSubBoxesList() { return subBoxes_; } - public int getSubBoxesCount() { return subBoxes_.size(); } + public java.util.List + getSubBoxesOrBuilderList() { + return subBoxes_; + } + public int getSubBoxesCount() { + return subBoxes_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndPoiBox getSubBoxes(int index) { return subBoxes_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getSubBoxesOrBuilder( + int index) { + return subBoxes_.get(index); + } // optional fixed32 shiftToData = 14; public static final int SHIFTTODATA_FIELD_NUMBER = 14; - private boolean hasShiftToData; - private int shiftToData_ = 0; - public boolean hasShiftToData() { return hasShiftToData; } - public int getShiftToData() { return shiftToData_; } + private int shiftToData_; + public boolean hasShiftToData() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getShiftToData() { + return shiftToData_; + } private void initFields() { + zoom_ = 0; + left_ = 0; + top_ = 0; categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); + subBoxes_ = java.util.Collections.emptyList(); + shiftToData_ = 0; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasZoom) return false; - if (!hasLeft) return false; - if (!hasTop) return false; - for (net.osmand.binary.OsmandOdb.OsmAndPoiBox element : getSubBoxesList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasZoom()) { + memoizedIsInitialized = 0; + return false; } + if (!hasLeft()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTop()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getSubBoxesCount(); i++) { + if (!getSubBoxes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasZoom()) { - output.writeUInt32(1, getZoom()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, zoom_); } - if (hasLeft()) { - output.writeSInt32(2, getLeft()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeSInt32(2, left_); } - if (hasTop()) { - output.writeSInt32(3, getTop()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeSInt32(3, top_); } - if (hasCategories()) { - output.writeMessage(4, getCategories()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, categories_); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiBox element : getSubBoxesList()) { - output.writeMessage(10, element); + for (int i = 0; i < subBoxes_.size(); i++) { + output.writeMessage(10, subBoxes_.get(i)); } - if (hasShiftToData()) { - output.writeFixed32(14, getShiftToData()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeFixed32(14, shiftToData_); } getUnknownFields().writeTo(output); } @@ -16690,35 +29715,42 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasZoom()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, getZoom()); + .computeUInt32Size(1, zoom_); } - if (hasLeft()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(2, getLeft()); + .computeSInt32Size(2, left_); } - if (hasTop()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(3, getTop()); + .computeSInt32Size(3, top_); } - if (hasCategories()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCategories()); + .computeMessageSize(4, categories_); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiBox element : getSubBoxesList()) { + for (int i = 0; i < subBoxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, element); + .computeMessageSize(10, subBoxes_.get(i)); } - if (hasShiftToData()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(14, getShiftToData()); + .computeFixed32Size(14, shiftToData_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndPoiBox parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -16793,34 +29825,71 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndPoiBox result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiBox.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndPoiBox(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBox_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndPoiBox internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBox_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiBox.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getCategoriesFieldBuilder(); + getSubBoxesFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + zoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + left_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + top_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + if (categoriesBuilder_ == null) { + categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); + } else { + categoriesBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndPoiBox(); + bitField0_ = (bitField0_ & ~0x00000008); + if (subBoxesBuilder_ == null) { + subBoxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + subBoxesBuilder_.clear(); + } + shiftToData_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -16832,37 +29901,64 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndPoiBox build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiBox result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndPoiBox buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiBox result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiBox buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndPoiBox result = new net.osmand.binary.OsmandOdb.OsmAndPoiBox(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.subBoxes_ != java.util.Collections.EMPTY_LIST) { - result.subBoxes_ = - java.util.Collections.unmodifiableList(result.subBoxes_); + result.zoom_ = zoom_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - net.osmand.binary.OsmandOdb.OsmAndPoiBox returnMe = result; - result = null; - return returnMe; + result.left_ = left_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.top_ = top_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (categoriesBuilder_ == null) { + result.categories_ = categories_; + } else { + result.categories_ = categoriesBuilder_.build(); + } + if (subBoxesBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBoxes_ = java.util.Collections.unmodifiableList(subBoxes_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.subBoxes_ = subBoxes_; + } else { + result.subBoxes_ = subBoxesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.shiftToData_ = shiftToData_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -16888,11 +29984,31 @@ public final class OsmandOdb { if (other.hasCategories()) { mergeCategories(other.getCategories()); } - if (!other.subBoxes_.isEmpty()) { - if (result.subBoxes_.isEmpty()) { - result.subBoxes_ = new java.util.ArrayList(); + if (subBoxesBuilder_ == null) { + if (!other.subBoxes_.isEmpty()) { + if (subBoxes_.isEmpty()) { + subBoxes_ = other.subBoxes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSubBoxesIsMutable(); + subBoxes_.addAll(other.subBoxes_); + } + onChanged(); + } + } else { + if (!other.subBoxes_.isEmpty()) { + if (subBoxesBuilder_.isEmpty()) { + subBoxesBuilder_.dispose(); + subBoxesBuilder_ = null; + subBoxes_ = other.subBoxes_; + bitField0_ = (bitField0_ & ~0x00000010); + subBoxesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSubBoxesFieldBuilder() : null; + } else { + subBoxesBuilder_.addAllMessages(other.subBoxes_); + } } - result.subBoxes_.addAll(other.subBoxes_); } if (other.hasShiftToData()) { setShiftToData(other.getShiftToData()); @@ -16901,6 +30017,28 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasZoom()) { + + return false; + } + if (!hasLeft()) { + + return false; + } + if (!hasTop()) { + + return false; + } + for (int i = 0; i < getSubBoxesCount(); i++) { + if (!getSubBoxes(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -16913,25 +30051,30 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setZoom(input.readUInt32()); + bitField0_ |= 0x00000001; + zoom_ = input.readUInt32(); break; } case 16: { - setLeft(input.readSInt32()); + bitField0_ |= 0x00000002; + left_ = input.readSInt32(); break; } case 24: { - setTop(input.readSInt32()); + bitField0_ |= 0x00000004; + top_ = input.readSInt32(); break; } case 34: { @@ -16950,171 +30093,373 @@ public final class OsmandOdb { break; } case 117: { - setShiftToData(input.readFixed32()); + bitField0_ |= 0x00000020; + shiftToData_ = input.readFixed32(); break; } } } } + private int bitField0_; // required uint32 zoom = 1; + private int zoom_ ; public boolean hasZoom() { - return result.hasZoom(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getZoom() { - return result.getZoom(); + return zoom_; } public Builder setZoom(int value) { - result.hasZoom = true; - result.zoom_ = value; + bitField0_ |= 0x00000001; + zoom_ = value; + onChanged(); return this; } public Builder clearZoom() { - result.hasZoom = false; - result.zoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + zoom_ = 0; + onChanged(); return this; } // required sint32 left = 2; + private int left_ ; public boolean hasLeft() { - return result.hasLeft(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getLeft() { - return result.getLeft(); + return left_; } public Builder setLeft(int value) { - result.hasLeft = true; - result.left_ = value; + bitField0_ |= 0x00000002; + left_ = value; + onChanged(); return this; } public Builder clearLeft() { - result.hasLeft = false; - result.left_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + left_ = 0; + onChanged(); return this; } // required sint32 top = 3; + private int top_ ; public boolean hasTop() { - return result.hasTop(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getTop() { - return result.getTop(); + return top_; } public Builder setTop(int value) { - result.hasTop = true; - result.top_ = value; + bitField0_ |= 0x00000004; + top_ = value; + onChanged(); return this; } public Builder clearTop() { - result.hasTop = false; - result.top_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + top_ = 0; + onChanged(); return this; } // optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; + private net.osmand.binary.OsmandOdb.OsmAndPoiCategories categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiCategories, net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder> categoriesBuilder_; public boolean hasCategories() { - return result.hasCategories(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public net.osmand.binary.OsmandOdb.OsmAndPoiCategories getCategories() { - return result.getCategories(); + if (categoriesBuilder_ == null) { + return categories_; + } else { + return categoriesBuilder_.getMessage(); + } } public Builder setCategories(net.osmand.binary.OsmandOdb.OsmAndPoiCategories value) { - if (value == null) { - throw new NullPointerException(); + if (categoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + categories_ = value; + onChanged(); + } else { + categoriesBuilder_.setMessage(value); } - result.hasCategories = true; - result.categories_ = value; + bitField0_ |= 0x00000008; return this; } - public Builder setCategories(net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder builderForValue) { - result.hasCategories = true; - result.categories_ = builderForValue.build(); + public Builder setCategories( + net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder builderForValue) { + if (categoriesBuilder_ == null) { + categories_ = builderForValue.build(); + onChanged(); + } else { + categoriesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; return this; } public Builder mergeCategories(net.osmand.binary.OsmandOdb.OsmAndPoiCategories value) { - if (result.hasCategories() && - result.categories_ != net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance()) { - result.categories_ = - net.osmand.binary.OsmandOdb.OsmAndPoiCategories.newBuilder(result.categories_).mergeFrom(value).buildPartial(); + if (categoriesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + categories_ != net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance()) { + categories_ = + net.osmand.binary.OsmandOdb.OsmAndPoiCategories.newBuilder(categories_).mergeFrom(value).buildPartial(); + } else { + categories_ = value; + } + onChanged(); } else { - result.categories_ = value; + categoriesBuilder_.mergeFrom(value); } - result.hasCategories = true; + bitField0_ |= 0x00000008; return this; } public Builder clearCategories() { - result.hasCategories = false; - result.categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); + if (categoriesBuilder_ == null) { + categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); + onChanged(); + } else { + categoriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } + public net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder getCategoriesBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCategoriesFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder getCategoriesOrBuilder() { + if (categoriesBuilder_ != null) { + return categoriesBuilder_.getMessageOrBuilder(); + } else { + return categories_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiCategories, net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder> + getCategoriesFieldBuilder() { + if (categoriesBuilder_ == null) { + categoriesBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiCategories, net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder>( + categories_, + getParentForChildren(), + isClean()); + categories_ = null; + } + return categoriesBuilder_; + } // repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; + private java.util.List subBoxes_ = + java.util.Collections.emptyList(); + private void ensureSubBoxesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + subBoxes_ = new java.util.ArrayList(subBoxes_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> subBoxesBuilder_; + public java.util.List getSubBoxesList() { - return java.util.Collections.unmodifiableList(result.subBoxes_); + if (subBoxesBuilder_ == null) { + return java.util.Collections.unmodifiableList(subBoxes_); + } else { + return subBoxesBuilder_.getMessageList(); + } } public int getSubBoxesCount() { - return result.getSubBoxesCount(); + if (subBoxesBuilder_ == null) { + return subBoxes_.size(); + } else { + return subBoxesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndPoiBox getSubBoxes(int index) { - return result.getSubBoxes(index); - } - public Builder setSubBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { - if (value == null) { - throw new NullPointerException(); + if (subBoxesBuilder_ == null) { + return subBoxes_.get(index); + } else { + return subBoxesBuilder_.getMessage(index); + } + } + public Builder setSubBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { + if (subBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubBoxesIsMutable(); + subBoxes_.set(index, value); + onChanged(); + } else { + subBoxesBuilder_.setMessage(index, value); } - result.subBoxes_.set(index, value); return this; } - public Builder setSubBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { - result.subBoxes_.set(index, builderForValue.build()); + public Builder setSubBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { + if (subBoxesBuilder_ == null) { + ensureSubBoxesIsMutable(); + subBoxes_.set(index, builderForValue.build()); + onChanged(); + } else { + subBoxesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addSubBoxes(net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { - if (value == null) { - throw new NullPointerException(); + if (subBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubBoxesIsMutable(); + subBoxes_.add(value); + onChanged(); + } else { + subBoxesBuilder_.addMessage(value); } - if (result.subBoxes_.isEmpty()) { - result.subBoxes_ = new java.util.ArrayList(); - } - result.subBoxes_.add(value); return this; } - public Builder addSubBoxes(net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { - if (result.subBoxes_.isEmpty()) { - result.subBoxes_ = new java.util.ArrayList(); + public Builder addSubBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { + if (subBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubBoxesIsMutable(); + subBoxes_.add(index, value); + onChanged(); + } else { + subBoxesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addSubBoxes( + net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { + if (subBoxesBuilder_ == null) { + ensureSubBoxesIsMutable(); + subBoxes_.add(builderForValue.build()); + onChanged(); + } else { + subBoxesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addSubBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { + if (subBoxesBuilder_ == null) { + ensureSubBoxesIsMutable(); + subBoxes_.add(index, builderForValue.build()); + onChanged(); + } else { + subBoxesBuilder_.addMessage(index, builderForValue.build()); } - result.subBoxes_.add(builderForValue.build()); return this; } public Builder addAllSubBoxes( java.lang.Iterable values) { - if (result.subBoxes_.isEmpty()) { - result.subBoxes_ = new java.util.ArrayList(); + if (subBoxesBuilder_ == null) { + ensureSubBoxesIsMutable(); + super.addAll(values, subBoxes_); + onChanged(); + } else { + subBoxesBuilder_.addAllMessages(values); } - super.addAll(values, result.subBoxes_); return this; } public Builder clearSubBoxes() { - result.subBoxes_ = java.util.Collections.emptyList(); + if (subBoxesBuilder_ == null) { + subBoxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + subBoxesBuilder_.clear(); + } return this; } + public Builder removeSubBoxes(int index) { + if (subBoxesBuilder_ == null) { + ensureSubBoxesIsMutable(); + subBoxes_.remove(index); + onChanged(); + } else { + subBoxesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder getSubBoxesBuilder( + int index) { + return getSubBoxesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getSubBoxesOrBuilder( + int index) { + if (subBoxesBuilder_ == null) { + return subBoxes_.get(index); } else { + return subBoxesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getSubBoxesOrBuilderList() { + if (subBoxesBuilder_ != null) { + return subBoxesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subBoxes_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addSubBoxesBuilder() { + return getSubBoxesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addSubBoxesBuilder( + int index) { + return getSubBoxesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); + } + public java.util.List + getSubBoxesBuilderList() { + return getSubBoxesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> + getSubBoxesFieldBuilder() { + if (subBoxesBuilder_ == null) { + subBoxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder>( + subBoxes_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + subBoxes_ = null; + } + return subBoxesBuilder_; + } // optional fixed32 shiftToData = 14; + private int shiftToData_ ; public boolean hasShiftToData() { - return result.hasShiftToData(); + return ((bitField0_ & 0x00000020) == 0x00000020); } public int getShiftToData() { - return result.getShiftToData(); + return shiftToData_; } public Builder setShiftToData(int value) { - result.hasShiftToData = true; - result.shiftToData_ = value; + bitField0_ |= 0x00000020; + shiftToData_ = value; + onChanged(); return this; } public Builder clearShiftToData() { - result.hasShiftToData = false; - result.shiftToData_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + shiftToData_ = 0; + onChanged(); return this; } @@ -17123,18 +30468,31 @@ public final class OsmandOdb { static { defaultInstance = new OsmAndPoiBox(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiBox) } + public interface OsmAndPoiCategoriesOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated uint32 categories = 3; + java.util.List getCategoriesList(); + int getCategoriesCount(); + int getCategories(int index); + + // repeated uint32 subcategories = 5; + java.util.List getSubcategoriesList(); + int getSubcategoriesCount(); + int getSubcategories(int index); + } public static final class OsmAndPoiCategories extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndPoiCategoriesOrBuilder { // Use OsmAndPoiCategories.newBuilder() to construct. - private OsmAndPoiCategories() { - initFields(); + private OsmAndPoiCategories(Builder builder) { + super(builder); } private OsmAndPoiCategories(boolean noInit) {} @@ -17159,42 +30517,53 @@ public final class OsmandOdb { // repeated uint32 categories = 3; public static final int CATEGORIES_FIELD_NUMBER = 3; - private java.util.List categories_ = - java.util.Collections.emptyList(); - public java.util.List getCategoriesList() { + private java.util.List categories_; + public java.util.List + getCategoriesList() { return categories_; } - public int getCategoriesCount() { return categories_.size(); } + public int getCategoriesCount() { + return categories_.size(); + } public int getCategories(int index) { return categories_.get(index); } // repeated uint32 subcategories = 5; public static final int SUBCATEGORIES_FIELD_NUMBER = 5; - private java.util.List subcategories_ = - java.util.Collections.emptyList(); - public java.util.List getSubcategoriesList() { + private java.util.List subcategories_; + public java.util.List + getSubcategoriesList() { return subcategories_; } - public int getSubcategoriesCount() { return subcategories_.size(); } + public int getSubcategoriesCount() { + return subcategories_.size(); + } public int getSubcategories(int index) { return subcategories_.get(index); } private void initFields() { + categories_ = java.util.Collections.emptyList();; + subcategories_ = java.util.Collections.emptyList();; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - for (int element : getCategoriesList()) { - output.writeUInt32(3, element); + for (int i = 0; i < categories_.size(); i++) { + output.writeUInt32(3, categories_.get(i)); } - for (int element : getSubcategoriesList()) { - output.writeUInt32(5, element); + for (int i = 0; i < subcategories_.size(); i++) { + output.writeUInt32(5, subcategories_.get(i)); } getUnknownFields().writeTo(output); } @@ -17207,18 +30576,18 @@ public final class OsmandOdb { size = 0; { int dataSize = 0; - for (int element : getCategoriesList()) { + for (int i = 0; i < categories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(element); + .computeUInt32SizeNoTag(categories_.get(i)); } size += dataSize; size += 1 * getCategoriesList().size(); } { int dataSize = 0; - for (int element : getSubcategoriesList()) { + for (int i = 0; i < subcategories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(element); + .computeUInt32SizeNoTag(subcategories_.get(i)); } size += dataSize; size += 1 * getSubcategoriesList().size(); @@ -17228,6 +30597,13 @@ public final class OsmandOdb { return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndPoiCategories parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -17302,34 +30678,53 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndPoiCategories result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiCategories.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndPoiCategories(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiCategories_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndPoiCategories internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiCategories_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiCategories.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndPoiCategories(); + super.clear(); + categories_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000001); + subcategories_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -17341,41 +30736,39 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndPoiCategories build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiCategories result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndPoiCategories buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiCategories result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiCategories buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndPoiCategories result = new net.osmand.binary.OsmandOdb.OsmAndPoiCategories(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + categories_ = java.util.Collections.unmodifiableList(categories_); + bitField0_ = (bitField0_ & ~0x00000001); } - if (result.categories_ != java.util.Collections.EMPTY_LIST) { - result.categories_ = - java.util.Collections.unmodifiableList(result.categories_); + result.categories_ = categories_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subcategories_ = java.util.Collections.unmodifiableList(subcategories_); + bitField0_ = (bitField0_ & ~0x00000002); } - if (result.subcategories_ != java.util.Collections.EMPTY_LIST) { - result.subcategories_ = - java.util.Collections.unmodifiableList(result.subcategories_); - } - net.osmand.binary.OsmandOdb.OsmAndPoiCategories returnMe = result; - result = null; - return returnMe; + result.subcategories_ = subcategories_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -17390,21 +30783,33 @@ public final class OsmandOdb { public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiCategories other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance()) return this; if (!other.categories_.isEmpty()) { - if (result.categories_.isEmpty()) { - result.categories_ = new java.util.ArrayList(); + if (categories_.isEmpty()) { + categories_ = other.categories_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCategoriesIsMutable(); + categories_.addAll(other.categories_); } - result.categories_.addAll(other.categories_); + onChanged(); } if (!other.subcategories_.isEmpty()) { - if (result.subcategories_.isEmpty()) { - result.subcategories_ = new java.util.ArrayList(); + if (subcategories_.isEmpty()) { + subcategories_ = other.subcategories_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubcategoriesIsMutable(); + subcategories_.addAll(other.subcategories_); } - result.subcategories_.addAll(other.subcategories_); + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17417,17 +30822,20 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 24: { - addCategories(input.readUInt32()); + ensureCategoriesIsMutable(); + categories_.add(input.readUInt32()); break; } case 26: { @@ -17440,7 +30848,8 @@ public final class OsmandOdb { break; } case 40: { - addSubcategories(input.readUInt32()); + ensureSubcategoriesIsMutable(); + subcategories_.add(input.readUInt32()); break; } case 42: { @@ -17456,72 +30865,95 @@ public final class OsmandOdb { } } + private int bitField0_; // repeated uint32 categories = 3; - public java.util.List getCategoriesList() { - return java.util.Collections.unmodifiableList(result.categories_); + private java.util.List categories_ = java.util.Collections.emptyList();; + private void ensureCategoriesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + categories_ = new java.util.ArrayList(categories_); + bitField0_ |= 0x00000001; + } + } + public java.util.List + getCategoriesList() { + return java.util.Collections.unmodifiableList(categories_); } public int getCategoriesCount() { - return result.getCategoriesCount(); + return categories_.size(); } public int getCategories(int index) { - return result.getCategories(index); + return categories_.get(index); } - public Builder setCategories(int index, int value) { - result.categories_.set(index, value); + public Builder setCategories( + int index, int value) { + ensureCategoriesIsMutable(); + categories_.set(index, value); + onChanged(); return this; } public Builder addCategories(int value) { - if (result.categories_.isEmpty()) { - result.categories_ = new java.util.ArrayList(); - } - result.categories_.add(value); + ensureCategoriesIsMutable(); + categories_.add(value); + onChanged(); return this; } public Builder addAllCategories( java.lang.Iterable values) { - if (result.categories_.isEmpty()) { - result.categories_ = new java.util.ArrayList(); - } - super.addAll(values, result.categories_); + ensureCategoriesIsMutable(); + super.addAll(values, categories_); + onChanged(); return this; } public Builder clearCategories() { - result.categories_ = java.util.Collections.emptyList(); + categories_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } // repeated uint32 subcategories = 5; - public java.util.List getSubcategoriesList() { - return java.util.Collections.unmodifiableList(result.subcategories_); + private java.util.List subcategories_ = java.util.Collections.emptyList();; + private void ensureSubcategoriesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + subcategories_ = new java.util.ArrayList(subcategories_); + bitField0_ |= 0x00000002; + } + } + public java.util.List + getSubcategoriesList() { + return java.util.Collections.unmodifiableList(subcategories_); } public int getSubcategoriesCount() { - return result.getSubcategoriesCount(); + return subcategories_.size(); } public int getSubcategories(int index) { - return result.getSubcategories(index); + return subcategories_.get(index); } - public Builder setSubcategories(int index, int value) { - result.subcategories_.set(index, value); + public Builder setSubcategories( + int index, int value) { + ensureSubcategoriesIsMutable(); + subcategories_.set(index, value); + onChanged(); return this; } public Builder addSubcategories(int value) { - if (result.subcategories_.isEmpty()) { - result.subcategories_ = new java.util.ArrayList(); - } - result.subcategories_.add(value); + ensureSubcategoriesIsMutable(); + subcategories_.add(value); + onChanged(); return this; } public Builder addAllSubcategories( java.lang.Iterable values) { - if (result.subcategories_.isEmpty()) { - result.subcategories_ = new java.util.ArrayList(); - } - super.addAll(values, result.subcategories_); + ensureSubcategoriesIsMutable(); + super.addAll(values, subcategories_); + onChanged(); return this; } public Builder clearSubcategories() { - result.subcategories_ = java.util.Collections.emptyList(); + subcategories_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); return this; } @@ -17530,18 +30962,43 @@ public final class OsmandOdb { static { defaultInstance = new OsmAndPoiCategories(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiCategories) } + public interface OsmAndPoiBoxDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint32 zoom = 1; + boolean hasZoom(); + int getZoom(); + + // optional uint32 x = 2; + boolean hasX(); + int getX(); + + // optional uint32 y = 3; + boolean hasY(); + int getY(); + + // repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; + java.util.List + getPoiDataList(); + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom getPoiData(int index); + int getPoiDataCount(); + java.util.List + getPoiDataOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder getPoiDataOrBuilder( + int index); + } public static final class OsmAndPoiBoxData extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndPoiBoxDataOrBuilder { // Use OsmAndPoiBoxData.newBuilder() to construct. - private OsmAndPoiBoxData() { - initFields(); + private OsmAndPoiBoxData(Builder builder) { + super(builder); } private OsmAndPoiBoxData(boolean noInit) {} @@ -17564,62 +31021,93 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxData_fieldAccessorTable; } + private int bitField0_; // optional uint32 zoom = 1; public static final int ZOOM_FIELD_NUMBER = 1; - private boolean hasZoom; - private int zoom_ = 0; - public boolean hasZoom() { return hasZoom; } - public int getZoom() { return zoom_; } + private int zoom_; + public boolean hasZoom() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getZoom() { + return zoom_; + } // optional uint32 x = 2; public static final int X_FIELD_NUMBER = 2; - private boolean hasX; - private int x_ = 0; - public boolean hasX() { return hasX; } - public int getX() { return x_; } + private int x_; + public boolean hasX() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getX() { + return x_; + } // optional uint32 y = 3; public static final int Y_FIELD_NUMBER = 3; - private boolean hasY; - private int y_ = 0; - public boolean hasY() { return hasY; } - public int getY() { return y_; } + private int y_; + public boolean hasY() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getY() { + return y_; + } // repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; public static final int POIDATA_FIELD_NUMBER = 5; - private java.util.List poiData_ = - java.util.Collections.emptyList(); + private java.util.List poiData_; public java.util.List getPoiDataList() { return poiData_; } - public int getPoiDataCount() { return poiData_.size(); } + public java.util.List + getPoiDataOrBuilderList() { + return poiData_; + } + public int getPoiDataCount() { + return poiData_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom getPoiData(int index) { return poiData_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder getPoiDataOrBuilder( + int index) { + return poiData_.get(index); + } private void initFields() { + zoom_ = 0; + x_ = 0; + y_ = 0; + poiData_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - for (net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom element : getPoiDataList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getPoiDataCount(); i++) { + if (!getPoiData(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasZoom()) { - output.writeUInt32(1, getZoom()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, zoom_); } - if (hasX()) { - output.writeUInt32(2, getX()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, x_); } - if (hasY()) { - output.writeUInt32(3, getY()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, y_); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom element : getPoiDataList()) { - output.writeMessage(5, element); + for (int i = 0; i < poiData_.size(); i++) { + output.writeMessage(5, poiData_.get(i)); } getUnknownFields().writeTo(output); } @@ -17630,27 +31118,34 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasZoom()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, getZoom()); + .computeUInt32Size(1, zoom_); } - if (hasX()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, getX()); + .computeUInt32Size(2, x_); } - if (hasY()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, getY()); + .computeUInt32Size(3, y_); } - for (net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom element : getPoiDataList()) { + for (int i = 0; i < poiData_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, element); + .computeMessageSize(5, poiData_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -17725,34 +31220,62 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndPoiBoxData result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndPoiBoxData(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxData_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndPoiBoxData internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxData_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getPoiDataFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + zoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + x_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + y_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + if (poiDataBuilder_ == null) { + poiData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + poiDataBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndPoiBoxData(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -17764,37 +31287,52 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiBoxData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndPoiBoxData buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiBoxData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndPoiBoxData result = new net.osmand.binary.OsmandOdb.OsmAndPoiBoxData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.poiData_ != java.util.Collections.EMPTY_LIST) { - result.poiData_ = - java.util.Collections.unmodifiableList(result.poiData_); + result.zoom_ = zoom_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - net.osmand.binary.OsmandOdb.OsmAndPoiBoxData returnMe = result; - result = null; - return returnMe; + result.x_ = x_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.y_ = y_; + if (poiDataBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + poiData_ = java.util.Collections.unmodifiableList(poiData_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.poiData_ = poiData_; + } else { + result.poiData_ = poiDataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -17817,16 +31355,46 @@ public final class OsmandOdb { if (other.hasY()) { setY(other.getY()); } - if (!other.poiData_.isEmpty()) { - if (result.poiData_.isEmpty()) { - result.poiData_ = new java.util.ArrayList(); + if (poiDataBuilder_ == null) { + if (!other.poiData_.isEmpty()) { + if (poiData_.isEmpty()) { + poiData_ = other.poiData_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePoiDataIsMutable(); + poiData_.addAll(other.poiData_); + } + onChanged(); + } + } else { + if (!other.poiData_.isEmpty()) { + if (poiDataBuilder_.isEmpty()) { + poiDataBuilder_.dispose(); + poiDataBuilder_ = null; + poiData_ = other.poiData_; + bitField0_ = (bitField0_ & ~0x00000008); + poiDataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPoiDataFieldBuilder() : null; + } else { + poiDataBuilder_.addAllMessages(other.poiData_); + } } - result.poiData_.addAll(other.poiData_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + for (int i = 0; i < getPoiDataCount(); i++) { + if (!getPoiData(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17839,25 +31407,30 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setZoom(input.readUInt32()); + bitField0_ |= 0x00000001; + zoom_ = input.readUInt32(); break; } case 16: { - setX(input.readUInt32()); + bitField0_ |= 0x00000002; + x_ = input.readUInt32(); break; } case 24: { - setY(input.readUInt32()); + bitField0_ |= 0x00000004; + y_ = input.readUInt32(); break; } case 42: { @@ -17870,129 +31443,333 @@ public final class OsmandOdb { } } + private int bitField0_; // optional uint32 zoom = 1; + private int zoom_ ; public boolean hasZoom() { - return result.hasZoom(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getZoom() { - return result.getZoom(); + return zoom_; } public Builder setZoom(int value) { - result.hasZoom = true; - result.zoom_ = value; + bitField0_ |= 0x00000001; + zoom_ = value; + onChanged(); return this; } public Builder clearZoom() { - result.hasZoom = false; - result.zoom_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + zoom_ = 0; + onChanged(); return this; } // optional uint32 x = 2; + private int x_ ; public boolean hasX() { - return result.hasX(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getX() { - return result.getX(); + return x_; } public Builder setX(int value) { - result.hasX = true; - result.x_ = value; + bitField0_ |= 0x00000002; + x_ = value; + onChanged(); return this; } public Builder clearX() { - result.hasX = false; - result.x_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + x_ = 0; + onChanged(); return this; } // optional uint32 y = 3; + private int y_ ; public boolean hasY() { - return result.hasY(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getY() { - return result.getY(); + return y_; } public Builder setY(int value) { - result.hasY = true; - result.y_ = value; + bitField0_ |= 0x00000004; + y_ = value; + onChanged(); return this; } public Builder clearY() { - result.hasY = false; - result.y_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + y_ = 0; + onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; + private java.util.List poiData_ = + java.util.Collections.emptyList(); + private void ensurePoiDataIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + poiData_ = new java.util.ArrayList(poiData_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder> poiDataBuilder_; + public java.util.List getPoiDataList() { - return java.util.Collections.unmodifiableList(result.poiData_); + if (poiDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(poiData_); + } else { + return poiDataBuilder_.getMessageList(); + } } public int getPoiDataCount() { - return result.getPoiDataCount(); + if (poiDataBuilder_ == null) { + return poiData_.size(); + } else { + return poiDataBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom getPoiData(int index) { - return result.getPoiData(index); - } - public Builder setPoiData(int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom value) { - if (value == null) { - throw new NullPointerException(); + if (poiDataBuilder_ == null) { + return poiData_.get(index); + } else { + return poiDataBuilder_.getMessage(index); + } + } + public Builder setPoiData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom value) { + if (poiDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoiDataIsMutable(); + poiData_.set(index, value); + onChanged(); + } else { + poiDataBuilder_.setMessage(index, value); } - result.poiData_.set(index, value); return this; } - public Builder setPoiData(int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder builderForValue) { - result.poiData_.set(index, builderForValue.build()); + public Builder setPoiData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder builderForValue) { + if (poiDataBuilder_ == null) { + ensurePoiDataIsMutable(); + poiData_.set(index, builderForValue.build()); + onChanged(); + } else { + poiDataBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addPoiData(net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom value) { - if (value == null) { - throw new NullPointerException(); + if (poiDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoiDataIsMutable(); + poiData_.add(value); + onChanged(); + } else { + poiDataBuilder_.addMessage(value); } - if (result.poiData_.isEmpty()) { - result.poiData_ = new java.util.ArrayList(); - } - result.poiData_.add(value); return this; } - public Builder addPoiData(net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder builderForValue) { - if (result.poiData_.isEmpty()) { - result.poiData_ = new java.util.ArrayList(); + public Builder addPoiData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom value) { + if (poiDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePoiDataIsMutable(); + poiData_.add(index, value); + onChanged(); + } else { + poiDataBuilder_.addMessage(index, value); + } + return this; + } + public Builder addPoiData( + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder builderForValue) { + if (poiDataBuilder_ == null) { + ensurePoiDataIsMutable(); + poiData_.add(builderForValue.build()); + onChanged(); + } else { + poiDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addPoiData( + int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder builderForValue) { + if (poiDataBuilder_ == null) { + ensurePoiDataIsMutable(); + poiData_.add(index, builderForValue.build()); + onChanged(); + } else { + poiDataBuilder_.addMessage(index, builderForValue.build()); } - result.poiData_.add(builderForValue.build()); return this; } public Builder addAllPoiData( java.lang.Iterable values) { - if (result.poiData_.isEmpty()) { - result.poiData_ = new java.util.ArrayList(); + if (poiDataBuilder_ == null) { + ensurePoiDataIsMutable(); + super.addAll(values, poiData_); + onChanged(); + } else { + poiDataBuilder_.addAllMessages(values); } - super.addAll(values, result.poiData_); return this; } public Builder clearPoiData() { - result.poiData_ = java.util.Collections.emptyList(); + if (poiDataBuilder_ == null) { + poiData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + poiDataBuilder_.clear(); + } return this; } + public Builder removePoiData(int index) { + if (poiDataBuilder_ == null) { + ensurePoiDataIsMutable(); + poiData_.remove(index); + onChanged(); + } else { + poiDataBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder getPoiDataBuilder( + int index) { + return getPoiDataFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder getPoiDataOrBuilder( + int index) { + if (poiDataBuilder_ == null) { + return poiData_.get(index); } else { + return poiDataBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getPoiDataOrBuilderList() { + if (poiDataBuilder_ != null) { + return poiDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(poiData_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder addPoiDataBuilder() { + return getPoiDataFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder addPoiDataBuilder( + int index) { + return getPoiDataFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.getDefaultInstance()); + } + public java.util.List + getPoiDataBuilderList() { + return getPoiDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder> + getPoiDataFieldBuilder() { + if (poiDataBuilder_ == null) { + poiDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder>( + poiData_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + poiData_ = null; + } + return poiDataBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiBoxData) } static { defaultInstance = new OsmAndPoiBoxData(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiBoxData) } + public interface OsmAndPoiBoxDataAtomOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required sint32 dx = 2; + boolean hasDx(); + int getDx(); + + // required sint32 dy = 3; + boolean hasDy(); + int getDy(); + + // repeated uint32 categories = 4; + java.util.List getCategoriesList(); + int getCategoriesCount(); + int getCategories(int index); + + // repeated uint32 subcategories = 5; + java.util.List getSubcategoriesList(); + int getSubcategoriesCount(); + int getSubcategories(int index); + + // optional string name = 6; + boolean hasName(); + String getName(); + + // optional string nameEn = 7; + boolean hasNameEn(); + String getNameEn(); + + // optional uint64 id = 8; + boolean hasId(); + long getId(); + + // optional string openingHours = 10; + boolean hasOpeningHours(); + String getOpeningHours(); + + // optional string site = 11; + boolean hasSite(); + String getSite(); + + // optional string phone = 12; + boolean hasPhone(); + String getPhone(); + + // optional string note = 13; + boolean hasNote(); + String getNote(); + + // repeated uint32 textCategories = 14; + java.util.List getTextCategoriesList(); + int getTextCategoriesCount(); + int getTextCategories(int index); + + // repeated string textValues = 15; + java.util.List getTextValuesList(); + int getTextValuesCount(); + String getTextValues(int index); + } public static final class OsmAndPoiBoxDataAtom extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndPoiBoxDataAtomOrBuilder { // Use OsmAndPoiBoxDataAtom.newBuilder() to construct. - private OsmAndPoiBoxDataAtom() { - initFields(); + private OsmAndPoiBoxDataAtom(Builder builder) { + super(builder); } private OsmAndPoiBoxDataAtom(boolean noInit) {} @@ -18015,166 +31792,358 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_fieldAccessorTable; } + private int bitField0_; // required sint32 dx = 2; public static final int DX_FIELD_NUMBER = 2; - private boolean hasDx; - private int dx_ = 0; - public boolean hasDx() { return hasDx; } - public int getDx() { return dx_; } + private int dx_; + public boolean hasDx() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getDx() { + return dx_; + } // required sint32 dy = 3; public static final int DY_FIELD_NUMBER = 3; - private boolean hasDy; - private int dy_ = 0; - public boolean hasDy() { return hasDy; } - public int getDy() { return dy_; } + private int dy_; + public boolean hasDy() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getDy() { + return dy_; + } // repeated uint32 categories = 4; public static final int CATEGORIES_FIELD_NUMBER = 4; - private java.util.List categories_ = - java.util.Collections.emptyList(); - public java.util.List getCategoriesList() { + private java.util.List categories_; + public java.util.List + getCategoriesList() { return categories_; } - public int getCategoriesCount() { return categories_.size(); } + public int getCategoriesCount() { + return categories_.size(); + } public int getCategories(int index) { return categories_.get(index); } // repeated uint32 subcategories = 5; public static final int SUBCATEGORIES_FIELD_NUMBER = 5; - private java.util.List subcategories_ = - java.util.Collections.emptyList(); - public java.util.List getSubcategoriesList() { + private java.util.List subcategories_; + public java.util.List + getSubcategoriesList() { return subcategories_; } - public int getSubcategoriesCount() { return subcategories_.size(); } + public int getSubcategoriesCount() { + return subcategories_.size(); + } public int getSubcategories(int index) { return subcategories_.get(index); } // optional string name = 6; public static final int NAME_FIELD_NUMBER = 6; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string nameEn = 7; public static final int NAMEEN_FIELD_NUMBER = 7; - private boolean hasNameEn; - private java.lang.String nameEn_ = ""; - public boolean hasNameEn() { return hasNameEn; } - public java.lang.String getNameEn() { return nameEn_; } + private java.lang.Object nameEn_; + public boolean hasNameEn() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + nameEn_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameEnBytes() { + java.lang.Object ref = nameEn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + nameEn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional uint64 id = 8; public static final int ID_FIELD_NUMBER = 8; - private boolean hasId; - private long id_ = 0L; - public boolean hasId() { return hasId; } - public long getId() { return id_; } + private long id_; + public boolean hasId() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public long getId() { + return id_; + } // optional string openingHours = 10; public static final int OPENINGHOURS_FIELD_NUMBER = 10; - private boolean hasOpeningHours; - private java.lang.String openingHours_ = ""; - public boolean hasOpeningHours() { return hasOpeningHours; } - public java.lang.String getOpeningHours() { return openingHours_; } + private java.lang.Object openingHours_; + public boolean hasOpeningHours() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public String getOpeningHours() { + java.lang.Object ref = openingHours_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + openingHours_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getOpeningHoursBytes() { + java.lang.Object ref = openingHours_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + openingHours_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string site = 11; public static final int SITE_FIELD_NUMBER = 11; - private boolean hasSite; - private java.lang.String site_ = ""; - public boolean hasSite() { return hasSite; } - public java.lang.String getSite() { return site_; } + private java.lang.Object site_; + public boolean hasSite() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public String getSite() { + java.lang.Object ref = site_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + site_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getSiteBytes() { + java.lang.Object ref = site_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + site_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string phone = 12; public static final int PHONE_FIELD_NUMBER = 12; - private boolean hasPhone; - private java.lang.String phone_ = ""; - public boolean hasPhone() { return hasPhone; } - public java.lang.String getPhone() { return phone_; } + private java.lang.Object phone_; + public boolean hasPhone() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public String getPhone() { + java.lang.Object ref = phone_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + phone_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional string note = 13; public static final int NOTE_FIELD_NUMBER = 13; - private boolean hasNote; - private java.lang.String note_ = ""; - public boolean hasNote() { return hasNote; } - public java.lang.String getNote() { return note_; } + private java.lang.Object note_; + public boolean hasNote() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + public String getNote() { + java.lang.Object ref = note_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + note_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // repeated uint32 textCategories = 14; public static final int TEXTCATEGORIES_FIELD_NUMBER = 14; - private java.util.List textCategories_ = - java.util.Collections.emptyList(); - public java.util.List getTextCategoriesList() { + private java.util.List textCategories_; + public java.util.List + getTextCategoriesList() { return textCategories_; } - public int getTextCategoriesCount() { return textCategories_.size(); } + public int getTextCategoriesCount() { + return textCategories_.size(); + } public int getTextCategories(int index) { return textCategories_.get(index); } // repeated string textValues = 15; public static final int TEXTVALUES_FIELD_NUMBER = 15; - private java.util.List textValues_ = - java.util.Collections.emptyList(); - public java.util.List getTextValuesList() { + private com.google.protobuf.LazyStringList textValues_; + public java.util.List + getTextValuesList() { return textValues_; } - public int getTextValuesCount() { return textValues_.size(); } - public java.lang.String getTextValues(int index) { + public int getTextValuesCount() { + return textValues_.size(); + } + public String getTextValues(int index) { return textValues_.get(index); } private void initFields() { + dx_ = 0; + dy_ = 0; + categories_ = java.util.Collections.emptyList();; + subcategories_ = java.util.Collections.emptyList();; + name_ = ""; + nameEn_ = ""; + id_ = 0L; + openingHours_ = ""; + site_ = ""; + phone_ = ""; + note_ = ""; + textCategories_ = java.util.Collections.emptyList();; + textValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasDx) return false; - if (!hasDy) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasDx()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDy()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasDx()) { - output.writeSInt32(2, getDx()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeSInt32(2, dx_); } - if (hasDy()) { - output.writeSInt32(3, getDy()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeSInt32(3, dy_); } - for (int element : getCategoriesList()) { - output.writeUInt32(4, element); + for (int i = 0; i < categories_.size(); i++) { + output.writeUInt32(4, categories_.get(i)); } - for (int element : getSubcategoriesList()) { - output.writeUInt32(5, element); + for (int i = 0; i < subcategories_.size(); i++) { + output.writeUInt32(5, subcategories_.get(i)); } - if (hasName()) { - output.writeString(6, getName()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(6, getNameBytes()); } - if (hasNameEn()) { - output.writeString(7, getNameEn()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(7, getNameEnBytes()); } - if (hasId()) { - output.writeUInt64(8, getId()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt64(8, id_); } - if (hasOpeningHours()) { - output.writeString(10, getOpeningHours()); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(10, getOpeningHoursBytes()); } - if (hasSite()) { - output.writeString(11, getSite()); + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBytes(11, getSiteBytes()); } - if (hasPhone()) { - output.writeString(12, getPhone()); + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeBytes(12, getPhoneBytes()); } - if (hasNote()) { - output.writeString(13, getNote()); + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeBytes(13, getNoteBytes()); } - for (int element : getTextCategoriesList()) { - output.writeUInt32(14, element); + for (int i = 0; i < textCategories_.size(); i++) { + output.writeUInt32(14, textCategories_.get(i)); } - for (java.lang.String element : getTextValuesList()) { - output.writeString(15, element); + for (int i = 0; i < textValues_.size(); i++) { + output.writeBytes(15, textValues_.getByteString(i)); } getUnknownFields().writeTo(output); } @@ -18185,74 +32154,74 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasDx()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(2, getDx()); + .computeSInt32Size(2, dx_); } - if (hasDy()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(3, getDy()); + .computeSInt32Size(3, dy_); } { int dataSize = 0; - for (int element : getCategoriesList()) { + for (int i = 0; i < categories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(element); + .computeUInt32SizeNoTag(categories_.get(i)); } size += dataSize; size += 1 * getCategoriesList().size(); } { int dataSize = 0; - for (int element : getSubcategoriesList()) { + for (int i = 0; i < subcategories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(element); + .computeUInt32SizeNoTag(subcategories_.get(i)); } size += dataSize; size += 1 * getSubcategoriesList().size(); } - if (hasName()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getName()); + .computeBytesSize(6, getNameBytes()); } - if (hasNameEn()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(7, getNameEn()); + .computeBytesSize(7, getNameEnBytes()); } - if (hasId()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, getId()); + .computeUInt64Size(8, id_); } - if (hasOpeningHours()) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(10, getOpeningHours()); + .computeBytesSize(10, getOpeningHoursBytes()); } - if (hasSite()) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(11, getSite()); + .computeBytesSize(11, getSiteBytes()); } - if (hasPhone()) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(12, getPhone()); + .computeBytesSize(12, getPhoneBytes()); } - if (hasNote()) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(13, getNote()); + .computeBytesSize(13, getNoteBytes()); } { int dataSize = 0; - for (int element : getTextCategoriesList()) { + for (int i = 0; i < textCategories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(element); + .computeUInt32SizeNoTag(textCategories_.get(i)); } size += dataSize; size += 1 * getTextCategoriesList().size(); } { int dataSize = 0; - for (java.lang.String element : getTextValuesList()) { + for (int i = 0; i < textValues_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeStringSizeNoTag(element); + .computeBytesSizeNoTag(textValues_.getByteString(i)); } size += dataSize; size += 1 * getTextValuesList().size(); @@ -18262,6 +32231,13 @@ public final class OsmandOdb { return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -18336,34 +32312,75 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom(); + super.clear(); + dx_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + dy_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + categories_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + subcategories_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + nameEn_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + openingHours_ = ""; + bitField0_ = (bitField0_ & ~0x00000080); + site_ = ""; + bitField0_ = (bitField0_ & ~0x00000100); + phone_ = ""; + bitField0_ = (bitField0_ & ~0x00000200); + note_ = ""; + bitField0_ = (bitField0_ & ~0x00000400); + textCategories_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000800); + textValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -18375,49 +32392,88 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom result = new net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.categories_ != java.util.Collections.EMPTY_LIST) { - result.categories_ = - java.util.Collections.unmodifiableList(result.categories_); + result.dx_ = dx_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - if (result.subcategories_ != java.util.Collections.EMPTY_LIST) { - result.subcategories_ = - java.util.Collections.unmodifiableList(result.subcategories_); + result.dy_ = dy_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + categories_ = java.util.Collections.unmodifiableList(categories_); + bitField0_ = (bitField0_ & ~0x00000004); } - if (result.textCategories_ != java.util.Collections.EMPTY_LIST) { - result.textCategories_ = - java.util.Collections.unmodifiableList(result.textCategories_); + result.categories_ = categories_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subcategories_ = java.util.Collections.unmodifiableList(subcategories_); + bitField0_ = (bitField0_ & ~0x00000008); } - if (result.textValues_ != java.util.Collections.EMPTY_LIST) { - result.textValues_ = - java.util.Collections.unmodifiableList(result.textValues_); + result.subcategories_ = subcategories_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000004; } - net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom returnMe = result; - result = null; - return returnMe; + result.name_ = name_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000008; + } + result.nameEn_ = nameEn_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000010; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000020; + } + result.openingHours_ = openingHours_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000040; + } + result.site_ = site_; + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000080; + } + result.phone_ = phone_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000100; + } + result.note_ = note_; + if (((bitField0_ & 0x00000800) == 0x00000800)) { + textCategories_ = java.util.Collections.unmodifiableList(textCategories_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.textCategories_ = textCategories_; + if (((bitField0_ & 0x00001000) == 0x00001000)) { + textValues_ = new com.google.protobuf.UnmodifiableLazyStringList( + textValues_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.textValues_ = textValues_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -18438,16 +32494,24 @@ public final class OsmandOdb { setDy(other.getDy()); } if (!other.categories_.isEmpty()) { - if (result.categories_.isEmpty()) { - result.categories_ = new java.util.ArrayList(); + if (categories_.isEmpty()) { + categories_ = other.categories_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureCategoriesIsMutable(); + categories_.addAll(other.categories_); } - result.categories_.addAll(other.categories_); + onChanged(); } if (!other.subcategories_.isEmpty()) { - if (result.subcategories_.isEmpty()) { - result.subcategories_ = new java.util.ArrayList(); + if (subcategories_.isEmpty()) { + subcategories_ = other.subcategories_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSubcategoriesIsMutable(); + subcategories_.addAll(other.subcategories_); } - result.subcategories_.addAll(other.subcategories_); + onChanged(); } if (other.hasName()) { setName(other.getName()); @@ -18471,21 +32535,41 @@ public final class OsmandOdb { setNote(other.getNote()); } if (!other.textCategories_.isEmpty()) { - if (result.textCategories_.isEmpty()) { - result.textCategories_ = new java.util.ArrayList(); + if (textCategories_.isEmpty()) { + textCategories_ = other.textCategories_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureTextCategoriesIsMutable(); + textCategories_.addAll(other.textCategories_); } - result.textCategories_.addAll(other.textCategories_); + onChanged(); } if (!other.textValues_.isEmpty()) { - if (result.textValues_.isEmpty()) { - result.textValues_ = new java.util.ArrayList(); + if (textValues_.isEmpty()) { + textValues_ = other.textValues_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureTextValuesIsMutable(); + textValues_.addAll(other.textValues_); } - result.textValues_.addAll(other.textValues_); + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasDx()) { + + return false; + } + if (!hasDy()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -18498,25 +32582,30 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 16: { - setDx(input.readSInt32()); + bitField0_ |= 0x00000001; + dx_ = input.readSInt32(); break; } case 24: { - setDy(input.readSInt32()); + bitField0_ |= 0x00000002; + dy_ = input.readSInt32(); break; } case 32: { - addCategories(input.readUInt32()); + ensureCategoriesIsMutable(); + categories_.add(input.readUInt32()); break; } case 34: { @@ -18529,7 +32618,8 @@ public final class OsmandOdb { break; } case 40: { - addSubcategories(input.readUInt32()); + ensureSubcategoriesIsMutable(); + subcategories_.add(input.readUInt32()); break; } case 42: { @@ -18542,35 +32632,43 @@ public final class OsmandOdb { break; } case 50: { - setName(input.readString()); + bitField0_ |= 0x00000010; + name_ = input.readBytes(); break; } case 58: { - setNameEn(input.readString()); + bitField0_ |= 0x00000020; + nameEn_ = input.readBytes(); break; } case 64: { - setId(input.readUInt64()); + bitField0_ |= 0x00000040; + id_ = input.readUInt64(); break; } case 82: { - setOpeningHours(input.readString()); + bitField0_ |= 0x00000080; + openingHours_ = input.readBytes(); break; } case 90: { - setSite(input.readString()); + bitField0_ |= 0x00000100; + site_ = input.readBytes(); break; } case 98: { - setPhone(input.readString()); + bitField0_ |= 0x00000200; + phone_ = input.readBytes(); break; } case 106: { - setNote(input.readString()); + bitField0_ |= 0x00000400; + note_ = input.readBytes(); break; } case 112: { - addTextCategories(input.readUInt32()); + ensureTextCategoriesIsMutable(); + textCategories_.add(input.readUInt32()); break; } case 114: { @@ -18583,353 +32681,511 @@ public final class OsmandOdb { break; } case 122: { - addTextValues(input.readString()); + ensureTextValuesIsMutable(); + textValues_.add(input.readBytes()); break; } } } } + private int bitField0_; // required sint32 dx = 2; + private int dx_ ; public boolean hasDx() { - return result.hasDx(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getDx() { - return result.getDx(); + return dx_; } public Builder setDx(int value) { - result.hasDx = true; - result.dx_ = value; + bitField0_ |= 0x00000001; + dx_ = value; + onChanged(); return this; } public Builder clearDx() { - result.hasDx = false; - result.dx_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + dx_ = 0; + onChanged(); return this; } // required sint32 dy = 3; + private int dy_ ; public boolean hasDy() { - return result.hasDy(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getDy() { - return result.getDy(); + return dy_; } public Builder setDy(int value) { - result.hasDy = true; - result.dy_ = value; + bitField0_ |= 0x00000002; + dy_ = value; + onChanged(); return this; } public Builder clearDy() { - result.hasDy = false; - result.dy_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + dy_ = 0; + onChanged(); return this; } // repeated uint32 categories = 4; - public java.util.List getCategoriesList() { - return java.util.Collections.unmodifiableList(result.categories_); + private java.util.List categories_ = java.util.Collections.emptyList();; + private void ensureCategoriesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + categories_ = new java.util.ArrayList(categories_); + bitField0_ |= 0x00000004; + } + } + public java.util.List + getCategoriesList() { + return java.util.Collections.unmodifiableList(categories_); } public int getCategoriesCount() { - return result.getCategoriesCount(); + return categories_.size(); } public int getCategories(int index) { - return result.getCategories(index); + return categories_.get(index); } - public Builder setCategories(int index, int value) { - result.categories_.set(index, value); + public Builder setCategories( + int index, int value) { + ensureCategoriesIsMutable(); + categories_.set(index, value); + onChanged(); return this; } public Builder addCategories(int value) { - if (result.categories_.isEmpty()) { - result.categories_ = new java.util.ArrayList(); - } - result.categories_.add(value); + ensureCategoriesIsMutable(); + categories_.add(value); + onChanged(); return this; } public Builder addAllCategories( java.lang.Iterable values) { - if (result.categories_.isEmpty()) { - result.categories_ = new java.util.ArrayList(); - } - super.addAll(values, result.categories_); + ensureCategoriesIsMutable(); + super.addAll(values, categories_); + onChanged(); return this; } public Builder clearCategories() { - result.categories_ = java.util.Collections.emptyList(); + categories_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); return this; } // repeated uint32 subcategories = 5; - public java.util.List getSubcategoriesList() { - return java.util.Collections.unmodifiableList(result.subcategories_); + private java.util.List subcategories_ = java.util.Collections.emptyList();; + private void ensureSubcategoriesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + subcategories_ = new java.util.ArrayList(subcategories_); + bitField0_ |= 0x00000008; + } + } + public java.util.List + getSubcategoriesList() { + return java.util.Collections.unmodifiableList(subcategories_); } public int getSubcategoriesCount() { - return result.getSubcategoriesCount(); + return subcategories_.size(); } public int getSubcategories(int index) { - return result.getSubcategories(index); + return subcategories_.get(index); } - public Builder setSubcategories(int index, int value) { - result.subcategories_.set(index, value); + public Builder setSubcategories( + int index, int value) { + ensureSubcategoriesIsMutable(); + subcategories_.set(index, value); + onChanged(); return this; } public Builder addSubcategories(int value) { - if (result.subcategories_.isEmpty()) { - result.subcategories_ = new java.util.ArrayList(); - } - result.subcategories_.add(value); + ensureSubcategoriesIsMutable(); + subcategories_.add(value); + onChanged(); return this; } public Builder addAllSubcategories( java.lang.Iterable values) { - if (result.subcategories_.isEmpty()) { - result.subcategories_ = new java.util.ArrayList(); - } - super.addAll(values, result.subcategories_); + ensureSubcategoriesIsMutable(); + super.addAll(values, subcategories_); + onChanged(); return this; } public Builder clearSubcategories() { - result.subcategories_ = java.util.Collections.emptyList(); + subcategories_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); return this; } // optional string name = 6; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000010; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000010); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000010; + name_ = value; + onChanged(); + } // optional string nameEn = 7; + private java.lang.Object nameEn_ = ""; public boolean hasNameEn() { - return result.hasNameEn(); + return ((bitField0_ & 0x00000020) == 0x00000020); } - public java.lang.String getNameEn() { - return result.getNameEn(); + public String getNameEn() { + java.lang.Object ref = nameEn_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + nameEn_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setNameEn(java.lang.String value) { + public Builder setNameEn(String value) { if (value == null) { throw new NullPointerException(); } - result.hasNameEn = true; - result.nameEn_ = value; + bitField0_ |= 0x00000020; + nameEn_ = value; + onChanged(); return this; } public Builder clearNameEn() { - result.hasNameEn = false; - result.nameEn_ = getDefaultInstance().getNameEn(); + bitField0_ = (bitField0_ & ~0x00000020); + nameEn_ = getDefaultInstance().getNameEn(); + onChanged(); return this; } + void setNameEn(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000020; + nameEn_ = value; + onChanged(); + } // optional uint64 id = 8; + private long id_ ; public boolean hasId() { - return result.hasId(); + return ((bitField0_ & 0x00000040) == 0x00000040); } public long getId() { - return result.getId(); + return id_; } public Builder setId(long value) { - result.hasId = true; - result.id_ = value; + bitField0_ |= 0x00000040; + id_ = value; + onChanged(); return this; } public Builder clearId() { - result.hasId = false; - result.id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + id_ = 0L; + onChanged(); return this; } // optional string openingHours = 10; + private java.lang.Object openingHours_ = ""; public boolean hasOpeningHours() { - return result.hasOpeningHours(); + return ((bitField0_ & 0x00000080) == 0x00000080); } - public java.lang.String getOpeningHours() { - return result.getOpeningHours(); + public String getOpeningHours() { + java.lang.Object ref = openingHours_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + openingHours_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setOpeningHours(java.lang.String value) { + public Builder setOpeningHours(String value) { if (value == null) { throw new NullPointerException(); } - result.hasOpeningHours = true; - result.openingHours_ = value; + bitField0_ |= 0x00000080; + openingHours_ = value; + onChanged(); return this; } public Builder clearOpeningHours() { - result.hasOpeningHours = false; - result.openingHours_ = getDefaultInstance().getOpeningHours(); + bitField0_ = (bitField0_ & ~0x00000080); + openingHours_ = getDefaultInstance().getOpeningHours(); + onChanged(); return this; } + void setOpeningHours(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000080; + openingHours_ = value; + onChanged(); + } // optional string site = 11; + private java.lang.Object site_ = ""; public boolean hasSite() { - return result.hasSite(); + return ((bitField0_ & 0x00000100) == 0x00000100); } - public java.lang.String getSite() { - return result.getSite(); + public String getSite() { + java.lang.Object ref = site_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + site_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setSite(java.lang.String value) { + public Builder setSite(String value) { if (value == null) { throw new NullPointerException(); } - result.hasSite = true; - result.site_ = value; + bitField0_ |= 0x00000100; + site_ = value; + onChanged(); return this; } public Builder clearSite() { - result.hasSite = false; - result.site_ = getDefaultInstance().getSite(); + bitField0_ = (bitField0_ & ~0x00000100); + site_ = getDefaultInstance().getSite(); + onChanged(); return this; } + void setSite(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000100; + site_ = value; + onChanged(); + } // optional string phone = 12; + private java.lang.Object phone_ = ""; public boolean hasPhone() { - return result.hasPhone(); + return ((bitField0_ & 0x00000200) == 0x00000200); } - public java.lang.String getPhone() { - return result.getPhone(); + public String getPhone() { + java.lang.Object ref = phone_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + phone_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setPhone(java.lang.String value) { + public Builder setPhone(String value) { if (value == null) { throw new NullPointerException(); } - result.hasPhone = true; - result.phone_ = value; + bitField0_ |= 0x00000200; + phone_ = value; + onChanged(); return this; } public Builder clearPhone() { - result.hasPhone = false; - result.phone_ = getDefaultInstance().getPhone(); + bitField0_ = (bitField0_ & ~0x00000200); + phone_ = getDefaultInstance().getPhone(); + onChanged(); return this; } + void setPhone(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000200; + phone_ = value; + onChanged(); + } // optional string note = 13; + private java.lang.Object note_ = ""; public boolean hasNote() { - return result.hasNote(); + return ((bitField0_ & 0x00000400) == 0x00000400); } - public java.lang.String getNote() { - return result.getNote(); + public String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + note_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setNote(java.lang.String value) { + public Builder setNote(String value) { if (value == null) { throw new NullPointerException(); } - result.hasNote = true; - result.note_ = value; + bitField0_ |= 0x00000400; + note_ = value; + onChanged(); return this; } public Builder clearNote() { - result.hasNote = false; - result.note_ = getDefaultInstance().getNote(); + bitField0_ = (bitField0_ & ~0x00000400); + note_ = getDefaultInstance().getNote(); + onChanged(); return this; } + void setNote(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000400; + note_ = value; + onChanged(); + } // repeated uint32 textCategories = 14; - public java.util.List getTextCategoriesList() { - return java.util.Collections.unmodifiableList(result.textCategories_); + private java.util.List textCategories_ = java.util.Collections.emptyList();; + private void ensureTextCategoriesIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + textCategories_ = new java.util.ArrayList(textCategories_); + bitField0_ |= 0x00000800; + } + } + public java.util.List + getTextCategoriesList() { + return java.util.Collections.unmodifiableList(textCategories_); } public int getTextCategoriesCount() { - return result.getTextCategoriesCount(); + return textCategories_.size(); } public int getTextCategories(int index) { - return result.getTextCategories(index); + return textCategories_.get(index); } - public Builder setTextCategories(int index, int value) { - result.textCategories_.set(index, value); + public Builder setTextCategories( + int index, int value) { + ensureTextCategoriesIsMutable(); + textCategories_.set(index, value); + onChanged(); return this; } public Builder addTextCategories(int value) { - if (result.textCategories_.isEmpty()) { - result.textCategories_ = new java.util.ArrayList(); - } - result.textCategories_.add(value); + ensureTextCategoriesIsMutable(); + textCategories_.add(value); + onChanged(); return this; } public Builder addAllTextCategories( java.lang.Iterable values) { - if (result.textCategories_.isEmpty()) { - result.textCategories_ = new java.util.ArrayList(); - } - super.addAll(values, result.textCategories_); + ensureTextCategoriesIsMutable(); + super.addAll(values, textCategories_); + onChanged(); return this; } public Builder clearTextCategories() { - result.textCategories_ = java.util.Collections.emptyList(); + textCategories_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); return this; } // repeated string textValues = 15; - public java.util.List getTextValuesList() { - return java.util.Collections.unmodifiableList(result.textValues_); + private com.google.protobuf.LazyStringList textValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTextValuesIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + textValues_ = new com.google.protobuf.LazyStringArrayList(textValues_); + bitField0_ |= 0x00001000; + } + } + public java.util.List + getTextValuesList() { + return java.util.Collections.unmodifiableList(textValues_); } public int getTextValuesCount() { - return result.getTextValuesCount(); + return textValues_.size(); } - public java.lang.String getTextValues(int index) { - return result.getTextValues(index); + public String getTextValues(int index) { + return textValues_.get(index); } - public Builder setTextValues(int index, java.lang.String value) { + public Builder setTextValues( + int index, String value) { if (value == null) { throw new NullPointerException(); } - result.textValues_.set(index, value); + ensureTextValuesIsMutable(); + textValues_.set(index, value); + onChanged(); return this; } - public Builder addTextValues(java.lang.String value) { + public Builder addTextValues(String value) { if (value == null) { throw new NullPointerException(); } - if (result.textValues_.isEmpty()) { - result.textValues_ = new java.util.ArrayList(); - } - result.textValues_.add(value); + ensureTextValuesIsMutable(); + textValues_.add(value); + onChanged(); return this; } public Builder addAllTextValues( - java.lang.Iterable values) { - if (result.textValues_.isEmpty()) { - result.textValues_ = new java.util.ArrayList(); - } - super.addAll(values, result.textValues_); + java.lang.Iterable values) { + ensureTextValuesIsMutable(); + super.addAll(values, textValues_); + onChanged(); return this; } public Builder clearTextValues() { - result.textValues_ = java.util.Collections.emptyList(); + textValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); return this; } + void addTextValues(com.google.protobuf.ByteString value) { + ensureTextValuesIsMutable(); + textValues_.add(value); + onChanged(); + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiBoxDataAtom) } static { defaultInstance = new OsmAndPoiBoxDataAtom(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiBoxDataAtom) } + public interface IdTableOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated sint64 routeId = 1; + java.util.List getRouteIdList(); + int getRouteIdCount(); + long getRouteId(int index); + } public static final class IdTable extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements IdTableOrBuilder { // Use IdTable.newBuilder() to construct. - private IdTable() { - initFields(); + private IdTable(Builder builder) { + super(builder); } private IdTable(boolean noInit) {} @@ -18954,27 +33210,35 @@ public final class OsmandOdb { // repeated sint64 routeId = 1; public static final int ROUTEID_FIELD_NUMBER = 1; - private java.util.List routeId_ = - java.util.Collections.emptyList(); - public java.util.List getRouteIdList() { + private java.util.List routeId_; + public java.util.List + getRouteIdList() { return routeId_; } - public int getRouteIdCount() { return routeId_.size(); } + public int getRouteIdCount() { + return routeId_.size(); + } public long getRouteId(int index) { return routeId_.get(index); } private void initFields() { + routeId_ = java.util.Collections.emptyList();; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - for (long element : getRouteIdList()) { - output.writeSInt64(1, element); + for (int i = 0; i < routeId_.size(); i++) { + output.writeSInt64(1, routeId_.get(i)); } getUnknownFields().writeTo(output); } @@ -18987,9 +33251,9 @@ public final class OsmandOdb { size = 0; { int dataSize = 0; - for (long element : getRouteIdList()) { + for (int i = 0; i < routeId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeSInt64SizeNoTag(element); + .computeSInt64SizeNoTag(routeId_.get(i)); } size += dataSize; size += 1 * getRouteIdList().size(); @@ -18999,6 +33263,13 @@ public final class OsmandOdb { return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.IdTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -19073,34 +33344,51 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.IdTable result; - - // Construct using net.osmand.binary.OsmandOdb.IdTable.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.IdTable(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.IdTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IdTable_descriptor; } - protected net.osmand.binary.OsmandOdb.IdTable internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IdTable_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.IdTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.IdTable(); + super.clear(); + routeId_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -19112,37 +33400,34 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.IdTable build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.IdTable result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.IdTable buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.IdTable result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.IdTable buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.IdTable result = new net.osmand.binary.OsmandOdb.IdTable(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + routeId_ = java.util.Collections.unmodifiableList(routeId_); + bitField0_ = (bitField0_ & ~0x00000001); } - if (result.routeId_ != java.util.Collections.EMPTY_LIST) { - result.routeId_ = - java.util.Collections.unmodifiableList(result.routeId_); - } - net.osmand.binary.OsmandOdb.IdTable returnMe = result; - result = null; - return returnMe; + result.routeId_ = routeId_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -19157,15 +33442,23 @@ public final class OsmandOdb { public Builder mergeFrom(net.osmand.binary.OsmandOdb.IdTable other) { if (other == net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance()) return this; if (!other.routeId_.isEmpty()) { - if (result.routeId_.isEmpty()) { - result.routeId_ = new java.util.ArrayList(); + if (routeId_.isEmpty()) { + routeId_ = other.routeId_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRouteIdIsMutable(); + routeId_.addAll(other.routeId_); } - result.routeId_.addAll(other.routeId_); + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -19178,17 +33471,20 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - addRouteId(input.readSInt64()); + ensureRouteIdIsMutable(); + routeId_.add(input.readSInt64()); break; } case 10: { @@ -19204,38 +33500,50 @@ public final class OsmandOdb { } } + private int bitField0_; // repeated sint64 routeId = 1; - public java.util.List getRouteIdList() { - return java.util.Collections.unmodifiableList(result.routeId_); + private java.util.List routeId_ = java.util.Collections.emptyList();; + private void ensureRouteIdIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + routeId_ = new java.util.ArrayList(routeId_); + bitField0_ |= 0x00000001; + } + } + public java.util.List + getRouteIdList() { + return java.util.Collections.unmodifiableList(routeId_); } public int getRouteIdCount() { - return result.getRouteIdCount(); + return routeId_.size(); } public long getRouteId(int index) { - return result.getRouteId(index); + return routeId_.get(index); } - public Builder setRouteId(int index, long value) { - result.routeId_.set(index, value); + public Builder setRouteId( + int index, long value) { + ensureRouteIdIsMutable(); + routeId_.set(index, value); + onChanged(); return this; } public Builder addRouteId(long value) { - if (result.routeId_.isEmpty()) { - result.routeId_ = new java.util.ArrayList(); - } - result.routeId_.add(value); + ensureRouteIdIsMutable(); + routeId_.add(value); + onChanged(); return this; } public Builder addAllRouteId( java.lang.Iterable values) { - if (result.routeId_.isEmpty()) { - result.routeId_ = new java.util.ArrayList(); - } - super.addAll(values, result.routeId_); + ensureRouteIdIsMutable(); + super.addAll(values, routeId_); + onChanged(); return this; } public Builder clearRouteId() { - result.routeId_ = java.util.Collections.emptyList(); + routeId_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } @@ -19244,18 +33552,37 @@ public final class OsmandOdb { static { defaultInstance = new IdTable(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.IdTable) } + public interface RestrictionDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required int32 type = 1; + boolean hasType(); + int getType(); + + // required int32 from = 2; + boolean hasFrom(); + int getFrom(); + + // required int32 to = 3; + boolean hasTo(); + int getTo(); + + // optional int32 via = 4; + boolean hasVia(); + int getVia(); + } public static final class RestrictionData extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements RestrictionDataOrBuilder { // Use RestrictionData.newBuilder() to construct. - private RestrictionData() { - initFields(); + private RestrictionData(Builder builder) { + super(builder); } private RestrictionData(boolean noInit) {} @@ -19278,57 +33605,88 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RestrictionData_fieldAccessorTable; } + private int bitField0_; // required int32 type = 1; public static final int TYPE_FIELD_NUMBER = 1; - private boolean hasType; - private int type_ = 0; - public boolean hasType() { return hasType; } - public int getType() { return type_; } + private int type_; + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getType() { + return type_; + } // required int32 from = 2; public static final int FROM_FIELD_NUMBER = 2; - private boolean hasFrom; - private int from_ = 0; - public boolean hasFrom() { return hasFrom; } - public int getFrom() { return from_; } + private int from_; + public boolean hasFrom() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getFrom() { + return from_; + } // required int32 to = 3; public static final int TO_FIELD_NUMBER = 3; - private boolean hasTo; - private int to_ = 0; - public boolean hasTo() { return hasTo; } - public int getTo() { return to_; } + private int to_; + public boolean hasTo() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getTo() { + return to_; + } // optional int32 via = 4; public static final int VIA_FIELD_NUMBER = 4; - private boolean hasVia; - private int via_ = 0; - public boolean hasVia() { return hasVia; } - public int getVia() { return via_; } + private int via_; + public boolean hasVia() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getVia() { + return via_; + } private void initFields() { + type_ = 0; + from_ = 0; + to_ = 0; + via_ = 0; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasType) return false; - if (!hasFrom) return false; - if (!hasTo) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasFrom()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTo()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasType()) { - output.writeInt32(1, getType()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, type_); } - if (hasFrom()) { - output.writeInt32(2, getFrom()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, from_); } - if (hasTo()) { - output.writeInt32(3, getTo()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, to_); } - if (hasVia()) { - output.writeInt32(4, getVia()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(4, via_); } getUnknownFields().writeTo(output); } @@ -19339,27 +33697,34 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasType()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, getType()); + .computeInt32Size(1, type_); } - if (hasFrom()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, getFrom()); + .computeInt32Size(2, from_); } - if (hasTo()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, getTo()); + .computeInt32Size(3, to_); } - if (hasVia()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, getVia()); + .computeInt32Size(4, via_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.RestrictionData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -19434,34 +33799,57 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.RestrictionData result; - - // Construct using net.osmand.binary.OsmandOdb.RestrictionData.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.RestrictionData(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RestrictionData_descriptor; } - protected net.osmand.binary.OsmandOdb.RestrictionData internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RestrictionData_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.RestrictionData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.RestrictionData(); + super.clear(); + type_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + from_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + to_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + via_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -19473,33 +33861,47 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.RestrictionData.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.RestrictionData build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.RestrictionData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.RestrictionData buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.RestrictionData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.RestrictionData buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.RestrictionData result = new net.osmand.binary.OsmandOdb.RestrictionData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.RestrictionData returnMe = result; - result = null; - return returnMe; + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.from_ = from_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.to_ = to_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.via_ = via_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -19529,6 +33931,22 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasType()) { + + return false; + } + if (!hasFrom()) { + + return false; + } + if (!hasTo()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -19541,105 +33959,124 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setType(input.readInt32()); + bitField0_ |= 0x00000001; + type_ = input.readInt32(); break; } case 16: { - setFrom(input.readInt32()); + bitField0_ |= 0x00000002; + from_ = input.readInt32(); break; } case 24: { - setTo(input.readInt32()); + bitField0_ |= 0x00000004; + to_ = input.readInt32(); break; } case 32: { - setVia(input.readInt32()); + bitField0_ |= 0x00000008; + via_ = input.readInt32(); break; } } } } + private int bitField0_; // required int32 type = 1; + private int type_ ; public boolean hasType() { - return result.hasType(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getType() { - return result.getType(); + return type_; } public Builder setType(int value) { - result.hasType = true; - result.type_ = value; + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); return this; } public Builder clearType() { - result.hasType = false; - result.type_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); return this; } // required int32 from = 2; + private int from_ ; public boolean hasFrom() { - return result.hasFrom(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getFrom() { - return result.getFrom(); + return from_; } public Builder setFrom(int value) { - result.hasFrom = true; - result.from_ = value; + bitField0_ |= 0x00000002; + from_ = value; + onChanged(); return this; } public Builder clearFrom() { - result.hasFrom = false; - result.from_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + from_ = 0; + onChanged(); return this; } // required int32 to = 3; + private int to_ ; public boolean hasTo() { - return result.hasTo(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getTo() { - return result.getTo(); + return to_; } public Builder setTo(int value) { - result.hasTo = true; - result.to_ = value; + bitField0_ |= 0x00000004; + to_ = value; + onChanged(); return this; } public Builder clearTo() { - result.hasTo = false; - result.to_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + to_ = 0; + onChanged(); return this; } // optional int32 via = 4; + private int via_ ; public boolean hasVia() { - return result.hasVia(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getVia() { - return result.getVia(); + return via_; } public Builder setVia(int value) { - result.hasVia = true; - result.via_ = value; + bitField0_ |= 0x00000008; + via_ = value; + onChanged(); return this; } public Builder clearVia() { - result.hasVia = false; - result.via_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + via_ = 0; + onChanged(); return this; } @@ -19648,18 +34085,41 @@ public final class OsmandOdb { static { defaultInstance = new RestrictionData(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.RestrictionData) } + public interface RouteDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required bytes points = 1; + boolean hasPoints(); + com.google.protobuf.ByteString getPoints(); + + // optional bytes pointTypes = 4; + boolean hasPointTypes(); + com.google.protobuf.ByteString getPointTypes(); + + // required bytes types = 7; + boolean hasTypes(); + com.google.protobuf.ByteString getTypes(); + + // required int32 routeId = 12; + boolean hasRouteId(); + int getRouteId(); + + // optional bytes stringNames = 14; + boolean hasStringNames(); + com.google.protobuf.ByteString getStringNames(); + } public static final class RouteData extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements RouteDataOrBuilder { // Use RouteData.newBuilder() to construct. - private RouteData() { - initFields(); + private RouteData(Builder builder) { + super(builder); } private RouteData(boolean noInit) {} @@ -19682,67 +34142,102 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RouteData_fieldAccessorTable; } + private int bitField0_; // required bytes points = 1; public static final int POINTS_FIELD_NUMBER = 1; - private boolean hasPoints; - private com.google.protobuf.ByteString points_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasPoints() { return hasPoints; } - public com.google.protobuf.ByteString getPoints() { return points_; } + private com.google.protobuf.ByteString points_; + public boolean hasPoints() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getPoints() { + return points_; + } // optional bytes pointTypes = 4; public static final int POINTTYPES_FIELD_NUMBER = 4; - private boolean hasPointTypes; - private com.google.protobuf.ByteString pointTypes_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasPointTypes() { return hasPointTypes; } - public com.google.protobuf.ByteString getPointTypes() { return pointTypes_; } + private com.google.protobuf.ByteString pointTypes_; + public boolean hasPointTypes() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public com.google.protobuf.ByteString getPointTypes() { + return pointTypes_; + } // required bytes types = 7; public static final int TYPES_FIELD_NUMBER = 7; - private boolean hasTypes; - private com.google.protobuf.ByteString types_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasTypes() { return hasTypes; } - public com.google.protobuf.ByteString getTypes() { return types_; } + private com.google.protobuf.ByteString types_; + public boolean hasTypes() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public com.google.protobuf.ByteString getTypes() { + return types_; + } // required int32 routeId = 12; public static final int ROUTEID_FIELD_NUMBER = 12; - private boolean hasRouteId; - private int routeId_ = 0; - public boolean hasRouteId() { return hasRouteId; } - public int getRouteId() { return routeId_; } + private int routeId_; + public boolean hasRouteId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getRouteId() { + return routeId_; + } // optional bytes stringNames = 14; public static final int STRINGNAMES_FIELD_NUMBER = 14; - private boolean hasStringNames; - private com.google.protobuf.ByteString stringNames_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasStringNames() { return hasStringNames; } - public com.google.protobuf.ByteString getStringNames() { return stringNames_; } + private com.google.protobuf.ByteString stringNames_; + public boolean hasStringNames() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public com.google.protobuf.ByteString getStringNames() { + return stringNames_; + } private void initFields() { + points_ = com.google.protobuf.ByteString.EMPTY; + pointTypes_ = com.google.protobuf.ByteString.EMPTY; + types_ = com.google.protobuf.ByteString.EMPTY; + routeId_ = 0; + stringNames_ = com.google.protobuf.ByteString.EMPTY; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasPoints) return false; - if (!hasTypes) return false; - if (!hasRouteId) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPoints()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTypes()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRouteId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasPoints()) { - output.writeBytes(1, getPoints()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, points_); } - if (hasPointTypes()) { - output.writeBytes(4, getPointTypes()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(4, pointTypes_); } - if (hasTypes()) { - output.writeBytes(7, getTypes()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(7, types_); } - if (hasRouteId()) { - output.writeInt32(12, getRouteId()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(12, routeId_); } - if (hasStringNames()) { - output.writeBytes(14, getStringNames()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(14, stringNames_); } getUnknownFields().writeTo(output); } @@ -19753,31 +34248,38 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasPoints()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getPoints()); + .computeBytesSize(1, points_); } - if (hasPointTypes()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getPointTypes()); + .computeBytesSize(4, pointTypes_); } - if (hasTypes()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getTypes()); + .computeBytesSize(7, types_); } - if (hasRouteId()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, getRouteId()); + .computeInt32Size(12, routeId_); } - if (hasStringNames()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, getStringNames()); + .computeBytesSize(14, stringNames_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.RouteData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -19852,34 +34354,59 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.RouteData result; - - // Construct using net.osmand.binary.OsmandOdb.RouteData.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.RouteData(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.RouteDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RouteData_descriptor; } - protected net.osmand.binary.OsmandOdb.RouteData internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RouteData_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.RouteData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.RouteData(); + super.clear(); + points_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + pointTypes_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + types_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + routeId_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + stringNames_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -19891,33 +34418,51 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.RouteData.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.RouteData build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.RouteData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.RouteData buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.RouteData result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.RouteData buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.RouteData result = new net.osmand.binary.OsmandOdb.RouteData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.RouteData returnMe = result; - result = null; - return returnMe; + result.points_ = points_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.pointTypes_ = pointTypes_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.types_ = types_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.routeId_ = routeId_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.stringNames_ = stringNames_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -19950,6 +34495,22 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasPoints()) { + + return false; + } + if (!hasTypes()) { + + return false; + } + if (!hasRouteId()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -19962,139 +34523,162 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setPoints(input.readBytes()); + bitField0_ |= 0x00000001; + points_ = input.readBytes(); break; } case 34: { - setPointTypes(input.readBytes()); + bitField0_ |= 0x00000002; + pointTypes_ = input.readBytes(); break; } case 58: { - setTypes(input.readBytes()); + bitField0_ |= 0x00000004; + types_ = input.readBytes(); break; } case 96: { - setRouteId(input.readInt32()); + bitField0_ |= 0x00000008; + routeId_ = input.readInt32(); break; } case 114: { - setStringNames(input.readBytes()); + bitField0_ |= 0x00000010; + stringNames_ = input.readBytes(); break; } } } } + private int bitField0_; // required bytes points = 1; + private com.google.protobuf.ByteString points_ = com.google.protobuf.ByteString.EMPTY; public boolean hasPoints() { - return result.hasPoints(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public com.google.protobuf.ByteString getPoints() { - return result.getPoints(); + return points_; } public Builder setPoints(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.hasPoints = true; - result.points_ = value; + bitField0_ |= 0x00000001; + points_ = value; + onChanged(); return this; } public Builder clearPoints() { - result.hasPoints = false; - result.points_ = getDefaultInstance().getPoints(); + bitField0_ = (bitField0_ & ~0x00000001); + points_ = getDefaultInstance().getPoints(); + onChanged(); return this; } // optional bytes pointTypes = 4; + private com.google.protobuf.ByteString pointTypes_ = com.google.protobuf.ByteString.EMPTY; public boolean hasPointTypes() { - return result.hasPointTypes(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public com.google.protobuf.ByteString getPointTypes() { - return result.getPointTypes(); + return pointTypes_; } public Builder setPointTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.hasPointTypes = true; - result.pointTypes_ = value; + bitField0_ |= 0x00000002; + pointTypes_ = value; + onChanged(); return this; } public Builder clearPointTypes() { - result.hasPointTypes = false; - result.pointTypes_ = getDefaultInstance().getPointTypes(); + bitField0_ = (bitField0_ & ~0x00000002); + pointTypes_ = getDefaultInstance().getPointTypes(); + onChanged(); return this; } // required bytes types = 7; + private com.google.protobuf.ByteString types_ = com.google.protobuf.ByteString.EMPTY; public boolean hasTypes() { - return result.hasTypes(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public com.google.protobuf.ByteString getTypes() { - return result.getTypes(); + return types_; } public Builder setTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.hasTypes = true; - result.types_ = value; + bitField0_ |= 0x00000004; + types_ = value; + onChanged(); return this; } public Builder clearTypes() { - result.hasTypes = false; - result.types_ = getDefaultInstance().getTypes(); + bitField0_ = (bitField0_ & ~0x00000004); + types_ = getDefaultInstance().getTypes(); + onChanged(); return this; } // required int32 routeId = 12; + private int routeId_ ; public boolean hasRouteId() { - return result.hasRouteId(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getRouteId() { - return result.getRouteId(); + return routeId_; } public Builder setRouteId(int value) { - result.hasRouteId = true; - result.routeId_ = value; + bitField0_ |= 0x00000008; + routeId_ = value; + onChanged(); return this; } public Builder clearRouteId() { - result.hasRouteId = false; - result.routeId_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + routeId_ = 0; + onChanged(); return this; } // optional bytes stringNames = 14; + private com.google.protobuf.ByteString stringNames_ = com.google.protobuf.ByteString.EMPTY; public boolean hasStringNames() { - return result.hasStringNames(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public com.google.protobuf.ByteString getStringNames() { - return result.getStringNames(); + return stringNames_; } public Builder setStringNames(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - result.hasStringNames = true; - result.stringNames_ = value; + bitField0_ |= 0x00000010; + stringNames_ = value; + onChanged(); return this; } public Builder clearStringNames() { - result.hasStringNames = false; - result.stringNames_ = getDefaultInstance().getStringNames(); + bitField0_ = (bitField0_ & ~0x00000010); + stringNames_ = getDefaultInstance().getStringNames(); + onChanged(); return this; } @@ -20103,18 +34687,65 @@ public final class OsmandOdb { static { defaultInstance = new RouteData(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.RouteData) } + public interface OsmAndRoutingIndexOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string name = 1; + boolean hasName(); + String getName(); + + // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; + java.util.List + getRulesList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule getRules(int index); + int getRulesCount(); + java.util.List + getRulesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder getRulesOrBuilder( + int index); + + // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; + java.util.List + getRootBoxesList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getRootBoxes(int index); + int getRootBoxesCount(); + java.util.List + getRootBoxesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getRootBoxesOrBuilder( + int index); + + // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; + java.util.List + getBasemapBoxesList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBasemapBoxes(int index); + int getBasemapBoxesCount(); + java.util.List + getBasemapBoxesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBasemapBoxesOrBuilder( + int index); + + // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; + java.util.List + getBlocksList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock getBlocks(int index); + int getBlocksCount(); + java.util.List + getBlocksOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder getBlocksOrBuilder( + int index); + } public static final class OsmAndRoutingIndex extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements OsmAndRoutingIndexOrBuilder { // Use OsmAndRoutingIndex.newBuilder() to construct. - private OsmAndRoutingIndex() { - initFields(); + private OsmAndRoutingIndex(Builder builder) { + super(builder); } private OsmAndRoutingIndex(boolean noInit) {} @@ -20137,11 +34768,27 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_fieldAccessorTable; } + public interface RouteEncodingRuleOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string tag = 3; + boolean hasTag(); + String getTag(); + + // required string value = 5; + boolean hasValue(); + String getValue(); + + // optional uint32 id = 7; + boolean hasId(); + int getId(); + } public static final class RouteEncodingRule extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements RouteEncodingRuleOrBuilder { // Use RouteEncodingRule.newBuilder() to construct. - private RouteEncodingRule() { - initFields(); + private RouteEncodingRule(Builder builder) { + super(builder); } private RouteEncodingRule(boolean noInit) {} @@ -20164,46 +34811,114 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_fieldAccessorTable; } + private int bitField0_; // required string tag = 3; public static final int TAG_FIELD_NUMBER = 3; - private boolean hasTag; - private java.lang.String tag_ = ""; - public boolean hasTag() { return hasTag; } - public java.lang.String getTag() { return tag_; } + private java.lang.Object tag_; + public boolean hasTag() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getTag() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + tag_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // required string value = 5; public static final int VALUE_FIELD_NUMBER = 5; - private boolean hasValue; - private java.lang.String value_ = ""; - public boolean hasValue() { return hasValue; } - public java.lang.String getValue() { return value_; } + private java.lang.Object value_; + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getValue() { + java.lang.Object ref = value_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + value_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // optional uint32 id = 7; public static final int ID_FIELD_NUMBER = 7; - private boolean hasId; - private int id_ = 0; - public boolean hasId() { return hasId; } - public int getId() { return id_; } + private int id_; + public boolean hasId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getId() { + return id_; + } private void initFields() { + tag_ = ""; + value_ = ""; + id_ = 0; } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasTag) return false; - if (!hasValue) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasTag()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasValue()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasTag()) { - output.writeString(3, getTag()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(3, getTagBytes()); } - if (hasValue()) { - output.writeString(5, getValue()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(5, getValueBytes()); } - if (hasId()) { - output.writeUInt32(7, getId()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(7, id_); } getUnknownFields().writeTo(output); } @@ -20214,23 +34929,30 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasTag()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getTag()); + .computeBytesSize(3, getTagBytes()); } - if (hasValue()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(5, getValue()); + .computeBytesSize(5, getValueBytes()); } - if (hasId()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, getId()); + .computeUInt32Size(7, id_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -20305,34 +35027,55 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule(); + super.clear(); + tag_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + id_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -20344,33 +35087,43 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule returnMe = result; - result = null; - return returnMe; + result.tag_ = tag_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.value_ = value_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.id_ = id_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -20397,6 +35150,18 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + if (!hasTag()) { + + return false; + } + if (!hasValue()) { + + return false; + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -20409,89 +35174,128 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 26: { - setTag(input.readString()); + bitField0_ |= 0x00000001; + tag_ = input.readBytes(); break; } case 42: { - setValue(input.readString()); + bitField0_ |= 0x00000002; + value_ = input.readBytes(); break; } case 56: { - setId(input.readUInt32()); + bitField0_ |= 0x00000004; + id_ = input.readUInt32(); break; } } } } + private int bitField0_; // required string tag = 3; + private java.lang.Object tag_ = ""; public boolean hasTag() { - return result.hasTag(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getTag() { - return result.getTag(); + public String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + tag_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setTag(java.lang.String value) { + public Builder setTag(String value) { if (value == null) { throw new NullPointerException(); } - result.hasTag = true; - result.tag_ = value; + bitField0_ |= 0x00000001; + tag_ = value; + onChanged(); return this; } public Builder clearTag() { - result.hasTag = false; - result.tag_ = getDefaultInstance().getTag(); + bitField0_ = (bitField0_ & ~0x00000001); + tag_ = getDefaultInstance().getTag(); + onChanged(); return this; } + void setTag(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + tag_ = value; + onChanged(); + } // required string value = 5; + private java.lang.Object value_ = ""; public boolean hasValue() { - return result.hasValue(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - public java.lang.String getValue() { - return result.getValue(); + public String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + value_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setValue(java.lang.String value) { + public Builder setValue(String value) { if (value == null) { throw new NullPointerException(); } - result.hasValue = true; - result.value_ = value; + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); return this; } public Builder clearValue() { - result.hasValue = false; - result.value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + value_ = getDefaultInstance().getValue(); + onChanged(); return this; } + void setValue(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + } // optional uint32 id = 7; + private int id_ ; public boolean hasId() { - return result.hasId(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getId() { - return result.getId(); + return id_; } public Builder setId(int value) { - result.hasId = true; - result.id_ = value; + bitField0_ |= 0x00000004; + id_ = value; + onChanged(); return this; } public Builder clearId() { - result.hasId = false; - result.id_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + id_ = 0; + onChanged(); return this; } @@ -20500,18 +35304,51 @@ public final class OsmandOdb { static { defaultInstance = new RouteEncodingRule(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule) } + public interface RouteDataBoxOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required sint32 left = 1; + boolean hasLeft(); + int getLeft(); + + // required sint32 right = 2; + boolean hasRight(); + int getRight(); + + // required sint32 top = 3; + boolean hasTop(); + int getTop(); + + // required sint32 bottom = 4; + boolean hasBottom(); + int getBottom(); + + // optional fixed32 shiftToData = 5; + boolean hasShiftToData(); + int getShiftToData(); + + // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; + java.util.List + getBoxesList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBoxes(int index); + int getBoxesCount(); + java.util.List + getBoxesOrBuilderList(); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBoxesOrBuilder( + int index); + } public static final class RouteDataBox extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements RouteDataBoxOrBuilder { // Use RouteDataBox.newBuilder() to construct. - private RouteDataBox() { - initFields(); + private RouteDataBox(Builder builder) { + super(builder); } private RouteDataBox(boolean noInit) {} @@ -20534,86 +35371,137 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_fieldAccessorTable; } + private int bitField0_; // required sint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; - private boolean hasLeft; - private int left_ = 0; - public boolean hasLeft() { return hasLeft; } - public int getLeft() { return left_; } + private int left_; + public boolean hasLeft() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getLeft() { + return left_; + } // required sint32 right = 2; public static final int RIGHT_FIELD_NUMBER = 2; - private boolean hasRight; - private int right_ = 0; - public boolean hasRight() { return hasRight; } - public int getRight() { return right_; } + private int right_; + public boolean hasRight() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getRight() { + return right_; + } // required sint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; - private boolean hasTop; - private int top_ = 0; - public boolean hasTop() { return hasTop; } - public int getTop() { return top_; } + private int top_; + public boolean hasTop() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getTop() { + return top_; + } // required sint32 bottom = 4; public static final int BOTTOM_FIELD_NUMBER = 4; - private boolean hasBottom; - private int bottom_ = 0; - public boolean hasBottom() { return hasBottom; } - public int getBottom() { return bottom_; } + private int bottom_; + public boolean hasBottom() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getBottom() { + return bottom_; + } // optional fixed32 shiftToData = 5; public static final int SHIFTTODATA_FIELD_NUMBER = 5; - private boolean hasShiftToData; - private int shiftToData_ = 0; - public boolean hasShiftToData() { return hasShiftToData; } - public int getShiftToData() { return shiftToData_; } + private int shiftToData_; + public boolean hasShiftToData() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getShiftToData() { + return shiftToData_; + } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; public static final int BOXES_FIELD_NUMBER = 7; - private java.util.List boxes_ = - java.util.Collections.emptyList(); + private java.util.List boxes_; public java.util.List getBoxesList() { return boxes_; } - public int getBoxesCount() { return boxes_.size(); } + public java.util.List + getBoxesOrBuilderList() { + return boxes_; + } + public int getBoxesCount() { + return boxes_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBoxes(int index) { return boxes_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBoxesOrBuilder( + int index) { + return boxes_.get(index); + } private void initFields() { + left_ = 0; + right_ = 0; + top_ = 0; + bottom_ = 0; + shiftToData_ = 0; + boxes_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasLeft) return false; - if (!hasRight) return false; - if (!hasTop) return false; - if (!hasBottom) return false; - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox element : getBoxesList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasLeft()) { + memoizedIsInitialized = 0; + return false; } + if (!hasRight()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTop()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasBottom()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getBoxesCount(); i++) { + if (!getBoxes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasLeft()) { - output.writeSInt32(1, getLeft()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeSInt32(1, left_); } - if (hasRight()) { - output.writeSInt32(2, getRight()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeSInt32(2, right_); } - if (hasTop()) { - output.writeSInt32(3, getTop()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeSInt32(3, top_); } - if (hasBottom()) { - output.writeSInt32(4, getBottom()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeSInt32(4, bottom_); } - if (hasShiftToData()) { - output.writeFixed32(5, getShiftToData()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeFixed32(5, shiftToData_); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox element : getBoxesList()) { - output.writeMessage(7, element); + for (int i = 0; i < boxes_.size(); i++) { + output.writeMessage(7, boxes_.get(i)); } getUnknownFields().writeTo(output); } @@ -20624,35 +35512,42 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasLeft()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(1, getLeft()); + .computeSInt32Size(1, left_); } - if (hasRight()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(2, getRight()); + .computeSInt32Size(2, right_); } - if (hasTop()) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(3, getTop()); + .computeSInt32Size(3, top_); } - if (hasBottom()) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeSInt32Size(4, getBottom()); + .computeSInt32Size(4, bottom_); } - if (hasShiftToData()) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(5, getShiftToData()); + .computeFixed32Size(5, shiftToData_); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox element : getBoxesList()) { + for (int i = 0; i < boxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, element); + .computeMessageSize(7, boxes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -20727,34 +35622,66 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getBoxesFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + left_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + right_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + top_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + bottom_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + shiftToData_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + if (boxesBuilder_ == null) { + boxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + boxesBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -20766,37 +35693,60 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.boxes_ != java.util.Collections.EMPTY_LIST) { - result.boxes_ = - java.util.Collections.unmodifiableList(result.boxes_); + result.left_ = left_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox returnMe = result; - result = null; - return returnMe; + result.right_ = right_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.top_ = top_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.bottom_ = bottom_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.shiftToData_ = shiftToData_; + if (boxesBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + boxes_ = java.util.Collections.unmodifiableList(boxes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.boxes_ = boxes_; + } else { + result.boxes_ = boxesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -20825,16 +35775,62 @@ public final class OsmandOdb { if (other.hasShiftToData()) { setShiftToData(other.getShiftToData()); } - if (!other.boxes_.isEmpty()) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + if (boxesBuilder_ == null) { + if (!other.boxes_.isEmpty()) { + if (boxes_.isEmpty()) { + boxes_ = other.boxes_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureBoxesIsMutable(); + boxes_.addAll(other.boxes_); + } + onChanged(); + } + } else { + if (!other.boxes_.isEmpty()) { + if (boxesBuilder_.isEmpty()) { + boxesBuilder_.dispose(); + boxesBuilder_ = null; + boxes_ = other.boxes_; + bitField0_ = (bitField0_ & ~0x00000020); + boxesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBoxesFieldBuilder() : null; + } else { + boxesBuilder_.addAllMessages(other.boxes_); + } } - result.boxes_.addAll(other.boxes_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasLeft()) { + + return false; + } + if (!hasRight()) { + + return false; + } + if (!hasTop()) { + + return false; + } + if (!hasBottom()) { + + return false; + } + for (int i = 0; i < getBoxesCount(); i++) { + if (!getBoxes(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -20847,33 +35843,40 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 8: { - setLeft(input.readSInt32()); + bitField0_ |= 0x00000001; + left_ = input.readSInt32(); break; } case 16: { - setRight(input.readSInt32()); + bitField0_ |= 0x00000002; + right_ = input.readSInt32(); break; } case 24: { - setTop(input.readSInt32()); + bitField0_ |= 0x00000004; + top_ = input.readSInt32(); break; } case 32: { - setBottom(input.readSInt32()); + bitField0_ |= 0x00000008; + bottom_ = input.readSInt32(); break; } case 45: { - setShiftToData(input.readFixed32()); + bitField0_ |= 0x00000010; + shiftToData_ = input.readFixed32(); break; } case 58: { @@ -20886,165 +35889,349 @@ public final class OsmandOdb { } } + private int bitField0_; // required sint32 left = 1; + private int left_ ; public boolean hasLeft() { - return result.hasLeft(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public int getLeft() { - return result.getLeft(); + return left_; } public Builder setLeft(int value) { - result.hasLeft = true; - result.left_ = value; + bitField0_ |= 0x00000001; + left_ = value; + onChanged(); return this; } public Builder clearLeft() { - result.hasLeft = false; - result.left_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + left_ = 0; + onChanged(); return this; } // required sint32 right = 2; + private int right_ ; public boolean hasRight() { - return result.hasRight(); + return ((bitField0_ & 0x00000002) == 0x00000002); } public int getRight() { - return result.getRight(); + return right_; } public Builder setRight(int value) { - result.hasRight = true; - result.right_ = value; + bitField0_ |= 0x00000002; + right_ = value; + onChanged(); return this; } public Builder clearRight() { - result.hasRight = false; - result.right_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + right_ = 0; + onChanged(); return this; } // required sint32 top = 3; + private int top_ ; public boolean hasTop() { - return result.hasTop(); + return ((bitField0_ & 0x00000004) == 0x00000004); } public int getTop() { - return result.getTop(); + return top_; } public Builder setTop(int value) { - result.hasTop = true; - result.top_ = value; + bitField0_ |= 0x00000004; + top_ = value; + onChanged(); return this; } public Builder clearTop() { - result.hasTop = false; - result.top_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + top_ = 0; + onChanged(); return this; } // required sint32 bottom = 4; + private int bottom_ ; public boolean hasBottom() { - return result.hasBottom(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public int getBottom() { - return result.getBottom(); + return bottom_; } public Builder setBottom(int value) { - result.hasBottom = true; - result.bottom_ = value; + bitField0_ |= 0x00000008; + bottom_ = value; + onChanged(); return this; } public Builder clearBottom() { - result.hasBottom = false; - result.bottom_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + bottom_ = 0; + onChanged(); return this; } // optional fixed32 shiftToData = 5; + private int shiftToData_ ; public boolean hasShiftToData() { - return result.hasShiftToData(); + return ((bitField0_ & 0x00000010) == 0x00000010); } public int getShiftToData() { - return result.getShiftToData(); + return shiftToData_; } public Builder setShiftToData(int value) { - result.hasShiftToData = true; - result.shiftToData_ = value; + bitField0_ |= 0x00000010; + shiftToData_ = value; + onChanged(); return this; } public Builder clearShiftToData() { - result.hasShiftToData = false; - result.shiftToData_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + shiftToData_ = 0; + onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; + private java.util.List boxes_ = + java.util.Collections.emptyList(); + private void ensureBoxesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + boxes_ = new java.util.ArrayList(boxes_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> boxesBuilder_; + public java.util.List getBoxesList() { - return java.util.Collections.unmodifiableList(result.boxes_); + if (boxesBuilder_ == null) { + return java.util.Collections.unmodifiableList(boxes_); + } else { + return boxesBuilder_.getMessageList(); + } } public int getBoxesCount() { - return result.getBoxesCount(); + if (boxesBuilder_ == null) { + return boxes_.size(); + } else { + return boxesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBoxes(int index) { - return result.getBoxes(index); - } - public Builder setBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { - if (value == null) { - throw new NullPointerException(); + if (boxesBuilder_ == null) { + return boxes_.get(index); + } else { + return boxesBuilder_.getMessage(index); + } + } + public Builder setBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.set(index, value); + onChanged(); + } else { + boxesBuilder_.setMessage(index, value); } - result.boxes_.set(index, value); return this; } - public Builder setBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { - result.boxes_.set(index, builderForValue.build()); + public Builder setBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.set(index, builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { - if (value == null) { - throw new NullPointerException(); + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.add(value); + onChanged(); + } else { + boxesBuilder_.addMessage(value); } - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); - } - result.boxes_.add(value); return this; } - public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + public Builder addBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { + if (boxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoxesIsMutable(); + boxes_.add(index, value); + onChanged(); + } else { + boxesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addBoxes( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.add(builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.add(index, builderForValue.build()); + onChanged(); + } else { + boxesBuilder_.addMessage(index, builderForValue.build()); } - result.boxes_.add(builderForValue.build()); return this; } public Builder addAllBoxes( java.lang.Iterable values) { - if (result.boxes_.isEmpty()) { - result.boxes_ = new java.util.ArrayList(); + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + super.addAll(values, boxes_); + onChanged(); + } else { + boxesBuilder_.addAllMessages(values); } - super.addAll(values, result.boxes_); return this; } public Builder clearBoxes() { - result.boxes_ = java.util.Collections.emptyList(); + if (boxesBuilder_ == null) { + boxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + boxesBuilder_.clear(); + } return this; } + public Builder removeBoxes(int index) { + if (boxesBuilder_ == null) { + ensureBoxesIsMutable(); + boxes_.remove(index); + onChanged(); + } else { + boxesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder getBoxesBuilder( + int index) { + return getBoxesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBoxesOrBuilder( + int index) { + if (boxesBuilder_ == null) { + return boxes_.get(index); } else { + return boxesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getBoxesOrBuilderList() { + if (boxesBuilder_ != null) { + return boxesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(boxes_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBoxesBuilder() { + return getBoxesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBoxesBuilder( + int index) { + return getBoxesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); + } + public java.util.List + getBoxesBuilderList() { + return getBoxesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> + getBoxesFieldBuilder() { + if (boxesBuilder_ == null) { + boxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder>( + boxes_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + boxes_ = null; + } + return boxesBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox) } static { defaultInstance = new RouteDataBox(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox) } + public interface RouteDataBlockOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional .OsmAnd.OBF.IdTable idTable = 5; + boolean hasIdTable(); + net.osmand.binary.OsmandOdb.IdTable getIdTable(); + net.osmand.binary.OsmandOdb.IdTableOrBuilder getIdTableOrBuilder(); + + // repeated .OsmAnd.OBF.RouteData dataObjects = 6; + java.util.List + getDataObjectsList(); + net.osmand.binary.OsmandOdb.RouteData getDataObjects(int index); + int getDataObjectsCount(); + java.util.List + getDataObjectsOrBuilderList(); + net.osmand.binary.OsmandOdb.RouteDataOrBuilder getDataObjectsOrBuilder( + int index); + + // repeated .OsmAnd.OBF.RestrictionData restrictions = 7; + java.util.List + getRestrictionsList(); + net.osmand.binary.OsmandOdb.RestrictionData getRestrictions(int index); + int getRestrictionsCount(); + java.util.List + getRestrictionsOrBuilderList(); + net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder getRestrictionsOrBuilder( + int index); + + // optional .OsmAnd.OBF.StringTable stringTable = 8; + boolean hasStringTable(); + net.osmand.binary.OsmandOdb.StringTable getStringTable(); + net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder(); + } public static final class RouteDataBlock extends - com.google.protobuf.GeneratedMessage { + com.google.protobuf.GeneratedMessage + implements RouteDataBlockOrBuilder { // Use RouteDataBlock.newBuilder() to construct. - private RouteDataBlock() { - initFields(); + private RouteDataBlock(Builder builder) { + super(builder); } private RouteDataBlock(boolean noInit) {} @@ -21067,72 +36254,116 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_fieldAccessorTable; } + private int bitField0_; // optional .OsmAnd.OBF.IdTable idTable = 5; public static final int IDTABLE_FIELD_NUMBER = 5; - private boolean hasIdTable; private net.osmand.binary.OsmandOdb.IdTable idTable_; - public boolean hasIdTable() { return hasIdTable; } - public net.osmand.binary.OsmandOdb.IdTable getIdTable() { return idTable_; } + public boolean hasIdTable() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public net.osmand.binary.OsmandOdb.IdTable getIdTable() { + return idTable_; + } + public net.osmand.binary.OsmandOdb.IdTableOrBuilder getIdTableOrBuilder() { + return idTable_; + } // repeated .OsmAnd.OBF.RouteData dataObjects = 6; public static final int DATAOBJECTS_FIELD_NUMBER = 6; - private java.util.List dataObjects_ = - java.util.Collections.emptyList(); + private java.util.List dataObjects_; public java.util.List getDataObjectsList() { return dataObjects_; } - public int getDataObjectsCount() { return dataObjects_.size(); } + public java.util.List + getDataObjectsOrBuilderList() { + return dataObjects_; + } + public int getDataObjectsCount() { + return dataObjects_.size(); + } public net.osmand.binary.OsmandOdb.RouteData getDataObjects(int index) { return dataObjects_.get(index); } + public net.osmand.binary.OsmandOdb.RouteDataOrBuilder getDataObjectsOrBuilder( + int index) { + return dataObjects_.get(index); + } // repeated .OsmAnd.OBF.RestrictionData restrictions = 7; public static final int RESTRICTIONS_FIELD_NUMBER = 7; - private java.util.List restrictions_ = - java.util.Collections.emptyList(); + private java.util.List restrictions_; public java.util.List getRestrictionsList() { return restrictions_; } - public int getRestrictionsCount() { return restrictions_.size(); } + public java.util.List + getRestrictionsOrBuilderList() { + return restrictions_; + } + public int getRestrictionsCount() { + return restrictions_.size(); + } public net.osmand.binary.OsmandOdb.RestrictionData getRestrictions(int index) { return restrictions_.get(index); } + public net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder getRestrictionsOrBuilder( + int index) { + return restrictions_.get(index); + } // optional .OsmAnd.OBF.StringTable stringTable = 8; public static final int STRINGTABLE_FIELD_NUMBER = 8; - private boolean hasStringTable; private net.osmand.binary.OsmandOdb.StringTable stringTable_; - public boolean hasStringTable() { return hasStringTable; } - public net.osmand.binary.OsmandOdb.StringTable getStringTable() { return stringTable_; } + public boolean hasStringTable() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public net.osmand.binary.OsmandOdb.StringTable getStringTable() { + return stringTable_; + } + public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { + return stringTable_; + } private void initFields() { idTable_ = net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); + dataObjects_ = java.util.Collections.emptyList(); + restrictions_ = java.util.Collections.emptyList(); stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - for (net.osmand.binary.OsmandOdb.RouteData element : getDataObjectsList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getDataObjectsCount(); i++) { + if (!getDataObjects(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - for (net.osmand.binary.OsmandOdb.RestrictionData element : getRestrictionsList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getRestrictionsCount(); i++) { + if (!getRestrictions(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasIdTable()) { - output.writeMessage(5, getIdTable()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(5, idTable_); } - for (net.osmand.binary.OsmandOdb.RouteData element : getDataObjectsList()) { - output.writeMessage(6, element); + for (int i = 0; i < dataObjects_.size(); i++) { + output.writeMessage(6, dataObjects_.get(i)); } - for (net.osmand.binary.OsmandOdb.RestrictionData element : getRestrictionsList()) { - output.writeMessage(7, element); + for (int i = 0; i < restrictions_.size(); i++) { + output.writeMessage(7, restrictions_.get(i)); } - if (hasStringTable()) { - output.writeMessage(8, getStringTable()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(8, stringTable_); } getUnknownFields().writeTo(output); } @@ -21143,27 +36374,34 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasIdTable()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getIdTable()); + .computeMessageSize(5, idTable_); } - for (net.osmand.binary.OsmandOdb.RouteData element : getDataObjectsList()) { + for (int i = 0; i < dataObjects_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, element); + .computeMessageSize(6, dataObjects_.get(i)); } - for (net.osmand.binary.OsmandOdb.RestrictionData element : getRestrictionsList()) { + for (int i = 0; i < restrictions_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, element); + .computeMessageSize(7, restrictions_.get(i)); } - if (hasStringTable()) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getStringTable()); + .computeMessageSize(8, stringTable_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -21238,34 +36476,77 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getIdTableFieldBuilder(); + getDataObjectsFieldBuilder(); + getRestrictionsFieldBuilder(); + getStringTableFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + if (idTableBuilder_ == null) { + idTable_ = net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); + } else { + idTableBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock(); + bitField0_ = (bitField0_ & ~0x00000001); + if (dataObjectsBuilder_ == null) { + dataObjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + dataObjectsBuilder_.clear(); + } + if (restrictionsBuilder_ == null) { + restrictions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + restrictionsBuilder_.clear(); + } + if (stringTableBuilder_ == null) { + stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + } else { + stringTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -21277,41 +36558,65 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.dataObjects_ != java.util.Collections.EMPTY_LIST) { - result.dataObjects_ = - java.util.Collections.unmodifiableList(result.dataObjects_); + if (idTableBuilder_ == null) { + result.idTable_ = idTable_; + } else { + result.idTable_ = idTableBuilder_.build(); } - if (result.restrictions_ != java.util.Collections.EMPTY_LIST) { - result.restrictions_ = - java.util.Collections.unmodifiableList(result.restrictions_); + if (dataObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + dataObjects_ = java.util.Collections.unmodifiableList(dataObjects_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dataObjects_ = dataObjects_; + } else { + result.dataObjects_ = dataObjectsBuilder_.build(); } - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock returnMe = result; - result = null; - return returnMe; + if (restrictionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + restrictions_ = java.util.Collections.unmodifiableList(restrictions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.restrictions_ = restrictions_; + } else { + result.restrictions_ = restrictionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000002; + } + if (stringTableBuilder_ == null) { + result.stringTable_ = stringTable_; + } else { + result.stringTable_ = stringTableBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -21328,17 +36633,57 @@ public final class OsmandOdb { if (other.hasIdTable()) { mergeIdTable(other.getIdTable()); } - if (!other.dataObjects_.isEmpty()) { - if (result.dataObjects_.isEmpty()) { - result.dataObjects_ = new java.util.ArrayList(); + if (dataObjectsBuilder_ == null) { + if (!other.dataObjects_.isEmpty()) { + if (dataObjects_.isEmpty()) { + dataObjects_ = other.dataObjects_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDataObjectsIsMutable(); + dataObjects_.addAll(other.dataObjects_); + } + onChanged(); + } + } else { + if (!other.dataObjects_.isEmpty()) { + if (dataObjectsBuilder_.isEmpty()) { + dataObjectsBuilder_.dispose(); + dataObjectsBuilder_ = null; + dataObjects_ = other.dataObjects_; + bitField0_ = (bitField0_ & ~0x00000002); + dataObjectsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getDataObjectsFieldBuilder() : null; + } else { + dataObjectsBuilder_.addAllMessages(other.dataObjects_); + } } - result.dataObjects_.addAll(other.dataObjects_); } - if (!other.restrictions_.isEmpty()) { - if (result.restrictions_.isEmpty()) { - result.restrictions_ = new java.util.ArrayList(); + if (restrictionsBuilder_ == null) { + if (!other.restrictions_.isEmpty()) { + if (restrictions_.isEmpty()) { + restrictions_ = other.restrictions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRestrictionsIsMutable(); + restrictions_.addAll(other.restrictions_); + } + onChanged(); + } + } else { + if (!other.restrictions_.isEmpty()) { + if (restrictionsBuilder_.isEmpty()) { + restrictionsBuilder_.dispose(); + restrictionsBuilder_ = null; + restrictions_ = other.restrictions_; + bitField0_ = (bitField0_ & ~0x00000004); + restrictionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRestrictionsFieldBuilder() : null; + } else { + restrictionsBuilder_.addAllMessages(other.restrictions_); + } } - result.restrictions_.addAll(other.restrictions_); } if (other.hasStringTable()) { mergeStringTable(other.getStringTable()); @@ -21347,6 +36692,22 @@ public final class OsmandOdb { return this; } + public final boolean isInitialized() { + for (int i = 0; i < getDataObjectsCount(); i++) { + if (!getDataObjects(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getRestrictionsCount(); i++) { + if (!getRestrictions(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -21359,11 +36720,13 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; @@ -21402,2179 +36765,749 @@ public final class OsmandOdb { } } + private int bitField0_; // optional .OsmAnd.OBF.IdTable idTable = 5; + private net.osmand.binary.OsmandOdb.IdTable idTable_ = net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.IdTable, net.osmand.binary.OsmandOdb.IdTable.Builder, net.osmand.binary.OsmandOdb.IdTableOrBuilder> idTableBuilder_; public boolean hasIdTable() { - return result.hasIdTable(); + return ((bitField0_ & 0x00000001) == 0x00000001); } public net.osmand.binary.OsmandOdb.IdTable getIdTable() { - return result.getIdTable(); + if (idTableBuilder_ == null) { + return idTable_; + } else { + return idTableBuilder_.getMessage(); + } } public Builder setIdTable(net.osmand.binary.OsmandOdb.IdTable value) { - if (value == null) { - throw new NullPointerException(); + if (idTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idTable_ = value; + onChanged(); + } else { + idTableBuilder_.setMessage(value); } - result.hasIdTable = true; - result.idTable_ = value; + bitField0_ |= 0x00000001; return this; } - public Builder setIdTable(net.osmand.binary.OsmandOdb.IdTable.Builder builderForValue) { - result.hasIdTable = true; - result.idTable_ = builderForValue.build(); + public Builder setIdTable( + net.osmand.binary.OsmandOdb.IdTable.Builder builderForValue) { + if (idTableBuilder_ == null) { + idTable_ = builderForValue.build(); + onChanged(); + } else { + idTableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; return this; } public Builder mergeIdTable(net.osmand.binary.OsmandOdb.IdTable value) { - if (result.hasIdTable() && - result.idTable_ != net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance()) { - result.idTable_ = - net.osmand.binary.OsmandOdb.IdTable.newBuilder(result.idTable_).mergeFrom(value).buildPartial(); + if (idTableBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + idTable_ != net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance()) { + idTable_ = + net.osmand.binary.OsmandOdb.IdTable.newBuilder(idTable_).mergeFrom(value).buildPartial(); + } else { + idTable_ = value; + } + onChanged(); } else { - result.idTable_ = value; + idTableBuilder_.mergeFrom(value); } - result.hasIdTable = true; + bitField0_ |= 0x00000001; return this; } public Builder clearIdTable() { - result.hasIdTable = false; - result.idTable_ = net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); + if (idTableBuilder_ == null) { + idTable_ = net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); + onChanged(); + } else { + idTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); return this; } + public net.osmand.binary.OsmandOdb.IdTable.Builder getIdTableBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getIdTableFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.IdTableOrBuilder getIdTableOrBuilder() { + if (idTableBuilder_ != null) { + return idTableBuilder_.getMessageOrBuilder(); + } else { + return idTable_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.IdTable, net.osmand.binary.OsmandOdb.IdTable.Builder, net.osmand.binary.OsmandOdb.IdTableOrBuilder> + getIdTableFieldBuilder() { + if (idTableBuilder_ == null) { + idTableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.IdTable, net.osmand.binary.OsmandOdb.IdTable.Builder, net.osmand.binary.OsmandOdb.IdTableOrBuilder>( + idTable_, + getParentForChildren(), + isClean()); + idTable_ = null; + } + return idTableBuilder_; + } // repeated .OsmAnd.OBF.RouteData dataObjects = 6; + private java.util.List dataObjects_ = + java.util.Collections.emptyList(); + private void ensureDataObjectsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + dataObjects_ = new java.util.ArrayList(dataObjects_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.RouteData, net.osmand.binary.OsmandOdb.RouteData.Builder, net.osmand.binary.OsmandOdb.RouteDataOrBuilder> dataObjectsBuilder_; + public java.util.List getDataObjectsList() { - return java.util.Collections.unmodifiableList(result.dataObjects_); + if (dataObjectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataObjects_); + } else { + return dataObjectsBuilder_.getMessageList(); + } } public int getDataObjectsCount() { - return result.getDataObjectsCount(); + if (dataObjectsBuilder_ == null) { + return dataObjects_.size(); + } else { + return dataObjectsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.RouteData getDataObjects(int index) { - return result.getDataObjects(index); - } - public Builder setDataObjects(int index, net.osmand.binary.OsmandOdb.RouteData value) { - if (value == null) { - throw new NullPointerException(); + if (dataObjectsBuilder_ == null) { + return dataObjects_.get(index); + } else { + return dataObjectsBuilder_.getMessage(index); + } + } + public Builder setDataObjects( + int index, net.osmand.binary.OsmandOdb.RouteData value) { + if (dataObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataObjectsIsMutable(); + dataObjects_.set(index, value); + onChanged(); + } else { + dataObjectsBuilder_.setMessage(index, value); } - result.dataObjects_.set(index, value); return this; } - public Builder setDataObjects(int index, net.osmand.binary.OsmandOdb.RouteData.Builder builderForValue) { - result.dataObjects_.set(index, builderForValue.build()); + public Builder setDataObjects( + int index, net.osmand.binary.OsmandOdb.RouteData.Builder builderForValue) { + if (dataObjectsBuilder_ == null) { + ensureDataObjectsIsMutable(); + dataObjects_.set(index, builderForValue.build()); + onChanged(); + } else { + dataObjectsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addDataObjects(net.osmand.binary.OsmandOdb.RouteData value) { - if (value == null) { - throw new NullPointerException(); + if (dataObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataObjectsIsMutable(); + dataObjects_.add(value); + onChanged(); + } else { + dataObjectsBuilder_.addMessage(value); } - if (result.dataObjects_.isEmpty()) { - result.dataObjects_ = new java.util.ArrayList(); - } - result.dataObjects_.add(value); return this; } - public Builder addDataObjects(net.osmand.binary.OsmandOdb.RouteData.Builder builderForValue) { - if (result.dataObjects_.isEmpty()) { - result.dataObjects_ = new java.util.ArrayList(); + public Builder addDataObjects( + int index, net.osmand.binary.OsmandOdb.RouteData value) { + if (dataObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataObjectsIsMutable(); + dataObjects_.add(index, value); + onChanged(); + } else { + dataObjectsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addDataObjects( + net.osmand.binary.OsmandOdb.RouteData.Builder builderForValue) { + if (dataObjectsBuilder_ == null) { + ensureDataObjectsIsMutable(); + dataObjects_.add(builderForValue.build()); + onChanged(); + } else { + dataObjectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addDataObjects( + int index, net.osmand.binary.OsmandOdb.RouteData.Builder builderForValue) { + if (dataObjectsBuilder_ == null) { + ensureDataObjectsIsMutable(); + dataObjects_.add(index, builderForValue.build()); + onChanged(); + } else { + dataObjectsBuilder_.addMessage(index, builderForValue.build()); } - result.dataObjects_.add(builderForValue.build()); return this; } public Builder addAllDataObjects( java.lang.Iterable values) { - if (result.dataObjects_.isEmpty()) { - result.dataObjects_ = new java.util.ArrayList(); + if (dataObjectsBuilder_ == null) { + ensureDataObjectsIsMutable(); + super.addAll(values, dataObjects_); + onChanged(); + } else { + dataObjectsBuilder_.addAllMessages(values); } - super.addAll(values, result.dataObjects_); return this; } public Builder clearDataObjects() { - result.dataObjects_ = java.util.Collections.emptyList(); + if (dataObjectsBuilder_ == null) { + dataObjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dataObjectsBuilder_.clear(); + } return this; } + public Builder removeDataObjects(int index) { + if (dataObjectsBuilder_ == null) { + ensureDataObjectsIsMutable(); + dataObjects_.remove(index); + onChanged(); + } else { + dataObjectsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.RouteData.Builder getDataObjectsBuilder( + int index) { + return getDataObjectsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.RouteDataOrBuilder getDataObjectsOrBuilder( + int index) { + if (dataObjectsBuilder_ == null) { + return dataObjects_.get(index); } else { + return dataObjectsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getDataObjectsOrBuilderList() { + if (dataObjectsBuilder_ != null) { + return dataObjectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataObjects_); + } + } + public net.osmand.binary.OsmandOdb.RouteData.Builder addDataObjectsBuilder() { + return getDataObjectsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.RouteData.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.RouteData.Builder addDataObjectsBuilder( + int index) { + return getDataObjectsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.RouteData.getDefaultInstance()); + } + public java.util.List + getDataObjectsBuilderList() { + return getDataObjectsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.RouteData, net.osmand.binary.OsmandOdb.RouteData.Builder, net.osmand.binary.OsmandOdb.RouteDataOrBuilder> + getDataObjectsFieldBuilder() { + if (dataObjectsBuilder_ == null) { + dataObjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.RouteData, net.osmand.binary.OsmandOdb.RouteData.Builder, net.osmand.binary.OsmandOdb.RouteDataOrBuilder>( + dataObjects_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + dataObjects_ = null; + } + return dataObjectsBuilder_; + } // repeated .OsmAnd.OBF.RestrictionData restrictions = 7; + private java.util.List restrictions_ = + java.util.Collections.emptyList(); + private void ensureRestrictionsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + restrictions_ = new java.util.ArrayList(restrictions_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.RestrictionData, net.osmand.binary.OsmandOdb.RestrictionData.Builder, net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder> restrictionsBuilder_; + public java.util.List getRestrictionsList() { - return java.util.Collections.unmodifiableList(result.restrictions_); + if (restrictionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(restrictions_); + } else { + return restrictionsBuilder_.getMessageList(); + } } public int getRestrictionsCount() { - return result.getRestrictionsCount(); + if (restrictionsBuilder_ == null) { + return restrictions_.size(); + } else { + return restrictionsBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.RestrictionData getRestrictions(int index) { - return result.getRestrictions(index); - } - public Builder setRestrictions(int index, net.osmand.binary.OsmandOdb.RestrictionData value) { - if (value == null) { - throw new NullPointerException(); + if (restrictionsBuilder_ == null) { + return restrictions_.get(index); + } else { + return restrictionsBuilder_.getMessage(index); + } + } + public Builder setRestrictions( + int index, net.osmand.binary.OsmandOdb.RestrictionData value) { + if (restrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictionsIsMutable(); + restrictions_.set(index, value); + onChanged(); + } else { + restrictionsBuilder_.setMessage(index, value); } - result.restrictions_.set(index, value); return this; } - public Builder setRestrictions(int index, net.osmand.binary.OsmandOdb.RestrictionData.Builder builderForValue) { - result.restrictions_.set(index, builderForValue.build()); + public Builder setRestrictions( + int index, net.osmand.binary.OsmandOdb.RestrictionData.Builder builderForValue) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.set(index, builderForValue.build()); + onChanged(); + } else { + restrictionsBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addRestrictions(net.osmand.binary.OsmandOdb.RestrictionData value) { - if (value == null) { - throw new NullPointerException(); + if (restrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictionsIsMutable(); + restrictions_.add(value); + onChanged(); + } else { + restrictionsBuilder_.addMessage(value); } - if (result.restrictions_.isEmpty()) { - result.restrictions_ = new java.util.ArrayList(); - } - result.restrictions_.add(value); return this; } - public Builder addRestrictions(net.osmand.binary.OsmandOdb.RestrictionData.Builder builderForValue) { - if (result.restrictions_.isEmpty()) { - result.restrictions_ = new java.util.ArrayList(); + public Builder addRestrictions( + int index, net.osmand.binary.OsmandOdb.RestrictionData value) { + if (restrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictionsIsMutable(); + restrictions_.add(index, value); + onChanged(); + } else { + restrictionsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addRestrictions( + net.osmand.binary.OsmandOdb.RestrictionData.Builder builderForValue) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.add(builderForValue.build()); + onChanged(); + } else { + restrictionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addRestrictions( + int index, net.osmand.binary.OsmandOdb.RestrictionData.Builder builderForValue) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.add(index, builderForValue.build()); + onChanged(); + } else { + restrictionsBuilder_.addMessage(index, builderForValue.build()); } - result.restrictions_.add(builderForValue.build()); return this; } public Builder addAllRestrictions( java.lang.Iterable values) { - if (result.restrictions_.isEmpty()) { - result.restrictions_ = new java.util.ArrayList(); + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + super.addAll(values, restrictions_); + onChanged(); + } else { + restrictionsBuilder_.addAllMessages(values); } - super.addAll(values, result.restrictions_); return this; } public Builder clearRestrictions() { - result.restrictions_ = java.util.Collections.emptyList(); + if (restrictionsBuilder_ == null) { + restrictions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + restrictionsBuilder_.clear(); + } return this; } + public Builder removeRestrictions(int index) { + if (restrictionsBuilder_ == null) { + ensureRestrictionsIsMutable(); + restrictions_.remove(index); + onChanged(); + } else { + restrictionsBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.RestrictionData.Builder getRestrictionsBuilder( + int index) { + return getRestrictionsFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder getRestrictionsOrBuilder( + int index) { + if (restrictionsBuilder_ == null) { + return restrictions_.get(index); } else { + return restrictionsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getRestrictionsOrBuilderList() { + if (restrictionsBuilder_ != null) { + return restrictionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(restrictions_); + } + } + public net.osmand.binary.OsmandOdb.RestrictionData.Builder addRestrictionsBuilder() { + return getRestrictionsFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.RestrictionData.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.RestrictionData.Builder addRestrictionsBuilder( + int index) { + return getRestrictionsFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.RestrictionData.getDefaultInstance()); + } + public java.util.List + getRestrictionsBuilderList() { + return getRestrictionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.RestrictionData, net.osmand.binary.OsmandOdb.RestrictionData.Builder, net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder> + getRestrictionsFieldBuilder() { + if (restrictionsBuilder_ == null) { + restrictionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.RestrictionData, net.osmand.binary.OsmandOdb.RestrictionData.Builder, net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder>( + restrictions_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + restrictions_ = null; + } + return restrictionsBuilder_; + } // optional .OsmAnd.OBF.StringTable stringTable = 8; + private net.osmand.binary.OsmandOdb.StringTable stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> stringTableBuilder_; public boolean hasStringTable() { - return result.hasStringTable(); + return ((bitField0_ & 0x00000008) == 0x00000008); } public net.osmand.binary.OsmandOdb.StringTable getStringTable() { - return result.getStringTable(); + if (stringTableBuilder_ == null) { + return stringTable_; + } else { + return stringTableBuilder_.getMessage(); + } } public Builder setStringTable(net.osmand.binary.OsmandOdb.StringTable value) { - if (value == null) { - throw new NullPointerException(); + if (stringTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stringTable_ = value; + onChanged(); + } else { + stringTableBuilder_.setMessage(value); } - result.hasStringTable = true; - result.stringTable_ = value; + bitField0_ |= 0x00000008; return this; } - public Builder setStringTable(net.osmand.binary.OsmandOdb.StringTable.Builder builderForValue) { - result.hasStringTable = true; - result.stringTable_ = builderForValue.build(); + public Builder setStringTable( + net.osmand.binary.OsmandOdb.StringTable.Builder builderForValue) { + if (stringTableBuilder_ == null) { + stringTable_ = builderForValue.build(); + onChanged(); + } else { + stringTableBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; return this; } public Builder mergeStringTable(net.osmand.binary.OsmandOdb.StringTable value) { - if (result.hasStringTable() && - result.stringTable_ != net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) { - result.stringTable_ = - net.osmand.binary.OsmandOdb.StringTable.newBuilder(result.stringTable_).mergeFrom(value).buildPartial(); + if (stringTableBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + stringTable_ != net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) { + stringTable_ = + net.osmand.binary.OsmandOdb.StringTable.newBuilder(stringTable_).mergeFrom(value).buildPartial(); + } else { + stringTable_ = value; + } + onChanged(); } else { - result.stringTable_ = value; + stringTableBuilder_.mergeFrom(value); } - result.hasStringTable = true; + bitField0_ |= 0x00000008; return this; } public Builder clearStringTable() { - result.hasStringTable = false; - result.stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + if (stringTableBuilder_ == null) { + stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); + onChanged(); + } else { + stringTableBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } + public net.osmand.binary.OsmandOdb.StringTable.Builder getStringTableBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStringTableFieldBuilder().getBuilder(); + } + public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { + if (stringTableBuilder_ != null) { + return stringTableBuilder_.getMessageOrBuilder(); + } else { + return stringTable_; + } + } + private com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> + getStringTableFieldBuilder() { + if (stringTableBuilder_ == null) { + stringTableBuilder_ = new com.google.protobuf.SingleFieldBuilder< + net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder>( + stringTable_, + getParentForChildren(), + isClean()); + stringTable_ = null; + } + return stringTableBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock) } static { defaultInstance = new RouteDataBlock(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock) } - public static final class RouteBorderBox extends - com.google.protobuf.GeneratedMessage { - // Use RouteBorderBox.newBuilder() to construct. - private RouteBorderBox() { - initFields(); - } - private RouteBorderBox(boolean noInit) {} - - private static final RouteBorderBox defaultInstance; - public static RouteBorderBox getDefaultInstance() { - return defaultInstance; - } - - public RouteBorderBox getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderBox_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderBox_fieldAccessorTable; - } - - // required .OsmAnd.OBF.OsmAndTileBox boundaries = 1; - public static final int BOUNDARIES_FIELD_NUMBER = 1; - private boolean hasBoundaries; - private net.osmand.binary.OsmandOdb.OsmAndTileBox boundaries_; - public boolean hasBoundaries() { return hasBoundaries; } - public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { return boundaries_; } - - // optional uint32 tileZoomToSplit = 2; - public static final int TILEZOOMTOSPLIT_FIELD_NUMBER = 2; - private boolean hasTileZoomToSplit; - private int tileZoomToSplit_ = 0; - public boolean hasTileZoomToSplit() { return hasTileZoomToSplit; } - public int getTileZoomToSplit() { return tileZoomToSplit_; } - - // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderLine borderLines = 6; - public static final int BORDERLINES_FIELD_NUMBER = 6; - private java.util.List borderLines_ = - java.util.Collections.emptyList(); - public java.util.List getBorderLinesList() { - return borderLines_; - } - public int getBorderLinesCount() { return borderLines_.size(); } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine getBorderLines(int index) { - return borderLines_.get(index); - } - - // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderPointsBlock blocks = 7; - public static final int BLOCKS_FIELD_NUMBER = 7; - private java.util.List blocks_ = - java.util.Collections.emptyList(); - public java.util.List getBlocksList() { - return blocks_; - } - public int getBlocksCount() { return blocks_.size(); } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock getBlocks(int index) { - return blocks_.get(index); - } - - private void initFields() { - boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); - } - public final boolean isInitialized() { - if (!hasBoundaries) return false; - if (!getBoundaries().isInitialized()) return false; - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine element : getBorderLinesList()) { - if (!element.isInitialized()) return false; - } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock element : getBlocksList()) { - if (!element.isInitialized()) return false; - } - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (hasBoundaries()) { - output.writeMessage(1, getBoundaries()); - } - if (hasTileZoomToSplit()) { - output.writeUInt32(2, getTileZoomToSplit()); - } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine element : getBorderLinesList()) { - output.writeMessage(6, element); - } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock element : getBlocksList()) { - output.writeMessage(7, element); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (hasBoundaries()) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBoundaries()); - } - if (hasTileZoomToSplit()) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, getTileZoomToSplit()); - } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine element : getBorderLinesList()) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, element); - } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock element : getBlocksList()) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, element); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox(); - return builder; - } - - protected net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox internalGetResult() { - return result; - } - - public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox(); - return this; - } - - public Builder clone() { - return create().mergeFrom(result); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.getDescriptor(); - } - - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox getDefaultInstanceForType() { - return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.getDefaultInstance(); - } - - public boolean isInitialized() { - return result.isInitialized(); - } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox build() { - if (result != null && !isInitialized()) { - throw newUninitializedMessageException(result); - } - return buildPartial(); - } - - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return buildPartial(); - } - - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); - } - if (result.borderLines_ != java.util.Collections.EMPTY_LIST) { - result.borderLines_ = - java.util.Collections.unmodifiableList(result.borderLines_); - } - if (result.blocks_ != java.util.Collections.EMPTY_LIST) { - result.blocks_ = - java.util.Collections.unmodifiableList(result.blocks_); - } - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox returnMe = result; - result = null; - return returnMe; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox) { - return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox other) { - if (other == net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.getDefaultInstance()) return this; - if (other.hasBoundaries()) { - mergeBoundaries(other.getBoundaries()); - } - if (other.hasTileZoomToSplit()) { - setTileZoomToSplit(other.getTileZoomToSplit()); - } - if (!other.borderLines_.isEmpty()) { - if (result.borderLines_.isEmpty()) { - result.borderLines_ = new java.util.ArrayList(); - } - result.borderLines_.addAll(other.borderLines_); - } - if (!other.blocks_.isEmpty()) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); - } - result.blocks_.addAll(other.blocks_); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - return this; - } - break; - } - case 10: { - net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder subBuilder = net.osmand.binary.OsmandOdb.OsmAndTileBox.newBuilder(); - if (hasBoundaries()) { - subBuilder.mergeFrom(getBoundaries()); - } - input.readMessage(subBuilder, extensionRegistry); - setBoundaries(subBuilder.buildPartial()); - break; - } - case 16: { - setTileZoomToSplit(input.readUInt32()); - break; - } - case 50: { - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine.Builder subBuilder = net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addBorderLines(subBuilder.buildPartial()); - break; - } - case 58: { - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock.Builder subBuilder = net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addBlocks(subBuilder.buildPartial()); - break; - } - } - } - } - - - // required .OsmAnd.OBF.OsmAndTileBox boundaries = 1; - public boolean hasBoundaries() { - return result.hasBoundaries(); - } - public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { - return result.getBoundaries(); - } - public Builder setBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox value) { - if (value == null) { - throw new NullPointerException(); - } - result.hasBoundaries = true; - result.boundaries_ = value; - return this; - } - public Builder setBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder builderForValue) { - result.hasBoundaries = true; - result.boundaries_ = builderForValue.build(); - return this; - } - public Builder mergeBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox value) { - if (result.hasBoundaries() && - result.boundaries_ != net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance()) { - result.boundaries_ = - net.osmand.binary.OsmandOdb.OsmAndTileBox.newBuilder(result.boundaries_).mergeFrom(value).buildPartial(); - } else { - result.boundaries_ = value; - } - result.hasBoundaries = true; - return this; - } - public Builder clearBoundaries() { - result.hasBoundaries = false; - result.boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); - return this; - } - - // optional uint32 tileZoomToSplit = 2; - public boolean hasTileZoomToSplit() { - return result.hasTileZoomToSplit(); - } - public int getTileZoomToSplit() { - return result.getTileZoomToSplit(); - } - public Builder setTileZoomToSplit(int value) { - result.hasTileZoomToSplit = true; - result.tileZoomToSplit_ = value; - return this; - } - public Builder clearTileZoomToSplit() { - result.hasTileZoomToSplit = false; - result.tileZoomToSplit_ = 0; - return this; - } - - // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderLine borderLines = 6; - public java.util.List getBorderLinesList() { - return java.util.Collections.unmodifiableList(result.borderLines_); - } - public int getBorderLinesCount() { - return result.getBorderLinesCount(); - } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine getBorderLines(int index) { - return result.getBorderLines(index); - } - public Builder setBorderLines(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine value) { - if (value == null) { - throw new NullPointerException(); - } - result.borderLines_.set(index, value); - return this; - } - public Builder setBorderLines(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine.Builder builderForValue) { - result.borderLines_.set(index, builderForValue.build()); - return this; - } - public Builder addBorderLines(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine value) { - if (value == null) { - throw new NullPointerException(); - } - if (result.borderLines_.isEmpty()) { - result.borderLines_ = new java.util.ArrayList(); - } - result.borderLines_.add(value); - return this; - } - public Builder addBorderLines(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine.Builder builderForValue) { - if (result.borderLines_.isEmpty()) { - result.borderLines_ = new java.util.ArrayList(); - } - result.borderLines_.add(builderForValue.build()); - return this; - } - public Builder addAllBorderLines( - java.lang.Iterable values) { - if (result.borderLines_.isEmpty()) { - result.borderLines_ = new java.util.ArrayList(); - } - super.addAll(values, result.borderLines_); - return this; - } - public Builder clearBorderLines() { - result.borderLines_ = java.util.Collections.emptyList(); - return this; - } - - // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderPointsBlock blocks = 7; - public java.util.List getBlocksList() { - return java.util.Collections.unmodifiableList(result.blocks_); - } - public int getBlocksCount() { - return result.getBlocksCount(); - } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock getBlocks(int index) { - return result.getBlocks(index); - } - public Builder setBlocks(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock value) { - if (value == null) { - throw new NullPointerException(); - } - result.blocks_.set(index, value); - return this; - } - public Builder setBlocks(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock.Builder builderForValue) { - result.blocks_.set(index, builderForValue.build()); - return this; - } - public Builder addBlocks(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock value) { - if (value == null) { - throw new NullPointerException(); - } - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); - } - result.blocks_.add(value); - return this; - } - public Builder addBlocks(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock.Builder builderForValue) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); - } - result.blocks_.add(builderForValue.build()); - return this; - } - public Builder addAllBlocks( - java.lang.Iterable values) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); - } - super.addAll(values, result.blocks_); - return this; - } - public Builder clearBlocks() { - result.blocks_ = java.util.Collections.emptyList(); - return this; - } - - // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderBox) - } - - static { - defaultInstance = new RouteBorderBox(true); - net.osmand.binary.OsmandOdb.internalForceInit(); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderBox) - } - - public static final class RouteBorderLine extends - com.google.protobuf.GeneratedMessage { - // Use RouteBorderLine.newBuilder() to construct. - private RouteBorderLine() { - initFields(); - } - private RouteBorderLine(boolean noInit) {} - - private static final RouteBorderLine defaultInstance; - public static RouteBorderLine getDefaultInstance() { - return defaultInstance; - } - - public RouteBorderLine getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderLine_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderLine_fieldAccessorTable; - } - - // required int32 x = 1; - public static final int X_FIELD_NUMBER = 1; - private boolean hasX; - private int x_ = 0; - public boolean hasX() { return hasX; } - public int getX() { return x_; } - - // required int32 y = 2; - public static final int Y_FIELD_NUMBER = 2; - private boolean hasY; - private int y_ = 0; - public boolean hasY() { return hasY; } - public int getY() { return y_; } - - // optional int32 tox = 3; - public static final int TOX_FIELD_NUMBER = 3; - private boolean hasTox; - private int tox_ = 0; - public boolean hasTox() { return hasTox; } - public int getTox() { return tox_; } - - // optional int32 toy = 4; - public static final int TOY_FIELD_NUMBER = 4; - private boolean hasToy; - private int toy_ = 0; - public boolean hasToy() { return hasToy; } - public int getToy() { return toy_; } - - // required fixed32 shiftToPointsBlock = 7; - public static final int SHIFTTOPOINTSBLOCK_FIELD_NUMBER = 7; - private boolean hasShiftToPointsBlock; - private int shiftToPointsBlock_ = 0; - public boolean hasShiftToPointsBlock() { return hasShiftToPointsBlock; } - public int getShiftToPointsBlock() { return shiftToPointsBlock_; } - - private void initFields() { - } - public final boolean isInitialized() { - if (!hasX) return false; - if (!hasY) return false; - if (!hasShiftToPointsBlock) return false; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (hasX()) { - output.writeInt32(1, getX()); - } - if (hasY()) { - output.writeInt32(2, getY()); - } - if (hasTox()) { - output.writeInt32(3, getTox()); - } - if (hasToy()) { - output.writeInt32(4, getToy()); - } - if (hasShiftToPointsBlock()) { - output.writeFixed32(7, getShiftToPointsBlock()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (hasX()) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, getX()); - } - if (hasY()) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, getY()); - } - if (hasTox()) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, getTox()); - } - if (hasToy()) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, getToy()); - } - if (hasShiftToPointsBlock()) { - size += com.google.protobuf.CodedOutputStream - .computeFixed32Size(7, getShiftToPointsBlock()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine(); - return builder; - } - - protected net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine internalGetResult() { - return result; - } - - public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine(); - return this; - } - - public Builder clone() { - return create().mergeFrom(result); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine.getDescriptor(); - } - - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine getDefaultInstanceForType() { - return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine.getDefaultInstance(); - } - - public boolean isInitialized() { - return result.isInitialized(); - } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine build() { - if (result != null && !isInitialized()) { - throw newUninitializedMessageException(result); - } - return buildPartial(); - } - - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return buildPartial(); - } - - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); - } - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine returnMe = result; - result = null; - return returnMe; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine) { - return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine other) { - if (other == net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine.getDefaultInstance()) return this; - if (other.hasX()) { - setX(other.getX()); - } - if (other.hasY()) { - setY(other.getY()); - } - if (other.hasTox()) { - setTox(other.getTox()); - } - if (other.hasToy()) { - setToy(other.getToy()); - } - if (other.hasShiftToPointsBlock()) { - setShiftToPointsBlock(other.getShiftToPointsBlock()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - return this; - } - break; - } - case 8: { - setX(input.readInt32()); - break; - } - case 16: { - setY(input.readInt32()); - break; - } - case 24: { - setTox(input.readInt32()); - break; - } - case 32: { - setToy(input.readInt32()); - break; - } - case 61: { - setShiftToPointsBlock(input.readFixed32()); - break; - } - } - } - } - - - // required int32 x = 1; - public boolean hasX() { - return result.hasX(); - } - public int getX() { - return result.getX(); - } - public Builder setX(int value) { - result.hasX = true; - result.x_ = value; - return this; - } - public Builder clearX() { - result.hasX = false; - result.x_ = 0; - return this; - } - - // required int32 y = 2; - public boolean hasY() { - return result.hasY(); - } - public int getY() { - return result.getY(); - } - public Builder setY(int value) { - result.hasY = true; - result.y_ = value; - return this; - } - public Builder clearY() { - result.hasY = false; - result.y_ = 0; - return this; - } - - // optional int32 tox = 3; - public boolean hasTox() { - return result.hasTox(); - } - public int getTox() { - return result.getTox(); - } - public Builder setTox(int value) { - result.hasTox = true; - result.tox_ = value; - return this; - } - public Builder clearTox() { - result.hasTox = false; - result.tox_ = 0; - return this; - } - - // optional int32 toy = 4; - public boolean hasToy() { - return result.hasToy(); - } - public int getToy() { - return result.getToy(); - } - public Builder setToy(int value) { - result.hasToy = true; - result.toy_ = value; - return this; - } - public Builder clearToy() { - result.hasToy = false; - result.toy_ = 0; - return this; - } - - // required fixed32 shiftToPointsBlock = 7; - public boolean hasShiftToPointsBlock() { - return result.hasShiftToPointsBlock(); - } - public int getShiftToPointsBlock() { - return result.getShiftToPointsBlock(); - } - public Builder setShiftToPointsBlock(int value) { - result.hasShiftToPointsBlock = true; - result.shiftToPointsBlock_ = value; - return this; - } - public Builder clearShiftToPointsBlock() { - result.hasShiftToPointsBlock = false; - result.shiftToPointsBlock_ = 0; - return this; - } - - // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderLine) - } - - static { - defaultInstance = new RouteBorderLine(true); - net.osmand.binary.OsmandOdb.internalForceInit(); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderLine) - } - - public static final class RouteBorderPointsBlock extends - com.google.protobuf.GeneratedMessage { - // Use RouteBorderPointsBlock.newBuilder() to construct. - private RouteBorderPointsBlock() { - initFields(); - } - private RouteBorderPointsBlock(boolean noInit) {} - - private static final RouteBorderPointsBlock defaultInstance; - public static RouteBorderPointsBlock getDefaultInstance() { - return defaultInstance; - } - - public RouteBorderPointsBlock getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPointsBlock_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPointsBlock_fieldAccessorTable; - } - - // required int32 x = 1; - public static final int X_FIELD_NUMBER = 1; - private boolean hasX; - private int x_ = 0; - public boolean hasX() { return hasX; } - public int getX() { return x_; } - - // required int32 y = 2; - public static final int Y_FIELD_NUMBER = 2; - private boolean hasY; - private int y_ = 0; - public boolean hasY() { return hasY; } - public int getY() { return y_; } - - // required int64 baseId = 3; - public static final int BASEID_FIELD_NUMBER = 3; - private boolean hasBaseId; - private long baseId_ = 0L; - public boolean hasBaseId() { return hasBaseId; } - public long getBaseId() { return baseId_; } - - // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderPoint points = 5; - public static final int POINTS_FIELD_NUMBER = 5; - private java.util.List points_ = - java.util.Collections.emptyList(); - public java.util.List getPointsList() { - return points_; - } - public int getPointsCount() { return points_.size(); } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint getPoints(int index) { - return points_.get(index); - } - - private void initFields() { - } - public final boolean isInitialized() { - if (!hasX) return false; - if (!hasY) return false; - if (!hasBaseId) return false; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (hasX()) { - output.writeInt32(1, getX()); - } - if (hasY()) { - output.writeInt32(2, getY()); - } - if (hasBaseId()) { - output.writeInt64(3, getBaseId()); - } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint element : getPointsList()) { - output.writeMessage(5, element); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (hasX()) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, getX()); - } - if (hasY()) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, getY()); - } - if (hasBaseId()) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, getBaseId()); - } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint element : getPointsList()) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, element); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock(); - return builder; - } - - protected net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock internalGetResult() { - return result; - } - - public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock(); - return this; - } - - public Builder clone() { - return create().mergeFrom(result); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock.getDescriptor(); - } - - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock getDefaultInstanceForType() { - return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock.getDefaultInstance(); - } - - public boolean isInitialized() { - return result.isInitialized(); - } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock build() { - if (result != null && !isInitialized()) { - throw newUninitializedMessageException(result); - } - return buildPartial(); - } - - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return buildPartial(); - } - - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); - } - if (result.points_ != java.util.Collections.EMPTY_LIST) { - result.points_ = - java.util.Collections.unmodifiableList(result.points_); - } - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock returnMe = result; - result = null; - return returnMe; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock) { - return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock other) { - if (other == net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock.getDefaultInstance()) return this; - if (other.hasX()) { - setX(other.getX()); - } - if (other.hasY()) { - setY(other.getY()); - } - if (other.hasBaseId()) { - setBaseId(other.getBaseId()); - } - if (!other.points_.isEmpty()) { - if (result.points_.isEmpty()) { - result.points_ = new java.util.ArrayList(); - } - result.points_.addAll(other.points_); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - return this; - } - break; - } - case 8: { - setX(input.readInt32()); - break; - } - case 16: { - setY(input.readInt32()); - break; - } - case 24: { - setBaseId(input.readInt64()); - break; - } - case 42: { - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint.Builder subBuilder = net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addPoints(subBuilder.buildPartial()); - break; - } - } - } - } - - - // required int32 x = 1; - public boolean hasX() { - return result.hasX(); - } - public int getX() { - return result.getX(); - } - public Builder setX(int value) { - result.hasX = true; - result.x_ = value; - return this; - } - public Builder clearX() { - result.hasX = false; - result.x_ = 0; - return this; - } - - // required int32 y = 2; - public boolean hasY() { - return result.hasY(); - } - public int getY() { - return result.getY(); - } - public Builder setY(int value) { - result.hasY = true; - result.y_ = value; - return this; - } - public Builder clearY() { - result.hasY = false; - result.y_ = 0; - return this; - } - - // required int64 baseId = 3; - public boolean hasBaseId() { - return result.hasBaseId(); - } - public long getBaseId() { - return result.getBaseId(); - } - public Builder setBaseId(long value) { - result.hasBaseId = true; - result.baseId_ = value; - return this; - } - public Builder clearBaseId() { - result.hasBaseId = false; - result.baseId_ = 0L; - return this; - } - - // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderPoint points = 5; - public java.util.List getPointsList() { - return java.util.Collections.unmodifiableList(result.points_); - } - public int getPointsCount() { - return result.getPointsCount(); - } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint getPoints(int index) { - return result.getPoints(index); - } - public Builder setPoints(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint value) { - if (value == null) { - throw new NullPointerException(); - } - result.points_.set(index, value); - return this; - } - public Builder setPoints(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint.Builder builderForValue) { - result.points_.set(index, builderForValue.build()); - return this; - } - public Builder addPoints(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint value) { - if (value == null) { - throw new NullPointerException(); - } - if (result.points_.isEmpty()) { - result.points_ = new java.util.ArrayList(); - } - result.points_.add(value); - return this; - } - public Builder addPoints(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint.Builder builderForValue) { - if (result.points_.isEmpty()) { - result.points_ = new java.util.ArrayList(); - } - result.points_.add(builderForValue.build()); - return this; - } - public Builder addAllPoints( - java.lang.Iterable values) { - if (result.points_.isEmpty()) { - result.points_ = new java.util.ArrayList(); - } - super.addAll(values, result.points_); - return this; - } - public Builder clearPoints() { - result.points_ = java.util.Collections.emptyList(); - return this; - } - - // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderPointsBlock) - } - - static { - defaultInstance = new RouteBorderPointsBlock(true); - net.osmand.binary.OsmandOdb.internalForceInit(); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderPointsBlock) - } - - public static final class RouteBorderPoint extends - com.google.protobuf.GeneratedMessage { - // Use RouteBorderPoint.newBuilder() to construct. - private RouteBorderPoint() { - initFields(); - } - private RouteBorderPoint(boolean noInit) {} - - private static final RouteBorderPoint defaultInstance; - public static RouteBorderPoint getDefaultInstance() { - return defaultInstance; - } - - public RouteBorderPoint getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPoint_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPoint_fieldAccessorTable; - } - - // optional int32 dx = 1; - public static final int DX_FIELD_NUMBER = 1; - private boolean hasDx; - private int dx_ = 0; - public boolean hasDx() { return hasDx; } - public int getDx() { return dx_; } - - // optional int32 dy = 2; - public static final int DY_FIELD_NUMBER = 2; - private boolean hasDy; - private int dy_ = 0; - public boolean hasDy() { return hasDy; } - public int getDy() { return dy_; } - - // optional int32 direction = 3; - public static final int DIRECTION_FIELD_NUMBER = 3; - private boolean hasDirection; - private int direction_ = 0; - public boolean hasDirection() { return hasDirection; } - public int getDirection() { return direction_; } - - // optional bytes types = 4; - public static final int TYPES_FIELD_NUMBER = 4; - private boolean hasTypes; - private com.google.protobuf.ByteString types_ = com.google.protobuf.ByteString.EMPTY; - public boolean hasTypes() { return hasTypes; } - public com.google.protobuf.ByteString getTypes() { return types_; } - - // optional sint64 roadId = 7; - public static final int ROADID_FIELD_NUMBER = 7; - private boolean hasRoadId; - private long roadId_ = 0L; - public boolean hasRoadId() { return hasRoadId; } - public long getRoadId() { return roadId_; } - - private void initFields() { - } - public final boolean isInitialized() { - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (hasDx()) { - output.writeInt32(1, getDx()); - } - if (hasDy()) { - output.writeInt32(2, getDy()); - } - if (hasDirection()) { - output.writeInt32(3, getDirection()); - } - if (hasTypes()) { - output.writeBytes(4, getTypes()); - } - if (hasRoadId()) { - output.writeSInt64(7, getRoadId()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (hasDx()) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, getDx()); - } - if (hasDy()) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, getDy()); - } - if (hasDirection()) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, getDirection()); - } - if (hasTypes()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getTypes()); - } - if (hasRoadId()) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(7, getRoadId()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint(); - return builder; - } - - protected net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint internalGetResult() { - return result; - } - - public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); - } - result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint(); - return this; - } - - public Builder clone() { - return create().mergeFrom(result); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint.getDescriptor(); - } - - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint getDefaultInstanceForType() { - return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint.getDefaultInstance(); - } - - public boolean isInitialized() { - return result.isInitialized(); - } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint build() { - if (result != null && !isInitialized()) { - throw newUninitializedMessageException(result); - } - return buildPartial(); - } - - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return buildPartial(); - } - - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); - } - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint returnMe = result; - result = null; - return returnMe; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint) { - return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint other) { - if (other == net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint.getDefaultInstance()) return this; - if (other.hasDx()) { - setDx(other.getDx()); - } - if (other.hasDy()) { - setDy(other.getDy()); - } - if (other.hasDirection()) { - setDirection(other.getDirection()); - } - if (other.hasTypes()) { - setTypes(other.getTypes()); - } - if (other.hasRoadId()) { - setRoadId(other.getRoadId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - return this; - } - break; - } - case 8: { - setDx(input.readInt32()); - break; - } - case 16: { - setDy(input.readInt32()); - break; - } - case 24: { - setDirection(input.readInt32()); - break; - } - case 34: { - setTypes(input.readBytes()); - break; - } - case 56: { - setRoadId(input.readSInt64()); - break; - } - } - } - } - - - // optional int32 dx = 1; - public boolean hasDx() { - return result.hasDx(); - } - public int getDx() { - return result.getDx(); - } - public Builder setDx(int value) { - result.hasDx = true; - result.dx_ = value; - return this; - } - public Builder clearDx() { - result.hasDx = false; - result.dx_ = 0; - return this; - } - - // optional int32 dy = 2; - public boolean hasDy() { - return result.hasDy(); - } - public int getDy() { - return result.getDy(); - } - public Builder setDy(int value) { - result.hasDy = true; - result.dy_ = value; - return this; - } - public Builder clearDy() { - result.hasDy = false; - result.dy_ = 0; - return this; - } - - // optional int32 direction = 3; - public boolean hasDirection() { - return result.hasDirection(); - } - public int getDirection() { - return result.getDirection(); - } - public Builder setDirection(int value) { - result.hasDirection = true; - result.direction_ = value; - return this; - } - public Builder clearDirection() { - result.hasDirection = false; - result.direction_ = 0; - return this; - } - - // optional bytes types = 4; - public boolean hasTypes() { - return result.hasTypes(); - } - public com.google.protobuf.ByteString getTypes() { - return result.getTypes(); - } - public Builder setTypes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - result.hasTypes = true; - result.types_ = value; - return this; - } - public Builder clearTypes() { - result.hasTypes = false; - result.types_ = getDefaultInstance().getTypes(); - return this; - } - - // optional sint64 roadId = 7; - public boolean hasRoadId() { - return result.hasRoadId(); - } - public long getRoadId() { - return result.getRoadId(); - } - public Builder setRoadId(long value) { - result.hasRoadId = true; - result.roadId_ = value; - return this; - } - public Builder clearRoadId() { - result.hasRoadId = false; - result.roadId_ = 0L; - return this; - } - - // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderPoint) - } - - static { - defaultInstance = new RouteBorderPoint(true); - net.osmand.binary.OsmandOdb.internalForceInit(); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderPoint) - } - + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; - private boolean hasName; - private java.lang.String name_ = ""; - public boolean hasName() { return hasName; } - public java.lang.String getName() { return name_; } + private java.lang.Object name_; + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getName() { + java.lang.Object ref = name_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + name_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; public static final int RULES_FIELD_NUMBER = 2; - private java.util.List rules_ = - java.util.Collections.emptyList(); + private java.util.List rules_; public java.util.List getRulesList() { return rules_; } - public int getRulesCount() { return rules_.size(); } + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + public int getRulesCount() { + return rules_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule getRules(int index) { return rules_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder getRulesOrBuilder( + int index) { + return rules_.get(index); + } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; public static final int ROOTBOXES_FIELD_NUMBER = 3; - private java.util.List rootBoxes_ = - java.util.Collections.emptyList(); + private java.util.List rootBoxes_; public java.util.List getRootBoxesList() { return rootBoxes_; } - public int getRootBoxesCount() { return rootBoxes_.size(); } + public java.util.List + getRootBoxesOrBuilderList() { + return rootBoxes_; + } + public int getRootBoxesCount() { + return rootBoxes_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getRootBoxes(int index) { return rootBoxes_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getRootBoxesOrBuilder( + int index) { + return rootBoxes_.get(index); + } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; public static final int BASEMAPBOXES_FIELD_NUMBER = 4; - private java.util.List basemapBoxes_ = - java.util.Collections.emptyList(); + private java.util.List basemapBoxes_; public java.util.List getBasemapBoxesList() { return basemapBoxes_; } - public int getBasemapBoxesCount() { return basemapBoxes_.size(); } + public java.util.List + getBasemapBoxesOrBuilderList() { + return basemapBoxes_; + } + public int getBasemapBoxesCount() { + return basemapBoxes_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBasemapBoxes(int index) { return basemapBoxes_.get(index); } - - // optional .OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderBox borderBox = 7; - public static final int BORDERBOX_FIELD_NUMBER = 7; - private boolean hasBorderBox; - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox borderBox_; - public boolean hasBorderBox() { return hasBorderBox; } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox getBorderBox() { return borderBox_; } - - // optional .OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderBox baseBorderBox = 8; - public static final int BASEBORDERBOX_FIELD_NUMBER = 8; - private boolean hasBaseBorderBox; - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox baseBorderBox_; - public boolean hasBaseBorderBox() { return hasBaseBorderBox; } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox getBaseBorderBox() { return baseBorderBox_; } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBasemapBoxesOrBuilder( + int index) { + return basemapBoxes_.get(index); + } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; public static final int BLOCKS_FIELD_NUMBER = 5; - private java.util.List blocks_ = - java.util.Collections.emptyList(); + private java.util.List blocks_; public java.util.List getBlocksList() { return blocks_; } - public int getBlocksCount() { return blocks_.size(); } + public java.util.List + getBlocksOrBuilderList() { + return blocks_; + } + public int getBlocksCount() { + return blocks_.size(); + } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock getBlocks(int index) { return blocks_.get(index); } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder getBlocksOrBuilder( + int index) { + return blocks_.get(index); + } private void initFields() { - borderBox_ = net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.getDefaultInstance(); - baseBorderBox_ = net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.getDefaultInstance(); + name_ = ""; + rules_ = java.util.Collections.emptyList(); + rootBoxes_ = java.util.Collections.emptyList(); + basemapBoxes_ = java.util.Collections.emptyList(); + blocks_ = java.util.Collections.emptyList(); } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - if (!hasName) return false; - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule element : getRulesList()) { - if (!element.isInitialized()) return false; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox element : getRootBoxesList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getRulesCount(); i++) { + if (!getRules(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox element : getBasemapBoxesList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getRootBoxesCount(); i++) { + if (!getRootBoxes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - if (hasBorderBox()) { - if (!getBorderBox().isInitialized()) return false; + for (int i = 0; i < getBasemapBoxesCount(); i++) { + if (!getBasemapBoxes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - if (hasBaseBorderBox()) { - if (!getBaseBorderBox().isInitialized()) return false; - } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock element : getBlocksList()) { - if (!element.isInitialized()) return false; + for (int i = 0; i < getBlocksCount(); i++) { + if (!getBlocks(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } + memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (hasName()) { - output.writeString(1, getName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule element : getRulesList()) { - output.writeMessage(2, element); + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(2, rules_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox element : getRootBoxesList()) { - output.writeMessage(3, element); + for (int i = 0; i < rootBoxes_.size(); i++) { + output.writeMessage(3, rootBoxes_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox element : getBasemapBoxesList()) { - output.writeMessage(4, element); + for (int i = 0; i < basemapBoxes_.size(); i++) { + output.writeMessage(4, basemapBoxes_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock element : getBlocksList()) { - output.writeMessage(5, element); - } - if (hasBorderBox()) { - output.writeMessage(7, getBorderBox()); - } - if (hasBaseBorderBox()) { - output.writeMessage(8, getBaseBorderBox()); + for (int i = 0; i < blocks_.size(); i++) { + output.writeMessage(5, blocks_.get(i)); } getUnknownFields().writeTo(output); } @@ -23585,39 +37518,38 @@ public final class OsmandOdb { if (size != -1) return size; size = 0; - if (hasName()) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getName()); + .computeBytesSize(1, getNameBytes()); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule element : getRulesList()) { + for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, element); + .computeMessageSize(2, rules_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox element : getRootBoxesList()) { + for (int i = 0; i < rootBoxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, element); + .computeMessageSize(3, rootBoxes_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox element : getBasemapBoxesList()) { + for (int i = 0; i < basemapBoxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, element); + .computeMessageSize(4, basemapBoxes_.get(i)); } - for (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock element : getBlocksList()) { + for (int i = 0; i < blocks_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, element); - } - if (hasBorderBox()) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getBorderBox()); - } - if (hasBaseBorderBox()) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getBaseBorderBox()); + .computeMessageSize(5, blocks_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -23692,34 +37624,79 @@ public final class OsmandOdb { } public Builder toBuilder() { return newBuilder(this); } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder { - private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex result; - - // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.newBuilder() - private Builder() {} - - private static Builder create() { - Builder builder = new Builder(); - builder.result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex(); - return builder; + com.google.protobuf.GeneratedMessage.Builder + implements net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor; } - protected net.osmand.binary.OsmandOdb.OsmAndRoutingIndex internalGetResult() { - return result; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_fieldAccessorTable; + } + + // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getRulesFieldBuilder(); + getRootBoxesFieldBuilder(); + getBasemapBoxesFieldBuilder(); + getBlocksFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); } public Builder clear() { - if (result == null) { - throw new IllegalStateException( - "Cannot call clear() after build()."); + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + rulesBuilder_.clear(); + } + if (rootBoxesBuilder_ == null) { + rootBoxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + rootBoxesBuilder_.clear(); + } + if (basemapBoxesBuilder_ == null) { + basemapBoxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + basemapBoxesBuilder_.clear(); + } + if (blocksBuilder_ == null) { + blocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + blocksBuilder_.clear(); } - result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex(); return this; } public Builder clone() { - return create().mergeFrom(result); + return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor @@ -23731,49 +37708,71 @@ public final class OsmandOdb { return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.getDefaultInstance(); } - public boolean isInitialized() { - return result.isInitialized(); - } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex build() { - if (result != null && !isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException(result); } - return buildPartial(); + return result; } private net.osmand.binary.OsmandOdb.OsmAndRoutingIndex buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex result = buildPartial(); + if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } - return buildPartial(); + return result; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex buildPartial() { - if (result == null) { - throw new IllegalStateException( - "build() has already been called on this Builder."); + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - if (result.rules_ != java.util.Collections.EMPTY_LIST) { - result.rules_ = - java.util.Collections.unmodifiableList(result.rules_); + result.name_ = name_; + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); } - if (result.rootBoxes_ != java.util.Collections.EMPTY_LIST) { - result.rootBoxes_ = - java.util.Collections.unmodifiableList(result.rootBoxes_); + if (rootBoxesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + rootBoxes_ = java.util.Collections.unmodifiableList(rootBoxes_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rootBoxes_ = rootBoxes_; + } else { + result.rootBoxes_ = rootBoxesBuilder_.build(); } - if (result.basemapBoxes_ != java.util.Collections.EMPTY_LIST) { - result.basemapBoxes_ = - java.util.Collections.unmodifiableList(result.basemapBoxes_); + if (basemapBoxesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + basemapBoxes_ = java.util.Collections.unmodifiableList(basemapBoxes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.basemapBoxes_ = basemapBoxes_; + } else { + result.basemapBoxes_ = basemapBoxesBuilder_.build(); } - if (result.blocks_ != java.util.Collections.EMPTY_LIST) { - result.blocks_ = - java.util.Collections.unmodifiableList(result.blocks_); + if (blocksBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + blocks_ = java.util.Collections.unmodifiableList(blocks_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.blocks_ = blocks_; + } else { + result.blocks_ = blocksBuilder_.build(); } - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex returnMe = result; - result = null; - return returnMe; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } public Builder mergeFrom(com.google.protobuf.Message other) { @@ -23790,40 +37789,146 @@ public final class OsmandOdb { if (other.hasName()) { setName(other.getName()); } - if (!other.rules_.isEmpty()) { - if (result.rules_.isEmpty()) { - result.rules_ = new java.util.ArrayList(); + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); } - result.rules_.addAll(other.rules_); - } - if (!other.rootBoxes_.isEmpty()) { - if (result.rootBoxes_.isEmpty()) { - result.rootBoxes_ = new java.util.ArrayList(); + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } } - result.rootBoxes_.addAll(other.rootBoxes_); } - if (!other.basemapBoxes_.isEmpty()) { - if (result.basemapBoxes_.isEmpty()) { - result.basemapBoxes_ = new java.util.ArrayList(); + if (rootBoxesBuilder_ == null) { + if (!other.rootBoxes_.isEmpty()) { + if (rootBoxes_.isEmpty()) { + rootBoxes_ = other.rootBoxes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRootBoxesIsMutable(); + rootBoxes_.addAll(other.rootBoxes_); + } + onChanged(); } - result.basemapBoxes_.addAll(other.basemapBoxes_); - } - if (other.hasBorderBox()) { - mergeBorderBox(other.getBorderBox()); - } - if (other.hasBaseBorderBox()) { - mergeBaseBorderBox(other.getBaseBorderBox()); - } - if (!other.blocks_.isEmpty()) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); + } else { + if (!other.rootBoxes_.isEmpty()) { + if (rootBoxesBuilder_.isEmpty()) { + rootBoxesBuilder_.dispose(); + rootBoxesBuilder_ = null; + rootBoxes_ = other.rootBoxes_; + bitField0_ = (bitField0_ & ~0x00000004); + rootBoxesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRootBoxesFieldBuilder() : null; + } else { + rootBoxesBuilder_.addAllMessages(other.rootBoxes_); + } + } + } + if (basemapBoxesBuilder_ == null) { + if (!other.basemapBoxes_.isEmpty()) { + if (basemapBoxes_.isEmpty()) { + basemapBoxes_ = other.basemapBoxes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureBasemapBoxesIsMutable(); + basemapBoxes_.addAll(other.basemapBoxes_); + } + onChanged(); + } + } else { + if (!other.basemapBoxes_.isEmpty()) { + if (basemapBoxesBuilder_.isEmpty()) { + basemapBoxesBuilder_.dispose(); + basemapBoxesBuilder_ = null; + basemapBoxes_ = other.basemapBoxes_; + bitField0_ = (bitField0_ & ~0x00000008); + basemapBoxesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBasemapBoxesFieldBuilder() : null; + } else { + basemapBoxesBuilder_.addAllMessages(other.basemapBoxes_); + } + } + } + if (blocksBuilder_ == null) { + if (!other.blocks_.isEmpty()) { + if (blocks_.isEmpty()) { + blocks_ = other.blocks_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureBlocksIsMutable(); + blocks_.addAll(other.blocks_); + } + onChanged(); + } + } else { + if (!other.blocks_.isEmpty()) { + if (blocksBuilder_.isEmpty()) { + blocksBuilder_.dispose(); + blocksBuilder_ = null; + blocks_ = other.blocks_; + bitField0_ = (bitField0_ & ~0x00000010); + blocksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBlocksFieldBuilder() : null; + } else { + blocksBuilder_.addAllMessages(other.blocks_); + } } - result.blocks_.addAll(other.blocks_); } this.mergeUnknownFields(other.getUnknownFields()); return this; } + public final boolean isInitialized() { + if (!hasName()) { + + return false; + } + for (int i = 0; i < getRulesCount(); i++) { + if (!getRules(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getRootBoxesCount(); i++) { + if (!getRootBoxes(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getBasemapBoxesCount(); i++) { + if (!getBasemapBoxes(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getBlocksCount(); i++) { + if (!getBlocks(i).isInitialized()) { + + return false; + } + } + return true; + } + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -23836,17 +37941,20 @@ public final class OsmandOdb { switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); + onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); + onChanged(); return this; } break; } case 10: { - setName(input.readString()); + bitField0_ |= 0x00000001; + name_ = input.readBytes(); break; } case 18: { @@ -23873,334 +37981,797 @@ public final class OsmandOdb { addBlocks(subBuilder.buildPartial()); break; } - case 58: { - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.Builder subBuilder = net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.newBuilder(); - if (hasBorderBox()) { - subBuilder.mergeFrom(getBorderBox()); - } - input.readMessage(subBuilder, extensionRegistry); - setBorderBox(subBuilder.buildPartial()); - break; - } - case 66: { - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.Builder subBuilder = net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.newBuilder(); - if (hasBaseBorderBox()) { - subBuilder.mergeFrom(getBaseBorderBox()); - } - input.readMessage(subBuilder, extensionRegistry); - setBaseBorderBox(subBuilder.buildPartial()); - break; - } } } } + private int bitField0_; // required string name = 1; + private java.lang.Object name_ = ""; public boolean hasName() { - return result.hasName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - public java.lang.String getName() { - return result.getName(); + public String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; + } else { + return (String) ref; + } } - public Builder setName(java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } - result.hasName = true; - result.name_ = value; + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); return this; } public Builder clearName() { - result.hasName = false; - result.name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); return this; } + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; + private java.util.List rules_ = + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder> rulesBuilder_; + public java.util.List getRulesList() { - return java.util.Collections.unmodifiableList(result.rules_); + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } } public int getRulesCount() { - return result.getRulesCount(); + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule getRules(int index) { - return result.getRules(index); - } - public Builder setRules(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule value) { - if (value == null) { - throw new NullPointerException(); + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + public Builder setRules( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); } - result.rules_.set(index, value); return this; } - public Builder setRules(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder builderForValue) { - result.rules_.set(index, builderForValue.build()); + public Builder setRules( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addRules(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule value) { - if (value == null) { - throw new NullPointerException(); + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); } - if (result.rules_.isEmpty()) { - result.rules_ = new java.util.ArrayList(); - } - result.rules_.add(value); return this; } - public Builder addRules(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder builderForValue) { - if (result.rules_.isEmpty()) { - result.rules_ = new java.util.ArrayList(); + public Builder addRules( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addRules( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addRules( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); } - result.rules_.add(builderForValue.build()); return this; } public Builder addAllRules( java.lang.Iterable values) { - if (result.rules_.isEmpty()) { - result.rules_ = new java.util.ArrayList(); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + super.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); } - super.addAll(values, result.rules_); return this; } public Builder clearRules() { - result.rules_ = java.util.Collections.emptyList(); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rulesBuilder_.clear(); + } return this; } + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder getRulesBuilder( + int index) { + return getRulesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder getRulesOrBuilder( + int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder addRulesBuilder() { + return getRulesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.getDefaultInstance()); + } + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder>( + rules_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + rules_ = null; + } + return rulesBuilder_; + } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; + private java.util.List rootBoxes_ = + java.util.Collections.emptyList(); + private void ensureRootBoxesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + rootBoxes_ = new java.util.ArrayList(rootBoxes_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> rootBoxesBuilder_; + public java.util.List getRootBoxesList() { - return java.util.Collections.unmodifiableList(result.rootBoxes_); + if (rootBoxesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rootBoxes_); + } else { + return rootBoxesBuilder_.getMessageList(); + } } public int getRootBoxesCount() { - return result.getRootBoxesCount(); + if (rootBoxesBuilder_ == null) { + return rootBoxes_.size(); + } else { + return rootBoxesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getRootBoxes(int index) { - return result.getRootBoxes(index); - } - public Builder setRootBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { - if (value == null) { - throw new NullPointerException(); + if (rootBoxesBuilder_ == null) { + return rootBoxes_.get(index); + } else { + return rootBoxesBuilder_.getMessage(index); + } + } + public Builder setRootBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { + if (rootBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootBoxesIsMutable(); + rootBoxes_.set(index, value); + onChanged(); + } else { + rootBoxesBuilder_.setMessage(index, value); } - result.rootBoxes_.set(index, value); return this; } - public Builder setRootBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { - result.rootBoxes_.set(index, builderForValue.build()); + public Builder setRootBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { + if (rootBoxesBuilder_ == null) { + ensureRootBoxesIsMutable(); + rootBoxes_.set(index, builderForValue.build()); + onChanged(); + } else { + rootBoxesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addRootBoxes(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { - if (value == null) { - throw new NullPointerException(); + if (rootBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootBoxesIsMutable(); + rootBoxes_.add(value); + onChanged(); + } else { + rootBoxesBuilder_.addMessage(value); } - if (result.rootBoxes_.isEmpty()) { - result.rootBoxes_ = new java.util.ArrayList(); - } - result.rootBoxes_.add(value); return this; } - public Builder addRootBoxes(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { - if (result.rootBoxes_.isEmpty()) { - result.rootBoxes_ = new java.util.ArrayList(); + public Builder addRootBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { + if (rootBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootBoxesIsMutable(); + rootBoxes_.add(index, value); + onChanged(); + } else { + rootBoxesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addRootBoxes( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { + if (rootBoxesBuilder_ == null) { + ensureRootBoxesIsMutable(); + rootBoxes_.add(builderForValue.build()); + onChanged(); + } else { + rootBoxesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addRootBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { + if (rootBoxesBuilder_ == null) { + ensureRootBoxesIsMutable(); + rootBoxes_.add(index, builderForValue.build()); + onChanged(); + } else { + rootBoxesBuilder_.addMessage(index, builderForValue.build()); } - result.rootBoxes_.add(builderForValue.build()); return this; } public Builder addAllRootBoxes( java.lang.Iterable values) { - if (result.rootBoxes_.isEmpty()) { - result.rootBoxes_ = new java.util.ArrayList(); + if (rootBoxesBuilder_ == null) { + ensureRootBoxesIsMutable(); + super.addAll(values, rootBoxes_); + onChanged(); + } else { + rootBoxesBuilder_.addAllMessages(values); } - super.addAll(values, result.rootBoxes_); return this; } public Builder clearRootBoxes() { - result.rootBoxes_ = java.util.Collections.emptyList(); + if (rootBoxesBuilder_ == null) { + rootBoxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + rootBoxesBuilder_.clear(); + } return this; } + public Builder removeRootBoxes(int index) { + if (rootBoxesBuilder_ == null) { + ensureRootBoxesIsMutable(); + rootBoxes_.remove(index); + onChanged(); + } else { + rootBoxesBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder getRootBoxesBuilder( + int index) { + return getRootBoxesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getRootBoxesOrBuilder( + int index) { + if (rootBoxesBuilder_ == null) { + return rootBoxes_.get(index); } else { + return rootBoxesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getRootBoxesOrBuilderList() { + if (rootBoxesBuilder_ != null) { + return rootBoxesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rootBoxes_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addRootBoxesBuilder() { + return getRootBoxesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addRootBoxesBuilder( + int index) { + return getRootBoxesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); + } + public java.util.List + getRootBoxesBuilderList() { + return getRootBoxesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> + getRootBoxesFieldBuilder() { + if (rootBoxesBuilder_ == null) { + rootBoxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder>( + rootBoxes_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + rootBoxes_ = null; + } + return rootBoxesBuilder_; + } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; + private java.util.List basemapBoxes_ = + java.util.Collections.emptyList(); + private void ensureBasemapBoxesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + basemapBoxes_ = new java.util.ArrayList(basemapBoxes_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> basemapBoxesBuilder_; + public java.util.List getBasemapBoxesList() { - return java.util.Collections.unmodifiableList(result.basemapBoxes_); + if (basemapBoxesBuilder_ == null) { + return java.util.Collections.unmodifiableList(basemapBoxes_); + } else { + return basemapBoxesBuilder_.getMessageList(); + } } public int getBasemapBoxesCount() { - return result.getBasemapBoxesCount(); + if (basemapBoxesBuilder_ == null) { + return basemapBoxes_.size(); + } else { + return basemapBoxesBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBasemapBoxes(int index) { - return result.getBasemapBoxes(index); - } - public Builder setBasemapBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { - if (value == null) { - throw new NullPointerException(); + if (basemapBoxesBuilder_ == null) { + return basemapBoxes_.get(index); + } else { + return basemapBoxesBuilder_.getMessage(index); + } + } + public Builder setBasemapBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { + if (basemapBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBasemapBoxesIsMutable(); + basemapBoxes_.set(index, value); + onChanged(); + } else { + basemapBoxesBuilder_.setMessage(index, value); } - result.basemapBoxes_.set(index, value); return this; } - public Builder setBasemapBoxes(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { - result.basemapBoxes_.set(index, builderForValue.build()); + public Builder setBasemapBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { + if (basemapBoxesBuilder_ == null) { + ensureBasemapBoxesIsMutable(); + basemapBoxes_.set(index, builderForValue.build()); + onChanged(); + } else { + basemapBoxesBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addBasemapBoxes(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { - if (value == null) { - throw new NullPointerException(); + if (basemapBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBasemapBoxesIsMutable(); + basemapBoxes_.add(value); + onChanged(); + } else { + basemapBoxesBuilder_.addMessage(value); } - if (result.basemapBoxes_.isEmpty()) { - result.basemapBoxes_ = new java.util.ArrayList(); - } - result.basemapBoxes_.add(value); return this; } - public Builder addBasemapBoxes(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { - if (result.basemapBoxes_.isEmpty()) { - result.basemapBoxes_ = new java.util.ArrayList(); + public Builder addBasemapBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { + if (basemapBoxesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBasemapBoxesIsMutable(); + basemapBoxes_.add(index, value); + onChanged(); + } else { + basemapBoxesBuilder_.addMessage(index, value); + } + return this; + } + public Builder addBasemapBoxes( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { + if (basemapBoxesBuilder_ == null) { + ensureBasemapBoxesIsMutable(); + basemapBoxes_.add(builderForValue.build()); + onChanged(); + } else { + basemapBoxesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addBasemapBoxes( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { + if (basemapBoxesBuilder_ == null) { + ensureBasemapBoxesIsMutable(); + basemapBoxes_.add(index, builderForValue.build()); + onChanged(); + } else { + basemapBoxesBuilder_.addMessage(index, builderForValue.build()); } - result.basemapBoxes_.add(builderForValue.build()); return this; } public Builder addAllBasemapBoxes( java.lang.Iterable values) { - if (result.basemapBoxes_.isEmpty()) { - result.basemapBoxes_ = new java.util.ArrayList(); + if (basemapBoxesBuilder_ == null) { + ensureBasemapBoxesIsMutable(); + super.addAll(values, basemapBoxes_); + onChanged(); + } else { + basemapBoxesBuilder_.addAllMessages(values); } - super.addAll(values, result.basemapBoxes_); return this; } public Builder clearBasemapBoxes() { - result.basemapBoxes_ = java.util.Collections.emptyList(); - return this; - } - - // optional .OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderBox borderBox = 7; - public boolean hasBorderBox() { - return result.hasBorderBox(); - } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox getBorderBox() { - return result.getBorderBox(); - } - public Builder setBorderBox(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox value) { - if (value == null) { - throw new NullPointerException(); - } - result.hasBorderBox = true; - result.borderBox_ = value; - return this; - } - public Builder setBorderBox(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.Builder builderForValue) { - result.hasBorderBox = true; - result.borderBox_ = builderForValue.build(); - return this; - } - public Builder mergeBorderBox(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox value) { - if (result.hasBorderBox() && - result.borderBox_ != net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.getDefaultInstance()) { - result.borderBox_ = - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.newBuilder(result.borderBox_).mergeFrom(value).buildPartial(); + if (basemapBoxesBuilder_ == null) { + basemapBoxes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); } else { - result.borderBox_ = value; + basemapBoxesBuilder_.clear(); } - result.hasBorderBox = true; return this; } - public Builder clearBorderBox() { - result.hasBorderBox = false; - result.borderBox_ = net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.getDefaultInstance(); - return this; - } - - // optional .OsmAnd.OBF.OsmAndRoutingIndex.RouteBorderBox baseBorderBox = 8; - public boolean hasBaseBorderBox() { - return result.hasBaseBorderBox(); - } - public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox getBaseBorderBox() { - return result.getBaseBorderBox(); - } - public Builder setBaseBorderBox(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox value) { - if (value == null) { - throw new NullPointerException(); - } - result.hasBaseBorderBox = true; - result.baseBorderBox_ = value; - return this; - } - public Builder setBaseBorderBox(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.Builder builderForValue) { - result.hasBaseBorderBox = true; - result.baseBorderBox_ = builderForValue.build(); - return this; - } - public Builder mergeBaseBorderBox(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox value) { - if (result.hasBaseBorderBox() && - result.baseBorderBox_ != net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.getDefaultInstance()) { - result.baseBorderBox_ = - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.newBuilder(result.baseBorderBox_).mergeFrom(value).buildPartial(); + public Builder removeBasemapBoxes(int index) { + if (basemapBoxesBuilder_ == null) { + ensureBasemapBoxesIsMutable(); + basemapBoxes_.remove(index); + onChanged(); } else { - result.baseBorderBox_ = value; + basemapBoxesBuilder_.remove(index); } - result.hasBaseBorderBox = true; return this; } - public Builder clearBaseBorderBox() { - result.hasBaseBorderBox = false; - result.baseBorderBox_ = net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.getDefaultInstance(); - return this; + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder getBasemapBoxesBuilder( + int index) { + return getBasemapBoxesFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBasemapBoxesOrBuilder( + int index) { + if (basemapBoxesBuilder_ == null) { + return basemapBoxes_.get(index); } else { + return basemapBoxesBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getBasemapBoxesOrBuilderList() { + if (basemapBoxesBuilder_ != null) { + return basemapBoxesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(basemapBoxes_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBasemapBoxesBuilder() { + return getBasemapBoxesFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBasemapBoxesBuilder( + int index) { + return getBasemapBoxesFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); + } + public java.util.List + getBasemapBoxesBuilderList() { + return getBasemapBoxesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> + getBasemapBoxesFieldBuilder() { + if (basemapBoxesBuilder_ == null) { + basemapBoxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder>( + basemapBoxes_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + basemapBoxes_ = null; + } + return basemapBoxesBuilder_; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; + private java.util.List blocks_ = + java.util.Collections.emptyList(); + private void ensureBlocksIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + blocks_ = new java.util.ArrayList(blocks_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder> blocksBuilder_; + public java.util.List getBlocksList() { - return java.util.Collections.unmodifiableList(result.blocks_); + if (blocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(blocks_); + } else { + return blocksBuilder_.getMessageList(); + } } public int getBlocksCount() { - return result.getBlocksCount(); + if (blocksBuilder_ == null) { + return blocks_.size(); + } else { + return blocksBuilder_.getCount(); + } } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock getBlocks(int index) { - return result.getBlocks(index); - } - public Builder setBlocks(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock value) { - if (value == null) { - throw new NullPointerException(); + if (blocksBuilder_ == null) { + return blocks_.get(index); + } else { + return blocksBuilder_.getMessage(index); + } + } + public Builder setBlocks( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock value) { + if (blocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlocksIsMutable(); + blocks_.set(index, value); + onChanged(); + } else { + blocksBuilder_.setMessage(index, value); } - result.blocks_.set(index, value); return this; } - public Builder setBlocks(int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder builderForValue) { - result.blocks_.set(index, builderForValue.build()); + public Builder setBlocks( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder builderForValue) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.set(index, builderForValue.build()); + onChanged(); + } else { + blocksBuilder_.setMessage(index, builderForValue.build()); + } return this; } public Builder addBlocks(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock value) { - if (value == null) { - throw new NullPointerException(); + if (blocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlocksIsMutable(); + blocks_.add(value); + onChanged(); + } else { + blocksBuilder_.addMessage(value); } - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); - } - result.blocks_.add(value); return this; } - public Builder addBlocks(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder builderForValue) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); + public Builder addBlocks( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock value) { + if (blocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlocksIsMutable(); + blocks_.add(index, value); + onChanged(); + } else { + blocksBuilder_.addMessage(index, value); + } + return this; + } + public Builder addBlocks( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder builderForValue) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.add(builderForValue.build()); + onChanged(); + } else { + blocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addBlocks( + int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder builderForValue) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.add(index, builderForValue.build()); + onChanged(); + } else { + blocksBuilder_.addMessage(index, builderForValue.build()); } - result.blocks_.add(builderForValue.build()); return this; } public Builder addAllBlocks( java.lang.Iterable values) { - if (result.blocks_.isEmpty()) { - result.blocks_ = new java.util.ArrayList(); + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + super.addAll(values, blocks_); + onChanged(); + } else { + blocksBuilder_.addAllMessages(values); } - super.addAll(values, result.blocks_); return this; } public Builder clearBlocks() { - result.blocks_ = java.util.Collections.emptyList(); + if (blocksBuilder_ == null) { + blocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + blocksBuilder_.clear(); + } return this; } + public Builder removeBlocks(int index) { + if (blocksBuilder_ == null) { + ensureBlocksIsMutable(); + blocks_.remove(index); + onChanged(); + } else { + blocksBuilder_.remove(index); + } + return this; + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder getBlocksBuilder( + int index) { + return getBlocksFieldBuilder().getBuilder(index); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder getBlocksOrBuilder( + int index) { + if (blocksBuilder_ == null) { + return blocks_.get(index); } else { + return blocksBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getBlocksOrBuilderList() { + if (blocksBuilder_ != null) { + return blocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blocks_); + } + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder addBlocksBuilder() { + return getBlocksFieldBuilder().addBuilder( + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.getDefaultInstance()); + } + public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder addBlocksBuilder( + int index) { + return getBlocksFieldBuilder().addBuilder( + index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.getDefaultInstance()); + } + public java.util.List + getBlocksBuilderList() { + return getBlocksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder> + getBlocksFieldBuilder() { + if (blocksBuilder_ == null) { + blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder>( + blocks_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + blocks_ = null; + } + return blocksBuilder_; + } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex) } static { defaultInstance = new OsmAndRoutingIndex(true); - net.osmand.binary.OsmandOdb.internalForceInit(); defaultInstance.initFields(); } @@ -24427,26 +38998,6 @@ public final class OsmandOdb { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderBox_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderBox_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderLine_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderLine_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPointsBlock_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPointsBlock_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPoint_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPoint_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -24456,181 +39007,172 @@ public final class OsmandOdb { descriptor; static { java.lang.String[] descriptorData = { - "\n\020protos/OBF.proto\022\nOsmAnd.OBF\"\321\002\n\017OsmAn" + - "dStructure\022\017\n\007version\030\001 \002(\r\022\023\n\013dateCreat" + - "ed\030\022 \002(\003\0224\n\014addressIndex\030\007 \003(\0132\036.OsmAnd." + - "OBF.OsmAndAddressIndex\0228\n\016transportIndex" + - "\030\004 \003(\0132 .OsmAnd.OBF.OsmAndTransportIndex" + - "\022,\n\010poiIndex\030\010 \003(\0132\032.OsmAnd.OBF.OsmAndPo" + - "iIndex\022,\n\010mapIndex\030\006 \003(\0132\032.OsmAnd.OBF.Os" + - "mAndMapIndex\0224\n\014routingIndex\030\t \003(\0132\036.Osm" + - "And.OBF.OsmAndRoutingIndex\022\026\n\016versionCon" + - "firm\030 \002(\r\"I\n\rOsmAndTileBox\022\014\n\004left\030\001 \002(", - "\r\022\r\n\005right\030\002 \002(\r\022\013\n\003top\030\003 \002(\r\022\016\n\006bottom\030" + - "\004 \002(\r\"\030\n\013StringTable\022\t\n\001s\030\001 \003(\t\"q\n\022Index" + - "edStringTable\022\016\n\006prefix\030\001 \001(\t\022\013\n\003key\030\003 \003" + - "(\t\022\013\n\003val\030\004 \003(\007\0221\n\tsubtables\030\005 \003(\0132\036.Osm" + - "And.OBF.IndexedStringTable\"\337\004\n\016OsmAndMap" + - "Index\022\014\n\004name\030\002 \002(\t\0229\n\005rules\030\004 \003(\0132*.Osm" + - "And.OBF.OsmAndMapIndex.MapEncodingRule\0227" + - "\n\006levels\030\005 \003(\0132\'.OsmAnd.OBF.OsmAndMapInd" + - "ex.MapRootLevel\032X\n\017MapEncodingRule\022\013\n\003ta" + - "g\030\003 \002(\t\022\r\n\005value\030\005 \001(\t\022\n\n\002id\030\007 \001(\r\022\017\n\007mi", - "nZoom\030\t \001(\r\022\014\n\004type\030\n \001(\r\032\312\001\n\014MapRootLev" + - "el\022\017\n\007maxZoom\030\001 \002(\005\022\017\n\007minZoom\030\002 \002(\005\022\014\n\004" + - "left\030\003 \002(\005\022\r\n\005right\030\004 \002(\005\022\013\n\003top\030\005 \002(\005\022\016" + - "\n\006bottom\030\006 \002(\005\0224\n\005boxes\030\007 \003(\0132%.OsmAnd.O" + - "BF.OsmAndMapIndex.MapDataBox\022(\n\006blocks\030\017" + - " \003(\0132\030.OsmAnd.OBF.MapDataBlock\032\243\001\n\nMapDa" + - "taBox\022\014\n\004left\030\001 \002(\021\022\r\n\005right\030\002 \002(\021\022\013\n\003to" + - "p\030\003 \002(\021\022\016\n\006bottom\030\004 \002(\021\022\026\n\016shiftToMapDat" + - "a\030\005 \001(\007\022\r\n\005ocean\030\006 \001(\010\0224\n\005boxes\030\007 \003(\0132%." + - "OsmAnd.OBF.OsmAndMapIndex.MapDataBox\"v\n\014", - "MapDataBlock\022\016\n\006baseId\030\n \001(\004\022(\n\013dataObje" + - "cts\030\014 \003(\0132\023.OsmAnd.OBF.MapData\022,\n\013string" + - "Table\030\017 \001(\0132\027.OsmAnd.OBF.StringTable\"\266\001\n" + - "\007MapData\022\023\n\013coordinates\030\001 \001(\014\022\027\n\017areaCoo" + - "rdinates\030\002 \001(\014\022\037\n\027polygonInnerCoordinate" + - "s\030\004 \003(\014\022\027\n\017additionalTypes\030\006 \001(\014\022\r\n\005type" + - "s\030\007 \002(\014\022\023\n\013stringNames\030\n \001(\014\022\n\n\002id\030\014 \002(\022" + - "\022\023\n\013rasterBytes\030\017 \001(\014\"\277\003\n\022OsmAndAddressI" + - "ndex\022\014\n\004name\030\001 \002(\t\022\017\n\007name_en\030\002 \001(\t\022-\n\nb" + - "oundaries\030\003 \001(\0132\031.OsmAnd.OBF.OsmAndTileB", - "ox\022:\n\006cities\030\006 \003(\0132*.OsmAnd.OBF.OsmAndAd" + - "dressIndex.CitiesIndex\0229\n\tnameIndex\030\007 \001(" + - "\0132&.OsmAnd.OBF.OsmAndAddressNameIndexDat" + - "a\032\343\001\n\013CitiesIndex\022C\n\004type\030\002 \002(\01625.OsmAnd" + - ".OBF.OsmAndAddressIndex.CitiesIndex.Citi" + - "esType\022%\n\006cities\030\005 \003(\0132\025.OsmAnd.OBF.City" + - "Index\022*\n\006blocks\030\007 \003(\0132\032.OsmAnd.OBF.CityB" + - "lockIndex\"<\n\nCitiesType\022\021\n\rCitiesOrTowns" + - "\020\001\022\r\n\tPostcodes\020\002\022\014\n\010Villages\020\003\"\342\001\n\032OsmA" + - "ndAddressNameIndexData\022-\n\005table\030\004 \002(\0132\036.", - "OsmAnd.OBF.IndexedStringTable\022I\n\004atom\030\007 " + - "\003(\0132;.OsmAnd.OBF.OsmAndAddressNameIndexD" + - "ata.AddressNameIndexData\032J\n\024AddressNameI" + - "ndexData\0222\n\004atom\030\004 \003(\0132$.OsmAnd.OBF.Addr" + - "essNameIndexDataAtom\"v\n\030AddressNameIndex" + - "DataAtom\022\014\n\004name\030\001 \001(\t\022\016\n\006nameEn\030\002 \001(\t\022\014" + - "\n\004type\030\003 \002(\r\022\024\n\014shiftToIndex\030\005 \003(\005\022\030\n\020sh" + - "iftToCityIndex\030\006 \003(\005\"~\n\tCityIndex\022\021\n\tcit" + - "y_type\030\001 \001(\r\022\014\n\004name\030\002 \002(\t\022\017\n\007name_en\030\003 " + - "\001(\t\022\n\n\002id\030\004 \001(\004\022\t\n\001x\030\005 \002(\r\022\t\n\001y\030\006 \002(\r\022\035\n", - "\025shiftToCityBlockIndex\030\n \001(\007\"\202\001\n\016CityBlo" + - "ckIndex\022\030\n\020shiftToCityIndex\030\004 \001(\007\022,\n\tbui" + - "ldings\030\n \003(\0132\031.OsmAnd.OBF.BuildingIndex\022" + - "(\n\007streets\030\014 \003(\0132\027.OsmAnd.OBF.StreetInde" + - "x\"\263\001\n\013StreetIndex\022\014\n\004name\030\001 \002(\t\022\017\n\007name_" + - "en\030\002 \001(\t\022\t\n\001x\030\003 \002(\021\022\t\n\001y\030\004 \002(\021\022\n\n\002id\030\006 \001" + - "(\004\022,\n\tbuildings\030\014 \003(\0132\031.OsmAnd.OBF.Build" + - "ingIndex\0225\n\rintersections\030\005 \003(\0132\036.OsmAnd" + - ".OBF.StreetIntersection\"_\n\022StreetInterse" + - "ction\022\014\n\004name\030\002 \002(\t\022\017\n\007name_en\030\003 \001(\t\022\024\n\014", - "intersectedX\030\004 \002(\021\022\024\n\014intersectedY\030\005 \002(\021" + - "\"\262\001\n\rBuildingIndex\022\014\n\004name\030\001 \002(\t\022\017\n\007name" + - "_en\030\002 \001(\t\022\r\n\005name2\030\003 \001(\t\022\020\n\010name_en2\030\004 \001" + - "(\t\022\025\n\rinterpolation\030\005 \001(\021\022\t\n\001x\030\007 \002(\021\022\t\n\001" + - "y\030\010 \002(\021\022\n\n\002x2\030\t \001(\021\022\n\n\002y2\030\n \001(\021\022\n\n\002id\030\r " + - "\001(\004\022\020\n\010postcode\030\016 \001(\t\"=\n\017TransportRoutes" + - "\022*\n\006routes\030\006 \003(\0132\032.OsmAnd.OBF.TransportR" + - "oute\"\345\001\n\016TransportRoute\022\n\n\002id\030\001 \002(\004\022\014\n\004t" + - "ype\030\003 \001(\r\022\020\n\010operator\030\004 \001(\r\022\013\n\003ref\030\005 \001(\t" + - "\022\014\n\004name\030\006 \001(\r\022\017\n\007name_en\030\007 \001(\r\022\020\n\010dista", - "nce\030\010 \001(\r\0223\n\013directStops\030\017 \003(\0132\036.OsmAnd." + - "OBF.TransportRouteStop\0224\n\014reverseStops\030\020" + - " \003(\0132\036.OsmAnd.OBF.TransportRouteStop\"W\n\022" + - "TransportRouteStop\022\n\n\002id\030\001 \002(\022\022\n\n\002dx\030\002 \002" + - "(\021\022\n\n\002dy\030\003 \002(\021\022\014\n\004name\030\006 \002(\r\022\017\n\007name_en\030" + - "\007 \001(\r\"b\n\rTransportStop\022\n\n\002dx\030\001 \002(\021\022\n\n\002dy" + - "\030\002 \002(\021\022\n\n\002id\030\005 \002(\022\022\014\n\004name\030\006 \002(\r\022\017\n\007name" + - "_en\030\007 \001(\r\022\016\n\006routes\030\020 \003(\r\"\272\001\n\022TransportS" + - "topsTree\022\014\n\004left\030\001 \002(\021\022\r\n\005right\030\002 \002(\021\022\013\n" + - "\003top\030\003 \002(\021\022\016\n\006bottom\030\004 \002(\021\0220\n\010subtrees\030\007", - " \003(\0132\036.OsmAnd.OBF.TransportStopsTree\022(\n\005" + - "leafs\030\010 \003(\0132\031.OsmAnd.OBF.TransportStop\022\016" + - "\n\006baseId\030\020 \001(\004\"\256\001\n\024OsmAndTransportIndex\022" + - "\014\n\004name\030\001 \001(\t\022+\n\006routes\030\003 \001(\0132\033.OsmAnd.O" + - "BF.TransportRoutes\022-\n\005stops\030\006 \001(\0132\036.OsmA" + - "nd.OBF.TransportStopsTree\022,\n\013stringTable" + - "\030\t \002(\0132\027.OsmAnd.OBF.StringTable\"\312\002\n\016OsmA" + - "ndPoiIndex\022\014\n\004name\030\001 \002(\t\022-\n\nboundaries\030\002" + - " \002(\0132\031.OsmAnd.OBF.OsmAndTileBox\0228\n\017categ" + - "oriesTable\030\003 \003(\0132\037.OsmAnd.OBF.OsmAndCate", - "goryTable\0221\n\tnameIndex\030\004 \001(\0132\036.OsmAnd.OB" + - "F.OsmAndPoiNameIndex\0226\n\rsubtypesTable\030\005 " + - "\001(\0132\037.OsmAnd.OBF.OsmAndSubtypesTable\022\'\n\005" + - "boxes\030\006 \003(\0132\030.OsmAnd.OBF.OsmAndPoiBox\022-\n" + - "\007poiData\030\t \003(\0132\034.OsmAnd.OBF.OsmAndPoiBox" + - "Data\"\331\001\n\022OsmAndPoiNameIndex\022-\n\005table\030\003 \002" + - "(\0132\036.OsmAnd.OBF.IndexedStringTable\022C\n\004da" + - "ta\030\005 \003(\01325.OsmAnd.OBF.OsmAndPoiNameIndex" + - ".OsmAndPoiNameIndexData\032O\n\026OsmAndPoiName" + - "IndexData\0225\n\005atoms\030\003 \003(\0132&.OsmAnd.OBF.Os", - "mAndPoiNameIndexDataAtom\"Q\n\032OsmAndPoiNam" + - "eIndexDataAtom\022\014\n\004zoom\030\002 \001(\r\022\t\n\001x\030\003 \001(\r\022" + - "\t\n\001y\030\004 \001(\r\022\017\n\007shiftTo\030\016 \001(\007\">\n\023OsmAndCat" + - "egoryTable\022\020\n\010category\030\001 \002(\t\022\025\n\rsubcateg" + - "ories\030\003 \003(\t\"E\n\023OsmAndSubtypesTable\022.\n\010su" + - "btypes\030\004 \003(\0132\034.OsmAnd.OBF.OsmAndPoiSubty" + - "pe\"\205\001\n\020OsmAndPoiSubtype\022\014\n\004name\030\001 \002(\t\022\017\n" + - "\007tagname\030\002 \001(\t\022\016\n\006isText\030\003 \002(\010\022\021\n\tfreque" + - "ncy\030\005 \001(\r\022\031\n\021subtypeValuesSize\030\006 \001(\r\022\024\n\014" + - "subtypeValue\030\010 \003(\t\"\255\001\n\014OsmAndPoiBox\022\014\n\004z", - "oom\030\001 \002(\r\022\014\n\004left\030\002 \002(\021\022\013\n\003top\030\003 \002(\021\0223\n\n" + - "categories\030\004 \001(\0132\037.OsmAnd.OBF.OsmAndPoiC" + - "ategories\022*\n\010subBoxes\030\n \003(\0132\030.OsmAnd.OBF" + - ".OsmAndPoiBox\022\023\n\013shiftToData\030\016 \001(\007\"@\n\023Os" + - "mAndPoiCategories\022\022\n\ncategories\030\003 \003(\r\022\025\n" + - "\rsubcategories\030\005 \003(\r\"i\n\020OsmAndPoiBoxData" + - "\022\014\n\004zoom\030\001 \001(\r\022\t\n\001x\030\002 \001(\r\022\t\n\001y\030\003 \001(\r\0221\n\007" + - "poiData\030\005 \003(\0132 .OsmAnd.OBF.OsmAndPoiBoxD" + - "ataAtom\"\360\001\n\024OsmAndPoiBoxDataAtom\022\n\n\002dx\030\002" + - " \002(\021\022\n\n\002dy\030\003 \002(\021\022\022\n\ncategories\030\004 \003(\r\022\025\n\r", - "subcategories\030\005 \003(\r\022\014\n\004name\030\006 \001(\t\022\016\n\006nam" + - "eEn\030\007 \001(\t\022\n\n\002id\030\010 \001(\004\022\024\n\014openingHours\030\n " + - "\001(\t\022\014\n\004site\030\013 \001(\t\022\r\n\005phone\030\014 \001(\t\022\014\n\004note" + - "\030\r \001(\t\022\026\n\016textCategories\030\016 \003(\r\022\022\n\ntextVa" + - "lues\030\017 \003(\t\"\032\n\007IdTable\022\017\n\007routeId\030\001 \003(\022\"F" + - "\n\017RestrictionData\022\014\n\004type\030\001 \002(\005\022\014\n\004from\030" + - "\002 \002(\005\022\n\n\002to\030\003 \002(\005\022\013\n\003via\030\004 \001(\005\"d\n\tRouteD" + - "ata\022\016\n\006points\030\001 \002(\014\022\022\n\npointTypes\030\004 \001(\014\022" + - "\r\n\005types\030\007 \002(\014\022\017\n\007routeId\030\014 \002(\005\022\023\n\013strin" + - "gNames\030\016 \001(\014\"\361\n\n\022OsmAndRoutingIndex\022\014\n\004n", - "ame\030\001 \002(\t\022?\n\005rules\030\002 \003(\01320.OsmAnd.OBF.Os" + - "mAndRoutingIndex.RouteEncodingRule\022>\n\tro" + - "otBoxes\030\003 \003(\0132+.OsmAnd.OBF.OsmAndRouting" + - "Index.RouteDataBox\022A\n\014basemapBoxes\030\004 \003(\013" + - "2+.OsmAnd.OBF.OsmAndRoutingIndex.RouteDa" + - "taBox\022@\n\tborderBox\030\007 \001(\0132-.OsmAnd.OBF.Os" + - "mAndRoutingIndex.RouteBorderBox\022D\n\rbaseB" + - "orderBox\030\010 \001(\0132-.OsmAnd.OBF.OsmAndRoutin" + - "gIndex.RouteBorderBox\022=\n\006blocks\030\005 \003(\0132-." + - "OsmAnd.OBF.OsmAndRoutingIndex.RouteDataB", - "lock\032;\n\021RouteEncodingRule\022\013\n\003tag\030\003 \002(\t\022\r" + - "\n\005value\030\005 \002(\t\022\n\n\002id\030\007 \001(\r\032\231\001\n\014RouteDataB" + - "ox\022\014\n\004left\030\001 \002(\021\022\r\n\005right\030\002 \002(\021\022\013\n\003top\030\003" + - " \002(\021\022\016\n\006bottom\030\004 \002(\021\022\023\n\013shiftToData\030\005 \001(" + - "\007\022:\n\005boxes\030\007 \003(\0132+.OsmAnd.OBF.OsmAndRout" + - "ingIndex.RouteDataBox\032\303\001\n\016RouteDataBlock" + - "\022$\n\007idTable\030\005 \001(\0132\023.OsmAnd.OBF.IdTable\022*" + - "\n\013dataObjects\030\006 \003(\0132\025.OsmAnd.OBF.RouteDa" + - "ta\0221\n\014restrictions\030\007 \003(\0132\033.OsmAnd.OBF.Re" + - "strictionData\022,\n\013stringTable\030\010 \001(\0132\027.Osm", - "And.OBF.StringTable\032\344\001\n\016RouteBorderBox\022-" + - "\n\nboundaries\030\001 \002(\0132\031.OsmAnd.OBF.OsmAndTi" + - "leBox\022\027\n\017tileZoomToSplit\030\002 \001(\r\022C\n\013border" + - "Lines\030\006 \003(\0132..OsmAnd.OBF.OsmAndRoutingIn" + - "dex.RouteBorderLine\022E\n\006blocks\030\007 \003(\01325.Os" + - "mAnd.OBF.OsmAndRoutingIndex.RouteBorderP" + - "ointsBlock\032]\n\017RouteBorderLine\022\t\n\001x\030\001 \002(\005" + - "\022\t\n\001y\030\002 \002(\005\022\013\n\003tox\030\003 \001(\005\022\013\n\003toy\030\004 \001(\005\022\032\n" + - "\022shiftToPointsBlock\030\007 \002(\007\032\177\n\026RouteBorder" + - "PointsBlock\022\t\n\001x\030\001 \002(\005\022\t\n\001y\030\002 \002(\005\022\016\n\006bas", - "eId\030\003 \002(\003\022?\n\006points\030\005 \003(\0132/.OsmAnd.OBF.O" + - "smAndRoutingIndex.RouteBorderPoint\032\\\n\020Ro" + - "uteBorderPoint\022\n\n\002dx\030\001 \001(\005\022\n\n\002dy\030\002 \001(\005\022\021" + - "\n\tdirection\030\003 \001(\005\022\r\n\005types\030\004 \001(\014\022\016\n\006road" + - "Id\030\007 \001(\022B\036\n\021net.osmand.binaryB\tOsmandOdb" + "\n\tOBF.proto\022\nOsmAnd.OBF\"\321\002\n\017OsmAndStruct" + + "ure\022\017\n\007version\030\001 \002(\r\022\023\n\013dateCreated\030\022 \002(" + + "\003\0224\n\014addressIndex\030\007 \003(\0132\036.OsmAnd.OBF.Osm" + + "AndAddressIndex\0228\n\016transportIndex\030\004 \003(\0132" + + " .OsmAnd.OBF.OsmAndTransportIndex\022,\n\010poi" + + "Index\030\010 \003(\0132\032.OsmAnd.OBF.OsmAndPoiIndex\022" + + ",\n\010mapIndex\030\006 \003(\0132\032.OsmAnd.OBF.OsmAndMap" + + "Index\0224\n\014routingIndex\030\t \003(\0132\036.OsmAnd.OBF" + + ".OsmAndRoutingIndex\022\026\n\016versionConfirm\030 " + + "\002(\r\"I\n\rOsmAndTileBox\022\014\n\004left\030\001 \002(\r\022\r\n\005ri", + "ght\030\002 \002(\r\022\013\n\003top\030\003 \002(\r\022\016\n\006bottom\030\004 \002(\r\"\030" + + "\n\013StringTable\022\t\n\001s\030\001 \003(\t\"q\n\022IndexedStrin" + + "gTable\022\016\n\006prefix\030\001 \001(\t\022\013\n\003key\030\003 \003(\t\022\013\n\003v" + + "al\030\004 \003(\007\0221\n\tsubtables\030\005 \003(\0132\036.OsmAnd.OBF" + + ".IndexedStringTable\"\337\004\n\016OsmAndMapIndex\022\014" + + "\n\004name\030\002 \002(\t\0229\n\005rules\030\004 \003(\0132*.OsmAnd.OBF" + + ".OsmAndMapIndex.MapEncodingRule\0227\n\006level" + + "s\030\005 \003(\0132\'.OsmAnd.OBF.OsmAndMapIndex.MapR" + + "ootLevel\032X\n\017MapEncodingRule\022\013\n\003tag\030\003 \002(\t" + + "\022\r\n\005value\030\005 \001(\t\022\n\n\002id\030\007 \001(\r\022\017\n\007minZoom\030\t", + " \001(\r\022\014\n\004type\030\n \001(\r\032\312\001\n\014MapRootLevel\022\017\n\007m" + + "axZoom\030\001 \002(\005\022\017\n\007minZoom\030\002 \002(\005\022\014\n\004left\030\003 " + + "\002(\005\022\r\n\005right\030\004 \002(\005\022\013\n\003top\030\005 \002(\005\022\016\n\006botto" + + "m\030\006 \002(\005\0224\n\005boxes\030\007 \003(\0132%.OsmAnd.OBF.OsmA" + + "ndMapIndex.MapDataBox\022(\n\006blocks\030\017 \003(\0132\030." + + "OsmAnd.OBF.MapDataBlock\032\243\001\n\nMapDataBox\022\014" + + "\n\004left\030\001 \002(\021\022\r\n\005right\030\002 \002(\021\022\013\n\003top\030\003 \002(\021" + + "\022\016\n\006bottom\030\004 \002(\021\022\026\n\016shiftToMapData\030\005 \001(\007" + + "\022\r\n\005ocean\030\006 \001(\010\0224\n\005boxes\030\007 \003(\0132%.OsmAnd." + + "OBF.OsmAndMapIndex.MapDataBox\"v\n\014MapData", + "Block\022\016\n\006baseId\030\n \001(\004\022(\n\013dataObjects\030\014 \003" + + "(\0132\023.OsmAnd.OBF.MapData\022,\n\013stringTable\030\017" + + " \001(\0132\027.OsmAnd.OBF.StringTable\"\266\001\n\007MapDat" + + "a\022\023\n\013coordinates\030\001 \001(\014\022\027\n\017areaCoordinate" + + "s\030\002 \001(\014\022\037\n\027polygonInnerCoordinates\030\004 \003(\014" + + "\022\027\n\017additionalTypes\030\006 \001(\014\022\r\n\005types\030\007 \002(\014" + + "\022\023\n\013stringNames\030\n \001(\014\022\n\n\002id\030\014 \002(\022\022\023\n\013ras" + + "terBytes\030\017 \001(\014\"\364\003\n\022OsmAndAddressIndex\022\014\n" + + "\004name\030\001 \002(\t\022\017\n\007name_en\030\002 \001(\t\022-\n\nboundari" + + "es\030\003 \001(\0132\031.OsmAnd.OBF.OsmAndTileBox\022:\n\006c", + "ities\030\006 \003(\0132*.OsmAnd.OBF.OsmAndAddressIn" + + "dex.CitiesIndex\0229\n\tnameIndex\030\007 \001(\0132&.Osm" + + "And.OBF.OsmAndAddressNameIndexData\0223\n\022at" + + "tributeTagsTable\030\010 \001(\0132\027.OsmAnd.OBF.Stri" + + "ngTable\032\343\001\n\013CitiesIndex\022C\n\004type\030\002 \002(\01625." + + "OsmAnd.OBF.OsmAndAddressIndex.CitiesInde" + + "x.CitiesType\022%\n\006cities\030\005 \003(\0132\025.OsmAnd.OB" + + "F.CityIndex\022*\n\006blocks\030\007 \003(\0132\032.OsmAnd.OBF" + + ".CityBlockIndex\"<\n\nCitiesType\022\021\n\rCitiesO" + + "rTowns\020\001\022\r\n\tPostcodes\020\002\022\014\n\010Villages\020\003\"\342\001", + "\n\032OsmAndAddressNameIndexData\022-\n\005table\030\004 " + + "\002(\0132\036.OsmAnd.OBF.IndexedStringTable\022I\n\004a" + + "tom\030\007 \003(\0132;.OsmAnd.OBF.OsmAndAddressName" + + "IndexData.AddressNameIndexData\032J\n\024Addres" + + "sNameIndexData\0222\n\004atom\030\004 \003(\0132$.OsmAnd.OB" + + "F.AddressNameIndexDataAtom\"v\n\030AddressNam" + + "eIndexDataAtom\022\014\n\004name\030\001 \001(\t\022\016\n\006nameEn\030\002" + + " \001(\t\022\014\n\004type\030\003 \002(\r\022\024\n\014shiftToIndex\030\005 \003(\005" + + "\022\030\n\020shiftToCityIndex\030\006 \003(\005\"\260\001\n\tCityIndex" + + "\022\021\n\tcity_type\030\001 \001(\r\022\014\n\004name\030\002 \002(\t\022\017\n\007nam", + "e_en\030\003 \001(\t\022\027\n\017attributeTagIds\030\013 \003(\r\022\027\n\017a" + + "ttributeValues\030\014 \003(\t\022\n\n\002id\030\004 \001(\004\022\t\n\001x\030\005 " + + "\002(\r\022\t\n\001y\030\006 \002(\r\022\035\n\025shiftToCityBlockIndex\030" + + "\n \001(\007\"\202\001\n\016CityBlockIndex\022\030\n\020shiftToCityI" + + "ndex\030\004 \001(\007\022,\n\tbuildings\030\n \003(\0132\031.OsmAnd.O" + + "BF.BuildingIndex\022(\n\007streets\030\014 \003(\0132\027.OsmA" + + "nd.OBF.StreetIndex\"\345\001\n\013StreetIndex\022\014\n\004na" + + "me\030\001 \002(\t\022\017\n\007name_en\030\002 \001(\t\022\027\n\017attributeTa" + + "gIds\030\r \003(\r\022\027\n\017attributeValues\030\016 \003(\t\022\t\n\001x" + + "\030\003 \002(\021\022\t\n\001y\030\004 \002(\021\022\n\n\002id\030\006 \001(\004\022,\n\tbuildin", + "gs\030\014 \003(\0132\031.OsmAnd.OBF.BuildingIndex\0225\n\ri" + + "ntersections\030\005 \003(\0132\036.OsmAnd.OBF.StreetIn" + + "tersection\"\221\001\n\022StreetIntersection\022\014\n\004nam" + + "e\030\002 \002(\t\022\017\n\007name_en\030\003 \001(\t\022\027\n\017attributeTag" + + "Ids\030\006 \003(\r\022\027\n\017attributeValues\030\007 \003(\t\022\024\n\014in" + + "tersectedX\030\004 \002(\021\022\024\n\014intersectedY\030\005 \002(\021\"\230" + + "\002\n\rBuildingIndex\022\014\n\004name\030\001 \002(\t\022\017\n\007name_e" + + "n\030\002 \001(\t\022\027\n\017attributeTagIds\030\017 \003(\r\022\027\n\017attr" + + "ibuteValues\030\020 \003(\t\022\r\n\005name2\030\003 \001(\t\022\020\n\010name" + + "_en2\030\004 \001(\t\022\030\n\020attributeTagIds2\030\021 \003(\r\022\030\n\020", + "attributeValues2\030\022 \003(\t\022\025\n\rinterpolation\030" + + "\005 \001(\021\022\t\n\001x\030\007 \002(\021\022\t\n\001y\030\010 \002(\021\022\n\n\002x2\030\t \001(\021\022" + + "\n\n\002y2\030\n \001(\021\022\n\n\002id\030\r \001(\004\022\020\n\010postcode\030\016 \001(" + + "\t\"=\n\017TransportRoutes\022*\n\006routes\030\006 \003(\0132\032.O" + + "smAnd.OBF.TransportRoute\"\345\001\n\016TransportRo" + + "ute\022\n\n\002id\030\001 \002(\004\022\014\n\004type\030\003 \001(\r\022\020\n\010operato" + + "r\030\004 \001(\r\022\013\n\003ref\030\005 \001(\t\022\014\n\004name\030\006 \001(\r\022\017\n\007na" + + "me_en\030\007 \001(\r\022\020\n\010distance\030\010 \001(\r\0223\n\013directS" + + "tops\030\017 \003(\0132\036.OsmAnd.OBF.TransportRouteSt" + + "op\0224\n\014reverseStops\030\020 \003(\0132\036.OsmAnd.OBF.Tr", + "ansportRouteStop\"W\n\022TransportRouteStop\022\n" + + "\n\002id\030\001 \002(\022\022\n\n\002dx\030\002 \002(\021\022\n\n\002dy\030\003 \002(\021\022\014\n\004na" + + "me\030\006 \002(\r\022\017\n\007name_en\030\007 \001(\r\"b\n\rTransportSt" + + "op\022\n\n\002dx\030\001 \002(\021\022\n\n\002dy\030\002 \002(\021\022\n\n\002id\030\005 \002(\022\022\014" + + "\n\004name\030\006 \002(\r\022\017\n\007name_en\030\007 \001(\r\022\016\n\006routes\030" + + "\020 \003(\r\"\272\001\n\022TransportStopsTree\022\014\n\004left\030\001 \002" + + "(\021\022\r\n\005right\030\002 \002(\021\022\013\n\003top\030\003 \002(\021\022\016\n\006bottom" + + "\030\004 \002(\021\0220\n\010subtrees\030\007 \003(\0132\036.OsmAnd.OBF.Tr" + + "ansportStopsTree\022(\n\005leafs\030\010 \003(\0132\031.OsmAnd" + + ".OBF.TransportStop\022\016\n\006baseId\030\020 \001(\004\"\256\001\n\024O", + "smAndTransportIndex\022\014\n\004name\030\001 \001(\t\022+\n\006rou" + + "tes\030\003 \001(\0132\033.OsmAnd.OBF.TransportRoutes\022-" + + "\n\005stops\030\006 \001(\0132\036.OsmAnd.OBF.TransportStop" + + "sTree\022,\n\013stringTable\030\t \002(\0132\027.OsmAnd.OBF." + + "StringTable\"\312\002\n\016OsmAndPoiIndex\022\014\n\004name\030\001" + + " \002(\t\022-\n\nboundaries\030\002 \002(\0132\031.OsmAnd.OBF.Os" + + "mAndTileBox\0228\n\017categoriesTable\030\003 \003(\0132\037.O" + + "smAnd.OBF.OsmAndCategoryTable\0221\n\tnameInd" + + "ex\030\004 \001(\0132\036.OsmAnd.OBF.OsmAndPoiNameIndex" + + "\0226\n\rsubtypesTable\030\005 \001(\0132\037.OsmAnd.OBF.Osm", + "AndSubtypesTable\022\'\n\005boxes\030\006 \003(\0132\030.OsmAnd" + + ".OBF.OsmAndPoiBox\022-\n\007poiData\030\t \003(\0132\034.Osm" + + "And.OBF.OsmAndPoiBoxData\"\331\001\n\022OsmAndPoiNa" + + "meIndex\022-\n\005table\030\003 \002(\0132\036.OsmAnd.OBF.Inde" + + "xedStringTable\022C\n\004data\030\005 \003(\01325.OsmAnd.OB" + + "F.OsmAndPoiNameIndex.OsmAndPoiNameIndexD" + + "ata\032O\n\026OsmAndPoiNameIndexData\0225\n\005atoms\030\003" + + " \003(\0132&.OsmAnd.OBF.OsmAndPoiNameIndexData" + + "Atom\"Q\n\032OsmAndPoiNameIndexDataAtom\022\014\n\004zo" + + "om\030\002 \001(\r\022\t\n\001x\030\003 \001(\r\022\t\n\001y\030\004 \001(\r\022\017\n\007shiftT", + "o\030\016 \001(\007\">\n\023OsmAndCategoryTable\022\020\n\010catego" + + "ry\030\001 \002(\t\022\025\n\rsubcategories\030\003 \003(\t\"E\n\023OsmAn" + + "dSubtypesTable\022.\n\010subtypes\030\004 \003(\0132\034.OsmAn" + + "d.OBF.OsmAndPoiSubtype\"\205\001\n\020OsmAndPoiSubt" + + "ype\022\014\n\004name\030\001 \002(\t\022\017\n\007tagname\030\002 \001(\t\022\016\n\006is" + + "Text\030\003 \002(\010\022\021\n\tfrequency\030\005 \001(\r\022\031\n\021subtype" + + "ValuesSize\030\006 \001(\r\022\024\n\014subtypeValue\030\010 \003(\t\"\255" + + "\001\n\014OsmAndPoiBox\022\014\n\004zoom\030\001 \002(\r\022\014\n\004left\030\002 " + + "\002(\021\022\013\n\003top\030\003 \002(\021\0223\n\ncategories\030\004 \001(\0132\037.O" + + "smAnd.OBF.OsmAndPoiCategories\022*\n\010subBoxe", + "s\030\n \003(\0132\030.OsmAnd.OBF.OsmAndPoiBox\022\023\n\013shi" + + "ftToData\030\016 \001(\007\"@\n\023OsmAndPoiCategories\022\022\n" + + "\ncategories\030\003 \003(\r\022\025\n\rsubcategories\030\005 \003(\r" + + "\"i\n\020OsmAndPoiBoxData\022\014\n\004zoom\030\001 \001(\r\022\t\n\001x\030" + + "\002 \001(\r\022\t\n\001y\030\003 \001(\r\0221\n\007poiData\030\005 \003(\0132 .OsmA" + + "nd.OBF.OsmAndPoiBoxDataAtom\"\360\001\n\024OsmAndPo" + + "iBoxDataAtom\022\n\n\002dx\030\002 \002(\021\022\n\n\002dy\030\003 \002(\021\022\022\n\n" + + "categories\030\004 \003(\r\022\025\n\rsubcategories\030\005 \003(\r\022" + + "\014\n\004name\030\006 \001(\t\022\016\n\006nameEn\030\007 \001(\t\022\n\n\002id\030\010 \001(" + + "\004\022\024\n\014openingHours\030\n \001(\t\022\014\n\004site\030\013 \001(\t\022\r\n", + "\005phone\030\014 \001(\t\022\014\n\004note\030\r \001(\t\022\026\n\016textCatego" + + "ries\030\016 \003(\r\022\022\n\ntextValues\030\017 \003(\t\"\032\n\007IdTabl" + + "e\022\017\n\007routeId\030\001 \003(\022\"F\n\017RestrictionData\022\014\n" + + "\004type\030\001 \002(\005\022\014\n\004from\030\002 \002(\005\022\n\n\002to\030\003 \002(\005\022\013\n" + + "\003via\030\004 \001(\005\"d\n\tRouteData\022\016\n\006points\030\001 \002(\014\022" + + "\022\n\npointTypes\030\004 \001(\014\022\r\n\005types\030\007 \002(\014\022\017\n\007ro" + + "uteId\030\014 \002(\005\022\023\n\013stringNames\030\016 \001(\014\"\304\005\n\022Osm" + + "AndRoutingIndex\022\014\n\004name\030\001 \002(\t\022?\n\005rules\030\002" + + " \003(\01320.OsmAnd.OBF.OsmAndRoutingIndex.Rou" + + "teEncodingRule\022>\n\trootBoxes\030\003 \003(\0132+.OsmA", + "nd.OBF.OsmAndRoutingIndex.RouteDataBox\022A" + + "\n\014basemapBoxes\030\004 \003(\0132+.OsmAnd.OBF.OsmAnd" + + "RoutingIndex.RouteDataBox\022=\n\006blocks\030\005 \003(" + + "\0132-.OsmAnd.OBF.OsmAndRoutingIndex.RouteD" + + "ataBlock\032;\n\021RouteEncodingRule\022\013\n\003tag\030\003 \002" + + "(\t\022\r\n\005value\030\005 \002(\t\022\n\n\002id\030\007 \001(\r\032\231\001\n\014RouteD" + + "ataBox\022\014\n\004left\030\001 \002(\021\022\r\n\005right\030\002 \002(\021\022\013\n\003t" + + "op\030\003 \002(\021\022\016\n\006bottom\030\004 \002(\021\022\023\n\013shiftToData\030" + + "\005 \001(\007\022:\n\005boxes\030\007 \003(\0132+.OsmAnd.OBF.OsmAnd" + + "RoutingIndex.RouteDataBox\032\303\001\n\016RouteDataB", + "lock\022$\n\007idTable\030\005 \001(\0132\023.OsmAnd.OBF.IdTab" + + "le\022*\n\013dataObjects\030\006 \003(\0132\025.OsmAnd.OBF.Rou" + + "teData\0221\n\014restrictions\030\007 \003(\0132\033.OsmAnd.OB" + + "F.RestrictionData\022,\n\013stringTable\030\010 \001(\0132\027" + + ".OsmAnd.OBF.StringTableB\036\n\021net.osmand.bi" + + "naryB\tOsmandOdb" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -24722,7 +39264,7 @@ public final class OsmandOdb { internal_static_OsmAnd_OBF_OsmAndAddressIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndAddressIndex_descriptor, - new java.lang.String[] { "Name", "NameEn", "Boundaries", "Cities", "NameIndex", }, + new java.lang.String[] { "Name", "NameEn", "Boundaries", "Cities", "NameIndex", "AttributeTagsTable", }, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.class, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder.class); internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_descriptor = @@ -24762,7 +39304,7 @@ public final class OsmandOdb { internal_static_OsmAnd_OBF_CityIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_CityIndex_descriptor, - new java.lang.String[] { "CityType", "Name", "NameEn", "Id", "X", "Y", "ShiftToCityBlockIndex", }, + new java.lang.String[] { "CityType", "Name", "NameEn", "AttributeTagIds", "AttributeValues", "Id", "X", "Y", "ShiftToCityBlockIndex", }, net.osmand.binary.OsmandOdb.CityIndex.class, net.osmand.binary.OsmandOdb.CityIndex.Builder.class); internal_static_OsmAnd_OBF_CityBlockIndex_descriptor = @@ -24778,7 +39320,7 @@ public final class OsmandOdb { internal_static_OsmAnd_OBF_StreetIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_StreetIndex_descriptor, - new java.lang.String[] { "Name", "NameEn", "X", "Y", "Id", "Buildings", "Intersections", }, + new java.lang.String[] { "Name", "NameEn", "AttributeTagIds", "AttributeValues", "X", "Y", "Id", "Buildings", "Intersections", }, net.osmand.binary.OsmandOdb.StreetIndex.class, net.osmand.binary.OsmandOdb.StreetIndex.Builder.class); internal_static_OsmAnd_OBF_StreetIntersection_descriptor = @@ -24786,7 +39328,7 @@ public final class OsmandOdb { internal_static_OsmAnd_OBF_StreetIntersection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_StreetIntersection_descriptor, - new java.lang.String[] { "Name", "NameEn", "IntersectedX", "IntersectedY", }, + new java.lang.String[] { "Name", "NameEn", "AttributeTagIds", "AttributeValues", "IntersectedX", "IntersectedY", }, net.osmand.binary.OsmandOdb.StreetIntersection.class, net.osmand.binary.OsmandOdb.StreetIntersection.Builder.class); internal_static_OsmAnd_OBF_BuildingIndex_descriptor = @@ -24794,7 +39336,7 @@ public final class OsmandOdb { internal_static_OsmAnd_OBF_BuildingIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_BuildingIndex_descriptor, - new java.lang.String[] { "Name", "NameEn", "Name2", "NameEn2", "Interpolation", "X", "Y", "X2", "Y2", "Id", "Postcode", }, + new java.lang.String[] { "Name", "NameEn", "AttributeTagIds", "AttributeValues", "Name2", "NameEn2", "AttributeTagIds2", "AttributeValues2", "Interpolation", "X", "Y", "X2", "Y2", "Id", "Postcode", }, net.osmand.binary.OsmandOdb.BuildingIndex.class, net.osmand.binary.OsmandOdb.BuildingIndex.Builder.class); internal_static_OsmAnd_OBF_TransportRoutes_descriptor = @@ -24962,7 +39504,7 @@ public final class OsmandOdb { internal_static_OsmAnd_OBF_OsmAndRoutingIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor, - new java.lang.String[] { "Name", "Rules", "RootBoxes", "BasemapBoxes", "BorderBox", "BaseBorderBox", "Blocks", }, + new java.lang.String[] { "Name", "Rules", "RootBoxes", "BasemapBoxes", "Blocks", }, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.class, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder.class); internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_descriptor = @@ -24989,38 +39531,6 @@ public final class OsmandOdb { new java.lang.String[] { "IdTable", "DataObjects", "Restrictions", "StringTable", }, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.class, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder.class); - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderBox_descriptor = - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor.getNestedTypes().get(3); - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderBox_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderBox_descriptor, - new java.lang.String[] { "Boundaries", "TileZoomToSplit", "BorderLines", "Blocks", }, - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.class, - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderBox.Builder.class); - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderLine_descriptor = - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor.getNestedTypes().get(4); - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderLine_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderLine_descriptor, - new java.lang.String[] { "X", "Y", "Tox", "Toy", "ShiftToPointsBlock", }, - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine.class, - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderLine.Builder.class); - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPointsBlock_descriptor = - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor.getNestedTypes().get(5); - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPointsBlock_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPointsBlock_descriptor, - new java.lang.String[] { "X", "Y", "BaseId", "Points", }, - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock.class, - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPointsBlock.Builder.class); - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPoint_descriptor = - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor.getNestedTypes().get(6); - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteBorderPoint_descriptor, - new java.lang.String[] { "Dx", "Dy", "Direction", "Types", "RoadId", }, - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint.class, - net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteBorderPoint.Builder.class); return null; } }; @@ -25030,7 +39540,5 @@ public final class OsmandOdb { }, assigner); } - public static void internalForceInit() {} - // @@protoc_insertion_point(outer_class_scope) }