// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: OBF.proto
package net.osmand.binary;
public final class OsmandOdb {
private OsmandOdb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface OsmAndStructureOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required uint32 version = 1;
/**
* required uint32 version = 1;
*/
boolean hasVersion();
/**
* required uint32 version = 1;
*/
int getVersion();
// required int64 dateCreated = 18;
/**
* required int64 dateCreated = 18;
*
*
* System.currentTimeMillis() **/ boolean hasDateCreated(); /** *
required int64 dateCreated = 18;
*
* * System.currentTimeMillis() **/ long getDateCreated(); // repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ java.util.List
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndAddressIndex getAddressIndex(int index); /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ int getAddressIndexCount(); /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ java.util.List extends net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder> getAddressIndexOrBuilderList(); /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder getAddressIndexOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4; /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ java.util.List
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndTransportIndex getTransportIndex(int index); /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ int getTransportIndexCount(); /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ java.util.List extends net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder> getTransportIndexOrBuilderList(); /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder getTransportIndexOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8; /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ java.util.List
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndPoiIndex getPoiIndex(int index); /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ int getPoiIndexCount(); /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ java.util.List extends net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder> getPoiIndexOrBuilderList(); /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder getPoiIndexOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6; /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ java.util.List
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndMapIndex getMapIndex(int index); /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ int getMapIndexCount(); /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder> getMapIndexOrBuilderList(); /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder getMapIndexOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9; /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ java.util.List
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex getRoutingIndex(int index); /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ int getRoutingIndexCount(); /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ java.util.List extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder> getRoutingIndexOrBuilderList(); /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder getRoutingIndexOrBuilder( int index); // required uint32 versionConfirm = 32; /** *
required uint32 versionConfirm = 32;
*
* * last field should version again (to check consistency) **/ boolean hasVersionConfirm(); /** *
required uint32 versionConfirm = 32;
*
* * last field should version again (to check consistency) **/ int getVersionConfirm(); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndStructure} * *
* IMPORTANT : These messages are not intented to be parsed by google engine (because of the random access to the file) * The main difference that size of that messages is not var int and is always fixed int size **/ public static final class OsmAndStructure extends com.google.protobuf.GeneratedMessage implements OsmAndStructureOrBuilder { // Use OsmAndStructure.newBuilder() to construct. private OsmAndStructure(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndStructure(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndStructure defaultInstance; public static OsmAndStructure getDefaultInstance() { return defaultInstance; } public OsmAndStructure getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndStructure( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; version_ = input.readUInt32(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { transportIndex_ = new java.util.ArrayList
required uint32 version = 1;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 version = 1;
*/
public int getVersion() {
return version_;
}
// required int64 dateCreated = 18;
public static final int DATECREATED_FIELD_NUMBER = 18;
private long dateCreated_;
/**
* required int64 dateCreated = 18;
*
* * System.currentTimeMillis() **/ public boolean hasDateCreated() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
required int64 dateCreated = 18;
*
* * System.currentTimeMillis() **/ public long getDateCreated() { return dateCreated_; } // repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; public static final int ADDRESSINDEX_FIELD_NUMBER = 7; private java.util.List
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder> getAddressIndexOrBuilderList() { return addressIndex_; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public int getAddressIndexCount() { return addressIndex_.size(); } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex getAddressIndex(int index) { return addressIndex_.get(index); } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ 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
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder> getTransportIndexOrBuilderList() { return transportIndex_; } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public int getTransportIndexCount() { return transportIndex_.size(); } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndTransportIndex getTransportIndex(int index) { return transportIndex_.get(index); } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ 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
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder> getPoiIndexOrBuilderList() { return poiIndex_; } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public int getPoiIndexCount() { return poiIndex_.size(); } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndPoiIndex getPoiIndex(int index) { return poiIndex_.get(index); } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ 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
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder> getMapIndexOrBuilderList() { return mapIndex_; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public int getMapIndexCount() { return mapIndex_.size(); } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex getMapIndex(int index) { return mapIndex_.get(index); } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ 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
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder> getRoutingIndexOrBuilderList() { return routingIndex_; } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public int getRoutingIndexCount() { return routingIndex_.size(); } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex getRoutingIndex(int index) { return routingIndex_.get(index); } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ 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 int versionConfirm_; /** *
required uint32 versionConfirm = 32;
*
* * last field should version again (to check consistency) **/ public boolean hasVersionConfirm() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
required uint32 versionConfirm = 32;
*
* * last field should version again (to check consistency) **/ 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() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasVersion()) { memoizedIsInitialized = 0; return false; } if (!hasDateCreated()) { memoizedIsInitialized = 0; return false; } if (!hasVersionConfirm()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getAddressIndexCount(); i++) { if (!getAddressIndex(i).isInitialized()) { memoizedIsInitialized = 0; 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 (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, version_); } for (int i = 0; i < transportIndex_.size(); i++) { output.writeMessage(4, transportIndex_.get(i)); } for (int i = 0; i < mapIndex_.size(); i++) { output.writeMessage(6, mapIndex_.get(i)); } for (int i = 0; i < addressIndex_.size(); i++) { output.writeMessage(7, addressIndex_.get(i)); } for (int i = 0; i < poiIndex_.size(); i++) { output.writeMessage(8, poiIndex_.get(i)); } for (int i = 0; i < routingIndex_.size(); i++) { output.writeMessage(9, routingIndex_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(18, dateCreated_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(32, versionConfirm_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, version_); } for (int i = 0; i < transportIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, transportIndex_.get(i)); } for (int i = 0; i < mapIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, mapIndex_.get(i)); } for (int i = 0; i < addressIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, addressIndex_.get(i)); } for (int i = 0; i < poiIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, poiIndex_.get(i)); } for (int i = 0; i < routingIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, routingIndex_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, dateCreated_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .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 { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndStructure parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndStructure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndStructure parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndStructure parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndStructure parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndStructure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndStructure parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndStructure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndStructure parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndStructure prototype) { return newBuilder().mergeFrom(prototype); } 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; } /** * Protobuf type {@code OsmAnd.OBF.OsmAndStructure} * *
* IMPORTANT : These messages are not intented to be parsed by google engine (because of the random access to the file) * The main difference that size of that messages is not var int and is always fixed int size **/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
required uint32 version = 1;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required uint32 version = 1;
*/
public int getVersion() {
return version_;
}
/**
* required uint32 version = 1;
*/
public Builder setVersion(int value) {
bitField0_ |= 0x00000001;
version_ = value;
onChanged();
return this;
}
/**
* required uint32 version = 1;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
version_ = 0;
onChanged();
return this;
}
// required int64 dateCreated = 18;
private long dateCreated_ ;
/**
* required int64 dateCreated = 18;
*
* * System.currentTimeMillis() **/ public boolean hasDateCreated() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
required int64 dateCreated = 18;
*
* * System.currentTimeMillis() **/ public long getDateCreated() { return dateCreated_; } /** *
required int64 dateCreated = 18;
*
* * System.currentTimeMillis() **/ public Builder setDateCreated(long value) { bitField0_ |= 0x00000002; dateCreated_ = value; onChanged(); return this; } /** *
required int64 dateCreated = 18;
*
* * System.currentTimeMillis() **/ public Builder clearDateCreated() { bitField0_ = (bitField0_ & ~0x00000002); dateCreated_ = 0L; onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; private java.util.List
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public int getAddressIndexCount() { if (addressIndexBuilder_ == null) { return addressIndex_.size(); } else { return addressIndexBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex getAddressIndex(int index) { if (addressIndexBuilder_ == null) { return addressIndex_.get(index); } else { return addressIndexBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public Builder addAddressIndex(net.osmand.binary.OsmandOdb.OsmAndAddressIndex value) { if (addressIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressIndexIsMutable(); addressIndex_.add(value); onChanged(); } else { addressIndexBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public Builder addAllAddressIndex( java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndAddressIndex> values) { if (addressIndexBuilder_ == null) { ensureAddressIndexIsMutable(); super.addAll(values, addressIndex_); onChanged(); } else { addressIndexBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public Builder clearAddressIndex() { if (addressIndexBuilder_ == null) { addressIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { addressIndexBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public Builder removeAddressIndex(int index) { if (addressIndexBuilder_ == null) { ensureAddressIndexIsMutable(); addressIndex_.remove(index); onChanged(); } else { addressIndexBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder getAddressIndexBuilder( int index) { return getAddressIndexFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder getAddressIndexOrBuilder( int index) { if (addressIndexBuilder_ == null) { return addressIndex_.get(index); } else { return addressIndexBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder> getAddressIndexOrBuilderList() { if (addressIndexBuilder_ != null) { return addressIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(addressIndex_); } } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder addAddressIndexBuilder() { return getAddressIndexFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder addAddressIndexBuilder( int index) { return getAddressIndexFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;
*
* * first version of map index was 3. * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public int getTransportIndexCount() { if (transportIndexBuilder_ == null) { return transportIndex_.size(); } else { return transportIndexBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndTransportIndex getTransportIndex(int index) { if (transportIndexBuilder_ == null) { return transportIndex_.get(index); } else { return transportIndexBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public Builder addTransportIndex(net.osmand.binary.OsmandOdb.OsmAndTransportIndex value) { if (transportIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTransportIndexIsMutable(); transportIndex_.add(value); onChanged(); } else { transportIndexBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public Builder addAllTransportIndex( java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndTransportIndex> values) { if (transportIndexBuilder_ == null) { ensureTransportIndexIsMutable(); super.addAll(values, transportIndex_); onChanged(); } else { transportIndexBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public Builder clearTransportIndex() { if (transportIndexBuilder_ == null) { transportIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { transportIndexBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public Builder removeTransportIndex(int index) { if (transportIndexBuilder_ == null) { ensureTransportIndexIsMutable(); transportIndex_.remove(index); onChanged(); } else { transportIndexBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder getTransportIndexBuilder( int index) { return getTransportIndexFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder getTransportIndexOrBuilder( int index) { if (transportIndexBuilder_ == null) { return transportIndex_.get(index); } else { return transportIndexBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder> getTransportIndexOrBuilderList() { if (transportIndexBuilder_ != null) { return transportIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transportIndex_); } } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder addTransportIndexBuilder() { return getTransportIndexFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndTransportIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder addTransportIndexBuilder( int index) { return getTransportIndexFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;
*
* * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public int getPoiIndexCount() { if (poiIndexBuilder_ == null) { return poiIndex_.size(); } else { return poiIndexBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndPoiIndex getPoiIndex(int index) { if (poiIndexBuilder_ == null) { return poiIndex_.get(index); } else { return poiIndexBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public Builder addPoiIndex(net.osmand.binary.OsmandOdb.OsmAndPoiIndex value) { if (poiIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoiIndexIsMutable(); poiIndex_.add(value); onChanged(); } else { poiIndexBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public Builder addAllPoiIndex( java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndPoiIndex> values) { if (poiIndexBuilder_ == null) { ensurePoiIndexIsMutable(); super.addAll(values, poiIndex_); onChanged(); } else { poiIndexBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public Builder clearPoiIndex() { if (poiIndexBuilder_ == null) { poiIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { poiIndexBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public Builder removePoiIndex(int index) { if (poiIndexBuilder_ == null) { ensurePoiIndexIsMutable(); poiIndex_.remove(index); onChanged(); } else { poiIndexBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder getPoiIndexBuilder( int index) { return getPoiIndexFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder getPoiIndexOrBuilder( int index) { if (poiIndexBuilder_ == null) { return poiIndex_.get(index); } else { return poiIndexBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder> getPoiIndexOrBuilderList() { if (poiIndexBuilder_ != null) { return poiIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(poiIndex_); } } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder addPoiIndexBuilder() { return getPoiIndexFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder addPoiIndexBuilder( int index) { return getPoiIndexFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;
*
* * slight changes previous version was 5 * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public int getMapIndexCount() { if (mapIndexBuilder_ == null) { return mapIndex_.size(); } else { return mapIndexBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex getMapIndex(int index) { if (mapIndexBuilder_ == null) { return mapIndex_.get(index); } else { return mapIndexBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public Builder addMapIndex(net.osmand.binary.OsmandOdb.OsmAndMapIndex value) { if (mapIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMapIndexIsMutable(); mapIndex_.add(value); onChanged(); } else { mapIndexBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public Builder addAllMapIndex( java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndMapIndex> values) { if (mapIndexBuilder_ == null) { ensureMapIndexIsMutable(); super.addAll(values, mapIndex_); onChanged(); } else { mapIndexBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public Builder clearMapIndex() { if (mapIndexBuilder_ == null) { mapIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { mapIndexBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public Builder removeMapIndex(int index) { if (mapIndexBuilder_ == null) { ensureMapIndexIsMutable(); mapIndex_.remove(index); onChanged(); } else { mapIndexBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder getMapIndexBuilder( int index) { return getMapIndexFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder getMapIndexOrBuilder( int index) { if (mapIndexBuilder_ == null) { return mapIndex_.get(index); } else { return mapIndexBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder> getMapIndexOrBuilderList() { if (mapIndexBuilder_ != null) { return mapIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(mapIndex_); } } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder addMapIndexBuilder() { return getMapIndexFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndMapIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder addMapIndexBuilder( int index) { return getMapIndexFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;
*
* * first version of map index was 2. * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public int getRoutingIndexCount() { if (routingIndexBuilder_ == null) { return routingIndex_.size(); } else { return routingIndexBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex getRoutingIndex(int index) { if (routingIndexBuilder_ == null) { return routingIndex_.get(index); } else { return routingIndexBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public Builder addRoutingIndex(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex value) { if (routingIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRoutingIndexIsMutable(); routingIndex_.add(value); onChanged(); } else { routingIndexBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public Builder addAllRoutingIndex( java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex> values) { if (routingIndexBuilder_ == null) { ensureRoutingIndexIsMutable(); super.addAll(values, routingIndex_); onChanged(); } else { routingIndexBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public Builder clearRoutingIndex() { if (routingIndexBuilder_ == null) { routingIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { routingIndexBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public Builder removeRoutingIndex(int index) { if (routingIndexBuilder_ == null) { ensureRoutingIndexIsMutable(); routingIndex_.remove(index); onChanged(); } else { routingIndexBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder getRoutingIndexBuilder( int index) { return getRoutingIndexFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder getRoutingIndexOrBuilder( int index) { if (routingIndexBuilder_ == null) { return routingIndex_.get(index); } else { return routingIndexBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder> getRoutingIndexOrBuilderList() { if (routingIndexBuilder_ != null) { return routingIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(routingIndex_); } } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder addRoutingIndexBuilder() { return getRoutingIndexFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder addRoutingIndexBuilder( int index) { return getRoutingIndexFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;
*
* * encoded as fixed32 length delimited **/ public java.util.List
required uint32 versionConfirm = 32;
*
* * last field should version again (to check consistency) **/ public boolean hasVersionConfirm() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
required uint32 versionConfirm = 32;
*
* * last field should version again (to check consistency) **/ public int getVersionConfirm() { return versionConfirm_; } /** *
required uint32 versionConfirm = 32;
*
* * last field should version again (to check consistency) **/ public Builder setVersionConfirm(int value) { bitField0_ |= 0x00000080; versionConfirm_ = value; onChanged(); return this; } /** *
required uint32 versionConfirm = 32;
*
* * last field should version again (to check consistency) **/ public Builder clearVersionConfirm() { bitField0_ = (bitField0_ & ~0x00000080); versionConfirm_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndStructure) } static { defaultInstance = new OsmAndStructure(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndStructure) } public interface OsmAndTileBoxOrBuilder extends com.google.protobuf.MessageOrBuilder { // required uint32 left = 1; /** *
required uint32 left = 1;
*
* * everything is encoded as 31 tile zoom **/ boolean hasLeft(); /** *
required uint32 left = 1;
*
* * everything is encoded as 31 tile zoom **/ int getLeft(); // required uint32 right = 2; /** *
required uint32 right = 2;
*/
boolean hasRight();
/**
* required uint32 right = 2;
*/
int getRight();
// required uint32 top = 3;
/**
* required uint32 top = 3;
*/
boolean hasTop();
/**
* required uint32 top = 3;
*/
int getTop();
// required uint32 bottom = 4;
/**
* required uint32 bottom = 4;
*/
boolean hasBottom();
/**
* required uint32 bottom = 4;
*/
int getBottom();
}
/**
* Protobuf type {@code OsmAnd.OBF.OsmAndTileBox}
*/
public static final class OsmAndTileBox extends
com.google.protobuf.GeneratedMessage
implements OsmAndTileBoxOrBuilder {
// Use OsmAndTileBox.newBuilder() to construct.
private OsmAndTileBox(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private OsmAndTileBox(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final OsmAndTileBox defaultInstance;
public static OsmAndTileBox getDefaultInstance() {
return defaultInstance;
}
public OsmAndTileBox getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OsmAndTileBox(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
left_ = input.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
right_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
top_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
bottom_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTileBox_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTileBox_fieldAccessorTable
.ensureFieldAccessorsInitialized(
net.osmand.binary.OsmandOdb.OsmAndTileBox.class, net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder.class);
}
public static com.google.protobuf.Parserrequired uint32 left = 1;
*
* * everything is encoded as 31 tile zoom **/ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
required uint32 left = 1;
*
* * everything is encoded as 31 tile zoom **/ public int getLeft() { return left_; } // required uint32 right = 2; public static final int RIGHT_FIELD_NUMBER = 2; private int right_; /** *
required uint32 right = 2;
*/
public boolean hasRight() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 right = 2;
*/
public int getRight() {
return right_;
}
// required uint32 top = 3;
public static final int TOP_FIELD_NUMBER = 3;
private int top_;
/**
* required uint32 top = 3;
*/
public boolean hasTop() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint32 top = 3;
*/
public int getTop() {
return top_;
}
// required uint32 bottom = 4;
public static final int BOTTOM_FIELD_NUMBER = 4;
private int bottom_;
/**
* required uint32 bottom = 4;
*/
public boolean hasBottom() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required uint32 bottom = 4;
*/
public int getBottom() {
return bottom_;
}
private void initFields() {
left_ = 0;
right_ = 0;
top_ = 0;
bottom_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
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 (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, left_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, right_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, top_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt32(4, bottom_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, left_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, right_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, top_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.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 {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.OsmAndTileBox parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndTileBox parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.OsmAndTileBox parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndTileBox parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndTileBox parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndTileBox parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndTileBox parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndTileBox parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndTileBox parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndTileBox prototype) {
return newBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code OsmAnd.OBF.OsmAndTileBox}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrequired uint32 left = 1;
*
* * everything is encoded as 31 tile zoom **/ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
required uint32 left = 1;
*
* * everything is encoded as 31 tile zoom **/ public int getLeft() { return left_; } /** *
required uint32 left = 1;
*
* * everything is encoded as 31 tile zoom **/ public Builder setLeft(int value) { bitField0_ |= 0x00000001; left_ = value; onChanged(); return this; } /** *
required uint32 left = 1;
*
* * everything is encoded as 31 tile zoom **/ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000001); left_ = 0; onChanged(); return this; } // required uint32 right = 2; private int right_ ; /** *
required uint32 right = 2;
*/
public boolean hasRight() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required uint32 right = 2;
*/
public int getRight() {
return right_;
}
/**
* required uint32 right = 2;
*/
public Builder setRight(int value) {
bitField0_ |= 0x00000002;
right_ = value;
onChanged();
return this;
}
/**
* required uint32 right = 2;
*/
public Builder clearRight() {
bitField0_ = (bitField0_ & ~0x00000002);
right_ = 0;
onChanged();
return this;
}
// required uint32 top = 3;
private int top_ ;
/**
* required uint32 top = 3;
*/
public boolean hasTop() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required uint32 top = 3;
*/
public int getTop() {
return top_;
}
/**
* required uint32 top = 3;
*/
public Builder setTop(int value) {
bitField0_ |= 0x00000004;
top_ = value;
onChanged();
return this;
}
/**
* required uint32 top = 3;
*/
public Builder clearTop() {
bitField0_ = (bitField0_ & ~0x00000004);
top_ = 0;
onChanged();
return this;
}
// required uint32 bottom = 4;
private int bottom_ ;
/**
* required uint32 bottom = 4;
*/
public boolean hasBottom() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required uint32 bottom = 4;
*/
public int getBottom() {
return bottom_;
}
/**
* required uint32 bottom = 4;
*/
public Builder setBottom(int value) {
bitField0_ |= 0x00000008;
bottom_ = value;
onChanged();
return this;
}
/**
* required uint32 bottom = 4;
*/
public Builder clearBottom() {
bitField0_ = (bitField0_ & ~0x00000008);
bottom_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndTileBox)
}
static {
defaultInstance = new OsmAndTileBox(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndTileBox)
}
public interface StringTableOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated string s = 1;
/**
* repeated string s = 1;
*/
java.util.Listrepeated string s = 1;
*/
int getSCount();
/**
* repeated string s = 1;
*/
java.lang.String getS(int index);
/**
* repeated string s = 1;
*/
com.google.protobuf.ByteString
getSBytes(int index);
}
/**
* Protobuf type {@code OsmAnd.OBF.StringTable}
*
* * String table, contains the common strings in each block. **/ public static final class StringTable extends com.google.protobuf.GeneratedMessage implements StringTableOrBuilder { // Use StringTable.newBuilder() to construct. private StringTable(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private StringTable(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final StringTable defaultInstance; public static StringTable getDefaultInstance() { return defaultInstance; } public StringTable getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StringTable( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { s_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } s_.add(input.readBytes()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { s_ = new com.google.protobuf.UnmodifiableLazyStringList(s_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StringTable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StringTable_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.StringTable.class, net.osmand.binary.OsmandOdb.StringTable.Builder.class); } public static com.google.protobuf.Parser
repeated string s = 1;
*/
public java.util.Listrepeated string s = 1;
*/
public int getSCount() {
return s_.size();
}
/**
* repeated string s = 1;
*/
public java.lang.String getS(int index) {
return s_.get(index);
}
/**
* repeated string s = 1;
*/
public com.google.protobuf.ByteString
getSBytes(int index) {
return s_.getByteString(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 (int i = 0; i < s_.size(); i++) {
output.writeBytes(1, s_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < s_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(s_.getByteString(i));
}
size += dataSize;
size += 1 * getSList().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.StringTable parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.StringTable parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.StringTable parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.StringTable parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.StringTable parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.StringTable parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.StringTable parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static net.osmand.binary.OsmandOdb.StringTable parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.StringTable parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.StringTable parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(net.osmand.binary.OsmandOdb.StringTable prototype) {
return newBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code OsmAnd.OBF.StringTable}
*
* * String table, contains the common strings in each block. **/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
repeated string s = 1;
*/
public java.util.Listrepeated string s = 1;
*/
public int getSCount() {
return s_.size();
}
/**
* repeated string s = 1;
*/
public java.lang.String getS(int index) {
return s_.get(index);
}
/**
* repeated string s = 1;
*/
public com.google.protobuf.ByteString
getSBytes(int index) {
return s_.getByteString(index);
}
/**
* repeated string s = 1;
*/
public Builder setS(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSIsMutable();
s_.set(index, value);
onChanged();
return this;
}
/**
* repeated string s = 1;
*/
public Builder addS(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSIsMutable();
s_.add(value);
onChanged();
return this;
}
/**
* repeated string s = 1;
*/
public Builder addAllS(
java.lang.Iterablerepeated string s = 1;
*/
public Builder clearS() {
s_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string s = 1;
*/
public Builder addSBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSIsMutable();
s_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:OsmAnd.OBF.StringTable)
}
static {
defaultInstance = new StringTable(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:OsmAnd.OBF.StringTable)
}
public interface IndexedStringTableOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string prefix = 1;
/**
* optional string prefix = 1;
*
* * common prefix for all strings inside **/ boolean hasPrefix(); /** *
optional string prefix = 1;
*
* * common prefix for all strings inside **/ java.lang.String getPrefix(); /** *
optional string prefix = 1;
*
* * common prefix for all strings inside **/ com.google.protobuf.ByteString getPrefixBytes(); // repeated string key = 3; /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ java.util.List
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ int getKeyCount(); /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ java.lang.String getKey(int index); /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ com.google.protobuf.ByteString getKeyBytes(int index); // repeated fixed32 val = 4; /** *
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ java.util.List
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ int getValCount(); /** *
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ int getVal(int index); // repeated .OsmAnd.OBF.IndexedStringTable subtables = 5; /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ java.util.List
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ net.osmand.binary.OsmandOdb.IndexedStringTable getSubtables(int index); /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ int getSubtablesCount(); /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ java.util.List extends net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> getSubtablesOrBuilderList(); /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getSubtablesOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.IndexedStringTable} */ public static final class IndexedStringTable extends com.google.protobuf.GeneratedMessage implements IndexedStringTableOrBuilder { // Use IndexedStringTable.newBuilder() to construct. private IndexedStringTable(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private IndexedStringTable(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final IndexedStringTable defaultInstance; public static IndexedStringTable getDefaultInstance() { return defaultInstance; } public IndexedStringTable getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IndexedStringTable( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; prefix_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { key_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } key_.add(input.readBytes()); break; } case 37: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { val_ = new java.util.ArrayList
optional string prefix = 1;
*
* * common prefix for all strings inside **/ public boolean hasPrefix() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
optional string prefix = 1;
*
* * common prefix for all strings inside **/ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { prefix_ = s; } return s; } } /** *
optional string prefix = 1;
*
* * common prefix for all strings inside **/ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.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 com.google.protobuf.LazyStringList key_; /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public java.util.List
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public int getKeyCount() { return key_.size(); } /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public java.lang.String getKey(int index) { return key_.get(index); } /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public com.google.protobuf.ByteString getKeyBytes(int index) { return key_.getByteString(index); } // repeated fixed32 val = 4; public static final int VAL_FIELD_NUMBER = 4; private java.util.List
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ public java.util.List
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ public int getValCount() { return val_.size(); } /** *
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ 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
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public java.util.List
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public java.util.List extends net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> getSubtablesOrBuilderList() { return subtables_; } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public int getSubtablesCount() { return subtables_.size(); } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public net.osmand.binary.OsmandOdb.IndexedStringTable getSubtables(int index) { return subtables_.get(index); } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ 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 (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getPrefixBytes()); } for (int i = 0; i < key_.size(); i++) { output.writeBytes(3, key_.getByteString(i)); } for (int i = 0; i < val_.size(); i++) { output.writeFixed32(4, val_.get(i)); } for (int i = 0; i < subtables_.size(); i++) { output.writeMessage(5, subtables_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getPrefixBytes()); } { int dataSize = 0; for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(key_.getByteString(i)); } size += dataSize; size += 1 * getKeyList().size(); } { int dataSize = 0; dataSize = 4 * getValList().size(); size += dataSize; size += 1 * getValList().size(); } for (int i = 0; i < subtables_.size(); i++) { size += com.google.protobuf.CodedOutputStream .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 { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.IndexedStringTable parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.IndexedStringTable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.IndexedStringTable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.IndexedStringTable parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.IndexedStringTable parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.IndexedStringTable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.IndexedStringTable parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.IndexedStringTable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.IndexedStringTable parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(net.osmand.binary.OsmandOdb.IndexedStringTable prototype) { return newBuilder().mergeFrom(prototype); } 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; } /** * Protobuf type {@code OsmAnd.OBF.IndexedStringTable} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
optional string prefix = 1;
*
* * common prefix for all strings inside **/ public boolean hasPrefix() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
optional string prefix = 1;
*
* * common prefix for all strings inside **/ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); prefix_ = s; return s; } else { return (java.lang.String) ref; } } /** *
optional string prefix = 1;
*
* * common prefix for all strings inside **/ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
optional string prefix = 1;
*
* * common prefix for all strings inside **/ public Builder setPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; prefix_ = value; onChanged(); return this; } /** *
optional string prefix = 1;
*
* * common prefix for all strings inside **/ public Builder clearPrefix() { bitField0_ = (bitField0_ & ~0x00000001); prefix_ = getDefaultInstance().getPrefix(); onChanged(); return this; } /** *
optional string prefix = 1;
*
* * common prefix for all strings inside **/ public Builder setPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; prefix_ = value; onChanged(); return this; } // repeated string key = 3; 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; } } /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public java.util.List
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public int getKeyCount() { return key_.size(); } /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public java.lang.String getKey(int index) { return key_.get(index); } /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public com.google.protobuf.ByteString getKeyBytes(int index) { return key_.getByteString(index); } /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public Builder setKey( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public Builder addKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public Builder addAllKey( java.lang.Iterable
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public Builder clearKey() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
repeated string key = 3;
*
* * key, val and subtables are mixed and order is preserved by key (ascending) * so that's example of data : key1,val1,subtables1,key2,val2,key3,val3,subtables3,subtables3 **/ public Builder addKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } // repeated fixed32 val = 4; private java.util.List
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ public java.util.List
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ public int getValCount() { return val_.size(); } /** *
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ public int getVal(int index) { return val_.get(index); } /** *
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ public Builder setVal( int index, int value) { ensureValIsMutable(); val_.set(index, value); onChanged(); return this; } /** *
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ public Builder addVal(int value) { ensureValIsMutable(); val_.add(value); onChanged(); return this; } /** *
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ public Builder addAllVal( java.lang.Iterable extends java.lang.Integer> values) { ensureValIsMutable(); super.addAll(values, val_); onChanged(); return this; } /** *
repeated fixed32 val = 4;
*
* * the shift to the data or one uint data itself **/ public Builder clearVal() { val_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // repeated .OsmAnd.OBF.IndexedStringTable subtables = 5; private java.util.List
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public java.util.List
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public int getSubtablesCount() { if (subtablesBuilder_ == null) { return subtables_.size(); } else { return subtablesBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public net.osmand.binary.OsmandOdb.IndexedStringTable getSubtables(int index) { if (subtablesBuilder_ == null) { return subtables_.get(index); } else { return subtablesBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ 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; } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public Builder addSubtables(net.osmand.binary.OsmandOdb.IndexedStringTable value) { if (subtablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubtablesIsMutable(); subtables_.add(value); onChanged(); } else { subtablesBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ 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; } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ 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; } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public Builder addAllSubtables( java.lang.Iterable extends net.osmand.binary.OsmandOdb.IndexedStringTable> values) { if (subtablesBuilder_ == null) { ensureSubtablesIsMutable(); super.addAll(values, subtables_); onChanged(); } else { subtablesBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public Builder clearSubtables() { if (subtablesBuilder_ == null) { subtables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { subtablesBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public Builder removeSubtables(int index) { if (subtablesBuilder_ == null) { ensureSubtablesIsMutable(); subtables_.remove(index); onChanged(); } else { subtablesBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder getSubtablesBuilder( int index) { return getSubtablesFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getSubtablesOrBuilder( int index) { if (subtablesBuilder_ == null) { return subtables_.get(index); } else { return subtablesBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public java.util.List extends net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> getSubtablesOrBuilderList() { if (subtablesBuilder_ != null) { return subtablesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subtables_); } } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder addSubtablesBuilder() { return getSubtablesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder addSubtablesBuilder( int index) { return getSubtablesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;
*
* * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header **/ public java.util.List
required string name = 2;
*/
boolean hasName();
/**
* required string name = 2;
*/
java.lang.String getName();
/**
* required string name = 2;
*/
com.google.protobuf.ByteString
getNameBytes();
// repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule getRules(int index);
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
int getRulesCount();
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder>
getRulesOrBuilderList();
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder getRulesOrBuilder(
int index);
// repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ java.util.List
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel getLevels(int index); /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ int getLevelsCount(); /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder> getLevelsOrBuilderList(); /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder getLevelsOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndMapIndex} * *
*///////////////////// * // Map messages //// * ///////////////////// **/ public static final class OsmAndMapIndex extends com.google.protobuf.GeneratedMessage implements OsmAndMapIndexOrBuilder { // Use OsmAndMapIndex.newBuilder() to construct. private OsmAndMapIndex(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndMapIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndMapIndex defaultInstance; public static OsmAndMapIndex getDefaultInstance() { return defaultInstance; } public OsmAndMapIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndMapIndex( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 18: { bitField0_ |= 0x00000001; name_ = input.readBytes(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { rules_ = new java.util.ArrayList
required string tag = 3;
*/
boolean hasTag();
/**
* required string tag = 3;
*/
java.lang.String getTag();
/**
* required string tag = 3;
*/
com.google.protobuf.ByteString
getTagBytes();
// optional string value = 5;
/**
* optional string value = 5;
*/
boolean hasValue();
/**
* optional string value = 5;
*/
java.lang.String getValue();
/**
* optional string value = 5;
*/
com.google.protobuf.ByteString
getValueBytes();
// optional uint32 id = 7;
/**
* optional uint32 id = 7;
*
* * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) **/ boolean hasId(); /** *
optional uint32 id = 7;
*
* * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) **/ int getId(); // optional uint32 minZoom = 9; /** *
optional uint32 minZoom = 9;
*
* * min zoom combination exists **/ boolean hasMinZoom(); /** *
optional uint32 minZoom = 9;
*
* * min zoom combination exists **/ int getMinZoom(); // optional uint32 type = 10; /** *
optional uint32 type = 10;
*
* * "additional" flag is encoded as %2 == 1 **/ boolean hasType(); /** *
optional uint32 type = 10;
*
* * "additional" flag is encoded as %2 == 1 **/ int getType(); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule} */ public static final class MapEncodingRule extends com.google.protobuf.GeneratedMessage implements MapEncodingRuleOrBuilder { // Use MapEncodingRule.newBuilder() to construct. private MapEncodingRule(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private MapEncodingRule(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MapEncodingRule defaultInstance; public static MapEncodingRule getDefaultInstance() { return defaultInstance; } public MapEncodingRule getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MapEncodingRule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 26: { bitField0_ |= 0x00000001; tag_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000002; value_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000004; id_ = input.readUInt32(); break; } case 72: { bitField0_ |= 0x00000008; minZoom_ = input.readUInt32(); break; } case 80: { bitField0_ |= 0x00000010; type_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.class, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder.class); } public static com.google.protobuf.Parser
required string tag = 3;
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string tag = 3;
*/
public java.lang.String getTag() {
java.lang.Object ref = tag_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
tag_ = s;
}
return s;
}
}
/**
* required string tag = 3;
*/
public com.google.protobuf.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.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 java.lang.Object value_;
/**
* optional string value = 5;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 5;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 5;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.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 int id_;
/**
* optional uint32 id = 7;
*
* * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) **/ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
optional uint32 id = 7;
*
* * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) **/ public int getId() { return id_; } // optional uint32 minZoom = 9; public static final int MINZOOM_FIELD_NUMBER = 9; private int minZoom_; /** *
optional uint32 minZoom = 9;
*
* * min zoom combination exists **/ public boolean hasMinZoom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
optional uint32 minZoom = 9;
*
* * min zoom combination exists **/ public int getMinZoom() { return minZoom_; } // optional uint32 type = 10; public static final int TYPE_FIELD_NUMBER = 10; private int type_; /** *
optional uint32 type = 10;
*
* * "additional" flag is encoded as %2 == 1 **/ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
optional uint32 type = 10;
*
* * "additional" flag is encoded as %2 == 1 **/ public int getType() { return type_; } private void initFields() { tag_ = ""; value_ = ""; id_ = 0; minZoom_ = 0; type_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { 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 (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(3, getTagBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(5, getValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(7, id_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(9, minZoom_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(10, type_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getTagBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, id_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, minZoom_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .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 { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule prototype) { return newBuilder().mergeFrom(prototype); } 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; } /** * Protobuf type {@code OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
required string tag = 3;
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string tag = 3;
*/
public java.lang.String getTag() {
java.lang.Object ref = tag_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
tag_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string tag = 3;
*/
public com.google.protobuf.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string tag = 3;
*/
public Builder setTag(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tag_ = value;
onChanged();
return this;
}
/**
* required string tag = 3;
*/
public Builder clearTag() {
bitField0_ = (bitField0_ & ~0x00000001);
tag_ = getDefaultInstance().getTag();
onChanged();
return this;
}
/**
* required string tag = 3;
*/
public Builder setTagBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tag_ = value;
onChanged();
return this;
}
// optional string value = 5;
private java.lang.Object value_ = "";
/**
* optional string value = 5;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 5;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 5;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 5;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 5;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 5;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
// optional uint32 id = 7;
private int id_ ;
/**
* optional uint32 id = 7;
*
* * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) **/ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
optional uint32 id = 7;
*
* * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) **/ public int getId() { return id_; } /** *
optional uint32 id = 7;
*
* * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) **/ public Builder setId(int value) { bitField0_ |= 0x00000004; id_ = value; onChanged(); return this; } /** *
optional uint32 id = 7;
*
* * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) **/ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000004); id_ = 0; onChanged(); return this; } // optional uint32 minZoom = 9; private int minZoom_ ; /** *
optional uint32 minZoom = 9;
*
* * min zoom combination exists **/ public boolean hasMinZoom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
optional uint32 minZoom = 9;
*
* * min zoom combination exists **/ public int getMinZoom() { return minZoom_; } /** *
optional uint32 minZoom = 9;
*
* * min zoom combination exists **/ public Builder setMinZoom(int value) { bitField0_ |= 0x00000008; minZoom_ = value; onChanged(); return this; } /** *
optional uint32 minZoom = 9;
*
* * min zoom combination exists **/ public Builder clearMinZoom() { bitField0_ = (bitField0_ & ~0x00000008); minZoom_ = 0; onChanged(); return this; } // optional uint32 type = 10; private int type_ ; /** *
optional uint32 type = 10;
*
* * "additional" flag is encoded as %2 == 1 **/ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
optional uint32 type = 10;
*
* * "additional" flag is encoded as %2 == 1 **/ public int getType() { return type_; } /** *
optional uint32 type = 10;
*
* * "additional" flag is encoded as %2 == 1 **/ public Builder setType(int value) { bitField0_ |= 0x00000010; type_ = value; onChanged(); return this; } /** *
optional uint32 type = 10;
*
* * "additional" flag is encoded as %2 == 1 **/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000010); type_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule) } static { defaultInstance = new MapEncodingRule(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule) } public interface MapRootLevelOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 maxZoom = 1; /** *
required int32 maxZoom = 1;
*/
boolean hasMaxZoom();
/**
* required int32 maxZoom = 1;
*/
int getMaxZoom();
// required int32 minZoom = 2;
/**
* required int32 minZoom = 2;
*/
boolean hasMinZoom();
/**
* required int32 minZoom = 2;
*/
int getMinZoom();
// required int32 left = 3;
/**
* required int32 left = 3;
*/
boolean hasLeft();
/**
* required int32 left = 3;
*/
int getLeft();
// required int32 right = 4;
/**
* required int32 right = 4;
*/
boolean hasRight();
/**
* required int32 right = 4;
*/
int getRight();
// required int32 top = 5;
/**
* required int32 top = 5;
*/
boolean hasTop();
/**
* required int32 top = 5;
*/
int getTop();
// required int32 bottom = 6;
/**
* required int32 bottom = 6;
*/
boolean hasBottom();
/**
* required int32 bottom = 6;
*/
int getBottom();
// repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index);
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
int getBoxesCount();
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder>
getBoxesOrBuilderList();
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder(
int index);
// repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
java.util.Listrepeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
net.osmand.binary.OsmandOdb.MapDataBlock getBlocks(int index);
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
int getBlocksCount();
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
java.util.List extends net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder>
getBlocksOrBuilderList();
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder getBlocksOrBuilder(
int index);
}
/**
* Protobuf type {@code OsmAnd.OBF.OsmAndMapIndex.MapRootLevel}
*/
public static final class MapRootLevel extends
com.google.protobuf.GeneratedMessage
implements MapRootLevelOrBuilder {
// Use MapRootLevel.newBuilder() to construct.
private MapRootLevel(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private MapRootLevel(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final MapRootLevel defaultInstance;
public static MapRootLevel getDefaultInstance() {
return defaultInstance;
}
public MapRootLevel getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MapRootLevel(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
maxZoom_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
minZoom_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
left_ = input.readInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
right_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
top_ = input.readInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
bottom_ = input.readInt32();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
boxes_ = new java.util.ArrayListrequired int32 maxZoom = 1;
*/
public boolean hasMaxZoom() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 maxZoom = 1;
*/
public int getMaxZoom() {
return maxZoom_;
}
// required int32 minZoom = 2;
public static final int MINZOOM_FIELD_NUMBER = 2;
private int minZoom_;
/**
* required int32 minZoom = 2;
*/
public boolean hasMinZoom() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 minZoom = 2;
*/
public int getMinZoom() {
return minZoom_;
}
// required int32 left = 3;
public static final int LEFT_FIELD_NUMBER = 3;
private int left_;
/**
* required int32 left = 3;
*/
public boolean hasLeft() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 left = 3;
*/
public int getLeft() {
return left_;
}
// required int32 right = 4;
public static final int RIGHT_FIELD_NUMBER = 4;
private int right_;
/**
* required int32 right = 4;
*/
public boolean hasRight() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int32 right = 4;
*/
public int getRight() {
return right_;
}
// required int32 top = 5;
public static final int TOP_FIELD_NUMBER = 5;
private int top_;
/**
* required int32 top = 5;
*/
public boolean hasTop() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required int32 top = 5;
*/
public int getTop() {
return top_;
}
// required int32 bottom = 6;
public static final int BOTTOM_FIELD_NUMBER = 6;
private int bottom_;
/**
* required int32 bottom = 6;
*/
public boolean hasBottom() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* required int32 bottom = 6;
*/
public int getBottom() {
return bottom_;
}
// repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
public static final int BOXES_FIELD_NUMBER = 7;
private java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder>
getBoxesOrBuilderList() {
return boxes_;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public int getBoxesCount() {
return boxes_.size();
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) {
return boxes_.get(index);
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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.Listrepeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public java.util.Listrepeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder>
getBlocksOrBuilderList() {
return blocks_;
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public int getBlocksCount() {
return blocks_.size();
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public net.osmand.binary.OsmandOdb.MapDataBlock getBlocks(int index) {
return blocks_.get(index);
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
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() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasMaxZoom()) {
memoizedIsInitialized = 0;
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 (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, maxZoom_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, minZoom_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, left_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, right_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, top_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, bottom_);
}
for (int i = 0; i < boxes_.size(); i++) {
output.writeMessage(7, boxes_.get(i));
}
for (int i = 0; i < blocks_.size(); i++) {
output.writeMessage(15, blocks_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, maxZoom_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, minZoom_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, left_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, right_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, top_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, bottom_);
}
for (int i = 0; i < boxes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, boxes_.get(i));
}
for (int i = 0; i < blocks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.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 {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel prototype) {
return newBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code OsmAnd.OBF.OsmAndMapIndex.MapRootLevel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrequired int32 maxZoom = 1;
*/
public boolean hasMaxZoom() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 maxZoom = 1;
*/
public int getMaxZoom() {
return maxZoom_;
}
/**
* required int32 maxZoom = 1;
*/
public Builder setMaxZoom(int value) {
bitField0_ |= 0x00000001;
maxZoom_ = value;
onChanged();
return this;
}
/**
* required int32 maxZoom = 1;
*/
public Builder clearMaxZoom() {
bitField0_ = (bitField0_ & ~0x00000001);
maxZoom_ = 0;
onChanged();
return this;
}
// required int32 minZoom = 2;
private int minZoom_ ;
/**
* required int32 minZoom = 2;
*/
public boolean hasMinZoom() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 minZoom = 2;
*/
public int getMinZoom() {
return minZoom_;
}
/**
* required int32 minZoom = 2;
*/
public Builder setMinZoom(int value) {
bitField0_ |= 0x00000002;
minZoom_ = value;
onChanged();
return this;
}
/**
* required int32 minZoom = 2;
*/
public Builder clearMinZoom() {
bitField0_ = (bitField0_ & ~0x00000002);
minZoom_ = 0;
onChanged();
return this;
}
// required int32 left = 3;
private int left_ ;
/**
* required int32 left = 3;
*/
public boolean hasLeft() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 left = 3;
*/
public int getLeft() {
return left_;
}
/**
* required int32 left = 3;
*/
public Builder setLeft(int value) {
bitField0_ |= 0x00000004;
left_ = value;
onChanged();
return this;
}
/**
* required int32 left = 3;
*/
public Builder clearLeft() {
bitField0_ = (bitField0_ & ~0x00000004);
left_ = 0;
onChanged();
return this;
}
// required int32 right = 4;
private int right_ ;
/**
* required int32 right = 4;
*/
public boolean hasRight() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int32 right = 4;
*/
public int getRight() {
return right_;
}
/**
* required int32 right = 4;
*/
public Builder setRight(int value) {
bitField0_ |= 0x00000008;
right_ = value;
onChanged();
return this;
}
/**
* required int32 right = 4;
*/
public Builder clearRight() {
bitField0_ = (bitField0_ & ~0x00000008);
right_ = 0;
onChanged();
return this;
}
// required int32 top = 5;
private int top_ ;
/**
* required int32 top = 5;
*/
public boolean hasTop() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required int32 top = 5;
*/
public int getTop() {
return top_;
}
/**
* required int32 top = 5;
*/
public Builder setTop(int value) {
bitField0_ |= 0x00000010;
top_ = value;
onChanged();
return this;
}
/**
* required int32 top = 5;
*/
public Builder clearTop() {
bitField0_ = (bitField0_ & ~0x00000010);
top_ = 0;
onChanged();
return this;
}
// required int32 bottom = 6;
private int bottom_ ;
/**
* required int32 bottom = 6;
*/
public boolean hasBottom() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* required int32 bottom = 6;
*/
public int getBottom() {
return bottom_;
}
/**
* required int32 bottom = 6;
*/
public Builder setBottom(int value) {
bitField0_ |= 0x00000020;
bottom_ = value;
onChanged();
return this;
}
/**
* required int32 bottom = 6;
*/
public Builder clearBottom() {
bitField0_ = (bitField0_ & ~0x00000020);
bottom_ = 0;
onChanged();
return this;
}
// repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
private java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public int getBoxesCount() {
if (boxesBuilder_ == null) {
return boxes_.size();
} else {
return boxesBuilder_.getCount();
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) {
if (boxesBuilder_ == null) {
return boxes_.get(index);
} else {
return boxesBuilder_.getMessage(index);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox value) {
if (boxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBoxesIsMutable();
boxes_.add(value);
onChanged();
} else {
boxesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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());
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public Builder addAllBoxes(
java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> values) {
if (boxesBuilder_ == null) {
ensureBoxesIsMutable();
super.addAll(values, boxes_);
onChanged();
} else {
boxesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public Builder clearBoxes() {
if (boxesBuilder_ == null) {
boxes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
boxesBuilder_.clear();
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public Builder removeBoxes(int index) {
if (boxesBuilder_ == null) {
ensureBoxesIsMutable();
boxes_.remove(index);
onChanged();
} else {
boxesBuilder_.remove(index);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder getBoxesBuilder(
int index) {
return getBoxesFieldBuilder().getBuilder(index);
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder(
int index) {
if (boxesBuilder_ == null) {
return boxes_.get(index); } else {
return boxesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder>
getBoxesOrBuilderList() {
if (boxesBuilder_ != null) {
return boxesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(boxes_);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder() {
return getBoxesFieldBuilder().addBuilder(
net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder(
int index) {
return getBoxesFieldBuilder().addBuilder(
index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public java.util.Listrepeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public java.util.Listrepeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public int getBlocksCount() {
if (blocksBuilder_ == null) {
return blocks_.size();
} else {
return blocksBuilder_.getCount();
}
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public net.osmand.binary.OsmandOdb.MapDataBlock getBlocks(int index) {
if (blocksBuilder_ == null) {
return blocks_.get(index);
} else {
return blocksBuilder_.getMessage(index);
}
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
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);
}
return this;
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
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;
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public Builder addBlocks(net.osmand.binary.OsmandOdb.MapDataBlock value) {
if (blocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlocksIsMutable();
blocks_.add(value);
onChanged();
} else {
blocksBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
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;
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
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;
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
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());
}
return this;
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public Builder addAllBlocks(
java.lang.Iterable extends net.osmand.binary.OsmandOdb.MapDataBlock> values) {
if (blocksBuilder_ == null) {
ensureBlocksIsMutable();
super.addAll(values, blocks_);
onChanged();
} else {
blocksBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public Builder clearBlocks() {
if (blocksBuilder_ == null) {
blocks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
blocksBuilder_.clear();
}
return this;
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public Builder removeBlocks(int index) {
if (blocksBuilder_ == null) {
ensureBlocksIsMutable();
blocks_.remove(index);
onChanged();
} else {
blocksBuilder_.remove(index);
}
return this;
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public net.osmand.binary.OsmandOdb.MapDataBlock.Builder getBlocksBuilder(
int index) {
return getBlocksFieldBuilder().getBuilder(index);
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder getBlocksOrBuilder(
int index) {
if (blocksBuilder_ == null) {
return blocks_.get(index); } else {
return blocksBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder>
getBlocksOrBuilderList() {
if (blocksBuilder_ != null) {
return blocksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(blocks_);
}
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public net.osmand.binary.OsmandOdb.MapDataBlock.Builder addBlocksBuilder() {
return getBlocksFieldBuilder().addBuilder(
net.osmand.binary.OsmandOdb.MapDataBlock.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public net.osmand.binary.OsmandOdb.MapDataBlock.Builder addBlocksBuilder(
int index) {
return getBlocksFieldBuilder().addBuilder(
index, net.osmand.binary.OsmandOdb.MapDataBlock.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.MapDataBlock blocks = 15;
*/
public java.util.Listrequired sint32 left = 1;
*
* * delta encoded **/ boolean hasLeft(); /** *
required sint32 left = 1;
*
* * delta encoded **/ int getLeft(); // required sint32 right = 2; /** *
required sint32 right = 2;
*
* * delta encoded **/ boolean hasRight(); /** *
required sint32 right = 2;
*
* * delta encoded **/ int getRight(); // required sint32 top = 3; /** *
required sint32 top = 3;
*
* * delta encoded **/ boolean hasTop(); /** *
required sint32 top = 3;
*
* * delta encoded **/ int getTop(); // required sint32 bottom = 4; /** *
required sint32 bottom = 4;
*
* * delta encoded **/ boolean hasBottom(); /** *
required sint32 bottom = 4;
*
* * delta encoded **/ int getBottom(); // optional fixed32 shiftToMapData = 5; /** *
optional fixed32 shiftToMapData = 5;
*
* *shift from mapdatabox start to message MapDataBlock **/ boolean hasShiftToMapData(); /** *
optional fixed32 shiftToMapData = 5;
*
* *shift from mapdatabox start to message MapDataBlock **/ int getShiftToMapData(); // optional bool ocean = 6; /** *
optional bool ocean = 6;
*
* * true (byte = 1) - full ocean, false (byte = 0) - full land **/ boolean hasOcean(); /** *
optional bool ocean = 6;
*
* * true (byte = 1) - full ocean, false (byte = 0) - full land **/ boolean getOcean(); // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index);
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
int getBoxesCount();
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder>
getBoxesOrBuilderList();
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder(
int index);
}
/**
* Protobuf type {@code OsmAnd.OBF.OsmAndMapIndex.MapDataBox}
*/
public static final class MapDataBox extends
com.google.protobuf.GeneratedMessage
implements MapDataBoxOrBuilder {
// Use MapDataBox.newBuilder() to construct.
private MapDataBox(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private MapDataBox(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final MapDataBox defaultInstance;
public static MapDataBox getDefaultInstance() {
return defaultInstance;
}
public MapDataBox getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MapDataBox(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
left_ = input.readSInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
right_ = input.readSInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
top_ = input.readSInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
bottom_ = input.readSInt32();
break;
}
case 45: {
bitField0_ |= 0x00000010;
shiftToMapData_ = input.readFixed32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
ocean_ = input.readBool();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
boxes_ = new java.util.ArrayListrequired sint32 left = 1;
*
* * delta encoded **/ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
required sint32 left = 1;
*
* * delta encoded **/ public int getLeft() { return left_; } // required sint32 right = 2; public static final int RIGHT_FIELD_NUMBER = 2; private int right_; /** *
required sint32 right = 2;
*
* * delta encoded **/ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
required sint32 right = 2;
*
* * delta encoded **/ public int getRight() { return right_; } // required sint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; private int top_; /** *
required sint32 top = 3;
*
* * delta encoded **/ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
required sint32 top = 3;
*
* * delta encoded **/ public int getTop() { return top_; } // required sint32 bottom = 4; public static final int BOTTOM_FIELD_NUMBER = 4; private int bottom_; /** *
required sint32 bottom = 4;
*
* * delta encoded **/ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
required sint32 bottom = 4;
*
* * delta encoded **/ public int getBottom() { return bottom_; } // optional fixed32 shiftToMapData = 5; public static final int SHIFTTOMAPDATA_FIELD_NUMBER = 5; private int shiftToMapData_; /** *
optional fixed32 shiftToMapData = 5;
*
* *shift from mapdatabox start to message MapDataBlock **/ public boolean hasShiftToMapData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
optional fixed32 shiftToMapData = 5;
*
* *shift from mapdatabox start to message MapDataBlock **/ public int getShiftToMapData() { return shiftToMapData_; } // optional bool ocean = 6; public static final int OCEAN_FIELD_NUMBER = 6; private boolean ocean_; /** *
optional bool ocean = 6;
*
* * true (byte = 1) - full ocean, false (byte = 0) - full land **/ public boolean hasOcean() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
optional bool ocean = 6;
*
* * true (byte = 1) - full ocean, false (byte = 0) - full land **/ public boolean getOcean() { return ocean_; } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; public static final int BOXES_FIELD_NUMBER = 7; private java.util.List
repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder>
getBoxesOrBuilderList() {
return boxes_;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public int getBoxesCount() {
return boxes_.size();
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) {
return boxes_.get(index);
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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() {
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 (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeSInt32(1, left_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSInt32(2, right_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeSInt32(3, top_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeSInt32(4, bottom_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFixed32(5, shiftToMapData_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBool(6, ocean_);
}
for (int i = 0; i < boxes_.size(); i++) {
output.writeMessage(7, boxes_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(1, left_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(2, right_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(3, top_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(4, bottom_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(5, shiftToMapData_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, ocean_);
}
for (int i = 0; i < boxes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.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 {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox prototype) {
return newBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code OsmAnd.OBF.OsmAndMapIndex.MapDataBox}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrequired sint32 left = 1;
*
* * delta encoded **/ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
required sint32 left = 1;
*
* * delta encoded **/ public int getLeft() { return left_; } /** *
required sint32 left = 1;
*
* * delta encoded **/ public Builder setLeft(int value) { bitField0_ |= 0x00000001; left_ = value; onChanged(); return this; } /** *
required sint32 left = 1;
*
* * delta encoded **/ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000001); left_ = 0; onChanged(); return this; } // required sint32 right = 2; private int right_ ; /** *
required sint32 right = 2;
*
* * delta encoded **/ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
required sint32 right = 2;
*
* * delta encoded **/ public int getRight() { return right_; } /** *
required sint32 right = 2;
*
* * delta encoded **/ public Builder setRight(int value) { bitField0_ |= 0x00000002; right_ = value; onChanged(); return this; } /** *
required sint32 right = 2;
*
* * delta encoded **/ public Builder clearRight() { bitField0_ = (bitField0_ & ~0x00000002); right_ = 0; onChanged(); return this; } // required sint32 top = 3; private int top_ ; /** *
required sint32 top = 3;
*
* * delta encoded **/ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
required sint32 top = 3;
*
* * delta encoded **/ public int getTop() { return top_; } /** *
required sint32 top = 3;
*
* * delta encoded **/ public Builder setTop(int value) { bitField0_ |= 0x00000004; top_ = value; onChanged(); return this; } /** *
required sint32 top = 3;
*
* * delta encoded **/ public Builder clearTop() { bitField0_ = (bitField0_ & ~0x00000004); top_ = 0; onChanged(); return this; } // required sint32 bottom = 4; private int bottom_ ; /** *
required sint32 bottom = 4;
*
* * delta encoded **/ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
required sint32 bottom = 4;
*
* * delta encoded **/ public int getBottom() { return bottom_; } /** *
required sint32 bottom = 4;
*
* * delta encoded **/ public Builder setBottom(int value) { bitField0_ |= 0x00000008; bottom_ = value; onChanged(); return this; } /** *
required sint32 bottom = 4;
*
* * delta encoded **/ public Builder clearBottom() { bitField0_ = (bitField0_ & ~0x00000008); bottom_ = 0; onChanged(); return this; } // optional fixed32 shiftToMapData = 5; private int shiftToMapData_ ; /** *
optional fixed32 shiftToMapData = 5;
*
* *shift from mapdatabox start to message MapDataBlock **/ public boolean hasShiftToMapData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
optional fixed32 shiftToMapData = 5;
*
* *shift from mapdatabox start to message MapDataBlock **/ public int getShiftToMapData() { return shiftToMapData_; } /** *
optional fixed32 shiftToMapData = 5;
*
* *shift from mapdatabox start to message MapDataBlock **/ public Builder setShiftToMapData(int value) { bitField0_ |= 0x00000010; shiftToMapData_ = value; onChanged(); return this; } /** *
optional fixed32 shiftToMapData = 5;
*
* *shift from mapdatabox start to message MapDataBlock **/ public Builder clearShiftToMapData() { bitField0_ = (bitField0_ & ~0x00000010); shiftToMapData_ = 0; onChanged(); return this; } // optional bool ocean = 6; private boolean ocean_ ; /** *
optional bool ocean = 6;
*
* * true (byte = 1) - full ocean, false (byte = 0) - full land **/ public boolean hasOcean() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
optional bool ocean = 6;
*
* * true (byte = 1) - full ocean, false (byte = 0) - full land **/ public boolean getOcean() { return ocean_; } /** *
optional bool ocean = 6;
*
* * true (byte = 1) - full ocean, false (byte = 0) - full land **/ public Builder setOcean(boolean value) { bitField0_ |= 0x00000020; ocean_ = value; onChanged(); return this; } /** *
optional bool ocean = 6;
*
* * true (byte = 1) - full ocean, false (byte = 0) - full land **/ public Builder clearOcean() { bitField0_ = (bitField0_ & ~0x00000020); ocean_ = false; onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; private java.util.List
repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public int getBoxesCount() {
if (boxesBuilder_ == null) {
return boxes_.size();
} else {
return boxesBuilder_.getCount();
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) {
if (boxesBuilder_ == null) {
return boxes_.get(index);
} else {
return boxesBuilder_.getMessage(index);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox value) {
if (boxesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBoxesIsMutable();
boxes_.add(value);
onChanged();
} else {
boxesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
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());
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public Builder addAllBoxes(
java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> values) {
if (boxesBuilder_ == null) {
ensureBoxesIsMutable();
super.addAll(values, boxes_);
onChanged();
} else {
boxesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public Builder clearBoxes() {
if (boxesBuilder_ == null) {
boxes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
boxesBuilder_.clear();
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public Builder removeBoxes(int index) {
if (boxesBuilder_ == null) {
ensureBoxesIsMutable();
boxes_.remove(index);
onChanged();
} else {
boxesBuilder_.remove(index);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder getBoxesBuilder(
int index) {
return getBoxesFieldBuilder().getBuilder(index);
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder(
int index) {
if (boxesBuilder_ == null) {
return boxes_.get(index); } else {
return boxesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder>
getBoxesOrBuilderList() {
if (boxesBuilder_ != null) {
return boxesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(boxes_);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder() {
return getBoxesFieldBuilder().addBuilder(
net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder(
int index) {
return getBoxesFieldBuilder().addBuilder(
index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;
*/
public java.util.Listrequired string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* required string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.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.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder>
getRulesOrBuilderList() {
return rules_;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public int getRulesCount() {
return rules_.size();
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule getRules(int index) {
return rules_.get(index);
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
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.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder> getLevelsOrBuilderList() { return levels_; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public int getLevelsCount() { return levels_.size(); } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel getLevels(int index) { return levels_.get(index); } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ 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() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasName()) { memoizedIsInitialized = 0; 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 (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, getNameBytes()); } for (int i = 0; i < rules_.size(); i++) { output.writeMessage(4, rules_.get(i)); } for (int i = 0; i < levels_.size(); i++) { output.writeMessage(5, levels_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameBytes()); } for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, rules_.get(i)); } for (int i = 0; i < levels_.size(); i++) { size += com.google.protobuf.CodedOutputStream .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 { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndMapIndex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndMapIndex prototype) { return newBuilder().mergeFrom(prototype); } 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; } /** * Protobuf type {@code OsmAnd.OBF.OsmAndMapIndex} * *
*///////////////////// * // Map messages //// * ///////////////////// **/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
required string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string name = 2;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* required string name = 2;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 2;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
private java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public int getRulesCount() {
if (rulesBuilder_ == null) {
return rules_.size();
} else {
return rulesBuilder_.getCount();
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule getRules(int index) {
if (rulesBuilder_ == null) {
return rules_.get(index);
} else {
return rulesBuilder_.getMessage(index);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
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);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public Builder addRules(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.add(value);
onChanged();
} else {
rulesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
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());
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public Builder addAllRules(
java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule> values) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
super.addAll(values, rules_);
onChanged();
} else {
rulesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public Builder clearRules() {
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
rulesBuilder_.clear();
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public Builder removeRules(int index) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.remove(index);
onChanged();
} else {
rulesBuilder_.remove(index);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder getRulesBuilder(
int index) {
return getRulesFieldBuilder().getBuilder(index);
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder getRulesOrBuilder(
int index) {
if (rulesBuilder_ == null) {
return rules_.get(index); } else {
return rulesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder>
getRulesOrBuilderList() {
if (rulesBuilder_ != null) {
return rulesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rules_);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder addRulesBuilder() {
return getRulesFieldBuilder().addBuilder(
net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder addRulesBuilder(
int index) {
return getRulesFieldBuilder().addBuilder(
index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;
*/
public java.util.Listrepeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public int getLevelsCount() { if (levelsBuilder_ == null) { return levels_.size(); } else { return levelsBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel getLevels(int index) { if (levelsBuilder_ == null) { return levels_.get(index); } else { return levelsBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public Builder addLevels(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel value) { if (levelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLevelsIsMutable(); levels_.add(value); onChanged(); } else { levelsBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public Builder addAllLevels( java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel> values) { if (levelsBuilder_ == null) { ensureLevelsIsMutable(); super.addAll(values, levels_); onChanged(); } else { levelsBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public Builder clearLevels() { if (levelsBuilder_ == null) { levels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { levelsBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public Builder removeLevels(int index) { if (levelsBuilder_ == null) { ensureLevelsIsMutable(); levels_.remove(index); onChanged(); } else { levelsBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder getLevelsBuilder( int index) { return getLevelsFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder getLevelsOrBuilder( int index) { if (levelsBuilder_ == null) { return levels_.get(index); } else { return levelsBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder> getLevelsOrBuilderList() { if (levelsBuilder_ != null) { return levelsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(levels_); } } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder addLevelsBuilder() { return getLevelsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder addLevelsBuilder( int index) { return getLevelsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;
*
* * encoded as fixed32 length delimited **/ public java.util.List
optional uint64 baseId = 10;
*/
boolean hasBaseId();
/**
* optional uint64 baseId = 10;
*/
long getBaseId();
// repeated .OsmAnd.OBF.MapData dataObjects = 12;
/**
* repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ java.util.List
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ net.osmand.binary.OsmandOdb.MapData getDataObjects(int index); /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ int getDataObjectsCount(); /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ java.util.List extends net.osmand.binary.OsmandOdb.MapDataOrBuilder> getDataObjectsOrBuilderList(); /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ net.osmand.binary.OsmandOdb.MapDataOrBuilder getDataObjectsOrBuilder( int index); // optional .OsmAnd.OBF.StringTable stringTable = 15; /** *
optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
boolean hasStringTable();
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
net.osmand.binary.OsmandOdb.StringTable getStringTable();
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder();
}
/**
* Protobuf type {@code OsmAnd.OBF.MapDataBlock}
*
* * coordinates can take much space 4*4*count of data blocks= * required sint32 left = 1; // delta encoded * required sint32 right = 2; // delta encoded * required sint32 top = 3; // delta encoded * required sint32 bottom = 4; // delta encoded **/ public static final class MapDataBlock extends com.google.protobuf.GeneratedMessage implements MapDataBlockOrBuilder { // Use MapDataBlock.newBuilder() to construct. private MapDataBlock(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private MapDataBlock(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MapDataBlock defaultInstance; public static MapDataBlock getDefaultInstance() { return defaultInstance; } public MapDataBlock getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MapDataBlock( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 80: { bitField0_ |= 0x00000001; baseId_ = input.readUInt64(); break; } case 98: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { dataObjects_ = new java.util.ArrayList
optional uint64 baseId = 10;
*/
public boolean hasBaseId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint64 baseId = 10;
*/
public long getBaseId() {
return baseId_;
}
// repeated .OsmAnd.OBF.MapData dataObjects = 12;
public static final int DATAOBJECTS_FIELD_NUMBER = 12;
private java.util.Listrepeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public java.util.List
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public java.util.List extends net.osmand.binary.OsmandOdb.MapDataOrBuilder> getDataObjectsOrBuilderList() { return dataObjects_; } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public int getDataObjectsCount() { return dataObjects_.size(); } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public net.osmand.binary.OsmandOdb.MapData getDataObjects(int index) { return dataObjects_.get(index); } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ 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 net.osmand.binary.OsmandOdb.StringTable stringTable_; /** *
optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
public boolean hasStringTable() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
public net.osmand.binary.OsmandOdb.StringTable getStringTable() {
return stringTable_;
}
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
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() {
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 (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt64(10, baseId_);
}
for (int i = 0; i < dataObjects_.size(); i++) {
output.writeMessage(12, dataObjects_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(15, stringTable_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(10, baseId_);
}
for (int i = 0; i < dataObjects_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, dataObjects_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.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 {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.MapDataBlock parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.MapDataBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.MapDataBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.MapDataBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.MapDataBlock parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.MapDataBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static net.osmand.binary.OsmandOdb.MapDataBlock parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.MapDataBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.MapDataBlock parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(net.osmand.binary.OsmandOdb.MapDataBlock prototype) {
return newBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code OsmAnd.OBF.MapDataBlock}
*
* * coordinates can take much space 4*4*count of data blocks= * required sint32 left = 1; // delta encoded * required sint32 right = 2; // delta encoded * required sint32 top = 3; // delta encoded * required sint32 bottom = 4; // delta encoded **/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
optional uint64 baseId = 10;
*/
public boolean hasBaseId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint64 baseId = 10;
*/
public long getBaseId() {
return baseId_;
}
/**
* optional uint64 baseId = 10;
*/
public Builder setBaseId(long value) {
bitField0_ |= 0x00000001;
baseId_ = value;
onChanged();
return this;
}
/**
* optional uint64 baseId = 10;
*/
public Builder clearBaseId() {
bitField0_ = (bitField0_ & ~0x00000001);
baseId_ = 0L;
onChanged();
return this;
}
// repeated .OsmAnd.OBF.MapData dataObjects = 12;
private java.util.Listrepeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public java.util.List
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public int getDataObjectsCount() { if (dataObjectsBuilder_ == null) { return dataObjects_.size(); } else { return dataObjectsBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public net.osmand.binary.OsmandOdb.MapData getDataObjects(int index) { if (dataObjectsBuilder_ == null) { return dataObjects_.get(index); } else { return dataObjectsBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ 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; } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public Builder addDataObjects(net.osmand.binary.OsmandOdb.MapData value) { if (dataObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataObjectsIsMutable(); dataObjects_.add(value); onChanged(); } else { dataObjectsBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ 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; } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ 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; } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public Builder addAllDataObjects( java.lang.Iterable extends net.osmand.binary.OsmandOdb.MapData> values) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); super.addAll(values, dataObjects_); onChanged(); } else { dataObjectsBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public Builder clearDataObjects() { if (dataObjectsBuilder_ == null) { dataObjects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataObjectsBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public Builder removeDataObjects(int index) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); dataObjects_.remove(index); onChanged(); } else { dataObjectsBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public net.osmand.binary.OsmandOdb.MapData.Builder getDataObjectsBuilder( int index) { return getDataObjectsFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public net.osmand.binary.OsmandOdb.MapDataOrBuilder getDataObjectsOrBuilder( int index) { if (dataObjectsBuilder_ == null) { return dataObjects_.get(index); } else { return dataObjectsBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public java.util.List extends net.osmand.binary.OsmandOdb.MapDataOrBuilder> getDataObjectsOrBuilderList() { if (dataObjectsBuilder_ != null) { return dataObjectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dataObjects_); } } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public net.osmand.binary.OsmandOdb.MapData.Builder addDataObjectsBuilder() { return getDataObjectsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.MapData.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public net.osmand.binary.OsmandOdb.MapData.Builder addDataObjectsBuilder( int index) { return getDataObjectsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.MapData.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.MapData dataObjects = 12;
*
* * in future here can be optional raster tile **/ public java.util.List
optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
public boolean hasStringTable() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
public net.osmand.binary.OsmandOdb.StringTable getStringTable() {
if (stringTableBuilder_ == null) {
return stringTable_;
} else {
return stringTableBuilder_.getMessage();
}
}
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
public Builder setStringTable(net.osmand.binary.OsmandOdb.StringTable value) {
if (stringTableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stringTable_ = value;
onChanged();
} else {
stringTableBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
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;
}
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
public Builder mergeStringTable(net.osmand.binary.OsmandOdb.StringTable value) {
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 {
stringTableBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
public Builder clearStringTable() {
if (stringTableBuilder_ == null) {
stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance();
onChanged();
} else {
stringTableBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
public net.osmand.binary.OsmandOdb.StringTable.Builder getStringTableBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getStringTableFieldBuilder().getBuilder();
}
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() {
if (stringTableBuilder_ != null) {
return stringTableBuilder_.getMessageOrBuilder();
} else {
return stringTable_;
}
}
/**
* optional .OsmAnd.OBF.StringTable stringTable = 15;
*/
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);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:OsmAnd.OBF.MapDataBlock)
}
public interface MapDataOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bytes coordinates = 1;
/**
* optional bytes coordinates = 1;
*
* * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * point, line or outer polygon coordinates **/ boolean hasCoordinates(); /** *
optional bytes coordinates = 1;
*
* * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * point, line or outer polygon coordinates **/ com.google.protobuf.ByteString getCoordinates(); // optional bytes areaCoordinates = 2; /** *
optional bytes areaCoordinates = 2;
*/
boolean hasAreaCoordinates();
/**
* optional bytes areaCoordinates = 2;
*/
com.google.protobuf.ByteString getAreaCoordinates();
// repeated bytes polygonInnerCoordinates = 4;
/**
* repeated bytes polygonInnerCoordinates = 4;
*/
java.util.Listrepeated bytes polygonInnerCoordinates = 4;
*/
int getPolygonInnerCoordinatesCount();
/**
* repeated bytes polygonInnerCoordinates = 4;
*/
com.google.protobuf.ByteString getPolygonInnerCoordinates(int index);
// optional bytes additionalTypes = 6;
/**
* optional bytes additionalTypes = 6;
*
* * array of raw var int types **/ boolean hasAdditionalTypes(); /** *
optional bytes additionalTypes = 6;
*
* * array of raw var int types **/ com.google.protobuf.ByteString getAdditionalTypes(); // required bytes types = 7; /** *
required bytes types = 7;
*
* * array of raw var int types **/ boolean hasTypes(); /** *
required bytes types = 7;
*
* * array of raw var int types **/ com.google.protobuf.ByteString getTypes(); // optional bytes stringNames = 10; /** *
optional bytes stringNames = 10;
*
* * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > **/ boolean hasStringNames(); /** *
optional bytes stringNames = 10;
*
* * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > **/ com.google.protobuf.ByteString getStringNames(); // required sint64 id = 12; /** *
required sint64 id = 12;
*
* * delta encoded **/ boolean hasId(); /** *
required sint64 id = 12;
*
* * delta encoded **/ long getId(); // optional bytes rasterBytes = 15; /** *
optional bytes rasterBytes = 15;
*/
boolean hasRasterBytes();
/**
* optional bytes rasterBytes = 15;
*/
com.google.protobuf.ByteString getRasterBytes();
}
/**
* Protobuf type {@code OsmAnd.OBF.MapData}
*/
public static final class MapData extends
com.google.protobuf.GeneratedMessage
implements MapDataOrBuilder {
// Use MapData.newBuilder() to construct.
private MapData(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private MapData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final MapData defaultInstance;
public static MapData getDefaultInstance() {
return defaultInstance;
}
public MapData getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MapData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
coordinates_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
areaCoordinates_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
polygonInnerCoordinates_ = new java.util.ArrayListoptional bytes coordinates = 1;
*
* * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * point, line or outer polygon coordinates **/ public boolean hasCoordinates() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
optional bytes coordinates = 1;
*
* * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * point, line or outer polygon coordinates **/ public com.google.protobuf.ByteString getCoordinates() { return coordinates_; } // optional bytes areaCoordinates = 2; public static final int AREACOORDINATES_FIELD_NUMBER = 2; private com.google.protobuf.ByteString areaCoordinates_; /** *
optional bytes areaCoordinates = 2;
*/
public boolean hasAreaCoordinates() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes areaCoordinates = 2;
*/
public com.google.protobuf.ByteString getAreaCoordinates() {
return areaCoordinates_;
}
// repeated bytes polygonInnerCoordinates = 4;
public static final int POLYGONINNERCOORDINATES_FIELD_NUMBER = 4;
private java.util.Listrepeated bytes polygonInnerCoordinates = 4;
*/
public java.util.Listrepeated bytes polygonInnerCoordinates = 4;
*/
public int getPolygonInnerCoordinatesCount() {
return polygonInnerCoordinates_.size();
}
/**
* repeated bytes polygonInnerCoordinates = 4;
*/
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 com.google.protobuf.ByteString additionalTypes_;
/**
* optional bytes additionalTypes = 6;
*
* * array of raw var int types **/ public boolean hasAdditionalTypes() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
optional bytes additionalTypes = 6;
*
* * array of raw var int types **/ public com.google.protobuf.ByteString getAdditionalTypes() { return additionalTypes_; } // required bytes types = 7; public static final int TYPES_FIELD_NUMBER = 7; private com.google.protobuf.ByteString types_; /** *
required bytes types = 7;
*
* * array of raw var int types **/ public boolean hasTypes() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
required bytes types = 7;
*
* * array of raw var int types **/ public com.google.protobuf.ByteString getTypes() { return types_; } // optional bytes stringNames = 10; public static final int STRINGNAMES_FIELD_NUMBER = 10; private com.google.protobuf.ByteString stringNames_; /** *
optional bytes stringNames = 10;
*
* * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > **/ public boolean hasStringNames() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
optional bytes stringNames = 10;
*
* * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > **/ public com.google.protobuf.ByteString getStringNames() { return stringNames_; } // required sint64 id = 12; public static final int ID_FIELD_NUMBER = 12; private long id_; /** *
required sint64 id = 12;
*
* * delta encoded **/ public boolean hasId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
required sint64 id = 12;
*
* * delta encoded **/ public long getId() { return id_; } // optional bytes rasterBytes = 15; public static final int RASTERBYTES_FIELD_NUMBER = 15; private com.google.protobuf.ByteString rasterBytes_; /** *
optional bytes rasterBytes = 15;
*/
public boolean hasRasterBytes() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional bytes rasterBytes = 15;
*/
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() {
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 (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, coordinates_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, areaCoordinates_);
}
for (int i = 0; i < polygonInnerCoordinates_.size(); i++) {
output.writeBytes(4, polygonInnerCoordinates_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(6, additionalTypes_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(7, types_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(10, stringNames_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeSInt64(12, id_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(15, rasterBytes_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, coordinates_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, areaCoordinates_);
}
{
int dataSize = 0;
for (int i = 0; i < polygonInnerCoordinates_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(polygonInnerCoordinates_.get(i));
}
size += dataSize;
size += 1 * getPolygonInnerCoordinatesList().size();
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, additionalTypes_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, types_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(10, stringNames_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(12, id_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.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 {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.MapData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.MapData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.MapData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.MapData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.MapData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.MapData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static net.osmand.binary.OsmandOdb.MapData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.MapData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.MapData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(net.osmand.binary.OsmandOdb.MapData prototype) {
return newBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code OsmAnd.OBF.MapData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderoptional bytes coordinates = 1;
*
* * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * point, line or outer polygon coordinates **/ public boolean hasCoordinates() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
optional bytes coordinates = 1;
*
* * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * point, line or outer polygon coordinates **/ public com.google.protobuf.ByteString getCoordinates() { return coordinates_; } /** *
optional bytes coordinates = 1;
*
* * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * point, line or outer polygon coordinates **/ public Builder setCoordinates(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; coordinates_ = value; onChanged(); return this; } /** *
optional bytes coordinates = 1;
*
* * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * point, line or outer polygon coordinates **/ public Builder clearCoordinates() { bitField0_ = (bitField0_ & ~0x00000001); coordinates_ = getDefaultInstance().getCoordinates(); onChanged(); return this; } // optional bytes areaCoordinates = 2; private com.google.protobuf.ByteString areaCoordinates_ = com.google.protobuf.ByteString.EMPTY; /** *
optional bytes areaCoordinates = 2;
*/
public boolean hasAreaCoordinates() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes areaCoordinates = 2;
*/
public com.google.protobuf.ByteString getAreaCoordinates() {
return areaCoordinates_;
}
/**
* optional bytes areaCoordinates = 2;
*/
public Builder setAreaCoordinates(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
areaCoordinates_ = value;
onChanged();
return this;
}
/**
* optional bytes areaCoordinates = 2;
*/
public Builder clearAreaCoordinates() {
bitField0_ = (bitField0_ & ~0x00000002);
areaCoordinates_ = getDefaultInstance().getAreaCoordinates();
onChanged();
return this;
}
// repeated bytes polygonInnerCoordinates = 4;
private java.util.Listrepeated bytes polygonInnerCoordinates = 4;
*/
public java.util.Listrepeated bytes polygonInnerCoordinates = 4;
*/
public int getPolygonInnerCoordinatesCount() {
return polygonInnerCoordinates_.size();
}
/**
* repeated bytes polygonInnerCoordinates = 4;
*/
public com.google.protobuf.ByteString getPolygonInnerCoordinates(int index) {
return polygonInnerCoordinates_.get(index);
}
/**
* repeated bytes polygonInnerCoordinates = 4;
*/
public Builder setPolygonInnerCoordinates(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePolygonInnerCoordinatesIsMutable();
polygonInnerCoordinates_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes polygonInnerCoordinates = 4;
*/
public Builder addPolygonInnerCoordinates(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePolygonInnerCoordinatesIsMutable();
polygonInnerCoordinates_.add(value);
onChanged();
return this;
}
/**
* repeated bytes polygonInnerCoordinates = 4;
*/
public Builder addAllPolygonInnerCoordinates(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensurePolygonInnerCoordinatesIsMutable();
super.addAll(values, polygonInnerCoordinates_);
onChanged();
return this;
}
/**
* repeated bytes polygonInnerCoordinates = 4;
*/
public Builder clearPolygonInnerCoordinates() {
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;
/**
* optional bytes additionalTypes = 6;
*
* * array of raw var int types **/ public boolean hasAdditionalTypes() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
optional bytes additionalTypes = 6;
*
* * array of raw var int types **/ public com.google.protobuf.ByteString getAdditionalTypes() { return additionalTypes_; } /** *
optional bytes additionalTypes = 6;
*
* * array of raw var int types **/ public Builder setAdditionalTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; additionalTypes_ = value; onChanged(); return this; } /** *
optional bytes additionalTypes = 6;
*
* * array of raw var int types **/ public Builder clearAdditionalTypes() { bitField0_ = (bitField0_ & ~0x00000008); additionalTypes_ = getDefaultInstance().getAdditionalTypes(); onChanged(); return this; } // required bytes types = 7; private com.google.protobuf.ByteString types_ = com.google.protobuf.ByteString.EMPTY; /** *
required bytes types = 7;
*
* * array of raw var int types **/ public boolean hasTypes() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
required bytes types = 7;
*
* * array of raw var int types **/ public com.google.protobuf.ByteString getTypes() { return types_; } /** *
required bytes types = 7;
*
* * array of raw var int types **/ public Builder setTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; types_ = value; onChanged(); return this; } /** *
required bytes types = 7;
*
* * array of raw var int types **/ public Builder clearTypes() { bitField0_ = (bitField0_ & ~0x00000010); types_ = getDefaultInstance().getTypes(); onChanged(); return this; } // optional bytes stringNames = 10; private com.google.protobuf.ByteString stringNames_ = com.google.protobuf.ByteString.EMPTY; /** *
optional bytes stringNames = 10;
*
* * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > **/ public boolean hasStringNames() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
optional bytes stringNames = 10;
*
* * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > **/ public com.google.protobuf.ByteString getStringNames() { return stringNames_; } /** *
optional bytes stringNames = 10;
*
* * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > **/ public Builder setStringNames(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; stringNames_ = value; onChanged(); return this; } /** *
optional bytes stringNames = 10;
*
* * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > **/ public Builder clearStringNames() { bitField0_ = (bitField0_ & ~0x00000020); stringNames_ = getDefaultInstance().getStringNames(); onChanged(); return this; } // required sint64 id = 12; private long id_ ; /** *
required sint64 id = 12;
*
* * delta encoded **/ public boolean hasId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
required sint64 id = 12;
*
* * delta encoded **/ public long getId() { return id_; } /** *
required sint64 id = 12;
*
* * delta encoded **/ public Builder setId(long value) { bitField0_ |= 0x00000040; id_ = value; onChanged(); return this; } /** *
required sint64 id = 12;
*
* * delta encoded **/ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000040); id_ = 0L; onChanged(); return this; } // optional bytes rasterBytes = 15; private com.google.protobuf.ByteString rasterBytes_ = com.google.protobuf.ByteString.EMPTY; /** *
optional bytes rasterBytes = 15;
*/
public boolean hasRasterBytes() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional bytes rasterBytes = 15;
*/
public com.google.protobuf.ByteString getRasterBytes() {
return rasterBytes_;
}
/**
* optional bytes rasterBytes = 15;
*/
public Builder setRasterBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
rasterBytes_ = value;
onChanged();
return this;
}
/**
* optional bytes rasterBytes = 15;
*/
public Builder clearRasterBytes() {
bitField0_ = (bitField0_ & ~0x00000080);
rasterBytes_ = getDefaultInstance().getRasterBytes();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:OsmAnd.OBF.MapData)
}
static {
defaultInstance = new MapData(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:OsmAnd.OBF.MapData)
}
public interface OsmAndAddressIndexOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string name = 1;
/**
* required string name = 1;
*/
boolean hasName();
/**
* required string name = 1;
*/
java.lang.String getName();
/**
* required string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional string name_en = 2;
/**
* optional string name_en = 2;
*/
boolean hasNameEn();
/**
* optional string name_en = 2;
*/
java.lang.String getNameEn();
/**
* optional string name_en = 2;
*/
com.google.protobuf.ByteString
getNameEnBytes();
// optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
boolean hasBoundaries();
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries();
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder();
// optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
/**
* optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ boolean hasAttributeTagsTable(); /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ net.osmand.binary.OsmandOdb.StringTable getAttributeTagsTable(); /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ net.osmand.binary.OsmandOdb.StringTableOrBuilder getAttributeTagsTableOrBuilder(); // repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6; /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ java.util.List
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex getCities(int index); /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ int getCitiesCount(); /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ java.util.List extends net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder> getCitiesOrBuilderList(); /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder getCitiesOrBuilder( int index); // optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7; /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ boolean hasNameIndex(); /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getNameIndex(); /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder getNameIndexOrBuilder(); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndAddressIndex} */ public static final class OsmAndAddressIndex extends com.google.protobuf.GeneratedMessage implements OsmAndAddressIndexOrBuilder { // Use OsmAndAddressIndex.newBuilder() to construct. private OsmAndAddressIndex(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndAddressIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndAddressIndex defaultInstance; public static OsmAndAddressIndex getDefaultInstance() { return defaultInstance; } public OsmAndAddressIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndAddressIndex( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; name_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; nameEn_ = input.readBytes(); break; } case 26: { net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = boundaries_.toBuilder(); } boundaries_ = input.readMessage(net.osmand.binary.OsmandOdb.OsmAndTileBox.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(boundaries_); boundaries_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { net.osmand.binary.OsmandOdb.StringTable.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = attributeTagsTable_.toBuilder(); } attributeTagsTable_ = input.readMessage(net.osmand.binary.OsmandOdb.StringTable.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attributeTagsTable_); attributeTagsTable_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 50: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { cities_ = new java.util.ArrayList
required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;
*/
boolean hasType();
/**
* required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;
*/
net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType getType();
// repeated .OsmAnd.OBF.CityIndex cities = 5;
/**
* repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ java.util.List
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ net.osmand.binary.OsmandOdb.CityIndex getCities(int index); /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ int getCitiesCount(); /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ java.util.List extends net.osmand.binary.OsmandOdb.CityIndexOrBuilder> getCitiesOrBuilderList(); /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ net.osmand.binary.OsmandOdb.CityIndexOrBuilder getCitiesOrBuilder( int index); // repeated .OsmAnd.OBF.CityBlockIndex blocks = 7; /** *
repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
java.util.Listrepeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
net.osmand.binary.OsmandOdb.CityBlockIndex getBlocks(int index);
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
int getBlocksCount();
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
java.util.List extends net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder>
getBlocksOrBuilderList();
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder getBlocksOrBuilder(
int index);
}
/**
* Protobuf type {@code OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex}
*/
public static final class CitiesIndex extends
com.google.protobuf.GeneratedMessage
implements CitiesIndexOrBuilder {
// Use CitiesIndex.newBuilder() to construct.
private CitiesIndex(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private CitiesIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final CitiesIndex defaultInstance;
public static CitiesIndex getDefaultInstance() {
return defaultInstance;
}
public CitiesIndex getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CitiesIndex(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 16: {
int rawValue = input.readEnum();
net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType value = net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = value;
}
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
cities_ = new java.util.ArrayListCitiesOrTowns = 1;
*/
CitiesOrTowns(0, 1),
/**
* Postcodes = 2;
*/
Postcodes(1, 2),
/**
* Villages = 3;
*/
Villages(2, 3),
;
/**
* CitiesOrTowns = 1;
*/
public static final int CitiesOrTowns_VALUE = 1;
/**
* Postcodes = 2;
*/
public static final int Postcodes_VALUE = 2;
/**
* Villages = 3;
*/
public static final int Villages_VALUE = 3;
public final int getNumber() { return value; }
public static CitiesType valueOf(int value) {
switch (value) {
case 1: return CitiesOrTowns;
case 2: return Postcodes;
case 3: return Villages;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMaprequired .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;
*/
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.Listrepeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public java.util.List
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public java.util.List extends net.osmand.binary.OsmandOdb.CityIndexOrBuilder> getCitiesOrBuilderList() { return cities_; } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public int getCitiesCount() { return cities_.size(); } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public net.osmand.binary.OsmandOdb.CityIndex getCities(int index) { return cities_.get(index); } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ 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
repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public java.util.Listrepeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder>
getBlocksOrBuilderList() {
return blocks_;
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public int getBlocksCount() {
return blocks_.size();
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public net.osmand.binary.OsmandOdb.CityBlockIndex getBlocks(int index) {
return blocks_.get(index);
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
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() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasType()) {
memoizedIsInitialized = 0;
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 (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(2, type_.getNumber());
}
for (int i = 0; i < cities_.size(); i++) {
output.writeMessage(5, cities_.get(i));
}
for (int i = 0; i < blocks_.size(); i++) {
output.writeMessage(7, blocks_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_.getNumber());
}
for (int i = 0; i < cities_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, cities_.get(i));
}
for (int i = 0; i < blocks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.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 {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex prototype) {
return newBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrequired .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;
*/
public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType getType() {
return type_;
}
/**
* required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;
*/
public Builder setType(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType.CitiesOrTowns;
onChanged();
return this;
}
// repeated .OsmAnd.OBF.CityIndex cities = 5;
private java.util.Listrepeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public java.util.List
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public int getCitiesCount() { if (citiesBuilder_ == null) { return cities_.size(); } else { return citiesBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public net.osmand.binary.OsmandOdb.CityIndex getCities(int index) { if (citiesBuilder_ == null) { return cities_.get(index); } else { return citiesBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ 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; } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public Builder addCities(net.osmand.binary.OsmandOdb.CityIndex value) { if (citiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCitiesIsMutable(); cities_.add(value); onChanged(); } else { citiesBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ 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; } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ 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; } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public Builder addAllCities( java.lang.Iterable extends net.osmand.binary.OsmandOdb.CityIndex> values) { if (citiesBuilder_ == null) { ensureCitiesIsMutable(); super.addAll(values, cities_); onChanged(); } else { citiesBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public Builder clearCities() { if (citiesBuilder_ == null) { cities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { citiesBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public Builder removeCities(int index) { if (citiesBuilder_ == null) { ensureCitiesIsMutable(); cities_.remove(index); onChanged(); } else { citiesBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public net.osmand.binary.OsmandOdb.CityIndex.Builder getCitiesBuilder( int index) { return getCitiesFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public net.osmand.binary.OsmandOdb.CityIndexOrBuilder getCitiesOrBuilder( int index) { if (citiesBuilder_ == null) { return cities_.get(index); } else { return citiesBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public java.util.List extends net.osmand.binary.OsmandOdb.CityIndexOrBuilder> getCitiesOrBuilderList() { if (citiesBuilder_ != null) { return citiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(cities_); } } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public net.osmand.binary.OsmandOdb.CityIndex.Builder addCitiesBuilder() { return getCitiesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.CityIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public net.osmand.binary.OsmandOdb.CityIndex.Builder addCitiesBuilder( int index) { return getCitiesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.CityIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.CityIndex cities = 5;
*
* * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) **/ public java.util.List
repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public java.util.Listrepeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public int getBlocksCount() {
if (blocksBuilder_ == null) {
return blocks_.size();
} else {
return blocksBuilder_.getCount();
}
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public net.osmand.binary.OsmandOdb.CityBlockIndex getBlocks(int index) {
if (blocksBuilder_ == null) {
return blocks_.get(index);
} else {
return blocksBuilder_.getMessage(index);
}
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
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);
}
return this;
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public Builder addBlocks(net.osmand.binary.OsmandOdb.CityBlockIndex value) {
if (blocksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBlocksIsMutable();
blocks_.add(value);
onChanged();
} else {
blocksBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
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());
}
return this;
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public Builder addAllBlocks(
java.lang.Iterable extends net.osmand.binary.OsmandOdb.CityBlockIndex> values) {
if (blocksBuilder_ == null) {
ensureBlocksIsMutable();
super.addAll(values, blocks_);
onChanged();
} else {
blocksBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public Builder clearBlocks() {
if (blocksBuilder_ == null) {
blocks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
blocksBuilder_.clear();
}
return this;
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public Builder removeBlocks(int index) {
if (blocksBuilder_ == null) {
ensureBlocksIsMutable();
blocks_.remove(index);
onChanged();
} else {
blocksBuilder_.remove(index);
}
return this;
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public net.osmand.binary.OsmandOdb.CityBlockIndex.Builder getBlocksBuilder(
int index) {
return getBlocksFieldBuilder().getBuilder(index);
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder getBlocksOrBuilder(
int index) {
if (blocksBuilder_ == null) {
return blocks_.get(index); } else {
return blocksBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder>
getBlocksOrBuilderList() {
if (blocksBuilder_ != null) {
return blocksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(blocks_);
}
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public net.osmand.binary.OsmandOdb.CityBlockIndex.Builder addBlocksBuilder() {
return getBlocksFieldBuilder().addBuilder(
net.osmand.binary.OsmandOdb.CityBlockIndex.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public net.osmand.binary.OsmandOdb.CityBlockIndex.Builder addBlocksBuilder(
int index) {
return getBlocksFieldBuilder().addBuilder(
index, net.osmand.binary.OsmandOdb.CityBlockIndex.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;
*/
public java.util.Listrequired string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* required string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.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 java.lang.Object nameEn_;
/**
* optional string name_en = 2;
*/
public boolean hasNameEn() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string name_en = 2;
*/
public java.lang.String getNameEn() {
java.lang.Object ref = nameEn_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nameEn_ = s;
}
return s;
}
}
/**
* optional string name_en = 2;
*/
public com.google.protobuf.ByteString
getNameEnBytes() {
java.lang.Object ref = nameEn_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.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 net.osmand.binary.OsmandOdb.OsmAndTileBox boundaries_;
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
public boolean hasBoundaries() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() {
return boundaries_;
}
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
public net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder() {
return boundaries_;
}
// optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
public static final int ATTRIBUTETAGSTABLE_FIELD_NUMBER = 4;
private net.osmand.binary.OsmandOdb.StringTable attributeTagsTable_;
/**
* optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ public boolean hasAttributeTagsTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ public net.osmand.binary.OsmandOdb.StringTable getAttributeTagsTable() { return attributeTagsTable_; } /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ public net.osmand.binary.OsmandOdb.StringTableOrBuilder getAttributeTagsTableOrBuilder() { return attributeTagsTable_; } // repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6; public static final int CITIES_FIELD_NUMBER = 6; private java.util.List
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder> getCitiesOrBuilderList() { return cities_; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public int getCitiesCount() { return cities_.size(); } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex getCities(int index) { return cities_.get(index); } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ 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 net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData nameIndex_; /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public boolean hasNameIndex() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getNameIndex() { return nameIndex_; } /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder getNameIndexOrBuilder() { return nameIndex_; } private void initFields() { name_ = ""; nameEn_ = ""; boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); attributeTagsTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); cities_ = java.util.Collections.emptyList(); nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasName()) { memoizedIsInitialized = 0; 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()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameEnBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, boundaries_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, attributeTagsTable_); } for (int i = 0; i < cities_.size(); i++) { output.writeMessage(6, cities_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(7, nameIndex_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameEnBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, boundaries_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, attributeTagsTable_); } for (int i = 0; i < cities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, cities_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, nameIndex_); } 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 { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndAddressIndex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndAddressIndex prototype) { return newBuilder().mergeFrom(prototype); } 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; } /** * Protobuf type {@code OsmAnd.OBF.OsmAndAddressIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// optional string name_en = 2;
private java.lang.Object nameEn_ = "";
/**
* optional string name_en = 2;
*/
public boolean hasNameEn() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string name_en = 2;
*/
public java.lang.String getNameEn() {
java.lang.Object ref = nameEn_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
nameEn_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name_en = 2;
*/
public com.google.protobuf.ByteString
getNameEnBytes() {
java.lang.Object ref = nameEn_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nameEn_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name_en = 2;
*/
public Builder setNameEn(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
nameEn_ = value;
onChanged();
return this;
}
/**
* optional string name_en = 2;
*/
public Builder clearNameEn() {
bitField0_ = (bitField0_ & ~0x00000002);
nameEn_ = getDefaultInstance().getNameEn();
onChanged();
return this;
}
/**
* optional string name_en = 2;
*/
public Builder setNameEnBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
nameEn_ = value;
onChanged();
return this;
}
// 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_;
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
public boolean hasBoundaries() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() {
if (boundariesBuilder_ == null) {
return boundaries_;
} else {
return boundariesBuilder_.getMessage();
}
}
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
public Builder setBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox value) {
if (boundariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
boundaries_ = value;
onChanged();
} else {
boundariesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
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;
}
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
public Builder mergeBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox value) {
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 {
boundariesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
public Builder clearBoundaries() {
if (boundariesBuilder_ == null) {
boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance();
onChanged();
} else {
boundariesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
public net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder getBoundariesBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getBoundariesFieldBuilder().getBuilder();
}
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
public net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder() {
if (boundariesBuilder_ != null) {
return boundariesBuilder_.getMessageOrBuilder();
} else {
return boundaries_;
}
}
/**
* optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;
*/
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_;
}
// optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
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_;
/**
* optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ public boolean hasAttributeTagsTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ public net.osmand.binary.OsmandOdb.StringTable getAttributeTagsTable() { if (attributeTagsTableBuilder_ == null) { return attributeTagsTable_; } else { return attributeTagsTableBuilder_.getMessage(); } } /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ 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_ |= 0x00000008; return this; } /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ public Builder setAttributeTagsTable( net.osmand.binary.OsmandOdb.StringTable.Builder builderForValue) { if (attributeTagsTableBuilder_ == null) { attributeTagsTable_ = builderForValue.build(); onChanged(); } else { attributeTagsTableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ public Builder mergeAttributeTagsTable(net.osmand.binary.OsmandOdb.StringTable value) { if (attributeTagsTableBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && 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_ |= 0x00000008; return this; } /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ public Builder clearAttributeTagsTable() { if (attributeTagsTableBuilder_ == null) { attributeTagsTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); onChanged(); } else { attributeTagsTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ public net.osmand.binary.OsmandOdb.StringTable.Builder getAttributeTagsTableBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAttributeTagsTableFieldBuilder().getBuilder(); } /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ public net.osmand.binary.OsmandOdb.StringTableOrBuilder getAttributeTagsTableOrBuilder() { if (attributeTagsTableBuilder_ != null) { return attributeTagsTableBuilder_.getMessageOrBuilder(); } else { return attributeTagsTable_; } } /** *
optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;
*
* * before cities **/ 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_; } // repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6; private java.util.List
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public java.util.List
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public int getCitiesCount() { if (citiesBuilder_ == null) { return cities_.size(); } else { return citiesBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex getCities(int index) { if (citiesBuilder_ == null) { return cities_.get(index); } else { return citiesBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public Builder addCities(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex value) { if (citiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCitiesIsMutable(); cities_.add(value); onChanged(); } else { citiesBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ 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; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public Builder addAllCities( java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex> values) { if (citiesBuilder_ == null) { ensureCitiesIsMutable(); super.addAll(values, cities_); onChanged(); } else { citiesBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public Builder clearCities() { if (citiesBuilder_ == null) { cities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { citiesBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public Builder removeCities(int index) { if (citiesBuilder_ == null) { ensureCitiesIsMutable(); cities_.remove(index); onChanged(); } else { citiesBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder getCitiesBuilder( int index) { return getCitiesFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder getCitiesOrBuilder( int index) { if (citiesBuilder_ == null) { return cities_.get(index); } else { return citiesBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder> getCitiesOrBuilderList() { if (citiesBuilder_ != null) { return citiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(cities_); } } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder addCitiesBuilder() { return getCitiesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder addCitiesBuilder( int index) { return getCitiesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;
*
* * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 **/ public java.util.List
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public boolean hasNameIndex() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getNameIndex() { if (nameIndexBuilder_ == null) { return nameIndex_; } else { return nameIndexBuilder_.getMessage(); } } /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public Builder setNameIndex(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData value) { if (nameIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nameIndex_ = value; onChanged(); } else { nameIndexBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public Builder setNameIndex( net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder builderForValue) { if (nameIndexBuilder_ == null) { nameIndex_ = builderForValue.build(); onChanged(); } else { nameIndexBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public Builder mergeNameIndex(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData value) { if (nameIndexBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && nameIndex_ != net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance()) { nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.newBuilder(nameIndex_).mergeFrom(value).buildPartial(); } else { nameIndex_ = value; } onChanged(); } else { nameIndexBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public Builder clearNameIndex() { if (nameIndexBuilder_ == null) { nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); onChanged(); } else { nameIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder getNameIndexBuilder() { bitField0_ |= 0x00000020; onChanged(); return getNameIndexFieldBuilder().getBuilder(); } /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder getNameIndexOrBuilder() { if (nameIndexBuilder_ != null) { return nameIndexBuilder_.getMessageOrBuilder(); } else { return nameIndex_; } } /** *
optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;
*
* * encoded as fixed32 length delimited **/ 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_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndAddressIndex) } static { defaultInstance = new OsmAndAddressIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndAddressIndex) } public interface OsmAndAddressNameIndexDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .OsmAnd.OBF.IndexedStringTable table = 4; /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ boolean hasTable(); /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.IndexedStringTable getTable(); /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder(); // repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7; /** *
repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
java.util.Listrepeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData getAtom(int index);
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
int getAtomCount();
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
java.util.List extends net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder>
getAtomOrBuilderList();
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder getAtomOrBuilder(
int index);
}
/**
* Protobuf type {@code OsmAnd.OBF.OsmAndAddressNameIndexData}
*/
public static final class OsmAndAddressNameIndexData extends
com.google.protobuf.GeneratedMessage
implements OsmAndAddressNameIndexDataOrBuilder {
// Use OsmAndAddressNameIndexData.newBuilder() to construct.
private OsmAndAddressNameIndexData(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private OsmAndAddressNameIndexData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final OsmAndAddressNameIndexData defaultInstance;
public static OsmAndAddressNameIndexData getDefaultInstance() {
return defaultInstance;
}
public OsmAndAddressNameIndexData getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OsmAndAddressNameIndexData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 34: {
net.osmand.binary.OsmandOdb.IndexedStringTable.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = table_.toBuilder();
}
table_ = input.readMessage(net.osmand.binary.OsmandOdb.IndexedStringTable.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(table_);
table_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
atom_ = new java.util.ArrayListrepeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ java.util.List
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom getAtom(int index); /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ int getAtomCount(); /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ java.util.List extends net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder> getAtomOrBuilderList(); /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder getAtomOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData} */ public static final class AddressNameIndexData extends com.google.protobuf.GeneratedMessage implements AddressNameIndexDataOrBuilder { // Use AddressNameIndexData.newBuilder() to construct. private AddressNameIndexData(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AddressNameIndexData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AddressNameIndexData defaultInstance; public static AddressNameIndexData getDefaultInstance() { return defaultInstance; } public AddressNameIndexData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddressNameIndexData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { atom_ = new java.util.ArrayList
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public java.util.List
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public java.util.List extends net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder> getAtomOrBuilderList() { return atom_; } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public int getAtomCount() { return atom_.size(); } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom getAtom(int index) { return atom_.get(index); } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ 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() { 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 (int i = 0; i < atom_.size(); i++) { output.writeMessage(4, atom_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < atom_.size(); i++) { size += com.google.protobuf.CodedOutputStream .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 { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData prototype) { return newBuilder().mergeFrom(prototype); } 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; } /** * Protobuf type {@code OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public java.util.List
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public int getAtomCount() { if (atomBuilder_ == null) { return atom_.size(); } else { return atomBuilder_.getCount(); } } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom getAtom(int index) { if (atomBuilder_ == null) { return atom_.get(index); } else { return atomBuilder_.getMessage(index); } } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ 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); } return this; } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ 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; } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public Builder addAtom(net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom value) { if (atomBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAtomIsMutable(); atom_.add(value); onChanged(); } else { atomBuilder_.addMessage(value); } return this; } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ 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; } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ 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; } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ 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()); } return this; } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public Builder addAllAtom( java.lang.Iterable extends net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom> values) { if (atomBuilder_ == null) { ensureAtomIsMutable(); super.addAll(values, atom_); onChanged(); } else { atomBuilder_.addAllMessages(values); } return this; } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public Builder clearAtom() { if (atomBuilder_ == null) { atom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { atomBuilder_.clear(); } return this; } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public Builder removeAtom(int index) { if (atomBuilder_ == null) { ensureAtomIsMutable(); atom_.remove(index); onChanged(); } else { atomBuilder_.remove(index); } return this; } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder getAtomBuilder( int index) { return getAtomFieldBuilder().getBuilder(index); } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder getAtomOrBuilder( int index) { if (atomBuilder_ == null) { return atom_.get(index); } else { return atomBuilder_.getMessageOrBuilder(index); } } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public java.util.List extends net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder> getAtomOrBuilderList() { if (atomBuilder_ != null) { return atomBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(atom_); } } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder addAtomBuilder() { return getAtomFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder addAtomBuilder( int index) { return getAtomFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.getDefaultInstance()); } /** *
repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;
*
* * shift is measured from start (before length) **/ public java.util.List
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ public boolean hasTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { return table_; } /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ 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
repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public java.util.Listrepeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder>
getAtomOrBuilderList() {
return atom_;
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public int getAtomCount() {
return atom_.size();
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData getAtom(int index) {
return atom_.get(index);
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
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() {
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 (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(4, table_);
}
for (int i = 0; i < atom_.size(); i++) {
output.writeMessage(7, atom_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, table_);
}
for (int i = 0; i < atom_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.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 {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData prototype) {
return newBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code OsmAnd.OBF.OsmAndAddressNameIndexData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrequired .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ public boolean hasTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { if (tableBuilder_ == null) { return table_; } else { return tableBuilder_.getMessage(); } } /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ public Builder setTable(net.osmand.binary.OsmandOdb.IndexedStringTable value) { if (tableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } table_ = value; onChanged(); } else { tableBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ 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; } /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ public Builder mergeTable(net.osmand.binary.OsmandOdb.IndexedStringTable value) { 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 { tableBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ public Builder clearTable() { if (tableBuilder_ == null) { table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); onChanged(); } else { tableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder getTableBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTableFieldBuilder().getBuilder(); } /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder() { if (tableBuilder_ != null) { return tableBuilder_.getMessageOrBuilder(); } else { return table_; } } /** *
required .OsmAnd.OBF.IndexedStringTable table = 4;
*
* * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited **/ 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
repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public java.util.Listrepeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public int getAtomCount() {
if (atomBuilder_ == null) {
return atom_.size();
} else {
return atomBuilder_.getCount();
}
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData getAtom(int index) {
if (atomBuilder_ == null) {
return atom_.get(index);
} else {
return atomBuilder_.getMessage(index);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
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);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public Builder addAtom(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData value) {
if (atomBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAtomIsMutable();
atom_.add(value);
onChanged();
} else {
atomBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
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;
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
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());
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public Builder addAllAtom(
java.lang.Iterable extends net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData> values) {
if (atomBuilder_ == null) {
ensureAtomIsMutable();
super.addAll(values, atom_);
onChanged();
} else {
atomBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public Builder clearAtom() {
if (atomBuilder_ == null) {
atom_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
atomBuilder_.clear();
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public Builder removeAtom(int index) {
if (atomBuilder_ == null) {
ensureAtomIsMutable();
atom_.remove(index);
onChanged();
} else {
atomBuilder_.remove(index);
}
return this;
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder getAtomBuilder(
int index) {
return getAtomFieldBuilder().getBuilder(index);
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder getAtomOrBuilder(
int index) {
if (atomBuilder_ == null) {
return atom_.get(index); } else {
return atomBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public java.util.List extends net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder>
getAtomOrBuilderList() {
if (atomBuilder_ != null) {
return atomBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(atom_);
}
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder addAtomBuilder() {
return getAtomFieldBuilder().addBuilder(
net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder addAtomBuilder(
int index) {
return getAtomFieldBuilder().addBuilder(
index, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.getDefaultInstance());
}
/**
* repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;
*/
public java.util.Listoptional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional string nameEn = 2;
/**
* optional string nameEn = 2;
*/
boolean hasNameEn();
/**
* optional string nameEn = 2;
*/
java.lang.String getNameEn();
/**
* optional string nameEn = 2;
*/
com.google.protobuf.ByteString
getNameEnBytes();
// required uint32 type = 3;
/**
* required uint32 type = 3;
*
* * 1 - city, 2 - postcode, 3 - village, 4 - street **/ boolean hasType(); /** *
required uint32 type = 3;
*
* * 1 - city, 2 - postcode, 3 - village, 4 - street **/ int getType(); // repeated int32 shiftToIndex = 5; /** *
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ java.util.List
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ int getShiftToIndexCount(); /** *
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ int getShiftToIndex(int index); // repeated int32 shiftToCityIndex = 6; /** *
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ java.util.List
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ int getShiftToCityIndexCount(); /** *
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ int getShiftToCityIndex(int index); // repeated uint32 xy16 = 7; /** *
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ java.util.List
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ int getXy16Count(); /** *
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ int getXy16(int index); } /** * Protobuf type {@code OsmAnd.OBF.AddressNameIndexDataAtom} */ public static final class AddressNameIndexDataAtom extends com.google.protobuf.GeneratedMessage implements AddressNameIndexDataAtomOrBuilder { // Use AddressNameIndexDataAtom.newBuilder() to construct. private AddressNameIndexDataAtom(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AddressNameIndexDataAtom(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AddressNameIndexDataAtom defaultInstance; public static AddressNameIndexDataAtom getDefaultInstance() { return defaultInstance; } public AddressNameIndexDataAtom getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddressNameIndexDataAtom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; name_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; nameEn_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; type_ = input.readUInt32(); break; } case 40: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { shiftToIndex_ = new java.util.ArrayList
optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.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 java.lang.Object nameEn_;
/**
* optional string nameEn = 2;
*/
public boolean hasNameEn() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string nameEn = 2;
*/
public java.lang.String getNameEn() {
java.lang.Object ref = nameEn_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nameEn_ = s;
}
return s;
}
}
/**
* optional string nameEn = 2;
*/
public com.google.protobuf.ByteString
getNameEnBytes() {
java.lang.Object ref = nameEn_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.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 int type_;
/**
* required uint32 type = 3;
*
* * 1 - city, 2 - postcode, 3 - village, 4 - street **/ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
required uint32 type = 3;
*
* * 1 - city, 2 - postcode, 3 - village, 4 - street **/ public int getType() { return type_; } // repeated int32 shiftToIndex = 5; public static final int SHIFTTOINDEX_FIELD_NUMBER = 5; private java.util.List
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ public java.util.List
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ public int getShiftToIndexCount() { return shiftToIndex_.size(); } /** *
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ 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
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ public java.util.List
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ public int getShiftToCityIndexCount() { return shiftToCityIndex_.size(); } /** *
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ public int getShiftToCityIndex(int index) { return shiftToCityIndex_.get(index); } // repeated uint32 xy16 = 7; public static final int XY16_FIELD_NUMBER = 7; private java.util.List
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ public java.util.List
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ public int getXy16Count() { return xy16_.size(); } /** *
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ public int getXy16(int index) { return xy16_.get(index); } private void initFields() { name_ = ""; nameEn_ = ""; type_ = 0; shiftToIndex_ = java.util.Collections.emptyList(); shiftToCityIndex_ = java.util.Collections.emptyList(); xy16_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { 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 (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameEnBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, type_); } for (int i = 0; i < shiftToIndex_.size(); i++) { output.writeInt32(5, shiftToIndex_.get(i)); } for (int i = 0; i < shiftToCityIndex_.size(); i++) { output.writeInt32(6, shiftToCityIndex_.get(i)); } for (int i = 0; i < xy16_.size(); i++) { output.writeUInt32(7, xy16_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameEnBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, type_); } { int dataSize = 0; for (int i = 0; i < shiftToIndex_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(shiftToIndex_.get(i)); } size += dataSize; size += 1 * getShiftToIndexList().size(); } { int dataSize = 0; for (int i = 0; i < shiftToCityIndex_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(shiftToCityIndex_.get(i)); } size += dataSize; size += 1 * getShiftToCityIndexList().size(); } { int dataSize = 0; for (int i = 0; i < xy16_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(xy16_.get(i)); } size += dataSize; size += 1 * getXy16List().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.AddressNameIndexDataAtom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom prototype) { return newBuilder().mergeFrom(prototype); } 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; } /** * Protobuf type {@code OsmAnd.OBF.AddressNameIndexDataAtom} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// optional string nameEn = 2;
private java.lang.Object nameEn_ = "";
/**
* optional string nameEn = 2;
*/
public boolean hasNameEn() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string nameEn = 2;
*/
public java.lang.String getNameEn() {
java.lang.Object ref = nameEn_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
nameEn_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string nameEn = 2;
*/
public com.google.protobuf.ByteString
getNameEnBytes() {
java.lang.Object ref = nameEn_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nameEn_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string nameEn = 2;
*/
public Builder setNameEn(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
nameEn_ = value;
onChanged();
return this;
}
/**
* optional string nameEn = 2;
*/
public Builder clearNameEn() {
bitField0_ = (bitField0_ & ~0x00000002);
nameEn_ = getDefaultInstance().getNameEn();
onChanged();
return this;
}
/**
* optional string nameEn = 2;
*/
public Builder setNameEnBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
nameEn_ = value;
onChanged();
return this;
}
// required uint32 type = 3;
private int type_ ;
/**
* required uint32 type = 3;
*
* * 1 - city, 2 - postcode, 3 - village, 4 - street **/ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
required uint32 type = 3;
*
* * 1 - city, 2 - postcode, 3 - village, 4 - street **/ public int getType() { return type_; } /** *
required uint32 type = 3;
*
* * 1 - city, 2 - postcode, 3 - village, 4 - street **/ public Builder setType(int value) { bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** *
required uint32 type = 3;
*
* * 1 - city, 2 - postcode, 3 - village, 4 - street **/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = 0; onChanged(); return this; } // repeated int32 shiftToIndex = 5; private java.util.List
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ public java.util.List
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ public int getShiftToIndexCount() { return shiftToIndex_.size(); } /** *
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ public int getShiftToIndex(int index) { return shiftToIndex_.get(index); } /** *
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ public Builder setShiftToIndex( int index, int value) { ensureShiftToIndexIsMutable(); shiftToIndex_.set(index, value); onChanged(); return this; } /** *
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ public Builder addShiftToIndex(int value) { ensureShiftToIndexIsMutable(); shiftToIndex_.add(value); onChanged(); return this; } /** *
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ public Builder addAllShiftToIndex( java.lang.Iterable extends java.lang.Integer> values) { ensureShiftToIndexIsMutable(); super.addAll(values, shiftToIndex_); onChanged(); return this; } /** *
repeated int32 shiftToIndex = 5;
*
* * start mixed * shift from start AddressNameIndexData (!) to ...Index **/ public Builder clearShiftToIndex() { shiftToIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // repeated int32 shiftToCityIndex = 6; private java.util.List
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ public java.util.List
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ public int getShiftToCityIndexCount() { return shiftToCityIndex_.size(); } /** *
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ public int getShiftToCityIndex(int index) { return shiftToCityIndex_.get(index); } /** *
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ public Builder setShiftToCityIndex( int index, int value) { ensureShiftToCityIndexIsMutable(); shiftToCityIndex_.set(index, value); onChanged(); return this; } /** *
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ public Builder addShiftToCityIndex(int value) { ensureShiftToCityIndexIsMutable(); shiftToCityIndex_.add(value); onChanged(); return this; } /** *
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ public Builder addAllShiftToCityIndex( java.lang.Iterable extends java.lang.Integer> values) { ensureShiftToCityIndexIsMutable(); super.addAll(values, shiftToCityIndex_); onChanged(); return this; } /** *
repeated int32 shiftToCityIndex = 6;
*
* * optional used in case of type=street **/ public Builder clearShiftToCityIndex() { shiftToCityIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } // repeated uint32 xy16 = 7; private java.util.List
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ public java.util.List
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ public int getXy16Count() { return xy16_.size(); } /** *
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ public int getXy16(int index) { return xy16_.get(index); } /** *
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ public Builder setXy16( int index, int value) { ensureXy16IsMutable(); xy16_.set(index, value); onChanged(); return this; } /** *
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ public Builder addXy16(int value) { ensureXy16IsMutable(); xy16_.add(value); onChanged(); return this; } /** *
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ public Builder addAllXy16( java.lang.Iterable extends java.lang.Integer> values) { ensureXy16IsMutable(); super.addAll(values, xy16_); onChanged(); return this; } /** *
repeated uint32 xy16 = 7;
*
* * coordinates v2.3 **/ public Builder clearXy16() { xy16_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.AddressNameIndexDataAtom) } static { defaultInstance = new AddressNameIndexDataAtom(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.AddressNameIndexDataAtom) } public interface CityIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional uint32 city_type = 1; /** *
optional uint32 city_type = 1;
*
* * should be written the first (for city), for postcode is optional **/ boolean hasCityType(); /** *
optional uint32 city_type = 1;
*
* * should be written the first (for city), for postcode is optional **/ int getCityType(); // required string name = 2; /** *
required string name = 2;
*/
boolean hasName();
/**
* required string name = 2;
*/
java.lang.String getName();
/**
* required string name = 2;
*/
com.google.protobuf.ByteString
getNameBytes();
// optional string name_en = 3;
/**
* optional string name_en = 3;
*/
boolean hasNameEn();
/**
* optional string name_en = 3;
*/
java.lang.String getNameEn();
/**
* optional string name_en = 3;
*/
com.google.protobuf.ByteString
getNameEnBytes();
// optional uint64 id = 4;
/**
* optional uint64 id = 4;
*/
boolean hasId();
/**
* optional uint64 id = 4;
*/
long getId();
// required uint32 x = 5;
/**
* required uint32 x = 5;
*
* * x tile of 31 zoom **/ boolean hasX(); /** *
required uint32 x = 5;
*
* * x tile of 31 zoom **/ int getX(); // required uint32 y = 6; /** *
required uint32 y = 6;
*
* * y tile of 31 zoom **/ boolean hasY(); /** *
required uint32 y = 6;
*
* * y tile of 31 zoom **/ int getY(); // repeated uint32 attributeTagIds = 7; /** *
repeated uint32 attributeTagIds = 7;
*/
java.util.Listrepeated uint32 attributeTagIds = 7;
*/
int getAttributeTagIdsCount();
/**
* repeated uint32 attributeTagIds = 7;
*/
int getAttributeTagIds(int index);
// repeated string attributeValues = 8;
/**
* repeated string attributeValues = 8;
*/
java.util.Listrepeated string attributeValues = 8;
*/
int getAttributeValuesCount();
/**
* repeated string attributeValues = 8;
*/
java.lang.String getAttributeValues(int index);
/**
* repeated string attributeValues = 8;
*/
com.google.protobuf.ByteString
getAttributeValuesBytes(int index);
// optional fixed32 shiftToCityBlockIndex = 10;
/**
* optional fixed32 shiftToCityBlockIndex = 10;
*
* * shift from start CityIndex (without length) to cityBlockIndex **/ boolean hasShiftToCityBlockIndex(); /** *
optional fixed32 shiftToCityBlockIndex = 10;
*
* * shift from start CityIndex (without length) to cityBlockIndex **/ int getShiftToCityBlockIndex(); } /** * Protobuf type {@code OsmAnd.OBF.CityIndex} */ public static final class CityIndex extends com.google.protobuf.GeneratedMessage implements CityIndexOrBuilder { // Use CityIndex.newBuilder() to construct. private CityIndex(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CityIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CityIndex defaultInstance; public static CityIndex getDefaultInstance() { return defaultInstance; } public CityIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CityIndex( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; cityType_ = input.readUInt32(); break; } case 18: { bitField0_ |= 0x00000002; name_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; nameEn_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; id_ = input.readUInt64(); break; } case 40: { bitField0_ |= 0x00000010; x_ = input.readUInt32(); break; } case 48: { bitField0_ |= 0x00000020; y_ = input.readUInt32(); break; } case 56: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { attributeTagIds_ = new java.util.ArrayList
optional uint32 city_type = 1;
*
* * should be written the first (for city), for postcode is optional **/ public boolean hasCityType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
optional uint32 city_type = 1;
*
* * should be written the first (for city), for postcode is optional **/ public int getCityType() { return cityType_; } // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** *
required string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* required string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.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 java.lang.Object nameEn_;
/**
* optional string name_en = 3;
*/
public boolean hasNameEn() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string name_en = 3;
*/
public java.lang.String getNameEn() {
java.lang.Object ref = nameEn_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nameEn_ = s;
}
return s;
}
}
/**
* optional string name_en = 3;
*/
public com.google.protobuf.ByteString
getNameEnBytes() {
java.lang.Object ref = nameEn_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nameEn_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional uint64 id = 4;
public static final int ID_FIELD_NUMBER = 4;
private long id_;
/**
* optional uint64 id = 4;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint64 id = 4;
*/
public long getId() {
return id_;
}
// required uint32 x = 5;
public static final int X_FIELD_NUMBER = 5;
private int x_;
/**
* required uint32 x = 5;
*
* * x tile of 31 zoom **/ public boolean hasX() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
required uint32 x = 5;
*
* * x tile of 31 zoom **/ public int getX() { return x_; } // required uint32 y = 6; public static final int Y_FIELD_NUMBER = 6; private int y_; /** *
required uint32 y = 6;
*
* * y tile of 31 zoom **/ public boolean hasY() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
required uint32 y = 6;
*
* * y tile of 31 zoom **/ public int getY() { return y_; } // repeated uint32 attributeTagIds = 7; public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 7; private java.util.List
repeated uint32 attributeTagIds = 7;
*/
public java.util.List