// 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 getAddressIndexList(); /** * 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 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 getTransportIndexList(); /** * 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 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 getPoiIndexList(); /** * 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 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 getMapIndexList(); /** * 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 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 getRoutingIndexList(); /** * 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 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(); mutable_bitField0_ |= 0x00000008; } transportIndex_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndTransportIndex.PARSER, extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { mapIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } mapIndex_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndMapIndex.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { addressIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } addressIndex_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.PARSER, extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { poiIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } poiIndex_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndPoiIndex.PARSER, extensionRegistry)); break; } case 74: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { routingIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } routingIndex_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.PARSER, extensionRegistry)); break; } case 144: { bitField0_ |= 0x00000002; dateCreated_ = input.readInt64(); break; } case 256: { bitField0_ |= 0x00000004; versionConfirm_ = 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 { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { transportIndex_ = java.util.Collections.unmodifiableList(transportIndex_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { mapIndex_ = java.util.Collections.unmodifiableList(mapIndex_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { addressIndex_ = java.util.Collections.unmodifiableList(addressIndex_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { poiIndex_ = java.util.Collections.unmodifiableList(poiIndex_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { routingIndex_ = java.util.Collections.unmodifiableList(routingIndex_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndStructure_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndStructure.class, net.osmand.binary.OsmandOdb.OsmAndStructure.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndStructure parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndStructure(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required uint32 version = 1; public static final int VERSION_FIELD_NUMBER = 1; private int version_; /** * 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 addressIndex_; /** * repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; * *
     * first version of map index was 3.
     * encoded as fixed32 length delimited  
     * 
*/ public java.util.List getAddressIndexList() { return addressIndex_; } /** * repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; * *
     * first version of map index was 3.
     * encoded as fixed32 length delimited  
     * 
*/ public java.util.List 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 transportIndex_; /** * repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4; * *
     * encoded as fixed32 length delimited  
     * 
*/ public java.util.List getTransportIndexList() { return transportIndex_; } /** * repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4; * *
     * encoded as fixed32 length delimited  
     * 
*/ public java.util.List 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 poiIndex_; /** * repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8; * *
     * slight changes previous version was 5
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getPoiIndexList() { return poiIndex_; } /** * repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8; * *
     * slight changes previous version was 5
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List 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 mapIndex_; /** * repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6; * *
     * first version of map index was 2.
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getMapIndexList() { return mapIndex_; } /** * repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6; * *
     * first version of map index was 2.
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List 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 routingIndex_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getRoutingIndexList() { return routingIndex_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List 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 implements net.osmand.binary.OsmandOdb.OsmAndStructureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndStructure_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndStructure.class, net.osmand.binary.OsmandOdb.OsmAndStructure.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndStructure.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAddressIndexFieldBuilder(); getTransportIndexFieldBuilder(); getPoiIndexFieldBuilder(); getMapIndexFieldBuilder(); getRoutingIndexFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); version_ = 0; bitField0_ = (bitField0_ & ~0x00000001); dateCreated_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); if (addressIndexBuilder_ == null) { addressIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { addressIndexBuilder_.clear(); } if (transportIndexBuilder_ == null) { transportIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { transportIndexBuilder_.clear(); } if (poiIndexBuilder_ == null) { poiIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { poiIndexBuilder_.clear(); } if (mapIndexBuilder_ == null) { mapIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { mapIndexBuilder_.clear(); } if (routingIndexBuilder_ == null) { routingIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { routingIndexBuilder_.clear(); } versionConfirm_ = 0; bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndStructure_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndStructure getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndStructure.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndStructure build() { net.osmand.binary.OsmandOdb.OsmAndStructure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndStructure buildPartial() { net.osmand.binary.OsmandOdb.OsmAndStructure result = new net.osmand.binary.OsmandOdb.OsmAndStructure(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.dateCreated_ = dateCreated_; if (addressIndexBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { addressIndex_ = java.util.Collections.unmodifiableList(addressIndex_); bitField0_ = (bitField0_ & ~0x00000004); } result.addressIndex_ = addressIndex_; } else { result.addressIndex_ = addressIndexBuilder_.build(); } if (transportIndexBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { transportIndex_ = java.util.Collections.unmodifiableList(transportIndex_); bitField0_ = (bitField0_ & ~0x00000008); } result.transportIndex_ = transportIndex_; } else { result.transportIndex_ = transportIndexBuilder_.build(); } if (poiIndexBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { poiIndex_ = java.util.Collections.unmodifiableList(poiIndex_); bitField0_ = (bitField0_ & ~0x00000010); } result.poiIndex_ = poiIndex_; } else { result.poiIndex_ = poiIndexBuilder_.build(); } if (mapIndexBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { mapIndex_ = java.util.Collections.unmodifiableList(mapIndex_); bitField0_ = (bitField0_ & ~0x00000020); } result.mapIndex_ = mapIndex_; } else { result.mapIndex_ = mapIndexBuilder_.build(); } if (routingIndexBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { routingIndex_ = java.util.Collections.unmodifiableList(routingIndex_); bitField0_ = (bitField0_ & ~0x00000040); } result.routingIndex_ = routingIndex_; } else { result.routingIndex_ = routingIndexBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000004; } result.versionConfirm_ = versionConfirm_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndStructure) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndStructure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndStructure other) { if (other == net.osmand.binary.OsmandOdb.OsmAndStructure.getDefaultInstance()) return this; if (other.hasVersion()) { setVersion(other.getVersion()); } if (other.hasDateCreated()) { setDateCreated(other.getDateCreated()); } if (addressIndexBuilder_ == null) { if (!other.addressIndex_.isEmpty()) { if (addressIndex_.isEmpty()) { addressIndex_ = other.addressIndex_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAddressIndexIsMutable(); addressIndex_.addAll(other.addressIndex_); } onChanged(); } } else { if (!other.addressIndex_.isEmpty()) { if (addressIndexBuilder_.isEmpty()) { addressIndexBuilder_.dispose(); addressIndexBuilder_ = null; addressIndex_ = other.addressIndex_; bitField0_ = (bitField0_ & ~0x00000004); addressIndexBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAddressIndexFieldBuilder() : null; } else { addressIndexBuilder_.addAllMessages(other.addressIndex_); } } } if (transportIndexBuilder_ == null) { if (!other.transportIndex_.isEmpty()) { if (transportIndex_.isEmpty()) { transportIndex_ = other.transportIndex_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTransportIndexIsMutable(); transportIndex_.addAll(other.transportIndex_); } onChanged(); } } else { if (!other.transportIndex_.isEmpty()) { if (transportIndexBuilder_.isEmpty()) { transportIndexBuilder_.dispose(); transportIndexBuilder_ = null; transportIndex_ = other.transportIndex_; bitField0_ = (bitField0_ & ~0x00000008); transportIndexBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTransportIndexFieldBuilder() : null; } else { transportIndexBuilder_.addAllMessages(other.transportIndex_); } } } if (poiIndexBuilder_ == null) { if (!other.poiIndex_.isEmpty()) { if (poiIndex_.isEmpty()) { poiIndex_ = other.poiIndex_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePoiIndexIsMutable(); poiIndex_.addAll(other.poiIndex_); } onChanged(); } } else { if (!other.poiIndex_.isEmpty()) { if (poiIndexBuilder_.isEmpty()) { poiIndexBuilder_.dispose(); poiIndexBuilder_ = null; poiIndex_ = other.poiIndex_; bitField0_ = (bitField0_ & ~0x00000010); poiIndexBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPoiIndexFieldBuilder() : null; } else { poiIndexBuilder_.addAllMessages(other.poiIndex_); } } } if (mapIndexBuilder_ == null) { if (!other.mapIndex_.isEmpty()) { if (mapIndex_.isEmpty()) { mapIndex_ = other.mapIndex_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureMapIndexIsMutable(); mapIndex_.addAll(other.mapIndex_); } onChanged(); } } else { if (!other.mapIndex_.isEmpty()) { if (mapIndexBuilder_.isEmpty()) { mapIndexBuilder_.dispose(); mapIndexBuilder_ = null; mapIndex_ = other.mapIndex_; bitField0_ = (bitField0_ & ~0x00000020); mapIndexBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMapIndexFieldBuilder() : null; } else { mapIndexBuilder_.addAllMessages(other.mapIndex_); } } } if (routingIndexBuilder_ == null) { if (!other.routingIndex_.isEmpty()) { if (routingIndex_.isEmpty()) { routingIndex_ = other.routingIndex_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureRoutingIndexIsMutable(); routingIndex_.addAll(other.routingIndex_); } onChanged(); } } else { if (!other.routingIndex_.isEmpty()) { if (routingIndexBuilder_.isEmpty()) { routingIndexBuilder_.dispose(); routingIndexBuilder_ = null; routingIndex_ = other.routingIndex_; bitField0_ = (bitField0_ & ~0x00000040); routingIndexBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRoutingIndexFieldBuilder() : null; } else { routingIndexBuilder_.addAllMessages(other.routingIndex_); } } } if (other.hasVersionConfirm()) { setVersionConfirm(other.getVersionConfirm()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasVersion()) { return false; } if (!hasDateCreated()) { return false; } if (!hasVersionConfirm()) { return false; } for (int i = 0; i < getAddressIndexCount(); i++) { if (!getAddressIndex(i).isInitialized()) { return false; } } for (int i = 0; i < getTransportIndexCount(); i++) { if (!getTransportIndex(i).isInitialized()) { return false; } } for (int i = 0; i < getPoiIndexCount(); i++) { if (!getPoiIndex(i).isInitialized()) { return false; } } for (int i = 0; i < getMapIndexCount(); i++) { if (!getMapIndex(i).isInitialized()) { return false; } } for (int i = 0; i < getRoutingIndexCount(); i++) { if (!getRoutingIndex(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndStructure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndStructure) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required uint32 version = 1; private int version_ ; /** * 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 addressIndex_ = java.util.Collections.emptyList(); private void ensureAddressIndexIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { addressIndex_ = new java.util.ArrayList(addressIndex_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndAddressIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder> addressIndexBuilder_; /** * repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; * *
       * first version of map index was 3.
       * encoded as fixed32 length delimited  
       * 
*/ public java.util.List getAddressIndexList() { if (addressIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(addressIndex_); } else { return addressIndexBuilder_.getMessageList(); } } /** * 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 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 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 getAddressIndexBuilderList() { return getAddressIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndAddressIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder> getAddressIndexFieldBuilder() { if (addressIndexBuilder_ == null) { addressIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndAddressIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder>( addressIndex_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); addressIndex_ = null; } return addressIndexBuilder_; } // repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4; private java.util.List transportIndex_ = java.util.Collections.emptyList(); private void ensureTransportIndexIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { transportIndex_ = new java.util.ArrayList(transportIndex_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndTransportIndex, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder> transportIndexBuilder_; /** * repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4; * *
       * encoded as fixed32 length delimited  
       * 
*/ public java.util.List getTransportIndexList() { if (transportIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(transportIndex_); } else { return transportIndexBuilder_.getMessageList(); } } /** * 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 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 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 getTransportIndexBuilderList() { return getTransportIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndTransportIndex, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder> getTransportIndexFieldBuilder() { if (transportIndexBuilder_ == null) { transportIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndTransportIndex, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder>( transportIndex_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); transportIndex_ = null; } return transportIndexBuilder_; } // repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8; private java.util.List poiIndex_ = java.util.Collections.emptyList(); private void ensurePoiIndexIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { poiIndex_ = new java.util.ArrayList(poiIndex_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiIndex, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder> poiIndexBuilder_; /** * repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8; * *
       * slight changes previous version was 5
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getPoiIndexList() { if (poiIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(poiIndex_); } else { return poiIndexBuilder_.getMessageList(); } } /** * 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 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 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 getPoiIndexBuilderList() { return getPoiIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiIndex, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder> getPoiIndexFieldBuilder() { if (poiIndexBuilder_ == null) { poiIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiIndex, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder>( poiIndex_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); poiIndex_ = null; } return poiIndexBuilder_; } // repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6; private java.util.List mapIndex_ = java.util.Collections.emptyList(); private void ensureMapIndexIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { mapIndex_ = new java.util.ArrayList(mapIndex_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder> mapIndexBuilder_; /** * repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6; * *
       * first version of map index was 2.
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getMapIndexList() { if (mapIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(mapIndex_); } else { return mapIndexBuilder_.getMessageList(); } } /** * 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 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 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 getMapIndexBuilderList() { return getMapIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder> getMapIndexFieldBuilder() { if (mapIndexBuilder_ == null) { mapIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder>( mapIndex_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); mapIndex_ = null; } return mapIndexBuilder_; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9; private java.util.List routingIndex_ = java.util.Collections.emptyList(); private void ensureRoutingIndexIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { routingIndex_ = new java.util.ArrayList(routingIndex_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder> routingIndexBuilder_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getRoutingIndexList() { if (routingIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(routingIndex_); } else { return routingIndexBuilder_.getMessageList(); } } /** * 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 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 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 getRoutingIndexBuilderList() { return getRoutingIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder> getRoutingIndexFieldBuilder() { if (routingIndexBuilder_ == null) { routingIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder>( routingIndex_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); routingIndex_ = null; } return routingIndexBuilder_; } // required uint32 versionConfirm = 32; private int versionConfirm_ ; /** * 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.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndTileBox parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndTileBox(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required uint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; private int left_; /** * required 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.Builder implements net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTileBox_descriptor; } protected 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); } // Construct using net.osmand.binary.OsmandOdb.OsmAndTileBox.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); left_ = 0; bitField0_ = (bitField0_ & ~0x00000001); right_ = 0; bitField0_ = (bitField0_ & ~0x00000002); top_ = 0; bitField0_ = (bitField0_ & ~0x00000004); bottom_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTileBox_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndTileBox getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndTileBox build() { net.osmand.binary.OsmandOdb.OsmAndTileBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndTileBox buildPartial() { net.osmand.binary.OsmandOdb.OsmAndTileBox result = new net.osmand.binary.OsmandOdb.OsmAndTileBox(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.left_ = left_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.right_ = right_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.top_ = top_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.bottom_ = bottom_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndTileBox) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndTileBox)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndTileBox other) { if (other == net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance()) return this; if (other.hasLeft()) { setLeft(other.getLeft()); } if (other.hasRight()) { setRight(other.getRight()); } if (other.hasTop()) { setTop(other.getTop()); } if (other.hasBottom()) { setBottom(other.getBottom()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasLeft()) { return false; } if (!hasRight()) { return false; } if (!hasTop()) { return false; } if (!hasBottom()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndTileBox parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndTileBox) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required uint32 left = 1; private int left_ ; /** * required 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.List getSList(); /** * repeated 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 PARSER = new com.google.protobuf.AbstractParser() { public StringTable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StringTable(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated string s = 1; public static final int S_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList s_; /** * repeated string s = 1; */ public java.util.List getSList() { return s_; } /** * repeated 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 implements net.osmand.binary.OsmandOdb.StringTableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StringTable_descriptor; } protected 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); } // Construct using net.osmand.binary.OsmandOdb.StringTable.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); s_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StringTable_descriptor; } public net.osmand.binary.OsmandOdb.StringTable getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.StringTable build() { net.osmand.binary.OsmandOdb.StringTable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.StringTable buildPartial() { net.osmand.binary.OsmandOdb.StringTable result = new net.osmand.binary.OsmandOdb.StringTable(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { s_ = new com.google.protobuf.UnmodifiableLazyStringList( s_); bitField0_ = (bitField0_ & ~0x00000001); } result.s_ = s_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.StringTable) { return mergeFrom((net.osmand.binary.OsmandOdb.StringTable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.StringTable other) { if (other == net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) return this; if (!other.s_.isEmpty()) { if (s_.isEmpty()) { s_ = other.s_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSIsMutable(); s_.addAll(other.s_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.StringTable parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.StringTable) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated string s = 1; private com.google.protobuf.LazyStringList s_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { s_ = new com.google.protobuf.LazyStringArrayList(s_); bitField0_ |= 0x00000001; } } /** * repeated string s = 1; */ public java.util.List getSList() { return java.util.Collections.unmodifiableList(s_); } /** * repeated 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.Iterable values) { ensureSIsMutable(); super.addAll(values, s_); onChanged(); return this; } /** * repeated 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 getKeyList(); /** * 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 getValList(); /** * 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 getSubtablesList(); /** * 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 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(); mutable_bitField0_ |= 0x00000004; } val_.add(input.readFixed32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { val_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { val_.add(input.readFixed32()); } input.popLimit(limit); break; } case 42: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { subtables_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } subtables_.add(input.readMessage(net.osmand.binary.OsmandOdb.IndexedStringTable.PARSER, extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { key_ = new com.google.protobuf.UnmodifiableLazyStringList(key_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { val_ = java.util.Collections.unmodifiableList(val_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { subtables_ = java.util.Collections.unmodifiableList(subtables_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IndexedStringTable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IndexedStringTable_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.IndexedStringTable.class, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IndexedStringTable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IndexedStringTable(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string prefix = 1; public static final int PREFIX_FIELD_NUMBER = 1; private java.lang.Object prefix_; /** * 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 getKeyList() { return 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 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 val_; /** * repeated fixed32 val = 4; * *
     * the shift to the data or one uint data itself
     * 
*/ public java.util.List getValList() { return val_; } /** * 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 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 java.util.List getSubtablesList() { 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 java.util.List 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 implements net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IndexedStringTable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IndexedStringTable_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.IndexedStringTable.class, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.IndexedStringTable.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSubtablesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); prefix_ = ""; bitField0_ = (bitField0_ & ~0x00000001); key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); val_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); if (subtablesBuilder_ == null) { subtables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { subtablesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IndexedStringTable_descriptor; } public net.osmand.binary.OsmandOdb.IndexedStringTable getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.IndexedStringTable build() { net.osmand.binary.OsmandOdb.IndexedStringTable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.IndexedStringTable buildPartial() { net.osmand.binary.OsmandOdb.IndexedStringTable result = new net.osmand.binary.OsmandOdb.IndexedStringTable(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.prefix_ = prefix_; if (((bitField0_ & 0x00000002) == 0x00000002)) { key_ = new com.google.protobuf.UnmodifiableLazyStringList( key_); bitField0_ = (bitField0_ & ~0x00000002); } result.key_ = key_; if (((bitField0_ & 0x00000004) == 0x00000004)) { val_ = java.util.Collections.unmodifiableList(val_); bitField0_ = (bitField0_ & ~0x00000004); } result.val_ = val_; if (subtablesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { subtables_ = java.util.Collections.unmodifiableList(subtables_); bitField0_ = (bitField0_ & ~0x00000008); } result.subtables_ = subtables_; } else { result.subtables_ = subtablesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.IndexedStringTable) { return mergeFrom((net.osmand.binary.OsmandOdb.IndexedStringTable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.IndexedStringTable other) { if (other == net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()) return this; if (other.hasPrefix()) { bitField0_ |= 0x00000001; prefix_ = other.prefix_; onChanged(); } if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } if (!other.val_.isEmpty()) { if (val_.isEmpty()) { val_ = other.val_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValIsMutable(); val_.addAll(other.val_); } onChanged(); } if (subtablesBuilder_ == null) { if (!other.subtables_.isEmpty()) { if (subtables_.isEmpty()) { subtables_ = other.subtables_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSubtablesIsMutable(); subtables_.addAll(other.subtables_); } onChanged(); } } else { if (!other.subtables_.isEmpty()) { if (subtablesBuilder_.isEmpty()) { subtablesBuilder_.dispose(); subtablesBuilder_ = null; subtables_ = other.subtables_; bitField0_ = (bitField0_ & ~0x00000008); subtablesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSubtablesFieldBuilder() : null; } else { subtablesBuilder_.addAllMessages(other.subtables_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.IndexedStringTable parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.IndexedStringTable) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string prefix = 1; private java.lang.Object prefix_ = ""; /** * 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 getKeyList() { return java.util.Collections.unmodifiableList(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 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 values) { ensureKeyIsMutable(); super.addAll(values, key_); 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 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 val_ = java.util.Collections.emptyList(); private void ensureValIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { val_ = new java.util.ArrayList(val_); bitField0_ |= 0x00000004; } } /** * repeated fixed32 val = 4; * *
       * the shift to the data or one uint data itself
       * 
*/ public java.util.List getValList() { return java.util.Collections.unmodifiableList(val_); } /** * 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 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 subtables_ = java.util.Collections.emptyList(); private void ensureSubtablesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { subtables_ = new java.util.ArrayList(subtables_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> subtablesBuilder_; /** * 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 getSubtablesList() { if (subtablesBuilder_ == null) { return java.util.Collections.unmodifiableList(subtables_); } else { return subtablesBuilder_.getMessageList(); } } /** * 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 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 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 getSubtablesBuilderList() { return getSubtablesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> getSubtablesFieldBuilder() { if (subtablesBuilder_ == null) { subtablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder>( subtables_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); subtables_ = null; } return subtablesBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.IndexedStringTable) } static { defaultInstance = new IndexedStringTable(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.IndexedStringTable) } public interface OsmAndMapIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { // 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(); // repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4; /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4; */ java.util.List getRulesList(); /** * repeated .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 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 getLevelsList(); /** * 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 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(); mutable_bitField0_ |= 0x00000002; } rules_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { levels_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } levels_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.PARSER, extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { rules_ = java.util.Collections.unmodifiableList(rules_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { levels_ = java.util.Collections.unmodifiableList(levels_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndMapIndex.class, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndMapIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndMapIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface MapEncodingRuleOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string tag = 3; /** * 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 PARSER = new com.google.protobuf.AbstractParser() { public MapEncodingRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MapEncodingRule(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string tag = 3; public static final int TAG_FIELD_NUMBER = 3; private java.lang.Object tag_; /** * 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 implements net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_descriptor; } protected 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); } // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); tag_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); id_ = 0; bitField0_ = (bitField0_ & ~0x00000004); minZoom_ = 0; bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule build() { net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule buildPartial() { net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.id_ = id_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.minZoom_ = minZoom_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule other) { if (other == net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.getDefaultInstance()) return this; if (other.hasTag()) { bitField0_ |= 0x00000001; tag_ = other.tag_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.hasMinZoom()) { setMinZoom(other.getMinZoom()); } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTag()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string tag = 3; private java.lang.Object tag_ = ""; /** * 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.List getBoxesList(); /** * repeated .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 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.List getBlocksList(); /** * repeated .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 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.ArrayList(); mutable_bitField0_ |= 0x00000040; } boxes_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.PARSER, extensionRegistry)); break; } case 122: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { blocks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } blocks_.add(input.readMessage(net.osmand.binary.OsmandOdb.MapDataBlock.PARSER, extensionRegistry)); 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_ & 0x00000040) == 0x00000040)) { boxes_ = java.util.Collections.unmodifiableList(boxes_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.class, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MapRootLevel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MapRootLevel(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 maxZoom = 1; public static final int MAXZOOM_FIELD_NUMBER = 1; private int maxZoom_; /** * required 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.List boxes_; /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; */ public java.util.List getBoxesList() { return boxes_; } /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; */ public java.util.List 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.List blocks_; /** * repeated .OsmAnd.OBF.MapDataBlock blocks = 15; */ public java.util.List getBlocksList() { return blocks_; } /** * repeated .OsmAnd.OBF.MapDataBlock blocks = 15; */ public java.util.List 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.Builder implements net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.class, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBoxesFieldBuilder(); getBlocksFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); maxZoom_ = 0; bitField0_ = (bitField0_ & ~0x00000001); minZoom_ = 0; bitField0_ = (bitField0_ & ~0x00000002); left_ = 0; bitField0_ = (bitField0_ & ~0x00000004); right_ = 0; bitField0_ = (bitField0_ & ~0x00000008); top_ = 0; bitField0_ = (bitField0_ & ~0x00000010); bottom_ = 0; bitField0_ = (bitField0_ & ~0x00000020); if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { boxesBuilder_.clear(); } if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { blocksBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel build() { net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel buildPartial() { net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.maxZoom_ = maxZoom_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.minZoom_ = minZoom_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.left_ = left_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.right_ = right_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.top_ = top_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.bottom_ = bottom_; if (boxesBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { boxes_ = java.util.Collections.unmodifiableList(boxes_); bitField0_ = (bitField0_ & ~0x00000040); } result.boxes_ = boxes_; } else { result.boxes_ = boxesBuilder_.build(); } if (blocksBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); bitField0_ = (bitField0_ & ~0x00000080); } result.blocks_ = blocks_; } else { result.blocks_ = blocksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel other) { if (other == net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.getDefaultInstance()) return this; if (other.hasMaxZoom()) { setMaxZoom(other.getMaxZoom()); } if (other.hasMinZoom()) { setMinZoom(other.getMinZoom()); } if (other.hasLeft()) { setLeft(other.getLeft()); } if (other.hasRight()) { setRight(other.getRight()); } if (other.hasTop()) { setTop(other.getTop()); } if (other.hasBottom()) { setBottom(other.getBottom()); } if (boxesBuilder_ == null) { if (!other.boxes_.isEmpty()) { if (boxes_.isEmpty()) { boxes_ = other.boxes_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureBoxesIsMutable(); boxes_.addAll(other.boxes_); } onChanged(); } } else { if (!other.boxes_.isEmpty()) { if (boxesBuilder_.isEmpty()) { boxesBuilder_.dispose(); boxesBuilder_ = null; boxes_ = other.boxes_; bitField0_ = (bitField0_ & ~0x00000040); boxesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBoxesFieldBuilder() : null; } else { boxesBuilder_.addAllMessages(other.boxes_); } } } if (blocksBuilder_ == null) { if (!other.blocks_.isEmpty()) { if (blocks_.isEmpty()) { blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureBlocksIsMutable(); blocks_.addAll(other.blocks_); } onChanged(); } } else { if (!other.blocks_.isEmpty()) { if (blocksBuilder_.isEmpty()) { blocksBuilder_.dispose(); blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000080); blocksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasMaxZoom()) { return false; } if (!hasMinZoom()) { return false; } if (!hasLeft()) { return false; } if (!hasRight()) { return false; } if (!hasTop()) { return false; } if (!hasBottom()) { return false; } for (int i = 0; i < getBoxesCount(); i++) { if (!getBoxes(i).isInitialized()) { return false; } } for (int i = 0; i < getBlocksCount(); i++) { if (!getBlocks(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 maxZoom = 1; private int maxZoom_ ; /** * required 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.List boxes_ = java.util.Collections.emptyList(); private void ensureBoxesIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { boxes_ = new java.util.ArrayList(boxes_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> boxesBuilder_; /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; */ public java.util.List getBoxesList() { if (boxesBuilder_ == null) { return java.util.Collections.unmodifiableList(boxes_); } else { return boxesBuilder_.getMessageList(); } } /** * repeated .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 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 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.List getBoxesBuilderList() { return getBoxesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> getBoxesFieldBuilder() { if (boxesBuilder_ == null) { boxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder>( boxes_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); boxes_ = null; } return boxesBuilder_; } // repeated .OsmAnd.OBF.MapDataBlock blocks = 15; private java.util.List blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.MapDataBlock, net.osmand.binary.OsmandOdb.MapDataBlock.Builder, net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder> blocksBuilder_; /** * repeated .OsmAnd.OBF.MapDataBlock blocks = 15; */ public java.util.List getBlocksList() { if (blocksBuilder_ == null) { return java.util.Collections.unmodifiableList(blocks_); } else { return blocksBuilder_.getMessageList(); } } /** * repeated .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 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 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.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.MapDataBlock, net.osmand.binary.OsmandOdb.MapDataBlock.Builder, net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.MapDataBlock, net.osmand.binary.OsmandOdb.MapDataBlock.Builder, net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder>( blocks_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndMapIndex.MapRootLevel) } static { defaultInstance = new MapRootLevel(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndMapIndex.MapRootLevel) } public interface MapDataBoxOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint32 left = 1; /** * required 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.List getBoxesList(); /** * repeated .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 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.ArrayList(); mutable_bitField0_ |= 0x00000040; } boxes_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.PARSER, extensionRegistry)); 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_ & 0x00000040) == 0x00000040)) { boxes_ = java.util.Collections.unmodifiableList(boxes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.class, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MapDataBox parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MapDataBox(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required sint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; private int left_; /** * required 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 boxes_; /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; */ public java.util.List getBoxesList() { return boxes_; } /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; */ public java.util.List 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.Builder implements net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.class, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBoxesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); left_ = 0; bitField0_ = (bitField0_ & ~0x00000001); right_ = 0; bitField0_ = (bitField0_ & ~0x00000002); top_ = 0; bitField0_ = (bitField0_ & ~0x00000004); bottom_ = 0; bitField0_ = (bitField0_ & ~0x00000008); shiftToMapData_ = 0; bitField0_ = (bitField0_ & ~0x00000010); ocean_ = false; bitField0_ = (bitField0_ & ~0x00000020); if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { boxesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox build() { net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox buildPartial() { net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.left_ = left_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.right_ = right_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.top_ = top_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.bottom_ = bottom_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.shiftToMapData_ = shiftToMapData_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.ocean_ = ocean_; if (boxesBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { boxes_ = java.util.Collections.unmodifiableList(boxes_); bitField0_ = (bitField0_ & ~0x00000040); } result.boxes_ = boxes_; } else { result.boxes_ = boxesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox other) { if (other == net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance()) return this; if (other.hasLeft()) { setLeft(other.getLeft()); } if (other.hasRight()) { setRight(other.getRight()); } if (other.hasTop()) { setTop(other.getTop()); } if (other.hasBottom()) { setBottom(other.getBottom()); } if (other.hasShiftToMapData()) { setShiftToMapData(other.getShiftToMapData()); } if (other.hasOcean()) { setOcean(other.getOcean()); } if (boxesBuilder_ == null) { if (!other.boxes_.isEmpty()) { if (boxes_.isEmpty()) { boxes_ = other.boxes_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureBoxesIsMutable(); boxes_.addAll(other.boxes_); } onChanged(); } } else { if (!other.boxes_.isEmpty()) { if (boxesBuilder_.isEmpty()) { boxesBuilder_.dispose(); boxesBuilder_ = null; boxes_ = other.boxes_; bitField0_ = (bitField0_ & ~0x00000040); boxesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBoxesFieldBuilder() : null; } else { boxesBuilder_.addAllMessages(other.boxes_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasLeft()) { return false; } if (!hasRight()) { return false; } if (!hasTop()) { return false; } if (!hasBottom()) { return false; } for (int i = 0; i < getBoxesCount(); i++) { if (!getBoxes(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required sint32 left = 1; private int left_ ; /** * required 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 boxes_ = java.util.Collections.emptyList(); private void ensureBoxesIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { boxes_ = new java.util.ArrayList(boxes_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> boxesBuilder_; /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; */ public java.util.List getBoxesList() { if (boxesBuilder_ == null) { return java.util.Collections.unmodifiableList(boxes_); } else { return boxesBuilder_.getMessageList(); } } /** * repeated .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 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 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.List getBoxesBuilderList() { return getBoxesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> getBoxesFieldBuilder() { if (boxesBuilder_ == null) { boxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder>( boxes_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); boxes_ = null; } return boxesBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndMapIndex.MapDataBox) } static { defaultInstance = new MapDataBox(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndMapIndex.MapDataBox) } private int bitField0_; // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** * 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) { 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.List rules_; /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4; */ public java.util.List getRulesList() { return rules_; } /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4; */ public java.util.List 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.List levels_; /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getLevelsList() { return levels_; } /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List 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 implements net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndMapIndex.class, net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndMapIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRulesFieldBuilder(); getLevelsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rulesBuilder_.clear(); } if (levelsBuilder_ == null) { levels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { levelsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndMapIndex_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndMapIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndMapIndex build() { net.osmand.binary.OsmandOdb.OsmAndMapIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndMapIndex buildPartial() { net.osmand.binary.OsmandOdb.OsmAndMapIndex result = new net.osmand.binary.OsmandOdb.OsmAndMapIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000002); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } if (levelsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { levels_ = java.util.Collections.unmodifiableList(levels_); bitField0_ = (bitField0_ & ~0x00000004); } result.levels_ = levels_; } else { result.levels_ = levelsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndMapIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndMapIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndMapIndex other) { if (other == net.osmand.binary.OsmandOdb.OsmAndMapIndex.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000002); rulesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } if (levelsBuilder_ == null) { if (!other.levels_.isEmpty()) { if (levels_.isEmpty()) { levels_ = other.levels_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLevelsIsMutable(); levels_.addAll(other.levels_); } onChanged(); } } else { if (!other.levels_.isEmpty()) { if (levelsBuilder_.isEmpty()) { levelsBuilder_.dispose(); levelsBuilder_ = null; levels_ = other.levels_; bitField0_ = (bitField0_ & ~0x00000004); levelsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLevelsFieldBuilder() : null; } else { levelsBuilder_.addAllMessages(other.levels_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } for (int i = 0; i < getRulesCount(); i++) { if (!getRules(i).isInitialized()) { return false; } } for (int i = 0; i < getLevelsCount(); i++) { if (!getLevels(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndMapIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndMapIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string name = 2; private java.lang.Object name_ = ""; /** * 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.List rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder> rulesBuilder_; /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4; */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** * repeated .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 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 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.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder>( rules_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5; private java.util.List levels_ = java.util.Collections.emptyList(); private void ensureLevelsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { levels_ = new java.util.ArrayList(levels_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder> levelsBuilder_; /** * repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getLevelsList() { if (levelsBuilder_ == null) { return java.util.Collections.unmodifiableList(levels_); } else { return levelsBuilder_.getMessageList(); } } /** * 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 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 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 getLevelsBuilderList() { return getLevelsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder> getLevelsFieldBuilder() { if (levelsBuilder_ == null) { levelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder>( levels_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); levels_ = null; } return levelsBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndMapIndex) } static { defaultInstance = new OsmAndMapIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndMapIndex) } public interface MapDataBlockOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional uint64 baseId = 10; /** * 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 getDataObjectsList(); /** * 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 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(); mutable_bitField0_ |= 0x00000002; } dataObjects_.add(input.readMessage(net.osmand.binary.OsmandOdb.MapData.PARSER, extensionRegistry)); break; } case 122: { net.osmand.binary.OsmandOdb.StringTable.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = stringTable_.toBuilder(); } stringTable_ = input.readMessage(net.osmand.binary.OsmandOdb.StringTable.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stringTable_); stringTable_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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_ & 0x00000002) == 0x00000002)) { dataObjects_ = java.util.Collections.unmodifiableList(dataObjects_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapDataBlock_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapDataBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.MapDataBlock.class, net.osmand.binary.OsmandOdb.MapDataBlock.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MapDataBlock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MapDataBlock(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional uint64 baseId = 10; public static final int BASEID_FIELD_NUMBER = 10; private long baseId_; /** * 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.List dataObjects_; /** * repeated .OsmAnd.OBF.MapData dataObjects = 12; * *
     * in future here can be optional raster tile
     * 
*/ public java.util.List getDataObjectsList() { return dataObjects_; } /** * repeated .OsmAnd.OBF.MapData dataObjects = 12; * *
     * in future here can be optional raster tile
     * 
*/ public java.util.List 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 implements net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapDataBlock_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapDataBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.MapDataBlock.class, net.osmand.binary.OsmandOdb.MapDataBlock.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.MapDataBlock.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDataObjectsFieldBuilder(); getStringTableFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); baseId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); if (dataObjectsBuilder_ == null) { dataObjects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { dataObjectsBuilder_.clear(); } if (stringTableBuilder_ == null) { stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } else { stringTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapDataBlock_descriptor; } public net.osmand.binary.OsmandOdb.MapDataBlock getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.MapDataBlock.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.MapDataBlock build() { net.osmand.binary.OsmandOdb.MapDataBlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.MapDataBlock buildPartial() { net.osmand.binary.OsmandOdb.MapDataBlock result = new net.osmand.binary.OsmandOdb.MapDataBlock(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.baseId_ = baseId_; if (dataObjectsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { dataObjects_ = java.util.Collections.unmodifiableList(dataObjects_); bitField0_ = (bitField0_ & ~0x00000002); } result.dataObjects_ = dataObjects_; } else { result.dataObjects_ = dataObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (stringTableBuilder_ == null) { result.stringTable_ = stringTable_; } else { result.stringTable_ = stringTableBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.MapDataBlock) { return mergeFrom((net.osmand.binary.OsmandOdb.MapDataBlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.MapDataBlock other) { if (other == net.osmand.binary.OsmandOdb.MapDataBlock.getDefaultInstance()) return this; if (other.hasBaseId()) { setBaseId(other.getBaseId()); } if (dataObjectsBuilder_ == null) { if (!other.dataObjects_.isEmpty()) { if (dataObjects_.isEmpty()) { dataObjects_ = other.dataObjects_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDataObjectsIsMutable(); dataObjects_.addAll(other.dataObjects_); } onChanged(); } } else { if (!other.dataObjects_.isEmpty()) { if (dataObjectsBuilder_.isEmpty()) { dataObjectsBuilder_.dispose(); dataObjectsBuilder_ = null; dataObjects_ = other.dataObjects_; bitField0_ = (bitField0_ & ~0x00000002); dataObjectsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDataObjectsFieldBuilder() : null; } else { dataObjectsBuilder_.addAllMessages(other.dataObjects_); } } } if (other.hasStringTable()) { mergeStringTable(other.getStringTable()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getDataObjectsCount(); i++) { if (!getDataObjects(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.MapDataBlock parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.MapDataBlock) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional uint64 baseId = 10; private long baseId_ ; /** * 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.List dataObjects_ = java.util.Collections.emptyList(); private void ensureDataObjectsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { dataObjects_ = new java.util.ArrayList(dataObjects_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.MapData, net.osmand.binary.OsmandOdb.MapData.Builder, net.osmand.binary.OsmandOdb.MapDataOrBuilder> dataObjectsBuilder_; /** * repeated .OsmAnd.OBF.MapData dataObjects = 12; * *
       * in future here can be optional raster tile
       * 
*/ public java.util.List getDataObjectsList() { if (dataObjectsBuilder_ == null) { return java.util.Collections.unmodifiableList(dataObjects_); } else { return dataObjectsBuilder_.getMessageList(); } } /** * 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 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 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 getDataObjectsBuilderList() { return getDataObjectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.MapData, net.osmand.binary.OsmandOdb.MapData.Builder, net.osmand.binary.OsmandOdb.MapDataOrBuilder> getDataObjectsFieldBuilder() { if (dataObjectsBuilder_ == null) { dataObjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.MapData, net.osmand.binary.OsmandOdb.MapData.Builder, net.osmand.binary.OsmandOdb.MapDataOrBuilder>( dataObjects_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); dataObjects_ = null; } return dataObjectsBuilder_; } // optional .OsmAnd.OBF.StringTable stringTable = 15; private net.osmand.binary.OsmandOdb.StringTable stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> stringTableBuilder_; /** * 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.List getPolygonInnerCoordinatesList(); /** * repeated 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 labelcoordinates = 8; /** * optional bytes labelcoordinates = 8; * *
     * pair x,y (sint32) of delta encoded to center of <coordinates> 31th zoom
     * 
*/ boolean hasLabelcoordinates(); /** * optional bytes labelcoordinates = 8; * *
     * pair x,y (sint32) of delta encoded to center of <coordinates> 31th zoom
     * 
*/ com.google.protobuf.ByteString getLabelcoordinates(); // 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.ArrayList(); mutable_bitField0_ |= 0x00000004; } polygonInnerCoordinates_.add(input.readBytes()); break; } case 50: { bitField0_ |= 0x00000004; additionalTypes_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000008; types_ = input.readBytes(); break; } case 66: { bitField0_ |= 0x00000010; labelcoordinates_ = input.readBytes(); break; } case 82: { bitField0_ |= 0x00000020; stringNames_ = input.readBytes(); break; } case 96: { bitField0_ |= 0x00000040; id_ = input.readSInt64(); break; } case 122: { bitField0_ |= 0x00000080; rasterBytes_ = 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_ & 0x00000004) == 0x00000004)) { polygonInnerCoordinates_ = java.util.Collections.unmodifiableList(polygonInnerCoordinates_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.MapData.class, net.osmand.binary.OsmandOdb.MapData.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MapData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MapData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional bytes coordinates = 1; public static final int COORDINATES_FIELD_NUMBER = 1; private com.google.protobuf.ByteString 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 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.List polygonInnerCoordinates_; /** * repeated bytes polygonInnerCoordinates = 4; */ public java.util.List getPolygonInnerCoordinatesList() { return polygonInnerCoordinates_; } /** * repeated 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 labelcoordinates = 8; public static final int LABELCOORDINATES_FIELD_NUMBER = 8; private com.google.protobuf.ByteString labelcoordinates_; /** * optional bytes labelcoordinates = 8; * *
     * pair x,y (sint32) of delta encoded to center of <coordinates> 31th zoom
     * 
*/ public boolean hasLabelcoordinates() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bytes labelcoordinates = 8; * *
     * pair x,y (sint32) of delta encoded to center of <coordinates> 31th zoom
     * 
*/ public com.google.protobuf.ByteString getLabelcoordinates() { return labelcoordinates_; } // 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_ & 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_; } // 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_ & 0x00000040) == 0x00000040); } /** * 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_ & 0x00000080) == 0x00000080); } /** * 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; labelcoordinates_ = 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(8, labelcoordinates_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(10, stringNames_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeSInt64(12, id_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { 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(8, labelcoordinates_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, stringNames_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(12, id_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { 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.Builder implements net.osmand.binary.OsmandOdb.MapDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.MapData.class, net.osmand.binary.OsmandOdb.MapData.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.MapData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); coordinates_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); areaCoordinates_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); polygonInnerCoordinates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); additionalTypes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); types_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); labelcoordinates_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); stringNames_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); rasterBytes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_MapData_descriptor; } public net.osmand.binary.OsmandOdb.MapData getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.MapData.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.MapData build() { net.osmand.binary.OsmandOdb.MapData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.MapData buildPartial() { net.osmand.binary.OsmandOdb.MapData result = new net.osmand.binary.OsmandOdb.MapData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.coordinates_ = coordinates_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.areaCoordinates_ = areaCoordinates_; if (((bitField0_ & 0x00000004) == 0x00000004)) { polygonInnerCoordinates_ = java.util.Collections.unmodifiableList(polygonInnerCoordinates_); bitField0_ = (bitField0_ & ~0x00000004); } result.polygonInnerCoordinates_ = polygonInnerCoordinates_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.additionalTypes_ = additionalTypes_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.types_ = types_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.labelcoordinates_ = labelcoordinates_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.stringNames_ = stringNames_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.id_ = id_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } result.rasterBytes_ = rasterBytes_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.MapData) { return mergeFrom((net.osmand.binary.OsmandOdb.MapData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.MapData other) { if (other == net.osmand.binary.OsmandOdb.MapData.getDefaultInstance()) return this; if (other.hasCoordinates()) { setCoordinates(other.getCoordinates()); } if (other.hasAreaCoordinates()) { setAreaCoordinates(other.getAreaCoordinates()); } if (!other.polygonInnerCoordinates_.isEmpty()) { if (polygonInnerCoordinates_.isEmpty()) { polygonInnerCoordinates_ = other.polygonInnerCoordinates_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePolygonInnerCoordinatesIsMutable(); polygonInnerCoordinates_.addAll(other.polygonInnerCoordinates_); } onChanged(); } if (other.hasAdditionalTypes()) { setAdditionalTypes(other.getAdditionalTypes()); } if (other.hasTypes()) { setTypes(other.getTypes()); } if (other.hasLabelcoordinates()) { setLabelcoordinates(other.getLabelcoordinates()); } if (other.hasStringNames()) { setStringNames(other.getStringNames()); } if (other.hasId()) { setId(other.getId()); } if (other.hasRasterBytes()) { setRasterBytes(other.getRasterBytes()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTypes()) { return false; } if (!hasId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.MapData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.MapData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bytes coordinates = 1; private com.google.protobuf.ByteString coordinates_ = com.google.protobuf.ByteString.EMPTY; /** * 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 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.List polygonInnerCoordinates_ = java.util.Collections.emptyList(); private void ensurePolygonInnerCoordinatesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { polygonInnerCoordinates_ = new java.util.ArrayList(polygonInnerCoordinates_); bitField0_ |= 0x00000004; } } /** * repeated bytes polygonInnerCoordinates = 4; */ public java.util.List getPolygonInnerCoordinatesList() { return java.util.Collections.unmodifiableList(polygonInnerCoordinates_); } /** * repeated 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 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 labelcoordinates = 8; private com.google.protobuf.ByteString labelcoordinates_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes labelcoordinates = 8; * *
       * pair x,y (sint32) of delta encoded to center of <coordinates> 31th zoom
       * 
*/ public boolean hasLabelcoordinates() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes labelcoordinates = 8; * *
       * pair x,y (sint32) of delta encoded to center of <coordinates> 31th zoom
       * 
*/ public com.google.protobuf.ByteString getLabelcoordinates() { return labelcoordinates_; } /** * optional bytes labelcoordinates = 8; * *
       * pair x,y (sint32) of delta encoded to center of <coordinates> 31th zoom
       * 
*/ public Builder setLabelcoordinates(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; labelcoordinates_ = value; onChanged(); return this; } /** * optional bytes labelcoordinates = 8; * *
       * pair x,y (sint32) of delta encoded to center of <coordinates> 31th zoom
       * 
*/ public Builder clearLabelcoordinates() { bitField0_ = (bitField0_ & ~0x00000020); labelcoordinates_ = getDefaultInstance().getLabelcoordinates(); 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_ & 0x00000040) == 0x00000040); } /** * 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_ |= 0x00000040; 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_ & ~0x00000040); stringNames_ = getDefaultInstance().getStringNames(); onChanged(); return this; } // required sint64 id = 12; private long id_ ; /** * required sint64 id = 12; * *
       * delta encoded
       * 
*/ public boolean hasId() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * required sint64 id = 12; * *
       * delta encoded
       * 
*/ public long getId() { return id_; } /** * required sint64 id = 12; * *
       * delta encoded
       * 
*/ public Builder setId(long value) { bitField0_ |= 0x00000080; id_ = value; onChanged(); return this; } /** * required sint64 id = 12; * *
       * delta encoded
       * 
*/ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000080); 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_ & 0x00000100) == 0x00000100); } /** * 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_ |= 0x00000100; rasterBytes_ = value; onChanged(); return this; } /** * optional bytes rasterBytes = 15; */ public Builder clearRasterBytes() { bitField0_ = (bitField0_ & ~0x00000100); 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 getCitiesList(); /** * 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 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(); mutable_bitField0_ |= 0x00000010; } cities_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.PARSER, extensionRegistry)); break; } case 58: { net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = nameIndex_.toBuilder(); } nameIndex_ = input.readMessage(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nameIndex_); nameIndex_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; 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_ & 0x00000010) == 0x00000010)) { cities_ = java.util.Collections.unmodifiableList(cities_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndAddressIndex.class, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndAddressIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndAddressIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface CitiesIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2; /** * 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 getCitiesList(); /** * 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 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.List getBlocksList(); /** * repeated .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 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.ArrayList(); mutable_bitField0_ |= 0x00000002; } cities_.add(input.readMessage(net.osmand.binary.OsmandOdb.CityIndex.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { blocks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } blocks_.add(input.readMessage(net.osmand.binary.OsmandOdb.CityBlockIndex.PARSER, extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { cities_ = java.util.Collections.unmodifiableList(cities_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.class, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CitiesIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CitiesIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType} */ public enum CitiesType implements com.google.protobuf.ProtocolMessageEnum { /** * CitiesOrTowns = 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.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CitiesType findValueByNumber(int number) { return CitiesType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.getDescriptor().getEnumTypes().get(0); } private static final CitiesType[] VALUES = values(); public static CitiesType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private CitiesType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType) } private int bitField0_; // required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2; public static final int TYPE_FIELD_NUMBER = 2; private net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType type_; /** * required .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.List 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 java.util.List getCitiesList() { 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 java.util.List 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 blocks_; /** * repeated .OsmAnd.OBF.CityBlockIndex blocks = 7; */ public java.util.List getBlocksList() { return blocks_; } /** * repeated .OsmAnd.OBF.CityBlockIndex blocks = 7; */ public java.util.List 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.Builder implements net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.class, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCitiesFieldBuilder(); getBlocksFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType.CitiesOrTowns; bitField0_ = (bitField0_ & ~0x00000001); if (citiesBuilder_ == null) { cities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { citiesBuilder_.clear(); } if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { blocksBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex build() { net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex buildPartial() { net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex result = new net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (citiesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { cities_ = java.util.Collections.unmodifiableList(cities_); bitField0_ = (bitField0_ & ~0x00000002); } result.cities_ = cities_; } else { result.cities_ = citiesBuilder_.build(); } if (blocksBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); bitField0_ = (bitField0_ & ~0x00000004); } result.blocks_ = blocks_; } else { result.blocks_ = blocksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex other) { if (other == net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (citiesBuilder_ == null) { if (!other.cities_.isEmpty()) { if (cities_.isEmpty()) { cities_ = other.cities_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCitiesIsMutable(); cities_.addAll(other.cities_); } onChanged(); } } else { if (!other.cities_.isEmpty()) { if (citiesBuilder_.isEmpty()) { citiesBuilder_.dispose(); citiesBuilder_ = null; cities_ = other.cities_; bitField0_ = (bitField0_ & ~0x00000002); citiesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCitiesFieldBuilder() : null; } else { citiesBuilder_.addAllMessages(other.cities_); } } } if (blocksBuilder_ == null) { if (!other.blocks_.isEmpty()) { if (blocks_.isEmpty()) { blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureBlocksIsMutable(); blocks_.addAll(other.blocks_); } onChanged(); } } else { if (!other.blocks_.isEmpty()) { if (blocksBuilder_.isEmpty()) { blocksBuilder_.dispose(); blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000004); blocksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } for (int i = 0; i < getCitiesCount(); i++) { if (!getCities(i).isInitialized()) { return false; } } for (int i = 0; i < getBlocksCount(); i++) { if (!getBlocks(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2; private net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType type_ = net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType.CitiesOrTowns; /** * required .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.List cities_ = java.util.Collections.emptyList(); private void ensureCitiesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { cities_ = new java.util.ArrayList(cities_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.CityIndex, net.osmand.binary.OsmandOdb.CityIndex.Builder, net.osmand.binary.OsmandOdb.CityIndexOrBuilder> citiesBuilder_; /** * 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 getCitiesList() { if (citiesBuilder_ == null) { return java.util.Collections.unmodifiableList(cities_); } else { return citiesBuilder_.getMessageList(); } } /** * 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 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 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 getCitiesBuilderList() { return getCitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.CityIndex, net.osmand.binary.OsmandOdb.CityIndex.Builder, net.osmand.binary.OsmandOdb.CityIndexOrBuilder> getCitiesFieldBuilder() { if (citiesBuilder_ == null) { citiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.CityIndex, net.osmand.binary.OsmandOdb.CityIndex.Builder, net.osmand.binary.OsmandOdb.CityIndexOrBuilder>( cities_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); cities_ = null; } return citiesBuilder_; } // repeated .OsmAnd.OBF.CityBlockIndex blocks = 7; private java.util.List blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.CityBlockIndex, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder, net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder> blocksBuilder_; /** * repeated .OsmAnd.OBF.CityBlockIndex blocks = 7; */ public java.util.List getBlocksList() { if (blocksBuilder_ == null) { return java.util.Collections.unmodifiableList(blocks_); } else { return blocksBuilder_.getMessageList(); } } /** * repeated .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 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 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.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.CityBlockIndex, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder, net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.CityBlockIndex, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder, net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder>( blocks_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex) } static { defaultInstance = new CitiesIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex) } private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * 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) { 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 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 java.util.List getCitiesList() { 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 java.util.List 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 implements net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndAddressIndex.class, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBoundariesFieldBuilder(); getAttributeTagsTableFieldBuilder(); getCitiesFieldBuilder(); getNameIndexFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); nameEn_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (boundariesBuilder_ == null) { boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); } else { boundariesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (attributeTagsTableBuilder_ == null) { attributeTagsTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } else { attributeTagsTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (citiesBuilder_ == null) { cities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { citiesBuilder_.clear(); } if (nameIndexBuilder_ == null) { nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); } else { nameIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressIndex_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex build() { net.osmand.binary.OsmandOdb.OsmAndAddressIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndAddressIndex buildPartial() { net.osmand.binary.OsmandOdb.OsmAndAddressIndex result = new net.osmand.binary.OsmandOdb.OsmAndAddressIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.nameEn_ = nameEn_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (boundariesBuilder_ == null) { result.boundaries_ = boundaries_; } else { result.boundaries_ = boundariesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (attributeTagsTableBuilder_ == null) { result.attributeTagsTable_ = attributeTagsTable_; } else { result.attributeTagsTable_ = attributeTagsTableBuilder_.build(); } if (citiesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { cities_ = java.util.Collections.unmodifiableList(cities_); bitField0_ = (bitField0_ & ~0x00000010); } result.cities_ = cities_; } else { result.cities_ = citiesBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } if (nameIndexBuilder_ == null) { result.nameIndex_ = nameIndex_; } else { result.nameIndex_ = nameIndexBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndAddressIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndAddressIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndAddressIndex other) { if (other == net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasNameEn()) { bitField0_ |= 0x00000002; nameEn_ = other.nameEn_; onChanged(); } if (other.hasBoundaries()) { mergeBoundaries(other.getBoundaries()); } if (other.hasAttributeTagsTable()) { mergeAttributeTagsTable(other.getAttributeTagsTable()); } if (citiesBuilder_ == null) { if (!other.cities_.isEmpty()) { if (cities_.isEmpty()) { cities_ = other.cities_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureCitiesIsMutable(); cities_.addAll(other.cities_); } onChanged(); } } else { if (!other.cities_.isEmpty()) { if (citiesBuilder_.isEmpty()) { citiesBuilder_.dispose(); citiesBuilder_ = null; cities_ = other.cities_; bitField0_ = (bitField0_ & ~0x00000010); citiesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCitiesFieldBuilder() : null; } else { citiesBuilder_.addAllMessages(other.cities_); } } } if (other.hasNameIndex()) { mergeNameIndex(other.getNameIndex()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (hasBoundaries()) { if (!getBoundaries().isInitialized()) { return false; } } for (int i = 0; i < getCitiesCount(); i++) { if (!getCities(i).isInitialized()) { return false; } } if (hasNameIndex()) { if (!getNameIndex().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndAddressIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndAddressIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string name = 1; private java.lang.Object name_ = ""; /** * 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 cities_ = java.util.Collections.emptyList(); private void ensureCitiesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { cities_ = new java.util.ArrayList(cities_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder> citiesBuilder_; /** * 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 getCitiesList() { if (citiesBuilder_ == null) { return java.util.Collections.unmodifiableList(cities_); } else { return citiesBuilder_.getMessageList(); } } /** * 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 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 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 getCitiesBuilderList() { return getCitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder> getCitiesFieldBuilder() { if (citiesBuilder_ == null) { citiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder>( cities_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); cities_ = null; } return citiesBuilder_; } // optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7; private net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder> nameIndexBuilder_; /** * 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.List getAtomList(); /** * repeated .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 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.ArrayList(); mutable_bitField0_ |= 0x00000002; } atom_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.PARSER, extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { atom_ = java.util.Collections.unmodifiableList(atom_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.class, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndAddressNameIndexData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndAddressNameIndexData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface AddressNameIndexDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; /** * repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; * *
       * shift is measured from start (before length)
       * 
*/ java.util.List getAtomList(); /** * 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 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(); mutable_bitField0_ |= 0x00000001; } atom_.add(input.readMessage(net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.PARSER, extensionRegistry)); 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)) { atom_ = java.util.Collections.unmodifiableList(atom_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.class, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AddressNameIndexData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddressNameIndexData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; public static final int ATOM_FIELD_NUMBER = 4; private java.util.List atom_; /** * repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; * *
       * shift is measured from start (before length)
       * 
*/ public java.util.List getAtomList() { return atom_; } /** * repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; * *
       * shift is measured from start (before length)
       * 
*/ public java.util.List 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 implements net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.class, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAtomFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (atomBuilder_ == null) { atom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { atomBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData build() { net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData buildPartial() { net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData result = new net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData(this); int from_bitField0_ = bitField0_; if (atomBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { atom_ = java.util.Collections.unmodifiableList(atom_); bitField0_ = (bitField0_ & ~0x00000001); } result.atom_ = atom_; } else { result.atom_ = atomBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData other) { if (other == net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.getDefaultInstance()) return this; if (atomBuilder_ == null) { if (!other.atom_.isEmpty()) { if (atom_.isEmpty()) { atom_ = other.atom_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAtomIsMutable(); atom_.addAll(other.atom_); } onChanged(); } } else { if (!other.atom_.isEmpty()) { if (atomBuilder_.isEmpty()) { atomBuilder_.dispose(); atomBuilder_ = null; atom_ = other.atom_; bitField0_ = (bitField0_ & ~0x00000001); atomBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAtomFieldBuilder() : null; } else { atomBuilder_.addAllMessages(other.atom_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getAtomCount(); i++) { if (!getAtom(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; private java.util.List atom_ = java.util.Collections.emptyList(); private void ensureAtomIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { atom_ = new java.util.ArrayList(atom_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder> atomBuilder_; /** * repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; * *
         * shift is measured from start (before length)
         * 
*/ public java.util.List getAtomList() { if (atomBuilder_ == null) { return java.util.Collections.unmodifiableList(atom_); } else { return atomBuilder_.getMessageList(); } } /** * 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 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 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 getAtomBuilderList() { return getAtomFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder> getAtomFieldBuilder() { if (atomBuilder_ == null) { atomBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder>( atom_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); atom_ = null; } return atomBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData) } static { defaultInstance = new AddressNameIndexData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData) } private int bitField0_; // required .OsmAnd.OBF.IndexedStringTable table = 4; public static final int TABLE_FIELD_NUMBER = 4; private net.osmand.binary.OsmandOdb.IndexedStringTable table_; /** * 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 atom_; /** * repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7; */ public java.util.List getAtomList() { return atom_; } /** * repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7; */ public java.util.List 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.Builder implements net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.class, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTableFieldBuilder(); getAtomFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (tableBuilder_ == null) { table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); } else { tableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (atomBuilder_ == null) { atom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { atomBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData build() { net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData buildPartial() { net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData result = new net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (tableBuilder_ == null) { result.table_ = table_; } else { result.table_ = tableBuilder_.build(); } if (atomBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { atom_ = java.util.Collections.unmodifiableList(atom_); bitField0_ = (bitField0_ & ~0x00000002); } result.atom_ = atom_; } else { result.atom_ = atomBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData other) { if (other == net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance()) return this; if (other.hasTable()) { mergeTable(other.getTable()); } if (atomBuilder_ == null) { if (!other.atom_.isEmpty()) { if (atom_.isEmpty()) { atom_ = other.atom_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAtomIsMutable(); atom_.addAll(other.atom_); } onChanged(); } } else { if (!other.atom_.isEmpty()) { if (atomBuilder_.isEmpty()) { atomBuilder_.dispose(); atomBuilder_ = null; atom_ = other.atom_; bitField0_ = (bitField0_ & ~0x00000002); atomBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAtomFieldBuilder() : null; } else { atomBuilder_.addAllMessages(other.atom_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTable()) { return false; } for (int i = 0; i < getAtomCount(); i++) { if (!getAtom(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .OsmAnd.OBF.IndexedStringTable table = 4; private net.osmand.binary.OsmandOdb.IndexedStringTable table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> tableBuilder_; /** * 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() { 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 atom_ = java.util.Collections.emptyList(); private void ensureAtomIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { atom_ = new java.util.ArrayList(atom_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder> atomBuilder_; /** * repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7; */ public java.util.List getAtomList() { if (atomBuilder_ == null) { return java.util.Collections.unmodifiableList(atom_); } else { return atomBuilder_.getMessageList(); } } /** * repeated .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 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 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.List getAtomBuilderList() { return getAtomFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder> getAtomFieldBuilder() { if (atomBuilder_ == null) { atomBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder>( atom_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); atom_ = null; } return atomBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndAddressNameIndexData) } static { defaultInstance = new OsmAndAddressNameIndexData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndAddressNameIndexData) } public interface AddressNameIndexDataAtomOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string name = 1; /** * optional 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 getShiftToIndexList(); /** * 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 getShiftToCityIndexList(); /** * 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 getXy16List(); /** * 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(); mutable_bitField0_ |= 0x00000008; } shiftToIndex_.add(input.readInt32()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { shiftToIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { shiftToIndex_.add(input.readInt32()); } input.popLimit(limit); break; } case 48: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { shiftToCityIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } shiftToCityIndex_.add(input.readInt32()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { shiftToCityIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { shiftToCityIndex_.add(input.readInt32()); } input.popLimit(limit); break; } case 56: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { xy16_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } xy16_.add(input.readUInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { xy16_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { xy16_.add(input.readUInt32()); } input.popLimit(limit); 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_ & 0x00000008) == 0x00000008)) { shiftToIndex_ = java.util.Collections.unmodifiableList(shiftToIndex_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { shiftToCityIndex_ = java.util.Collections.unmodifiableList(shiftToCityIndex_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { xy16_ = java.util.Collections.unmodifiableList(xy16_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.class, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AddressNameIndexDataAtom parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddressNameIndexDataAtom(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * 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 shiftToIndex_; /** * repeated int32 shiftToIndex = 5; * *
     * start mixed 
     * shift from start AddressNameIndexData (!) to ...Index
     * 
*/ public java.util.List getShiftToIndexList() { return shiftToIndex_; } /** * 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 shiftToCityIndex_; /** * repeated int32 shiftToCityIndex = 6; * *
     * optional used in case of type=street
     * 
*/ public java.util.List getShiftToCityIndexList() { return shiftToCityIndex_; } /** * 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 xy16_; /** * repeated uint32 xy16 = 7; * *
     * coordinates v2.3
     * 
*/ public java.util.List getXy16List() { return xy16_; } /** * 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 implements net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.class, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); nameEn_ = ""; bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; bitField0_ = (bitField0_ & ~0x00000004); shiftToIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); shiftToCityIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); xy16_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_descriptor; } public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom build() { net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom buildPartial() { net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom result = new net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.nameEn_ = nameEn_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; if (((bitField0_ & 0x00000008) == 0x00000008)) { shiftToIndex_ = java.util.Collections.unmodifiableList(shiftToIndex_); bitField0_ = (bitField0_ & ~0x00000008); } result.shiftToIndex_ = shiftToIndex_; if (((bitField0_ & 0x00000010) == 0x00000010)) { shiftToCityIndex_ = java.util.Collections.unmodifiableList(shiftToCityIndex_); bitField0_ = (bitField0_ & ~0x00000010); } result.shiftToCityIndex_ = shiftToCityIndex_; if (((bitField0_ & 0x00000020) == 0x00000020)) { xy16_ = java.util.Collections.unmodifiableList(xy16_); bitField0_ = (bitField0_ & ~0x00000020); } result.xy16_ = xy16_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom) { return mergeFrom((net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom other) { if (other == net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasNameEn()) { bitField0_ |= 0x00000002; nameEn_ = other.nameEn_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (!other.shiftToIndex_.isEmpty()) { if (shiftToIndex_.isEmpty()) { shiftToIndex_ = other.shiftToIndex_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureShiftToIndexIsMutable(); shiftToIndex_.addAll(other.shiftToIndex_); } onChanged(); } if (!other.shiftToCityIndex_.isEmpty()) { if (shiftToCityIndex_.isEmpty()) { shiftToCityIndex_ = other.shiftToCityIndex_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureShiftToCityIndexIsMutable(); shiftToCityIndex_.addAll(other.shiftToCityIndex_); } onChanged(); } if (!other.xy16_.isEmpty()) { if (xy16_.isEmpty()) { xy16_ = other.xy16_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureXy16IsMutable(); xy16_.addAll(other.xy16_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string name = 1; private java.lang.Object name_ = ""; /** * 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 shiftToIndex_ = java.util.Collections.emptyList(); private void ensureShiftToIndexIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { shiftToIndex_ = new java.util.ArrayList(shiftToIndex_); bitField0_ |= 0x00000008; } } /** * repeated int32 shiftToIndex = 5; * *
       * start mixed 
       * shift from start AddressNameIndexData (!) to ...Index
       * 
*/ public java.util.List getShiftToIndexList() { return java.util.Collections.unmodifiableList(shiftToIndex_); } /** * 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 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 shiftToCityIndex_ = java.util.Collections.emptyList(); private void ensureShiftToCityIndexIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { shiftToCityIndex_ = new java.util.ArrayList(shiftToCityIndex_); bitField0_ |= 0x00000010; } } /** * repeated int32 shiftToCityIndex = 6; * *
       * optional used in case of type=street
       * 
*/ public java.util.List getShiftToCityIndexList() { return java.util.Collections.unmodifiableList(shiftToCityIndex_); } /** * 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 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 xy16_ = java.util.Collections.emptyList(); private void ensureXy16IsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { xy16_ = new java.util.ArrayList(xy16_); bitField0_ |= 0x00000020; } } /** * repeated uint32 xy16 = 7; * *
       * coordinates v2.3
       * 
*/ public java.util.List getXy16List() { return java.util.Collections.unmodifiableList(xy16_); } /** * 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 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.List getAttributeTagIdsList(); /** * repeated uint32 attributeTagIds = 7; */ int getAttributeTagIdsCount(); /** * repeated uint32 attributeTagIds = 7; */ int getAttributeTagIds(int index); // repeated string attributeValues = 8; /** * repeated string attributeValues = 8; */ java.util.List getAttributeValuesList(); /** * repeated 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(); mutable_bitField0_ |= 0x00000040; } attributeTagIds_.add(input.readUInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { attributeTagIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { attributeTagIds_.add(input.readUInt32()); } input.popLimit(limit); break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { attributeValues_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000080; } attributeValues_.add(input.readBytes()); break; } case 85: { bitField0_ |= 0x00000040; shiftToCityBlockIndex_ = input.readFixed32(); 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_ & 0x00000040) == 0x00000040)) { attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList(attributeValues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.CityIndex.class, net.osmand.binary.OsmandOdb.CityIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CityIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CityIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional uint32 city_type = 1; public static final int CITY_TYPE_FIELD_NUMBER = 1; private int cityType_; /** * 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 attributeTagIds_; /** * repeated uint32 attributeTagIds = 7; */ public java.util.List getAttributeTagIdsList() { return attributeTagIds_; } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } // repeated string attributeValues = 8; public static final int ATTRIBUTEVALUES_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList attributeValues_; /** * repeated string attributeValues = 8; */ public java.util.List getAttributeValuesList() { return attributeValues_; } /** * repeated string attributeValues = 8; */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * repeated string attributeValues = 8; */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * repeated string attributeValues = 8; */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } // optional fixed32 shiftToCityBlockIndex = 10; public static final int SHIFTTOCITYBLOCKINDEX_FIELD_NUMBER = 10; private int shiftToCityBlockIndex_; /** * optional fixed32 shiftToCityBlockIndex = 10; * *
     * shift from start CityIndex (without length) to cityBlockIndex
     * 
*/ public boolean hasShiftToCityBlockIndex() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional fixed32 shiftToCityBlockIndex = 10; * *
     * shift from start CityIndex (without length) to cityBlockIndex
     * 
*/ public int getShiftToCityBlockIndex() { return shiftToCityBlockIndex_; } private void initFields() { cityType_ = 0; name_ = ""; nameEn_ = ""; id_ = 0L; x_ = 0; y_ = 0; attributeTagIds_ = java.util.Collections.emptyList(); attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; shiftToCityBlockIndex_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasX()) { memoizedIsInitialized = 0; return false; } if (!hasY()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, cityType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getNameEnBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt64(4, id_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, x_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, y_); } for (int i = 0; i < attributeTagIds_.size(); i++) { output.writeUInt32(7, attributeTagIds_.get(i)); } for (int i = 0; i < attributeValues_.size(); i++) { output.writeBytes(8, attributeValues_.getByteString(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeFixed32(10, shiftToCityBlockIndex_); } 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, cityType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getNameEnBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, id_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, x_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, y_); } { int dataSize = 0; for (int i = 0; i < attributeTagIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(attributeTagIds_.get(i)); } size += dataSize; size += 1 * getAttributeTagIdsList().size(); } { int dataSize = 0; for (int i = 0; i < attributeValues_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(attributeValues_.getByteString(i)); } size += dataSize; size += 1 * getAttributeValuesList().size(); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeFixed32Size(10, shiftToCityBlockIndex_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.CityIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.CityIndex 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.CityIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.CityIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.CityIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.CityIndex 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.CityIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.CityIndex 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.CityIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.CityIndex 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.CityIndex 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.CityIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.CityIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.CityIndex.class, net.osmand.binary.OsmandOdb.CityIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.CityIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); cityType_ = 0; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); nameEn_ = ""; bitField0_ = (bitField0_ & ~0x00000004); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); x_ = 0; bitField0_ = (bitField0_ & ~0x00000010); y_ = 0; bitField0_ = (bitField0_ & ~0x00000020); attributeTagIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); shiftToCityBlockIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000100); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityIndex_descriptor; } public net.osmand.binary.OsmandOdb.CityIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.CityIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.CityIndex build() { net.osmand.binary.OsmandOdb.CityIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.CityIndex buildPartial() { net.osmand.binary.OsmandOdb.CityIndex result = new net.osmand.binary.OsmandOdb.CityIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.cityType_ = cityType_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.nameEn_ = nameEn_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.id_ = id_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.x_ = x_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.y_ = y_; if (((bitField0_ & 0x00000040) == 0x00000040)) { attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); bitField0_ = (bitField0_ & ~0x00000040); } result.attributeTagIds_ = attributeTagIds_; if (((bitField0_ & 0x00000080) == 0x00000080)) { attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList( attributeValues_); bitField0_ = (bitField0_ & ~0x00000080); } result.attributeValues_ = attributeValues_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } result.shiftToCityBlockIndex_ = shiftToCityBlockIndex_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.CityIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.CityIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.CityIndex other) { if (other == net.osmand.binary.OsmandOdb.CityIndex.getDefaultInstance()) return this; if (other.hasCityType()) { setCityType(other.getCityType()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasNameEn()) { bitField0_ |= 0x00000004; nameEn_ = other.nameEn_; onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.hasX()) { setX(other.getX()); } if (other.hasY()) { setY(other.getY()); } if (!other.attributeTagIds_.isEmpty()) { if (attributeTagIds_.isEmpty()) { attributeTagIds_ = other.attributeTagIds_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureAttributeTagIdsIsMutable(); attributeTagIds_.addAll(other.attributeTagIds_); } onChanged(); } if (!other.attributeValues_.isEmpty()) { if (attributeValues_.isEmpty()) { attributeValues_ = other.attributeValues_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAttributeValuesIsMutable(); attributeValues_.addAll(other.attributeValues_); } onChanged(); } if (other.hasShiftToCityBlockIndex()) { setShiftToCityBlockIndex(other.getShiftToCityBlockIndex()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasX()) { return false; } if (!hasY()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.CityIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.CityIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional uint32 city_type = 1; private int cityType_ ; /** * 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_; } /** * optional uint32 city_type = 1; * *
       * should be written the first (for city), for postcode is optional
       * 
*/ public Builder setCityType(int value) { bitField0_ |= 0x00000001; cityType_ = value; onChanged(); return this; } /** * optional uint32 city_type = 1; * *
       * should be written the first (for city), for postcode is optional
       * 
*/ public Builder clearCityType() { bitField0_ = (bitField0_ & ~0x00000001); cityType_ = 0; onChanged(); return this; } // required string name = 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)) { 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_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * required string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); 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_ |= 0x00000002; name_ = value; onChanged(); return this; } // optional string name_en = 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)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); nameEn_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name_en = 3; */ 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 = 3; */ public Builder setNameEn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; nameEn_ = value; onChanged(); return this; } /** * optional string name_en = 3; */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000004); nameEn_ = getDefaultInstance().getNameEn(); onChanged(); return this; } /** * optional string name_en = 3; */ public Builder setNameEnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; nameEn_ = value; onChanged(); return this; } // optional uint64 id = 4; private long id_ ; /** * optional uint64 id = 4; */ public boolean hasId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint64 id = 4; */ public long getId() { return id_; } /** * optional uint64 id = 4; */ public Builder setId(long value) { bitField0_ |= 0x00000008; id_ = value; onChanged(); return this; } /** * optional uint64 id = 4; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000008); id_ = 0L; onChanged(); return this; } // required uint32 x = 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 x = 5; * *
       * x tile of 31 zoom
       * 
*/ public Builder setX(int value) { bitField0_ |= 0x00000010; x_ = value; onChanged(); return this; } /** * required uint32 x = 5; * *
       * x tile of 31 zoom
       * 
*/ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000010); x_ = 0; onChanged(); return this; } // required uint32 y = 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_; } /** * required uint32 y = 6; * *
       * y tile of 31 zoom
       * 
*/ public Builder setY(int value) { bitField0_ |= 0x00000020; y_ = value; onChanged(); return this; } /** * required uint32 y = 6; * *
       * y tile of 31 zoom
       * 
*/ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000020); y_ = 0; onChanged(); return this; } // repeated uint32 attributeTagIds = 7; private java.util.List attributeTagIds_ = java.util.Collections.emptyList(); private void ensureAttributeTagIdsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { attributeTagIds_ = new java.util.ArrayList(attributeTagIds_); bitField0_ |= 0x00000040; } } /** * repeated uint32 attributeTagIds = 7; */ public java.util.List getAttributeTagIdsList() { return java.util.Collections.unmodifiableList(attributeTagIds_); } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } /** * repeated uint32 attributeTagIds = 7; */ public Builder setAttributeTagIds( int index, int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.set(index, value); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 7; */ public Builder addAttributeTagIds(int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.add(value); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 7; */ public Builder addAllAttributeTagIds( java.lang.Iterable values) { ensureAttributeTagIdsIsMutable(); super.addAll(values, attributeTagIds_); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 7; */ public Builder clearAttributeTagIds() { attributeTagIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } // repeated string attributeValues = 8; private com.google.protobuf.LazyStringList attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAttributeValuesIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { attributeValues_ = new com.google.protobuf.LazyStringArrayList(attributeValues_); bitField0_ |= 0x00000080; } } /** * repeated string attributeValues = 8; */ public java.util.List getAttributeValuesList() { return java.util.Collections.unmodifiableList(attributeValues_); } /** * repeated string attributeValues = 8; */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * repeated string attributeValues = 8; */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * repeated string attributeValues = 8; */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } /** * repeated string attributeValues = 8; */ public Builder setAttributeValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.set(index, value); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder addAttributeValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder addAllAttributeValues( java.lang.Iterable values) { ensureAttributeValuesIsMutable(); super.addAll(values, attributeValues_); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder clearAttributeValues() { attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder addAttributeValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } // optional fixed32 shiftToCityBlockIndex = 10; private int shiftToCityBlockIndex_ ; /** * optional fixed32 shiftToCityBlockIndex = 10; * *
       * shift from start CityIndex (without length) to cityBlockIndex
       * 
*/ public boolean hasShiftToCityBlockIndex() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional fixed32 shiftToCityBlockIndex = 10; * *
       * shift from start CityIndex (without length) to cityBlockIndex
       * 
*/ public int getShiftToCityBlockIndex() { return shiftToCityBlockIndex_; } /** * optional fixed32 shiftToCityBlockIndex = 10; * *
       * shift from start CityIndex (without length) to cityBlockIndex
       * 
*/ public Builder setShiftToCityBlockIndex(int value) { bitField0_ |= 0x00000100; shiftToCityBlockIndex_ = value; onChanged(); return this; } /** * optional fixed32 shiftToCityBlockIndex = 10; * *
       * shift from start CityIndex (without length) to cityBlockIndex
       * 
*/ public Builder clearShiftToCityBlockIndex() { bitField0_ = (bitField0_ & ~0x00000100); shiftToCityBlockIndex_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.CityIndex) } static { defaultInstance = new CityIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.CityIndex) } public interface CityBlockIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional fixed32 shiftToCityIndex = 4; /** * optional fixed32 shiftToCityIndex = 4; * *
     * shift from start cityBlockIndex to CityIndex 
     * 
*/ boolean hasShiftToCityIndex(); /** * optional fixed32 shiftToCityIndex = 4; * *
     * shift from start cityBlockIndex to CityIndex 
     * 
*/ int getShiftToCityIndex(); // repeated .OsmAnd.OBF.BuildingIndex buildings = 10; /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
     * buildings that doesn't belong to the street
     * 
*/ java.util.List getBuildingsList(); /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
     * buildings that doesn't belong to the street
     * 
*/ net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index); /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
     * buildings that doesn't belong to the street
     * 
*/ int getBuildingsCount(); /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
     * buildings that doesn't belong to the street
     * 
*/ java.util.List getBuildingsOrBuilderList(); /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
     * buildings that doesn't belong to the street
     * 
*/ net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( int index); // repeated .OsmAnd.OBF.StreetIndex streets = 12; /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ java.util.List getStreetsList(); /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ net.osmand.binary.OsmandOdb.StreetIndex getStreets(int index); /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ int getStreetsCount(); /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ java.util.List getStreetsOrBuilderList(); /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ net.osmand.binary.OsmandOdb.StreetIndexOrBuilder getStreetsOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.CityBlockIndex} */ public static final class CityBlockIndex extends com.google.protobuf.GeneratedMessage implements CityBlockIndexOrBuilder { // Use CityBlockIndex.newBuilder() to construct. private CityBlockIndex(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CityBlockIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CityBlockIndex defaultInstance; public static CityBlockIndex getDefaultInstance() { return defaultInstance; } public CityBlockIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CityBlockIndex( 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 37: { bitField0_ |= 0x00000001; shiftToCityIndex_ = input.readFixed32(); break; } case 82: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { buildings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } buildings_.add(input.readMessage(net.osmand.binary.OsmandOdb.BuildingIndex.PARSER, extensionRegistry)); break; } case 98: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { streets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } streets_.add(input.readMessage(net.osmand.binary.OsmandOdb.StreetIndex.PARSER, extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { buildings_ = java.util.Collections.unmodifiableList(buildings_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { streets_ = java.util.Collections.unmodifiableList(streets_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityBlockIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityBlockIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.CityBlockIndex.class, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CityBlockIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CityBlockIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional fixed32 shiftToCityIndex = 4; public static final int SHIFTTOCITYINDEX_FIELD_NUMBER = 4; private int shiftToCityIndex_; /** * optional fixed32 shiftToCityIndex = 4; * *
     * shift from start cityBlockIndex to CityIndex 
     * 
*/ public boolean hasShiftToCityIndex() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional fixed32 shiftToCityIndex = 4; * *
     * shift from start cityBlockIndex to CityIndex 
     * 
*/ public int getShiftToCityIndex() { return shiftToCityIndex_; } // repeated .OsmAnd.OBF.BuildingIndex buildings = 10; public static final int BUILDINGS_FIELD_NUMBER = 10; private java.util.List buildings_; /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
     * buildings that doesn't belong to the street
     * 
*/ public java.util.List getBuildingsList() { return buildings_; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
     * buildings that doesn't belong to the street
     * 
*/ public java.util.List getBuildingsOrBuilderList() { return buildings_; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
     * buildings that doesn't belong to the street
     * 
*/ public int getBuildingsCount() { return buildings_.size(); } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
     * buildings that doesn't belong to the street
     * 
*/ public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { return buildings_.get(index); } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
     * buildings that doesn't belong to the street
     * 
*/ public net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( int index) { return buildings_.get(index); } // repeated .OsmAnd.OBF.StreetIndex streets = 12; public static final int STREETS_FIELD_NUMBER = 12; private java.util.List streets_; /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public java.util.List getStreetsList() { return streets_; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public java.util.List getStreetsOrBuilderList() { return streets_; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public int getStreetsCount() { return streets_.size(); } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public net.osmand.binary.OsmandOdb.StreetIndex getStreets(int index) { return streets_.get(index); } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public net.osmand.binary.OsmandOdb.StreetIndexOrBuilder getStreetsOrBuilder( int index) { return streets_.get(index); } private void initFields() { shiftToCityIndex_ = 0; buildings_ = java.util.Collections.emptyList(); streets_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getBuildingsCount(); i++) { if (!getBuildings(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getStreetsCount(); i++) { if (!getStreets(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeFixed32(4, shiftToCityIndex_); } for (int i = 0; i < buildings_.size(); i++) { output.writeMessage(10, buildings_.get(i)); } for (int i = 0; i < streets_.size(); i++) { output.writeMessage(12, streets_.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 .computeFixed32Size(4, shiftToCityIndex_); } for (int i = 0; i < buildings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, buildings_.get(i)); } for (int i = 0; i < streets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, streets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.CityBlockIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.CityBlockIndex 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.CityBlockIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.CityBlockIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.CityBlockIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.CityBlockIndex 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.CityBlockIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.CityBlockIndex 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.CityBlockIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.CityBlockIndex 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.CityBlockIndex 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.CityBlockIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityBlockIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityBlockIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.CityBlockIndex.class, net.osmand.binary.OsmandOdb.CityBlockIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.CityBlockIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBuildingsFieldBuilder(); getStreetsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); shiftToCityIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (buildingsBuilder_ == null) { buildings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { buildingsBuilder_.clear(); } if (streetsBuilder_ == null) { streets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { streetsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_CityBlockIndex_descriptor; } public net.osmand.binary.OsmandOdb.CityBlockIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.CityBlockIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.CityBlockIndex build() { net.osmand.binary.OsmandOdb.CityBlockIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.CityBlockIndex buildPartial() { net.osmand.binary.OsmandOdb.CityBlockIndex result = new net.osmand.binary.OsmandOdb.CityBlockIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.shiftToCityIndex_ = shiftToCityIndex_; if (buildingsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { buildings_ = java.util.Collections.unmodifiableList(buildings_); bitField0_ = (bitField0_ & ~0x00000002); } result.buildings_ = buildings_; } else { result.buildings_ = buildingsBuilder_.build(); } if (streetsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { streets_ = java.util.Collections.unmodifiableList(streets_); bitField0_ = (bitField0_ & ~0x00000004); } result.streets_ = streets_; } else { result.streets_ = streetsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.CityBlockIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.CityBlockIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.CityBlockIndex other) { if (other == net.osmand.binary.OsmandOdb.CityBlockIndex.getDefaultInstance()) return this; if (other.hasShiftToCityIndex()) { setShiftToCityIndex(other.getShiftToCityIndex()); } if (buildingsBuilder_ == null) { if (!other.buildings_.isEmpty()) { if (buildings_.isEmpty()) { buildings_ = other.buildings_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBuildingsIsMutable(); buildings_.addAll(other.buildings_); } onChanged(); } } else { if (!other.buildings_.isEmpty()) { if (buildingsBuilder_.isEmpty()) { buildingsBuilder_.dispose(); buildingsBuilder_ = null; buildings_ = other.buildings_; bitField0_ = (bitField0_ & ~0x00000002); buildingsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBuildingsFieldBuilder() : null; } else { buildingsBuilder_.addAllMessages(other.buildings_); } } } if (streetsBuilder_ == null) { if (!other.streets_.isEmpty()) { if (streets_.isEmpty()) { streets_ = other.streets_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureStreetsIsMutable(); streets_.addAll(other.streets_); } onChanged(); } } else { if (!other.streets_.isEmpty()) { if (streetsBuilder_.isEmpty()) { streetsBuilder_.dispose(); streetsBuilder_ = null; streets_ = other.streets_; bitField0_ = (bitField0_ & ~0x00000004); streetsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getStreetsFieldBuilder() : null; } else { streetsBuilder_.addAllMessages(other.streets_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getBuildingsCount(); i++) { if (!getBuildings(i).isInitialized()) { return false; } } for (int i = 0; i < getStreetsCount(); i++) { if (!getStreets(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.CityBlockIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.CityBlockIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional fixed32 shiftToCityIndex = 4; private int shiftToCityIndex_ ; /** * optional fixed32 shiftToCityIndex = 4; * *
       * shift from start cityBlockIndex to CityIndex 
       * 
*/ public boolean hasShiftToCityIndex() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional fixed32 shiftToCityIndex = 4; * *
       * shift from start cityBlockIndex to CityIndex 
       * 
*/ public int getShiftToCityIndex() { return shiftToCityIndex_; } /** * optional fixed32 shiftToCityIndex = 4; * *
       * shift from start cityBlockIndex to CityIndex 
       * 
*/ public Builder setShiftToCityIndex(int value) { bitField0_ |= 0x00000001; shiftToCityIndex_ = value; onChanged(); return this; } /** * optional fixed32 shiftToCityIndex = 4; * *
       * shift from start cityBlockIndex to CityIndex 
       * 
*/ public Builder clearShiftToCityIndex() { bitField0_ = (bitField0_ & ~0x00000001); shiftToCityIndex_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.BuildingIndex buildings = 10; private java.util.List buildings_ = java.util.Collections.emptyList(); private void ensureBuildingsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { buildings_ = new java.util.ArrayList(buildings_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> buildingsBuilder_; /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public java.util.List getBuildingsList() { if (buildingsBuilder_ == null) { return java.util.Collections.unmodifiableList(buildings_); } else { return buildingsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public int getBuildingsCount() { if (buildingsBuilder_ == null) { return buildings_.size(); } else { return buildingsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { if (buildingsBuilder_ == null) { return buildings_.get(index); } else { return buildingsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public Builder setBuildings( int index, net.osmand.binary.OsmandOdb.BuildingIndex value) { if (buildingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBuildingsIsMutable(); buildings_.set(index, value); onChanged(); } else { buildingsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public Builder setBuildings( int index, net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); buildings_.set(index, builderForValue.build()); onChanged(); } else { buildingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public Builder addBuildings(net.osmand.binary.OsmandOdb.BuildingIndex value) { if (buildingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBuildingsIsMutable(); buildings_.add(value); onChanged(); } else { buildingsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public Builder addBuildings( int index, net.osmand.binary.OsmandOdb.BuildingIndex value) { if (buildingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBuildingsIsMutable(); buildings_.add(index, value); onChanged(); } else { buildingsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public Builder addBuildings( net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); buildings_.add(builderForValue.build()); onChanged(); } else { buildingsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public Builder addBuildings( int index, net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); buildings_.add(index, builderForValue.build()); onChanged(); } else { buildingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public Builder addAllBuildings( java.lang.Iterable values) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); super.addAll(values, buildings_); onChanged(); } else { buildingsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public Builder clearBuildings() { if (buildingsBuilder_ == null) { buildings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { buildingsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public Builder removeBuildings(int index) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); buildings_.remove(index); onChanged(); } else { buildingsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder getBuildingsBuilder( int index) { return getBuildingsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( int index) { if (buildingsBuilder_ == null) { return buildings_.get(index); } else { return buildingsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public java.util.List getBuildingsOrBuilderList() { if (buildingsBuilder_ != null) { return buildingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(buildings_); } } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder() { return getBuildingsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder( int index) { return getBuildingsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 10; * *
       * buildings that doesn't belong to the street
       * 
*/ public java.util.List getBuildingsBuilderList() { return getBuildingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> getBuildingsFieldBuilder() { if (buildingsBuilder_ == null) { buildingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder>( buildings_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); buildings_ = null; } return buildingsBuilder_; } // repeated .OsmAnd.OBF.StreetIndex streets = 12; private java.util.List streets_ = java.util.Collections.emptyList(); private void ensureStreetsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { streets_ = new java.util.ArrayList(streets_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.StreetIndex, net.osmand.binary.OsmandOdb.StreetIndex.Builder, net.osmand.binary.OsmandOdb.StreetIndexOrBuilder> streetsBuilder_; /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public java.util.List getStreetsList() { if (streetsBuilder_ == null) { return java.util.Collections.unmodifiableList(streets_); } else { return streetsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public int getStreetsCount() { if (streetsBuilder_ == null) { return streets_.size(); } else { return streetsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public net.osmand.binary.OsmandOdb.StreetIndex getStreets(int index) { if (streetsBuilder_ == null) { return streets_.get(index); } else { return streetsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public Builder setStreets( int index, net.osmand.binary.OsmandOdb.StreetIndex value) { if (streetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStreetsIsMutable(); streets_.set(index, value); onChanged(); } else { streetsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public Builder setStreets( int index, net.osmand.binary.OsmandOdb.StreetIndex.Builder builderForValue) { if (streetsBuilder_ == null) { ensureStreetsIsMutable(); streets_.set(index, builderForValue.build()); onChanged(); } else { streetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public Builder addStreets(net.osmand.binary.OsmandOdb.StreetIndex value) { if (streetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStreetsIsMutable(); streets_.add(value); onChanged(); } else { streetsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public Builder addStreets( int index, net.osmand.binary.OsmandOdb.StreetIndex value) { if (streetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStreetsIsMutable(); streets_.add(index, value); onChanged(); } else { streetsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public Builder addStreets( net.osmand.binary.OsmandOdb.StreetIndex.Builder builderForValue) { if (streetsBuilder_ == null) { ensureStreetsIsMutable(); streets_.add(builderForValue.build()); onChanged(); } else { streetsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public Builder addStreets( int index, net.osmand.binary.OsmandOdb.StreetIndex.Builder builderForValue) { if (streetsBuilder_ == null) { ensureStreetsIsMutable(); streets_.add(index, builderForValue.build()); onChanged(); } else { streetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public Builder addAllStreets( java.lang.Iterable values) { if (streetsBuilder_ == null) { ensureStreetsIsMutable(); super.addAll(values, streets_); onChanged(); } else { streetsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public Builder clearStreets() { if (streetsBuilder_ == null) { streets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { streetsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public Builder removeStreets(int index) { if (streetsBuilder_ == null) { ensureStreetsIsMutable(); streets_.remove(index); onChanged(); } else { streetsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public net.osmand.binary.OsmandOdb.StreetIndex.Builder getStreetsBuilder( int index) { return getStreetsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public net.osmand.binary.OsmandOdb.StreetIndexOrBuilder getStreetsOrBuilder( int index) { if (streetsBuilder_ == null) { return streets_.get(index); } else { return streetsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public java.util.List getStreetsOrBuilderList() { if (streetsBuilder_ != null) { return streetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(streets_); } } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public net.osmand.binary.OsmandOdb.StreetIndex.Builder addStreetsBuilder() { return getStreetsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.StreetIndex.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public net.osmand.binary.OsmandOdb.StreetIndex.Builder addStreetsBuilder( int index) { return getStreetsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.StreetIndex.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.StreetIndex streets = 12; */ public java.util.List getStreetsBuilderList() { return getStreetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.StreetIndex, net.osmand.binary.OsmandOdb.StreetIndex.Builder, net.osmand.binary.OsmandOdb.StreetIndexOrBuilder> getStreetsFieldBuilder() { if (streetsBuilder_ == null) { streetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.StreetIndex, net.osmand.binary.OsmandOdb.StreetIndex.Builder, net.osmand.binary.OsmandOdb.StreetIndexOrBuilder>( streets_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); streets_ = null; } return streetsBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.CityBlockIndex) } static { defaultInstance = new CityBlockIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.CityBlockIndex) } public interface StreetIndexOrBuilder 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(); // required sint32 x = 3; /** * required sint32 x = 3; * *
     * delta encoded to parent 24 zoom
     * 
*/ boolean hasX(); /** * required sint32 x = 3; * *
     * delta encoded to parent 24 zoom
     * 
*/ int getX(); // required sint32 y = 4; /** * required sint32 y = 4; * *
     * delta encoded to parent 24 zoom
     * 
*/ boolean hasY(); /** * required sint32 y = 4; * *
     * delta encoded to parent 24 zoom
     * 
*/ int getY(); // repeated .OsmAnd.OBF.StreetIntersection intersections = 5; /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ java.util.List getIntersectionsList(); /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ net.osmand.binary.OsmandOdb.StreetIntersection getIntersections(int index); /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ int getIntersectionsCount(); /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ java.util.List getIntersectionsOrBuilderList(); /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder getIntersectionsOrBuilder( int index); // optional uint64 id = 6; /** * optional uint64 id = 6; */ boolean hasId(); /** * optional uint64 id = 6; */ long getId(); // repeated uint32 attributeTagIds = 7; /** * repeated uint32 attributeTagIds = 7; */ java.util.List getAttributeTagIdsList(); /** * repeated uint32 attributeTagIds = 7; */ int getAttributeTagIdsCount(); /** * repeated uint32 attributeTagIds = 7; */ int getAttributeTagIds(int index); // repeated string attributeValues = 8; /** * repeated string attributeValues = 8; */ java.util.List getAttributeValuesList(); /** * repeated 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); // repeated .OsmAnd.OBF.BuildingIndex buildings = 12; /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ java.util.List getBuildingsList(); /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index); /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ int getBuildingsCount(); /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ java.util.List getBuildingsOrBuilderList(); /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.StreetIndex} */ public static final class StreetIndex extends com.google.protobuf.GeneratedMessage implements StreetIndexOrBuilder { // Use StreetIndex.newBuilder() to construct. private StreetIndex(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private StreetIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final StreetIndex defaultInstance; public static StreetIndex getDefaultInstance() { return defaultInstance; } public StreetIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreetIndex( 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; x_ = input.readSInt32(); break; } case 32: { bitField0_ |= 0x00000008; y_ = input.readSInt32(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { intersections_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } intersections_.add(input.readMessage(net.osmand.binary.OsmandOdb.StreetIntersection.PARSER, extensionRegistry)); break; } case 48: { bitField0_ |= 0x00000010; id_ = input.readUInt64(); break; } case 56: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { attributeTagIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } attributeTagIds_.add(input.readUInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { attributeTagIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { attributeTagIds_.add(input.readUInt32()); } input.popLimit(limit); break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { attributeValues_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000080; } attributeValues_.add(input.readBytes()); break; } case 98: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { buildings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } buildings_.add(input.readMessage(net.osmand.binary.OsmandOdb.BuildingIndex.PARSER, extensionRegistry)); 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_ & 0x00000010) == 0x00000010)) { intersections_ = java.util.Collections.unmodifiableList(intersections_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList(attributeValues_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { buildings_ = java.util.Collections.unmodifiableList(buildings_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.StreetIndex.class, net.osmand.binary.OsmandOdb.StreetIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StreetIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreetIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * 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) { 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; } } // required sint32 x = 3; public static final int X_FIELD_NUMBER = 3; private int x_; /** * required sint32 x = 3; * *
     * delta encoded to parent 24 zoom
     * 
*/ public boolean hasX() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint32 x = 3; * *
     * delta encoded to parent 24 zoom
     * 
*/ public int getX() { return x_; } // required sint32 y = 4; public static final int Y_FIELD_NUMBER = 4; private int y_; /** * required sint32 y = 4; * *
     * delta encoded to parent 24 zoom
     * 
*/ public boolean hasY() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required sint32 y = 4; * *
     * delta encoded to parent 24 zoom
     * 
*/ public int getY() { return y_; } // repeated .OsmAnd.OBF.StreetIntersection intersections = 5; public static final int INTERSECTIONS_FIELD_NUMBER = 5; private java.util.List intersections_; /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public java.util.List getIntersectionsList() { return intersections_; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public java.util.List getIntersectionsOrBuilderList() { return intersections_; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public int getIntersectionsCount() { return intersections_.size(); } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public net.osmand.binary.OsmandOdb.StreetIntersection getIntersections(int index) { return intersections_.get(index); } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder getIntersectionsOrBuilder( int index) { return intersections_.get(index); } // optional uint64 id = 6; public static final int ID_FIELD_NUMBER = 6; private long id_; /** * optional uint64 id = 6; */ public boolean hasId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint64 id = 6; */ public long getId() { return id_; } // repeated uint32 attributeTagIds = 7; public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 7; private java.util.List attributeTagIds_; /** * repeated uint32 attributeTagIds = 7; */ public java.util.List getAttributeTagIdsList() { return attributeTagIds_; } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } // repeated string attributeValues = 8; public static final int ATTRIBUTEVALUES_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList attributeValues_; /** * repeated string attributeValues = 8; */ public java.util.List getAttributeValuesList() { return attributeValues_; } /** * repeated string attributeValues = 8; */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * repeated string attributeValues = 8; */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * repeated string attributeValues = 8; */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } // repeated .OsmAnd.OBF.BuildingIndex buildings = 12; public static final int BUILDINGS_FIELD_NUMBER = 12; private java.util.List buildings_; /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public java.util.List getBuildingsList() { return buildings_; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public java.util.List getBuildingsOrBuilderList() { return buildings_; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public int getBuildingsCount() { return buildings_.size(); } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { return buildings_.get(index); } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( int index) { return buildings_.get(index); } private void initFields() { name_ = ""; nameEn_ = ""; x_ = 0; y_ = 0; intersections_ = java.util.Collections.emptyList(); id_ = 0L; attributeTagIds_ = java.util.Collections.emptyList(); attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; buildings_ = 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; } if (!hasX()) { memoizedIsInitialized = 0; return false; } if (!hasY()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getIntersectionsCount(); i++) { if (!getIntersections(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getBuildingsCount(); i++) { if (!getBuildings(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(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameEnBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeSInt32(3, x_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeSInt32(4, y_); } for (int i = 0; i < intersections_.size(); i++) { output.writeMessage(5, intersections_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt64(6, id_); } for (int i = 0; i < attributeTagIds_.size(); i++) { output.writeUInt32(7, attributeTagIds_.get(i)); } for (int i = 0; i < attributeValues_.size(); i++) { output.writeBytes(8, attributeValues_.getByteString(i)); } for (int i = 0; i < buildings_.size(); i++) { output.writeMessage(12, buildings_.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 .computeSInt32Size(3, x_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(4, y_); } for (int i = 0; i < intersections_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, intersections_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, id_); } { int dataSize = 0; for (int i = 0; i < attributeTagIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(attributeTagIds_.get(i)); } size += dataSize; size += 1 * getAttributeTagIdsList().size(); } { int dataSize = 0; for (int i = 0; i < attributeValues_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(attributeValues_.getByteString(i)); } size += dataSize; size += 1 * getAttributeValuesList().size(); } for (int i = 0; i < buildings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, buildings_.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.StreetIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.StreetIndex 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.StreetIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.StreetIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.StreetIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.StreetIndex 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.StreetIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.StreetIndex 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.StreetIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.StreetIndex 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.StreetIndex 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.StreetIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.StreetIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.StreetIndex.class, net.osmand.binary.OsmandOdb.StreetIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.StreetIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getIntersectionsFieldBuilder(); getBuildingsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); nameEn_ = ""; bitField0_ = (bitField0_ & ~0x00000002); x_ = 0; bitField0_ = (bitField0_ & ~0x00000004); y_ = 0; bitField0_ = (bitField0_ & ~0x00000008); if (intersectionsBuilder_ == null) { intersections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { intersectionsBuilder_.clear(); } id_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); attributeTagIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); if (buildingsBuilder_ == null) { buildings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { buildingsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIndex_descriptor; } public net.osmand.binary.OsmandOdb.StreetIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.StreetIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.StreetIndex build() { net.osmand.binary.OsmandOdb.StreetIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.StreetIndex buildPartial() { net.osmand.binary.OsmandOdb.StreetIndex result = new net.osmand.binary.OsmandOdb.StreetIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.nameEn_ = nameEn_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.x_ = x_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.y_ = y_; if (intersectionsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { intersections_ = java.util.Collections.unmodifiableList(intersections_); bitField0_ = (bitField0_ & ~0x00000010); } result.intersections_ = intersections_; } else { result.intersections_ = intersectionsBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.id_ = id_; if (((bitField0_ & 0x00000040) == 0x00000040)) { attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); bitField0_ = (bitField0_ & ~0x00000040); } result.attributeTagIds_ = attributeTagIds_; if (((bitField0_ & 0x00000080) == 0x00000080)) { attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList( attributeValues_); bitField0_ = (bitField0_ & ~0x00000080); } result.attributeValues_ = attributeValues_; if (buildingsBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { buildings_ = java.util.Collections.unmodifiableList(buildings_); bitField0_ = (bitField0_ & ~0x00000100); } result.buildings_ = buildings_; } else { result.buildings_ = buildingsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.StreetIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.StreetIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.StreetIndex other) { if (other == net.osmand.binary.OsmandOdb.StreetIndex.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasNameEn()) { bitField0_ |= 0x00000002; nameEn_ = other.nameEn_; onChanged(); } if (other.hasX()) { setX(other.getX()); } if (other.hasY()) { setY(other.getY()); } if (intersectionsBuilder_ == null) { if (!other.intersections_.isEmpty()) { if (intersections_.isEmpty()) { intersections_ = other.intersections_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureIntersectionsIsMutable(); intersections_.addAll(other.intersections_); } onChanged(); } } else { if (!other.intersections_.isEmpty()) { if (intersectionsBuilder_.isEmpty()) { intersectionsBuilder_.dispose(); intersectionsBuilder_ = null; intersections_ = other.intersections_; bitField0_ = (bitField0_ & ~0x00000010); intersectionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getIntersectionsFieldBuilder() : null; } else { intersectionsBuilder_.addAllMessages(other.intersections_); } } } if (other.hasId()) { setId(other.getId()); } if (!other.attributeTagIds_.isEmpty()) { if (attributeTagIds_.isEmpty()) { attributeTagIds_ = other.attributeTagIds_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureAttributeTagIdsIsMutable(); attributeTagIds_.addAll(other.attributeTagIds_); } onChanged(); } if (!other.attributeValues_.isEmpty()) { if (attributeValues_.isEmpty()) { attributeValues_ = other.attributeValues_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAttributeValuesIsMutable(); attributeValues_.addAll(other.attributeValues_); } onChanged(); } if (buildingsBuilder_ == null) { if (!other.buildings_.isEmpty()) { if (buildings_.isEmpty()) { buildings_ = other.buildings_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureBuildingsIsMutable(); buildings_.addAll(other.buildings_); } onChanged(); } } else { if (!other.buildings_.isEmpty()) { if (buildingsBuilder_.isEmpty()) { buildingsBuilder_.dispose(); buildingsBuilder_ = null; buildings_ = other.buildings_; bitField0_ = (bitField0_ & ~0x00000100); buildingsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBuildingsFieldBuilder() : null; } else { buildingsBuilder_.addAllMessages(other.buildings_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasX()) { return false; } if (!hasY()) { return false; } for (int i = 0; i < getIntersectionsCount(); i++) { if (!getIntersections(i).isInitialized()) { return false; } } for (int i = 0; i < getBuildingsCount(); i++) { if (!getBuildings(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.StreetIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.StreetIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string name = 1; private java.lang.Object name_ = ""; /** * 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; } // required sint32 x = 3; private int x_ ; /** * required sint32 x = 3; * *
       * delta encoded to parent 24 zoom
       * 
*/ public boolean hasX() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint32 x = 3; * *
       * delta encoded to parent 24 zoom
       * 
*/ public int getX() { return x_; } /** * required sint32 x = 3; * *
       * delta encoded to parent 24 zoom
       * 
*/ public Builder setX(int value) { bitField0_ |= 0x00000004; x_ = value; onChanged(); return this; } /** * required sint32 x = 3; * *
       * delta encoded to parent 24 zoom
       * 
*/ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000004); x_ = 0; onChanged(); return this; } // required sint32 y = 4; private int y_ ; /** * required sint32 y = 4; * *
       * delta encoded to parent 24 zoom
       * 
*/ public boolean hasY() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required sint32 y = 4; * *
       * delta encoded to parent 24 zoom
       * 
*/ public int getY() { return y_; } /** * required sint32 y = 4; * *
       * delta encoded to parent 24 zoom
       * 
*/ public Builder setY(int value) { bitField0_ |= 0x00000008; y_ = value; onChanged(); return this; } /** * required sint32 y = 4; * *
       * delta encoded to parent 24 zoom
       * 
*/ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000008); y_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.StreetIntersection intersections = 5; private java.util.List intersections_ = java.util.Collections.emptyList(); private void ensureIntersectionsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { intersections_ = new java.util.ArrayList(intersections_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.StreetIntersection, net.osmand.binary.OsmandOdb.StreetIntersection.Builder, net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder> intersectionsBuilder_; /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public java.util.List getIntersectionsList() { if (intersectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(intersections_); } else { return intersectionsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public int getIntersectionsCount() { if (intersectionsBuilder_ == null) { return intersections_.size(); } else { return intersectionsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public net.osmand.binary.OsmandOdb.StreetIntersection getIntersections(int index) { if (intersectionsBuilder_ == null) { return intersections_.get(index); } else { return intersectionsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public Builder setIntersections( int index, net.osmand.binary.OsmandOdb.StreetIntersection value) { if (intersectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIntersectionsIsMutable(); intersections_.set(index, value); onChanged(); } else { intersectionsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public Builder setIntersections( int index, net.osmand.binary.OsmandOdb.StreetIntersection.Builder builderForValue) { if (intersectionsBuilder_ == null) { ensureIntersectionsIsMutable(); intersections_.set(index, builderForValue.build()); onChanged(); } else { intersectionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public Builder addIntersections(net.osmand.binary.OsmandOdb.StreetIntersection value) { if (intersectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIntersectionsIsMutable(); intersections_.add(value); onChanged(); } else { intersectionsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public Builder addIntersections( int index, net.osmand.binary.OsmandOdb.StreetIntersection value) { if (intersectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIntersectionsIsMutable(); intersections_.add(index, value); onChanged(); } else { intersectionsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public Builder addIntersections( net.osmand.binary.OsmandOdb.StreetIntersection.Builder builderForValue) { if (intersectionsBuilder_ == null) { ensureIntersectionsIsMutable(); intersections_.add(builderForValue.build()); onChanged(); } else { intersectionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public Builder addIntersections( int index, net.osmand.binary.OsmandOdb.StreetIntersection.Builder builderForValue) { if (intersectionsBuilder_ == null) { ensureIntersectionsIsMutable(); intersections_.add(index, builderForValue.build()); onChanged(); } else { intersectionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public Builder addAllIntersections( java.lang.Iterable values) { if (intersectionsBuilder_ == null) { ensureIntersectionsIsMutable(); super.addAll(values, intersections_); onChanged(); } else { intersectionsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public Builder clearIntersections() { if (intersectionsBuilder_ == null) { intersections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { intersectionsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public Builder removeIntersections(int index) { if (intersectionsBuilder_ == null) { ensureIntersectionsIsMutable(); intersections_.remove(index); onChanged(); } else { intersectionsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public net.osmand.binary.OsmandOdb.StreetIntersection.Builder getIntersectionsBuilder( int index) { return getIntersectionsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder getIntersectionsOrBuilder( int index) { if (intersectionsBuilder_ == null) { return intersections_.get(index); } else { return intersectionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public java.util.List getIntersectionsOrBuilderList() { if (intersectionsBuilder_ != null) { return intersectionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(intersections_); } } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public net.osmand.binary.OsmandOdb.StreetIntersection.Builder addIntersectionsBuilder() { return getIntersectionsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.StreetIntersection.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public net.osmand.binary.OsmandOdb.StreetIntersection.Builder addIntersectionsBuilder( int index) { return getIntersectionsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.StreetIntersection.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.StreetIntersection intersections = 5; */ public java.util.List getIntersectionsBuilderList() { return getIntersectionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.StreetIntersection, net.osmand.binary.OsmandOdb.StreetIntersection.Builder, net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder> getIntersectionsFieldBuilder() { if (intersectionsBuilder_ == null) { intersectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.StreetIntersection, net.osmand.binary.OsmandOdb.StreetIntersection.Builder, net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder>( intersections_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); intersections_ = null; } return intersectionsBuilder_; } // optional uint64 id = 6; private long id_ ; /** * optional uint64 id = 6; */ public boolean hasId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint64 id = 6; */ public long getId() { return id_; } /** * optional uint64 id = 6; */ public Builder setId(long value) { bitField0_ |= 0x00000020; id_ = value; onChanged(); return this; } /** * optional uint64 id = 6; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000020); id_ = 0L; onChanged(); return this; } // repeated uint32 attributeTagIds = 7; private java.util.List attributeTagIds_ = java.util.Collections.emptyList(); private void ensureAttributeTagIdsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { attributeTagIds_ = new java.util.ArrayList(attributeTagIds_); bitField0_ |= 0x00000040; } } /** * repeated uint32 attributeTagIds = 7; */ public java.util.List getAttributeTagIdsList() { return java.util.Collections.unmodifiableList(attributeTagIds_); } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } /** * repeated uint32 attributeTagIds = 7; */ public Builder setAttributeTagIds( int index, int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.set(index, value); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 7; */ public Builder addAttributeTagIds(int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.add(value); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 7; */ public Builder addAllAttributeTagIds( java.lang.Iterable values) { ensureAttributeTagIdsIsMutable(); super.addAll(values, attributeTagIds_); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 7; */ public Builder clearAttributeTagIds() { attributeTagIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } // repeated string attributeValues = 8; private com.google.protobuf.LazyStringList attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAttributeValuesIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { attributeValues_ = new com.google.protobuf.LazyStringArrayList(attributeValues_); bitField0_ |= 0x00000080; } } /** * repeated string attributeValues = 8; */ public java.util.List getAttributeValuesList() { return java.util.Collections.unmodifiableList(attributeValues_); } /** * repeated string attributeValues = 8; */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * repeated string attributeValues = 8; */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * repeated string attributeValues = 8; */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } /** * repeated string attributeValues = 8; */ public Builder setAttributeValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.set(index, value); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder addAttributeValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder addAllAttributeValues( java.lang.Iterable values) { ensureAttributeValuesIsMutable(); super.addAll(values, attributeValues_); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder clearAttributeValues() { attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder addAttributeValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } // repeated .OsmAnd.OBF.BuildingIndex buildings = 12; private java.util.List buildings_ = java.util.Collections.emptyList(); private void ensureBuildingsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { buildings_ = new java.util.ArrayList(buildings_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> buildingsBuilder_; /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public java.util.List getBuildingsList() { if (buildingsBuilder_ == null) { return java.util.Collections.unmodifiableList(buildings_); } else { return buildingsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public int getBuildingsCount() { if (buildingsBuilder_ == null) { return buildings_.size(); } else { return buildingsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { if (buildingsBuilder_ == null) { return buildings_.get(index); } else { return buildingsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public Builder setBuildings( int index, net.osmand.binary.OsmandOdb.BuildingIndex value) { if (buildingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBuildingsIsMutable(); buildings_.set(index, value); onChanged(); } else { buildingsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public Builder setBuildings( int index, net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); buildings_.set(index, builderForValue.build()); onChanged(); } else { buildingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public Builder addBuildings(net.osmand.binary.OsmandOdb.BuildingIndex value) { if (buildingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBuildingsIsMutable(); buildings_.add(value); onChanged(); } else { buildingsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public Builder addBuildings( int index, net.osmand.binary.OsmandOdb.BuildingIndex value) { if (buildingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBuildingsIsMutable(); buildings_.add(index, value); onChanged(); } else { buildingsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public Builder addBuildings( net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); buildings_.add(builderForValue.build()); onChanged(); } else { buildingsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public Builder addBuildings( int index, net.osmand.binary.OsmandOdb.BuildingIndex.Builder builderForValue) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); buildings_.add(index, builderForValue.build()); onChanged(); } else { buildingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public Builder addAllBuildings( java.lang.Iterable values) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); super.addAll(values, buildings_); onChanged(); } else { buildingsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public Builder clearBuildings() { if (buildingsBuilder_ == null) { buildings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { buildingsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public Builder removeBuildings(int index) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); buildings_.remove(index); onChanged(); } else { buildingsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder getBuildingsBuilder( int index) { return getBuildingsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( int index) { if (buildingsBuilder_ == null) { return buildings_.get(index); } else { return buildingsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public java.util.List getBuildingsOrBuilderList() { if (buildingsBuilder_ != null) { return buildingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(buildings_); } } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder() { return getBuildingsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder( int index) { return getBuildingsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.BuildingIndex buildings = 12; */ public java.util.List getBuildingsBuilderList() { return getBuildingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> getBuildingsFieldBuilder() { if (buildingsBuilder_ == null) { buildingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.BuildingIndex, net.osmand.binary.OsmandOdb.BuildingIndex.Builder, net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder>( buildings_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); buildings_ = null; } return buildingsBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.StreetIndex) } static { defaultInstance = new StreetIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.StreetIndex) } public interface StreetIntersectionOrBuilder extends com.google.protobuf.MessageOrBuilder { // 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(); // required sint32 intersectedX = 4; /** * required sint32 intersectedX = 4; * *
     * delta encoded to parent street x 24 zoom
     * 
*/ boolean hasIntersectedX(); /** * required sint32 intersectedX = 4; * *
     * delta encoded to parent street x 24 zoom
     * 
*/ int getIntersectedX(); // required sint32 intersectedY = 5; /** * required sint32 intersectedY = 5; * *
     * delta encoded to parent street y 24 zoom
     * 
*/ boolean hasIntersectedY(); /** * required sint32 intersectedY = 5; * *
     * delta encoded to parent street y 24 zoom
     * 
*/ int getIntersectedY(); // repeated uint32 attributeTagIds = 7; /** * repeated uint32 attributeTagIds = 7; */ java.util.List getAttributeTagIdsList(); /** * repeated uint32 attributeTagIds = 7; */ int getAttributeTagIdsCount(); /** * repeated uint32 attributeTagIds = 7; */ int getAttributeTagIds(int index); // repeated string attributeValues = 8; /** * repeated string attributeValues = 8; */ java.util.List getAttributeValuesList(); /** * repeated 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); } /** * Protobuf type {@code OsmAnd.OBF.StreetIntersection} */ public static final class StreetIntersection extends com.google.protobuf.GeneratedMessage implements StreetIntersectionOrBuilder { // Use StreetIntersection.newBuilder() to construct. private StreetIntersection(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private StreetIntersection(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final StreetIntersection defaultInstance; public static StreetIntersection getDefaultInstance() { return defaultInstance; } public StreetIntersection getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreetIntersection( 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 26: { bitField0_ |= 0x00000002; nameEn_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000004; intersectedX_ = input.readSInt32(); break; } case 40: { bitField0_ |= 0x00000008; intersectedY_ = input.readSInt32(); break; } case 56: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { attributeTagIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } attributeTagIds_.add(input.readUInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { attributeTagIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { attributeTagIds_.add(input.readUInt32()); } input.popLimit(limit); break; } case 66: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { attributeValues_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } attributeValues_.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_ & 0x00000010) == 0x00000010)) { attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList(attributeValues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIntersection_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIntersection_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.StreetIntersection.class, net.osmand.binary.OsmandOdb.StreetIntersection.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StreetIntersection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreetIntersection(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // 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_ & 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; } } // 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_ & 0x00000002) == 0x00000002); } /** * 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; } } // required sint32 intersectedX = 4; public static final int INTERSECTEDX_FIELD_NUMBER = 4; private int intersectedX_; /** * required sint32 intersectedX = 4; * *
     * delta encoded to parent street x 24 zoom
     * 
*/ public boolean hasIntersectedX() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint32 intersectedX = 4; * *
     * delta encoded to parent street x 24 zoom
     * 
*/ public int getIntersectedX() { return intersectedX_; } // required sint32 intersectedY = 5; public static final int INTERSECTEDY_FIELD_NUMBER = 5; private int intersectedY_; /** * required sint32 intersectedY = 5; * *
     * delta encoded to parent street y 24 zoom
     * 
*/ public boolean hasIntersectedY() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required sint32 intersectedY = 5; * *
     * delta encoded to parent street y 24 zoom
     * 
*/ public int getIntersectedY() { return intersectedY_; } // repeated uint32 attributeTagIds = 7; public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 7; private java.util.List attributeTagIds_; /** * repeated uint32 attributeTagIds = 7; */ public java.util.List getAttributeTagIdsList() { return attributeTagIds_; } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } // repeated string attributeValues = 8; public static final int ATTRIBUTEVALUES_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList attributeValues_; /** * repeated string attributeValues = 8; */ public java.util.List getAttributeValuesList() { return attributeValues_; } /** * repeated string attributeValues = 8; */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * repeated string attributeValues = 8; */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * repeated string attributeValues = 8; */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } private void initFields() { name_ = ""; nameEn_ = ""; intersectedX_ = 0; intersectedY_ = 0; attributeTagIds_ = java.util.Collections.emptyList(); attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasIntersectedX()) { memoizedIsInitialized = 0; return false; } if (!hasIntersectedY()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(3, getNameEnBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeSInt32(4, intersectedX_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeSInt32(5, intersectedY_); } for (int i = 0; i < attributeTagIds_.size(); i++) { output.writeUInt32(7, attributeTagIds_.get(i)); } for (int i = 0; i < attributeValues_.size(); i++) { output.writeBytes(8, attributeValues_.getByteString(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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getNameEnBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(4, intersectedX_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(5, intersectedY_); } { int dataSize = 0; for (int i = 0; i < attributeTagIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(attributeTagIds_.get(i)); } size += dataSize; size += 1 * getAttributeTagIdsList().size(); } { int dataSize = 0; for (int i = 0; i < attributeValues_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(attributeValues_.getByteString(i)); } size += dataSize; size += 1 * getAttributeValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.StreetIntersection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.StreetIntersection 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.StreetIntersection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.StreetIntersection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.StreetIntersection parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.StreetIntersection 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.StreetIntersection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.StreetIntersection 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.StreetIntersection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.StreetIntersection 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.StreetIntersection 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.StreetIntersection} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIntersection_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIntersection_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.StreetIntersection.class, net.osmand.binary.OsmandOdb.StreetIntersection.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.StreetIntersection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); nameEn_ = ""; bitField0_ = (bitField0_ & ~0x00000002); intersectedX_ = 0; bitField0_ = (bitField0_ & ~0x00000004); intersectedY_ = 0; bitField0_ = (bitField0_ & ~0x00000008); attributeTagIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_StreetIntersection_descriptor; } public net.osmand.binary.OsmandOdb.StreetIntersection getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.StreetIntersection.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.StreetIntersection build() { net.osmand.binary.OsmandOdb.StreetIntersection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.StreetIntersection buildPartial() { net.osmand.binary.OsmandOdb.StreetIntersection result = new net.osmand.binary.OsmandOdb.StreetIntersection(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.nameEn_ = nameEn_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.intersectedX_ = intersectedX_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.intersectedY_ = intersectedY_; if (((bitField0_ & 0x00000010) == 0x00000010)) { attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); bitField0_ = (bitField0_ & ~0x00000010); } result.attributeTagIds_ = attributeTagIds_; if (((bitField0_ & 0x00000020) == 0x00000020)) { attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList( attributeValues_); bitField0_ = (bitField0_ & ~0x00000020); } result.attributeValues_ = attributeValues_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.StreetIntersection) { return mergeFrom((net.osmand.binary.OsmandOdb.StreetIntersection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.StreetIntersection other) { if (other == net.osmand.binary.OsmandOdb.StreetIntersection.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasNameEn()) { bitField0_ |= 0x00000002; nameEn_ = other.nameEn_; onChanged(); } if (other.hasIntersectedX()) { setIntersectedX(other.getIntersectedX()); } if (other.hasIntersectedY()) { setIntersectedY(other.getIntersectedY()); } if (!other.attributeTagIds_.isEmpty()) { if (attributeTagIds_.isEmpty()) { attributeTagIds_ = other.attributeTagIds_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAttributeTagIdsIsMutable(); attributeTagIds_.addAll(other.attributeTagIds_); } onChanged(); } if (!other.attributeValues_.isEmpty()) { if (attributeValues_.isEmpty()) { attributeValues_ = other.attributeValues_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureAttributeValuesIsMutable(); attributeValues_.addAll(other.attributeValues_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasIntersectedX()) { return false; } if (!hasIntersectedY()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.StreetIntersection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.StreetIntersection) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string name = 2; private java.lang.Object name_ = ""; /** * 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; } // optional string name_en = 3; private java.lang.Object nameEn_ = ""; /** * optional string name_en = 3; */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name_en = 3; */ 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 = 3; */ 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 = 3; */ public Builder setNameEn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nameEn_ = value; onChanged(); return this; } /** * optional string name_en = 3; */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000002); nameEn_ = getDefaultInstance().getNameEn(); onChanged(); return this; } /** * optional string name_en = 3; */ public Builder setNameEnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nameEn_ = value; onChanged(); return this; } // required sint32 intersectedX = 4; private int intersectedX_ ; /** * required sint32 intersectedX = 4; * *
       * delta encoded to parent street x 24 zoom
       * 
*/ public boolean hasIntersectedX() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint32 intersectedX = 4; * *
       * delta encoded to parent street x 24 zoom
       * 
*/ public int getIntersectedX() { return intersectedX_; } /** * required sint32 intersectedX = 4; * *
       * delta encoded to parent street x 24 zoom
       * 
*/ public Builder setIntersectedX(int value) { bitField0_ |= 0x00000004; intersectedX_ = value; onChanged(); return this; } /** * required sint32 intersectedX = 4; * *
       * delta encoded to parent street x 24 zoom
       * 
*/ public Builder clearIntersectedX() { bitField0_ = (bitField0_ & ~0x00000004); intersectedX_ = 0; onChanged(); return this; } // required sint32 intersectedY = 5; private int intersectedY_ ; /** * required sint32 intersectedY = 5; * *
       * delta encoded to parent street y 24 zoom
       * 
*/ public boolean hasIntersectedY() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required sint32 intersectedY = 5; * *
       * delta encoded to parent street y 24 zoom
       * 
*/ public int getIntersectedY() { return intersectedY_; } /** * required sint32 intersectedY = 5; * *
       * delta encoded to parent street y 24 zoom
       * 
*/ public Builder setIntersectedY(int value) { bitField0_ |= 0x00000008; intersectedY_ = value; onChanged(); return this; } /** * required sint32 intersectedY = 5; * *
       * delta encoded to parent street y 24 zoom
       * 
*/ public Builder clearIntersectedY() { bitField0_ = (bitField0_ & ~0x00000008); intersectedY_ = 0; onChanged(); return this; } // repeated uint32 attributeTagIds = 7; private java.util.List attributeTagIds_ = java.util.Collections.emptyList(); private void ensureAttributeTagIdsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { attributeTagIds_ = new java.util.ArrayList(attributeTagIds_); bitField0_ |= 0x00000010; } } /** * repeated uint32 attributeTagIds = 7; */ public java.util.List getAttributeTagIdsList() { return java.util.Collections.unmodifiableList(attributeTagIds_); } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * repeated uint32 attributeTagIds = 7; */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } /** * repeated uint32 attributeTagIds = 7; */ public Builder setAttributeTagIds( int index, int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.set(index, value); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 7; */ public Builder addAttributeTagIds(int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.add(value); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 7; */ public Builder addAllAttributeTagIds( java.lang.Iterable values) { ensureAttributeTagIdsIsMutable(); super.addAll(values, attributeTagIds_); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 7; */ public Builder clearAttributeTagIds() { attributeTagIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } // repeated string attributeValues = 8; private com.google.protobuf.LazyStringList attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAttributeValuesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { attributeValues_ = new com.google.protobuf.LazyStringArrayList(attributeValues_); bitField0_ |= 0x00000020; } } /** * repeated string attributeValues = 8; */ public java.util.List getAttributeValuesList() { return java.util.Collections.unmodifiableList(attributeValues_); } /** * repeated string attributeValues = 8; */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * repeated string attributeValues = 8; */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * repeated string attributeValues = 8; */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } /** * repeated string attributeValues = 8; */ public Builder setAttributeValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.set(index, value); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder addAttributeValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder addAllAttributeValues( java.lang.Iterable values) { ensureAttributeValuesIsMutable(); super.addAll(values, attributeValues_); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder clearAttributeValues() { attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * repeated string attributeValues = 8; */ public Builder addAttributeValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.StreetIntersection) } static { defaultInstance = new StreetIntersection(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.StreetIntersection) } public interface BuildingIndexOrBuilder 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 string name2 = 3; /** * optional string name2 = 3; * *
     * used for interpolation
     * 
*/ boolean hasName2(); /** * optional string name2 = 3; * *
     * used for interpolation
     * 
*/ java.lang.String getName2(); /** * optional string name2 = 3; * *
     * used for interpolation
     * 
*/ com.google.protobuf.ByteString getName2Bytes(); // optional string name_en2 = 4; /** * optional string name_en2 = 4; */ boolean hasNameEn2(); /** * optional string name_en2 = 4; */ java.lang.String getNameEn2(); /** * optional string name_en2 = 4; */ com.google.protobuf.ByteString getNameEn2Bytes(); // optional sint32 interpolation = 5; /** * optional sint32 interpolation = 5; * *
     * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic
     * positive - just positive interpolation 
     * 
*/ boolean hasInterpolation(); /** * optional sint32 interpolation = 5; * *
     * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic
     * positive - just positive interpolation 
     * 
*/ int getInterpolation(); // required sint32 x = 7; /** * required sint32 x = 7; * *
     * delta encoded to parent 24 zoom
     * 
*/ boolean hasX(); /** * required sint32 x = 7; * *
     * delta encoded to parent 24 zoom
     * 
*/ int getX(); // required sint32 y = 8; /** * required sint32 y = 8; * *
     * delta encoded to parent 24 zoom
     * 
*/ boolean hasY(); /** * required sint32 y = 8; * *
     * delta encoded to parent 24 zoom
     * 
*/ int getY(); // optional sint32 x2 = 9; /** * optional sint32 x2 = 9; * *
     * used for interpolation
     * 
*/ boolean hasX2(); /** * optional sint32 x2 = 9; * *
     * used for interpolation
     * 
*/ int getX2(); // optional sint32 y2 = 10; /** * optional sint32 y2 = 10; * *
     * delta encoded to parent 24 zoom
     * 
*/ boolean hasY2(); /** * optional sint32 y2 = 10; * *
     * delta encoded to parent 24 zoom
     * 
*/ int getY2(); // optional uint64 id = 13; /** * optional uint64 id = 13; */ boolean hasId(); /** * optional uint64 id = 13; */ long getId(); // optional string postcode = 14; /** * optional string postcode = 14; */ boolean hasPostcode(); /** * optional string postcode = 14; */ java.lang.String getPostcode(); /** * optional string postcode = 14; */ com.google.protobuf.ByteString getPostcodeBytes(); // repeated uint32 attributeTagIds = 15; /** * repeated uint32 attributeTagIds = 15; */ java.util.List getAttributeTagIdsList(); /** * repeated uint32 attributeTagIds = 15; */ int getAttributeTagIdsCount(); /** * repeated uint32 attributeTagIds = 15; */ int getAttributeTagIds(int index); // repeated string attributeValues = 16; /** * repeated string attributeValues = 16; */ java.util.List getAttributeValuesList(); /** * repeated string attributeValues = 16; */ int getAttributeValuesCount(); /** * repeated string attributeValues = 16; */ java.lang.String getAttributeValues(int index); /** * repeated string attributeValues = 16; */ com.google.protobuf.ByteString getAttributeValuesBytes(int index); // repeated uint32 attributeTagIds2 = 17; /** * repeated uint32 attributeTagIds2 = 17; */ java.util.List getAttributeTagIds2List(); /** * repeated uint32 attributeTagIds2 = 17; */ int getAttributeTagIds2Count(); /** * repeated uint32 attributeTagIds2 = 17; */ int getAttributeTagIds2(int index); // repeated string attributeValues2 = 18; /** * repeated string attributeValues2 = 18; */ java.util.List getAttributeValues2List(); /** * repeated string attributeValues2 = 18; */ int getAttributeValues2Count(); /** * repeated string attributeValues2 = 18; */ java.lang.String getAttributeValues2(int index); /** * repeated string attributeValues2 = 18; */ com.google.protobuf.ByteString getAttributeValues2Bytes(int index); } /** * Protobuf type {@code OsmAnd.OBF.BuildingIndex} */ public static final class BuildingIndex extends com.google.protobuf.GeneratedMessage implements BuildingIndexOrBuilder { // Use BuildingIndex.newBuilder() to construct. private BuildingIndex(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private BuildingIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final BuildingIndex defaultInstance; public static BuildingIndex getDefaultInstance() { return defaultInstance; } public BuildingIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BuildingIndex( 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: { bitField0_ |= 0x00000004; name2_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; nameEn2_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; interpolation_ = input.readSInt32(); break; } case 56: { bitField0_ |= 0x00000020; x_ = input.readSInt32(); break; } case 64: { bitField0_ |= 0x00000040; y_ = input.readSInt32(); break; } case 72: { bitField0_ |= 0x00000080; x2_ = input.readSInt32(); break; } case 80: { bitField0_ |= 0x00000100; y2_ = input.readSInt32(); break; } case 104: { bitField0_ |= 0x00000200; id_ = input.readUInt64(); break; } case 114: { bitField0_ |= 0x00000400; postcode_ = input.readBytes(); break; } case 120: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { attributeTagIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } attributeTagIds_.add(input.readUInt32()); break; } case 122: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) { attributeTagIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } while (input.getBytesUntilLimit() > 0) { attributeTagIds_.add(input.readUInt32()); } input.popLimit(limit); break; } case 130: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { attributeValues_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00001000; } attributeValues_.add(input.readBytes()); break; } case 136: { if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { attributeTagIds2_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00002000; } attributeTagIds2_.add(input.readUInt32()); break; } case 138: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00002000) == 0x00002000) && input.getBytesUntilLimit() > 0) { attributeTagIds2_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00002000; } while (input.getBytesUntilLimit() > 0) { attributeTagIds2_.add(input.readUInt32()); } input.popLimit(limit); break; } case 146: { if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { attributeValues2_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00004000; } attributeValues2_.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_ & 0x00000800) == 0x00000800)) { attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); } if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList(attributeValues_); } if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { attributeTagIds2_ = java.util.Collections.unmodifiableList(attributeTagIds2_); } if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { attributeValues2_ = new com.google.protobuf.UnmodifiableLazyStringList(attributeValues2_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_BuildingIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_BuildingIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.BuildingIndex.class, net.osmand.binary.OsmandOdb.BuildingIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BuildingIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BuildingIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * 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) { 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 string name2 = 3; public static final int NAME2_FIELD_NUMBER = 3; private java.lang.Object name2_; /** * optional string name2 = 3; * *
     * used for interpolation
     * 
*/ public boolean hasName2() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string name2 = 3; * *
     * used for interpolation
     * 
*/ public java.lang.String getName2() { java.lang.Object ref = name2_; 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()) { name2_ = s; } return s; } } /** * optional string name2 = 3; * *
     * used for interpolation
     * 
*/ public com.google.protobuf.ByteString getName2Bytes() { java.lang.Object ref = name2_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string name_en2 = 4; public static final int NAME_EN2_FIELD_NUMBER = 4; private java.lang.Object nameEn2_; /** * optional string name_en2 = 4; */ public boolean hasNameEn2() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string name_en2 = 4; */ public java.lang.String getNameEn2() { java.lang.Object ref = nameEn2_; 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()) { nameEn2_ = s; } return s; } } /** * optional string name_en2 = 4; */ public com.google.protobuf.ByteString getNameEn2Bytes() { java.lang.Object ref = nameEn2_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nameEn2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional sint32 interpolation = 5; public static final int INTERPOLATION_FIELD_NUMBER = 5; private int interpolation_; /** * optional sint32 interpolation = 5; * *
     * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic
     * positive - just positive interpolation 
     * 
*/ public boolean hasInterpolation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional sint32 interpolation = 5; * *
     * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic
     * positive - just positive interpolation 
     * 
*/ public int getInterpolation() { return interpolation_; } // required sint32 x = 7; public static final int X_FIELD_NUMBER = 7; private int x_; /** * required sint32 x = 7; * *
     * delta encoded to parent 24 zoom
     * 
*/ public boolean hasX() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * required sint32 x = 7; * *
     * delta encoded to parent 24 zoom
     * 
*/ public int getX() { return x_; } // required sint32 y = 8; public static final int Y_FIELD_NUMBER = 8; private int y_; /** * required sint32 y = 8; * *
     * delta encoded to parent 24 zoom
     * 
*/ public boolean hasY() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * required sint32 y = 8; * *
     * delta encoded to parent 24 zoom
     * 
*/ public int getY() { return y_; } // optional sint32 x2 = 9; public static final int X2_FIELD_NUMBER = 9; private int x2_; /** * optional sint32 x2 = 9; * *
     * used for interpolation
     * 
*/ public boolean hasX2() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional sint32 x2 = 9; * *
     * used for interpolation
     * 
*/ public int getX2() { return x2_; } // optional sint32 y2 = 10; public static final int Y2_FIELD_NUMBER = 10; private int y2_; /** * optional sint32 y2 = 10; * *
     * delta encoded to parent 24 zoom
     * 
*/ public boolean hasY2() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional sint32 y2 = 10; * *
     * delta encoded to parent 24 zoom
     * 
*/ public int getY2() { return y2_; } // optional uint64 id = 13; public static final int ID_FIELD_NUMBER = 13; private long id_; /** * optional uint64 id = 13; */ public boolean hasId() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint64 id = 13; */ public long getId() { return id_; } // optional string postcode = 14; public static final int POSTCODE_FIELD_NUMBER = 14; private java.lang.Object postcode_; /** * optional string postcode = 14; */ public boolean hasPostcode() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string postcode = 14; */ public java.lang.String getPostcode() { java.lang.Object ref = postcode_; 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()) { postcode_ = s; } return s; } } /** * optional string postcode = 14; */ public com.google.protobuf.ByteString getPostcodeBytes() { java.lang.Object ref = postcode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postcode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated uint32 attributeTagIds = 15; public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 15; private java.util.List attributeTagIds_; /** * repeated uint32 attributeTagIds = 15; */ public java.util.List getAttributeTagIdsList() { return attributeTagIds_; } /** * repeated uint32 attributeTagIds = 15; */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * repeated uint32 attributeTagIds = 15; */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } // repeated string attributeValues = 16; public static final int ATTRIBUTEVALUES_FIELD_NUMBER = 16; private com.google.protobuf.LazyStringList attributeValues_; /** * repeated string attributeValues = 16; */ public java.util.List getAttributeValuesList() { return attributeValues_; } /** * repeated string attributeValues = 16; */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * repeated string attributeValues = 16; */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * repeated string attributeValues = 16; */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } // repeated uint32 attributeTagIds2 = 17; public static final int ATTRIBUTETAGIDS2_FIELD_NUMBER = 17; private java.util.List attributeTagIds2_; /** * repeated uint32 attributeTagIds2 = 17; */ public java.util.List getAttributeTagIds2List() { return attributeTagIds2_; } /** * repeated uint32 attributeTagIds2 = 17; */ public int getAttributeTagIds2Count() { return attributeTagIds2_.size(); } /** * repeated uint32 attributeTagIds2 = 17; */ public int getAttributeTagIds2(int index) { return attributeTagIds2_.get(index); } // repeated string attributeValues2 = 18; public static final int ATTRIBUTEVALUES2_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList attributeValues2_; /** * repeated string attributeValues2 = 18; */ public java.util.List getAttributeValues2List() { return attributeValues2_; } /** * repeated string attributeValues2 = 18; */ public int getAttributeValues2Count() { return attributeValues2_.size(); } /** * repeated string attributeValues2 = 18; */ public java.lang.String getAttributeValues2(int index) { return attributeValues2_.get(index); } /** * repeated string attributeValues2 = 18; */ public com.google.protobuf.ByteString getAttributeValues2Bytes(int index) { return attributeValues2_.getByteString(index); } private void initFields() { name_ = ""; nameEn_ = ""; name2_ = ""; nameEn2_ = ""; interpolation_ = 0; x_ = 0; y_ = 0; x2_ = 0; y2_ = 0; id_ = 0L; postcode_ = ""; attributeTagIds_ = java.util.Collections.emptyList(); attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; attributeTagIds2_ = java.util.Collections.emptyList(); attributeValues2_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasX()) { memoizedIsInitialized = 0; return false; } if (!hasY()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameEnBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getName2Bytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getNameEn2Bytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeSInt32(5, interpolation_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeSInt32(7, x_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeSInt32(8, y_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeSInt32(9, x2_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeSInt32(10, y2_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeUInt64(13, id_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBytes(14, getPostcodeBytes()); } for (int i = 0; i < attributeTagIds_.size(); i++) { output.writeUInt32(15, attributeTagIds_.get(i)); } for (int i = 0; i < attributeValues_.size(); i++) { output.writeBytes(16, attributeValues_.getByteString(i)); } for (int i = 0; i < attributeTagIds2_.size(); i++) { output.writeUInt32(17, attributeTagIds2_.get(i)); } for (int i = 0; i < attributeValues2_.size(); i++) { output.writeBytes(18, attributeValues2_.getByteString(i)); } getUnknownFields().writeTo(output); } 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 .computeBytesSize(3, getName2Bytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getNameEn2Bytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(5, interpolation_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(7, x_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(8, y_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(9, x2_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(10, y2_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(13, id_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(14, getPostcodeBytes()); } { int dataSize = 0; for (int i = 0; i < attributeTagIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(attributeTagIds_.get(i)); } size += dataSize; size += 1 * getAttributeTagIdsList().size(); } { int dataSize = 0; for (int i = 0; i < attributeValues_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(attributeValues_.getByteString(i)); } size += dataSize; size += 2 * getAttributeValuesList().size(); } { int dataSize = 0; for (int i = 0; i < attributeTagIds2_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(attributeTagIds2_.get(i)); } size += dataSize; size += 2 * getAttributeTagIds2List().size(); } { int dataSize = 0; for (int i = 0; i < attributeValues2_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(attributeValues2_.getByteString(i)); } size += dataSize; size += 2 * getAttributeValues2List().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.BuildingIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.BuildingIndex 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.BuildingIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.BuildingIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.BuildingIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.BuildingIndex 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.BuildingIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.BuildingIndex 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.BuildingIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.BuildingIndex 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.BuildingIndex 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.BuildingIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_BuildingIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_BuildingIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.BuildingIndex.class, net.osmand.binary.OsmandOdb.BuildingIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.BuildingIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); nameEn_ = ""; bitField0_ = (bitField0_ & ~0x00000002); name2_ = ""; bitField0_ = (bitField0_ & ~0x00000004); nameEn2_ = ""; bitField0_ = (bitField0_ & ~0x00000008); interpolation_ = 0; bitField0_ = (bitField0_ & ~0x00000010); x_ = 0; bitField0_ = (bitField0_ & ~0x00000020); y_ = 0; bitField0_ = (bitField0_ & ~0x00000040); x2_ = 0; bitField0_ = (bitField0_ & ~0x00000080); y2_ = 0; bitField0_ = (bitField0_ & ~0x00000100); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); postcode_ = ""; bitField0_ = (bitField0_ & ~0x00000400); attributeTagIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); attributeTagIds2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); attributeValues2_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_BuildingIndex_descriptor; } public net.osmand.binary.OsmandOdb.BuildingIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.BuildingIndex build() { net.osmand.binary.OsmandOdb.BuildingIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.BuildingIndex buildPartial() { net.osmand.binary.OsmandOdb.BuildingIndex result = new net.osmand.binary.OsmandOdb.BuildingIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.nameEn_ = nameEn_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.name2_ = name2_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.nameEn2_ = nameEn2_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.interpolation_ = interpolation_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.x_ = x_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.y_ = y_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.x2_ = x2_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.y2_ = y2_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.id_ = id_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.postcode_ = postcode_; if (((bitField0_ & 0x00000800) == 0x00000800)) { attributeTagIds_ = java.util.Collections.unmodifiableList(attributeTagIds_); bitField0_ = (bitField0_ & ~0x00000800); } result.attributeTagIds_ = attributeTagIds_; if (((bitField0_ & 0x00001000) == 0x00001000)) { attributeValues_ = new com.google.protobuf.UnmodifiableLazyStringList( attributeValues_); bitField0_ = (bitField0_ & ~0x00001000); } result.attributeValues_ = attributeValues_; if (((bitField0_ & 0x00002000) == 0x00002000)) { attributeTagIds2_ = java.util.Collections.unmodifiableList(attributeTagIds2_); bitField0_ = (bitField0_ & ~0x00002000); } result.attributeTagIds2_ = attributeTagIds2_; if (((bitField0_ & 0x00004000) == 0x00004000)) { attributeValues2_ = new com.google.protobuf.UnmodifiableLazyStringList( attributeValues2_); bitField0_ = (bitField0_ & ~0x00004000); } result.attributeValues2_ = attributeValues2_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.BuildingIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.BuildingIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.BuildingIndex other) { if (other == net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasNameEn()) { bitField0_ |= 0x00000002; nameEn_ = other.nameEn_; onChanged(); } if (other.hasName2()) { bitField0_ |= 0x00000004; name2_ = other.name2_; onChanged(); } if (other.hasNameEn2()) { bitField0_ |= 0x00000008; nameEn2_ = other.nameEn2_; onChanged(); } if (other.hasInterpolation()) { setInterpolation(other.getInterpolation()); } if (other.hasX()) { setX(other.getX()); } if (other.hasY()) { setY(other.getY()); } if (other.hasX2()) { setX2(other.getX2()); } if (other.hasY2()) { setY2(other.getY2()); } if (other.hasId()) { setId(other.getId()); } if (other.hasPostcode()) { bitField0_ |= 0x00000400; postcode_ = other.postcode_; onChanged(); } if (!other.attributeTagIds_.isEmpty()) { if (attributeTagIds_.isEmpty()) { attributeTagIds_ = other.attributeTagIds_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureAttributeTagIdsIsMutable(); attributeTagIds_.addAll(other.attributeTagIds_); } onChanged(); } if (!other.attributeValues_.isEmpty()) { if (attributeValues_.isEmpty()) { attributeValues_ = other.attributeValues_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureAttributeValuesIsMutable(); attributeValues_.addAll(other.attributeValues_); } onChanged(); } if (!other.attributeTagIds2_.isEmpty()) { if (attributeTagIds2_.isEmpty()) { attributeTagIds2_ = other.attributeTagIds2_; bitField0_ = (bitField0_ & ~0x00002000); } else { ensureAttributeTagIds2IsMutable(); attributeTagIds2_.addAll(other.attributeTagIds2_); } onChanged(); } if (!other.attributeValues2_.isEmpty()) { if (attributeValues2_.isEmpty()) { attributeValues2_ = other.attributeValues2_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureAttributeValues2IsMutable(); attributeValues2_.addAll(other.attributeValues2_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasX()) { return false; } if (!hasY()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.BuildingIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.BuildingIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string name = 1; private java.lang.Object name_ = ""; /** * 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 string name2 = 3; private java.lang.Object name2_ = ""; /** * optional string name2 = 3; * *
       * used for interpolation
       * 
*/ public boolean hasName2() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string name2 = 3; * *
       * used for interpolation
       * 
*/ public java.lang.String getName2() { java.lang.Object ref = name2_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name2_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name2 = 3; * *
       * used for interpolation
       * 
*/ public com.google.protobuf.ByteString getName2Bytes() { java.lang.Object ref = name2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name2 = 3; * *
       * used for interpolation
       * 
*/ public Builder setName2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name2_ = value; onChanged(); return this; } /** * optional string name2 = 3; * *
       * used for interpolation
       * 
*/ public Builder clearName2() { bitField0_ = (bitField0_ & ~0x00000004); name2_ = getDefaultInstance().getName2(); onChanged(); return this; } /** * optional string name2 = 3; * *
       * used for interpolation
       * 
*/ public Builder setName2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name2_ = value; onChanged(); return this; } // optional string name_en2 = 4; private java.lang.Object nameEn2_ = ""; /** * optional string name_en2 = 4; */ public boolean hasNameEn2() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string name_en2 = 4; */ public java.lang.String getNameEn2() { java.lang.Object ref = nameEn2_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); nameEn2_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name_en2 = 4; */ public com.google.protobuf.ByteString getNameEn2Bytes() { java.lang.Object ref = nameEn2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nameEn2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name_en2 = 4; */ public Builder setNameEn2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; nameEn2_ = value; onChanged(); return this; } /** * optional string name_en2 = 4; */ public Builder clearNameEn2() { bitField0_ = (bitField0_ & ~0x00000008); nameEn2_ = getDefaultInstance().getNameEn2(); onChanged(); return this; } /** * optional string name_en2 = 4; */ public Builder setNameEn2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; nameEn2_ = value; onChanged(); return this; } // optional sint32 interpolation = 5; private int interpolation_ ; /** * optional sint32 interpolation = 5; * *
       * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic
       * positive - just positive interpolation 
       * 
*/ public boolean hasInterpolation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional sint32 interpolation = 5; * *
       * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic
       * positive - just positive interpolation 
       * 
*/ public int getInterpolation() { return interpolation_; } /** * optional sint32 interpolation = 5; * *
       * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic
       * positive - just positive interpolation 
       * 
*/ public Builder setInterpolation(int value) { bitField0_ |= 0x00000010; interpolation_ = value; onChanged(); return this; } /** * optional sint32 interpolation = 5; * *
       * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic
       * positive - just positive interpolation 
       * 
*/ public Builder clearInterpolation() { bitField0_ = (bitField0_ & ~0x00000010); interpolation_ = 0; onChanged(); return this; } // required sint32 x = 7; private int x_ ; /** * required sint32 x = 7; * *
       * delta encoded to parent 24 zoom
       * 
*/ public boolean hasX() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * required sint32 x = 7; * *
       * delta encoded to parent 24 zoom
       * 
*/ public int getX() { return x_; } /** * required sint32 x = 7; * *
       * delta encoded to parent 24 zoom
       * 
*/ public Builder setX(int value) { bitField0_ |= 0x00000020; x_ = value; onChanged(); return this; } /** * required sint32 x = 7; * *
       * delta encoded to parent 24 zoom
       * 
*/ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000020); x_ = 0; onChanged(); return this; } // required sint32 y = 8; private int y_ ; /** * required sint32 y = 8; * *
       * delta encoded to parent 24 zoom
       * 
*/ public boolean hasY() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * required sint32 y = 8; * *
       * delta encoded to parent 24 zoom
       * 
*/ public int getY() { return y_; } /** * required sint32 y = 8; * *
       * delta encoded to parent 24 zoom
       * 
*/ public Builder setY(int value) { bitField0_ |= 0x00000040; y_ = value; onChanged(); return this; } /** * required sint32 y = 8; * *
       * delta encoded to parent 24 zoom
       * 
*/ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000040); y_ = 0; onChanged(); return this; } // optional sint32 x2 = 9; private int x2_ ; /** * optional sint32 x2 = 9; * *
       * used for interpolation
       * 
*/ public boolean hasX2() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional sint32 x2 = 9; * *
       * used for interpolation
       * 
*/ public int getX2() { return x2_; } /** * optional sint32 x2 = 9; * *
       * used for interpolation
       * 
*/ public Builder setX2(int value) { bitField0_ |= 0x00000080; x2_ = value; onChanged(); return this; } /** * optional sint32 x2 = 9; * *
       * used for interpolation
       * 
*/ public Builder clearX2() { bitField0_ = (bitField0_ & ~0x00000080); x2_ = 0; onChanged(); return this; } // optional sint32 y2 = 10; private int y2_ ; /** * optional sint32 y2 = 10; * *
       * delta encoded to parent 24 zoom
       * 
*/ public boolean hasY2() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional sint32 y2 = 10; * *
       * delta encoded to parent 24 zoom
       * 
*/ public int getY2() { return y2_; } /** * optional sint32 y2 = 10; * *
       * delta encoded to parent 24 zoom
       * 
*/ public Builder setY2(int value) { bitField0_ |= 0x00000100; y2_ = value; onChanged(); return this; } /** * optional sint32 y2 = 10; * *
       * delta encoded to parent 24 zoom
       * 
*/ public Builder clearY2() { bitField0_ = (bitField0_ & ~0x00000100); y2_ = 0; onChanged(); return this; } // optional uint64 id = 13; private long id_ ; /** * optional uint64 id = 13; */ public boolean hasId() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint64 id = 13; */ public long getId() { return id_; } /** * optional uint64 id = 13; */ public Builder setId(long value) { bitField0_ |= 0x00000200; id_ = value; onChanged(); return this; } /** * optional uint64 id = 13; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000200); id_ = 0L; onChanged(); return this; } // optional string postcode = 14; private java.lang.Object postcode_ = ""; /** * optional string postcode = 14; */ public boolean hasPostcode() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string postcode = 14; */ public java.lang.String getPostcode() { java.lang.Object ref = postcode_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); postcode_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string postcode = 14; */ public com.google.protobuf.ByteString getPostcodeBytes() { java.lang.Object ref = postcode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postcode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string postcode = 14; */ public Builder setPostcode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; postcode_ = value; onChanged(); return this; } /** * optional string postcode = 14; */ public Builder clearPostcode() { bitField0_ = (bitField0_ & ~0x00000400); postcode_ = getDefaultInstance().getPostcode(); onChanged(); return this; } /** * optional string postcode = 14; */ public Builder setPostcodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; postcode_ = value; onChanged(); return this; } // repeated uint32 attributeTagIds = 15; private java.util.List attributeTagIds_ = java.util.Collections.emptyList(); private void ensureAttributeTagIdsIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { attributeTagIds_ = new java.util.ArrayList(attributeTagIds_); bitField0_ |= 0x00000800; } } /** * repeated uint32 attributeTagIds = 15; */ public java.util.List getAttributeTagIdsList() { return java.util.Collections.unmodifiableList(attributeTagIds_); } /** * repeated uint32 attributeTagIds = 15; */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * repeated uint32 attributeTagIds = 15; */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } /** * repeated uint32 attributeTagIds = 15; */ public Builder setAttributeTagIds( int index, int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.set(index, value); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 15; */ public Builder addAttributeTagIds(int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.add(value); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 15; */ public Builder addAllAttributeTagIds( java.lang.Iterable values) { ensureAttributeTagIdsIsMutable(); super.addAll(values, attributeTagIds_); onChanged(); return this; } /** * repeated uint32 attributeTagIds = 15; */ public Builder clearAttributeTagIds() { attributeTagIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } // repeated string attributeValues = 16; private com.google.protobuf.LazyStringList attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAttributeValuesIsMutable() { if (!((bitField0_ & 0x00001000) == 0x00001000)) { attributeValues_ = new com.google.protobuf.LazyStringArrayList(attributeValues_); bitField0_ |= 0x00001000; } } /** * repeated string attributeValues = 16; */ public java.util.List getAttributeValuesList() { return java.util.Collections.unmodifiableList(attributeValues_); } /** * repeated string attributeValues = 16; */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * repeated string attributeValues = 16; */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * repeated string attributeValues = 16; */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } /** * repeated string attributeValues = 16; */ public Builder setAttributeValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.set(index, value); onChanged(); return this; } /** * repeated string attributeValues = 16; */ public Builder addAttributeValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } /** * repeated string attributeValues = 16; */ public Builder addAllAttributeValues( java.lang.Iterable values) { ensureAttributeValuesIsMutable(); super.addAll(values, attributeValues_); onChanged(); return this; } /** * repeated string attributeValues = 16; */ public Builder clearAttributeValues() { attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * repeated string attributeValues = 16; */ public Builder addAttributeValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } // repeated uint32 attributeTagIds2 = 17; private java.util.List attributeTagIds2_ = java.util.Collections.emptyList(); private void ensureAttributeTagIds2IsMutable() { if (!((bitField0_ & 0x00002000) == 0x00002000)) { attributeTagIds2_ = new java.util.ArrayList(attributeTagIds2_); bitField0_ |= 0x00002000; } } /** * repeated uint32 attributeTagIds2 = 17; */ public java.util.List getAttributeTagIds2List() { return java.util.Collections.unmodifiableList(attributeTagIds2_); } /** * repeated uint32 attributeTagIds2 = 17; */ public int getAttributeTagIds2Count() { return attributeTagIds2_.size(); } /** * repeated uint32 attributeTagIds2 = 17; */ public int getAttributeTagIds2(int index) { return attributeTagIds2_.get(index); } /** * repeated uint32 attributeTagIds2 = 17; */ public Builder setAttributeTagIds2( int index, int value) { ensureAttributeTagIds2IsMutable(); attributeTagIds2_.set(index, value); onChanged(); return this; } /** * repeated uint32 attributeTagIds2 = 17; */ public Builder addAttributeTagIds2(int value) { ensureAttributeTagIds2IsMutable(); attributeTagIds2_.add(value); onChanged(); return this; } /** * repeated uint32 attributeTagIds2 = 17; */ public Builder addAllAttributeTagIds2( java.lang.Iterable values) { ensureAttributeTagIds2IsMutable(); super.addAll(values, attributeTagIds2_); onChanged(); return this; } /** * repeated uint32 attributeTagIds2 = 17; */ public Builder clearAttributeTagIds2() { attributeTagIds2_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } // repeated string attributeValues2 = 18; private com.google.protobuf.LazyStringList attributeValues2_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAttributeValues2IsMutable() { if (!((bitField0_ & 0x00004000) == 0x00004000)) { attributeValues2_ = new com.google.protobuf.LazyStringArrayList(attributeValues2_); bitField0_ |= 0x00004000; } } /** * repeated string attributeValues2 = 18; */ public java.util.List getAttributeValues2List() { return java.util.Collections.unmodifiableList(attributeValues2_); } /** * repeated string attributeValues2 = 18; */ public int getAttributeValues2Count() { return attributeValues2_.size(); } /** * repeated string attributeValues2 = 18; */ public java.lang.String getAttributeValues2(int index) { return attributeValues2_.get(index); } /** * repeated string attributeValues2 = 18; */ public com.google.protobuf.ByteString getAttributeValues2Bytes(int index) { return attributeValues2_.getByteString(index); } /** * repeated string attributeValues2 = 18; */ public Builder setAttributeValues2( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValues2IsMutable(); attributeValues2_.set(index, value); onChanged(); return this; } /** * repeated string attributeValues2 = 18; */ public Builder addAttributeValues2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValues2IsMutable(); attributeValues2_.add(value); onChanged(); return this; } /** * repeated string attributeValues2 = 18; */ public Builder addAllAttributeValues2( java.lang.Iterable values) { ensureAttributeValues2IsMutable(); super.addAll(values, attributeValues2_); onChanged(); return this; } /** * repeated string attributeValues2 = 18; */ public Builder clearAttributeValues2() { attributeValues2_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** * repeated string attributeValues2 = 18; */ public Builder addAttributeValues2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValues2IsMutable(); attributeValues2_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.BuildingIndex) } static { defaultInstance = new BuildingIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.BuildingIndex) } public interface TransportRoutesOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .OsmAnd.OBF.TransportRoute routes = 6; /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ java.util.List getRoutesList(); /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ net.osmand.binary.OsmandOdb.TransportRoute getRoutes(int index); /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ int getRoutesCount(); /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ java.util.List getRoutesOrBuilderList(); /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ net.osmand.binary.OsmandOdb.TransportRouteOrBuilder getRoutesOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.TransportRoutes} */ public static final class TransportRoutes extends com.google.protobuf.GeneratedMessage implements TransportRoutesOrBuilder { // Use TransportRoutes.newBuilder() to construct. private TransportRoutes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransportRoutes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransportRoutes defaultInstance; public static TransportRoutes getDefaultInstance() { return defaultInstance; } public TransportRoutes getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransportRoutes( 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 50: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { routes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } routes_.add(input.readMessage(net.osmand.binary.OsmandOdb.TransportRoute.PARSER, extensionRegistry)); 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)) { routes_ = java.util.Collections.unmodifiableList(routes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoutes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoutes_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportRoutes.class, net.osmand.binary.OsmandOdb.TransportRoutes.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransportRoutes parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransportRoutes(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .OsmAnd.OBF.TransportRoute routes = 6; public static final int ROUTES_FIELD_NUMBER = 6; private java.util.List routes_; /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public java.util.List getRoutesList() { return routes_; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public java.util.List getRoutesOrBuilderList() { return routes_; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public int getRoutesCount() { return routes_.size(); } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public net.osmand.binary.OsmandOdb.TransportRoute getRoutes(int index) { return routes_.get(index); } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public net.osmand.binary.OsmandOdb.TransportRouteOrBuilder getRoutesOrBuilder( int index) { return routes_.get(index); } private void initFields() { routes_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getRoutesCount(); i++) { if (!getRoutes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < routes_.size(); i++) { output.writeMessage(6, routes_.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 < routes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, routes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.TransportRoutes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportRoutes 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.TransportRoutes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportRoutes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.TransportRoutes parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRoutes 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.TransportRoutes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRoutes 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.TransportRoutes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRoutes 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.TransportRoutes 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.TransportRoutes} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoutes_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoutes_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportRoutes.class, net.osmand.binary.OsmandOdb.TransportRoutes.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.TransportRoutes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRoutesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (routesBuilder_ == null) { routes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { routesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoutes_descriptor; } public net.osmand.binary.OsmandOdb.TransportRoutes getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.TransportRoutes build() { net.osmand.binary.OsmandOdb.TransportRoutes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.TransportRoutes buildPartial() { net.osmand.binary.OsmandOdb.TransportRoutes result = new net.osmand.binary.OsmandOdb.TransportRoutes(this); int from_bitField0_ = bitField0_; if (routesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { routes_ = java.util.Collections.unmodifiableList(routes_); bitField0_ = (bitField0_ & ~0x00000001); } result.routes_ = routes_; } else { result.routes_ = routesBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.TransportRoutes) { return mergeFrom((net.osmand.binary.OsmandOdb.TransportRoutes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.TransportRoutes other) { if (other == net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance()) return this; if (routesBuilder_ == null) { if (!other.routes_.isEmpty()) { if (routes_.isEmpty()) { routes_ = other.routes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRoutesIsMutable(); routes_.addAll(other.routes_); } onChanged(); } } else { if (!other.routes_.isEmpty()) { if (routesBuilder_.isEmpty()) { routesBuilder_.dispose(); routesBuilder_ = null; routes_ = other.routes_; bitField0_ = (bitField0_ & ~0x00000001); routesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRoutesFieldBuilder() : null; } else { routesBuilder_.addAllMessages(other.routes_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getRoutesCount(); i++) { if (!getRoutes(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.TransportRoutes parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.TransportRoutes) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .OsmAnd.OBF.TransportRoute routes = 6; private java.util.List routes_ = java.util.Collections.emptyList(); private void ensureRoutesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { routes_ = new java.util.ArrayList(routes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRoute, net.osmand.binary.OsmandOdb.TransportRoute.Builder, net.osmand.binary.OsmandOdb.TransportRouteOrBuilder> routesBuilder_; /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public java.util.List getRoutesList() { if (routesBuilder_ == null) { return java.util.Collections.unmodifiableList(routes_); } else { return routesBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public int getRoutesCount() { if (routesBuilder_ == null) { return routes_.size(); } else { return routesBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public net.osmand.binary.OsmandOdb.TransportRoute getRoutes(int index) { if (routesBuilder_ == null) { return routes_.get(index); } else { return routesBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public Builder setRoutes( int index, net.osmand.binary.OsmandOdb.TransportRoute value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRoutesIsMutable(); routes_.set(index, value); onChanged(); } else { routesBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public Builder setRoutes( int index, net.osmand.binary.OsmandOdb.TransportRoute.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.set(index, builderForValue.build()); onChanged(); } else { routesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public Builder addRoutes(net.osmand.binary.OsmandOdb.TransportRoute value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRoutesIsMutable(); routes_.add(value); onChanged(); } else { routesBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public Builder addRoutes( int index, net.osmand.binary.OsmandOdb.TransportRoute value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRoutesIsMutable(); routes_.add(index, value); onChanged(); } else { routesBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public Builder addRoutes( net.osmand.binary.OsmandOdb.TransportRoute.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(builderForValue.build()); onChanged(); } else { routesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public Builder addRoutes( int index, net.osmand.binary.OsmandOdb.TransportRoute.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(index, builderForValue.build()); onChanged(); } else { routesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public Builder addAllRoutes( java.lang.Iterable values) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); super.addAll(values, routes_); onChanged(); } else { routesBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public Builder clearRoutes() { if (routesBuilder_ == null) { routes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { routesBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public Builder removeRoutes(int index) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.remove(index); onChanged(); } else { routesBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public net.osmand.binary.OsmandOdb.TransportRoute.Builder getRoutesBuilder( int index) { return getRoutesFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public net.osmand.binary.OsmandOdb.TransportRouteOrBuilder getRoutesOrBuilder( int index) { if (routesBuilder_ == null) { return routes_.get(index); } else { return routesBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public java.util.List getRoutesOrBuilderList() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(routes_); } } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public net.osmand.binary.OsmandOdb.TransportRoute.Builder addRoutesBuilder() { return getRoutesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportRoute.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public net.osmand.binary.OsmandOdb.TransportRoute.Builder addRoutesBuilder( int index) { return getRoutesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportRoute.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportRoute routes = 6; */ public java.util.List getRoutesBuilderList() { return getRoutesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRoute, net.osmand.binary.OsmandOdb.TransportRoute.Builder, net.osmand.binary.OsmandOdb.TransportRouteOrBuilder> getRoutesFieldBuilder() { if (routesBuilder_ == null) { routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRoute, net.osmand.binary.OsmandOdb.TransportRoute.Builder, net.osmand.binary.OsmandOdb.TransportRouteOrBuilder>( routes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); routes_ = null; } return routesBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.TransportRoutes) } static { defaultInstance = new TransportRoutes(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportRoutes) } public interface TransportRouteOrBuilder extends com.google.protobuf.MessageOrBuilder { // required uint64 id = 1; /** * required uint64 id = 1; */ boolean hasId(); /** * required uint64 id = 1; */ long getId(); // optional uint32 type = 3; /** * optional uint32 type = 3; * *
     * reference in string table
     * 
*/ boolean hasType(); /** * optional uint32 type = 3; * *
     * reference in string table
     * 
*/ int getType(); // optional uint32 operator = 4; /** * optional uint32 operator = 4; * *
     * reference in string table
     * 
*/ boolean hasOperator(); /** * optional uint32 operator = 4; * *
     * reference in string table
     * 
*/ int getOperator(); // optional string ref = 5; /** * optional string ref = 5; */ boolean hasRef(); /** * optional string ref = 5; */ java.lang.String getRef(); /** * optional string ref = 5; */ com.google.protobuf.ByteString getRefBytes(); // optional uint32 name = 6; /** * optional uint32 name = 6; * *
     * reference in string table
     * 
*/ boolean hasName(); /** * optional uint32 name = 6; * *
     * reference in string table
     * 
*/ int getName(); // optional uint32 name_en = 7; /** * optional uint32 name_en = 7; * *
     * reference in string table
     * 
*/ boolean hasNameEn(); /** * optional uint32 name_en = 7; * *
     * reference in string table
     * 
*/ int getNameEn(); // optional uint32 distance = 8; /** * optional uint32 distance = 8; * *
     * distance in meters
     * 
*/ boolean hasDistance(); /** * optional uint32 distance = 8; * *
     * distance in meters
     * 
*/ int getDistance(); // optional uint32 color = 9; /** * optional uint32 color = 9; * *
     * reference in string table
     * 
*/ boolean hasColor(); /** * optional uint32 color = 9; * *
     * reference in string table
     * 
*/ int getColor(); // repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ java.util.List getDirectStopsList(); /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ net.osmand.binary.OsmandOdb.TransportRouteStop getDirectStops(int index); /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ int getDirectStopsCount(); /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ java.util.List getDirectStopsOrBuilderList(); /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getDirectStopsOrBuilder( int index); // repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
     * deprecated (not used any more)
     * 
*/ java.util.List getReverseStopsList(); /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
     * deprecated (not used any more)
     * 
*/ net.osmand.binary.OsmandOdb.TransportRouteStop getReverseStops(int index); /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
     * deprecated (not used any more)
     * 
*/ int getReverseStopsCount(); /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
     * deprecated (not used any more)
     * 
*/ java.util.List getReverseStopsOrBuilderList(); /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
     * deprecated (not used any more)
     * 
*/ net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getReverseStopsOrBuilder( int index); // optional bytes geometry = 17; /** * optional bytes geometry = 17; * *
     * array of delta x,y sint32 (CodedIinputStream) >> 5 (precision 31 >> 5)
     * first x,y - 31 coordinates (>>5), next points is delta to previous
     * point, line or outer polygon coordinates
     * 0, 0 split geometry (for not connected segments)
     * 
*/ boolean hasGeometry(); /** * optional bytes geometry = 17; * *
     * array of delta x,y sint32 (CodedIinputStream) >> 5 (precision 31 >> 5)
     * first x,y - 31 coordinates (>>5), next points is delta to previous
     * point, line or outer polygon coordinates
     * 0, 0 split geometry (for not connected segments)
     * 
*/ com.google.protobuf.ByteString getGeometry(); // repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ java.util.List getScheduleTripList(); /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ net.osmand.binary.OsmandOdb.TransportRouteSchedule getScheduleTrip(int index); /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ int getScheduleTripCount(); /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ java.util.List getScheduleTripOrBuilderList(); /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ net.osmand.binary.OsmandOdb.TransportRouteScheduleOrBuilder getScheduleTripOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.TransportRoute} */ public static final class TransportRoute extends com.google.protobuf.GeneratedMessage implements TransportRouteOrBuilder { // Use TransportRoute.newBuilder() to construct. private TransportRoute(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransportRoute(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransportRoute defaultInstance; public static TransportRoute getDefaultInstance() { return defaultInstance; } public TransportRoute getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransportRoute( 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; id_ = input.readUInt64(); break; } case 24: { bitField0_ |= 0x00000002; type_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000004; operator_ = input.readUInt32(); break; } case 42: { bitField0_ |= 0x00000008; ref_ = input.readBytes(); break; } case 48: { bitField0_ |= 0x00000010; name_ = input.readUInt32(); break; } case 56: { bitField0_ |= 0x00000020; nameEn_ = input.readUInt32(); break; } case 64: { bitField0_ |= 0x00000040; distance_ = input.readUInt32(); break; } case 72: { bitField0_ |= 0x00000080; color_ = input.readUInt32(); break; } case 122: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { directStops_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } directStops_.add(input.readMessage(net.osmand.binary.OsmandOdb.TransportRouteStop.PARSER, extensionRegistry)); break; } case 130: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { reverseStops_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } reverseStops_.add(input.readMessage(net.osmand.binary.OsmandOdb.TransportRouteStop.PARSER, extensionRegistry)); break; } case 138: { bitField0_ |= 0x00000100; geometry_ = input.readBytes(); break; } case 146: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { scheduleTrip_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } scheduleTrip_.add(input.readMessage(net.osmand.binary.OsmandOdb.TransportRouteSchedule.PARSER, extensionRegistry)); 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_ & 0x00000100) == 0x00000100)) { directStops_ = java.util.Collections.unmodifiableList(directStops_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { reverseStops_ = java.util.Collections.unmodifiableList(reverseStops_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { scheduleTrip_ = java.util.Collections.unmodifiableList(scheduleTrip_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoute_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoute_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportRoute.class, net.osmand.binary.OsmandOdb.TransportRoute.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransportRoute parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransportRoute(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required uint64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * required uint64 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint64 id = 1; */ public long getId() { return id_; } // optional uint32 type = 3; public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** * optional uint32 type = 3; * *
     * reference in string table
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 type = 3; * *
     * reference in string table
     * 
*/ public int getType() { return type_; } // optional uint32 operator = 4; public static final int OPERATOR_FIELD_NUMBER = 4; private int operator_; /** * optional uint32 operator = 4; * *
     * reference in string table
     * 
*/ public boolean hasOperator() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 operator = 4; * *
     * reference in string table
     * 
*/ public int getOperator() { return operator_; } // optional string ref = 5; public static final int REF_FIELD_NUMBER = 5; private java.lang.Object ref_; /** * optional string ref = 5; */ public boolean hasRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string ref = 5; */ public java.lang.String getRef() { java.lang.Object ref = ref_; 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()) { ref_ = s; } return s; } } /** * optional string ref = 5; */ public com.google.protobuf.ByteString getRefBytes() { java.lang.Object ref = ref_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ref_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional uint32 name = 6; public static final int NAME_FIELD_NUMBER = 6; private int name_; /** * optional uint32 name = 6; * *
     * reference in string table
     * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 name = 6; * *
     * reference in string table
     * 
*/ public int getName() { return name_; } // optional uint32 name_en = 7; public static final int NAME_EN_FIELD_NUMBER = 7; private int nameEn_; /** * optional uint32 name_en = 7; * *
     * reference in string table
     * 
*/ public boolean hasNameEn() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 name_en = 7; * *
     * reference in string table
     * 
*/ public int getNameEn() { return nameEn_; } // optional uint32 distance = 8; public static final int DISTANCE_FIELD_NUMBER = 8; private int distance_; /** * optional uint32 distance = 8; * *
     * distance in meters
     * 
*/ public boolean hasDistance() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 distance = 8; * *
     * distance in meters
     * 
*/ public int getDistance() { return distance_; } // optional uint32 color = 9; public static final int COLOR_FIELD_NUMBER = 9; private int color_; /** * optional uint32 color = 9; * *
     * reference in string table
     * 
*/ public boolean hasColor() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 color = 9; * *
     * reference in string table
     * 
*/ public int getColor() { return color_; } // repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; public static final int DIRECTSTOPS_FIELD_NUMBER = 15; private java.util.List directStops_; /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public java.util.List getDirectStopsList() { return directStops_; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public java.util.List getDirectStopsOrBuilderList() { return directStops_; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public int getDirectStopsCount() { return directStops_.size(); } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public net.osmand.binary.OsmandOdb.TransportRouteStop getDirectStops(int index) { return directStops_.get(index); } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getDirectStopsOrBuilder( int index) { return directStops_.get(index); } // repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; public static final int REVERSESTOPS_FIELD_NUMBER = 16; private java.util.List reverseStops_; /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
     * deprecated (not used any more)
     * 
*/ public java.util.List getReverseStopsList() { return reverseStops_; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
     * deprecated (not used any more)
     * 
*/ public java.util.List getReverseStopsOrBuilderList() { return reverseStops_; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
     * deprecated (not used any more)
     * 
*/ public int getReverseStopsCount() { return reverseStops_.size(); } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
     * deprecated (not used any more)
     * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteStop getReverseStops(int index) { return reverseStops_.get(index); } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
     * deprecated (not used any more)
     * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getReverseStopsOrBuilder( int index) { return reverseStops_.get(index); } // optional bytes geometry = 17; public static final int GEOMETRY_FIELD_NUMBER = 17; private com.google.protobuf.ByteString geometry_; /** * optional bytes geometry = 17; * *
     * array of delta x,y sint32 (CodedIinputStream) >> 5 (precision 31 >> 5)
     * first x,y - 31 coordinates (>>5), next points is delta to previous
     * point, line or outer polygon coordinates
     * 0, 0 split geometry (for not connected segments)
     * 
*/ public boolean hasGeometry() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bytes geometry = 17; * *
     * array of delta x,y sint32 (CodedIinputStream) >> 5 (precision 31 >> 5)
     * first x,y - 31 coordinates (>>5), next points is delta to previous
     * point, line or outer polygon coordinates
     * 0, 0 split geometry (for not connected segments)
     * 
*/ public com.google.protobuf.ByteString getGeometry() { return geometry_; } // repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; public static final int SCHEDULETRIP_FIELD_NUMBER = 18; private java.util.List scheduleTrip_; /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public java.util.List getScheduleTripList() { return scheduleTrip_; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public java.util.List getScheduleTripOrBuilderList() { return scheduleTrip_; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public int getScheduleTripCount() { return scheduleTrip_.size(); } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public net.osmand.binary.OsmandOdb.TransportRouteSchedule getScheduleTrip(int index) { return scheduleTrip_.get(index); } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public net.osmand.binary.OsmandOdb.TransportRouteScheduleOrBuilder getScheduleTripOrBuilder( int index) { return scheduleTrip_.get(index); } private void initFields() { id_ = 0L; type_ = 0; operator_ = 0; ref_ = ""; name_ = 0; nameEn_ = 0; distance_ = 0; color_ = 0; directStops_ = java.util.Collections.emptyList(); reverseStops_ = java.util.Collections.emptyList(); geometry_ = com.google.protobuf.ByteString.EMPTY; scheduleTrip_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasId()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getDirectStopsCount(); i++) { if (!getDirectStops(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getReverseStopsCount(); i++) { if (!getReverseStops(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(3, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(4, operator_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(5, getRefBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(6, name_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(7, nameEn_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(8, distance_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(9, color_); } for (int i = 0; i < directStops_.size(); i++) { output.writeMessage(15, directStops_.get(i)); } for (int i = 0; i < reverseStops_.size(); i++) { output.writeMessage(16, reverseStops_.get(i)); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBytes(17, geometry_); } for (int i = 0; i < scheduleTrip_.size(); i++) { output.writeMessage(18, scheduleTrip_.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 .computeUInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, operator_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getRefBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, name_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, nameEn_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, distance_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, color_); } for (int i = 0; i < directStops_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, directStops_.get(i)); } for (int i = 0; i < reverseStops_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, reverseStops_.get(i)); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(17, geometry_); } for (int i = 0; i < scheduleTrip_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, scheduleTrip_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.TransportRoute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportRoute 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.TransportRoute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportRoute parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.TransportRoute parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRoute 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.TransportRoute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRoute 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.TransportRoute parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRoute 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.TransportRoute 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.TransportRoute} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.TransportRouteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoute_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoute_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportRoute.class, net.osmand.binary.OsmandOdb.TransportRoute.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.TransportRoute.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDirectStopsFieldBuilder(); getReverseStopsFieldBuilder(); getScheduleTripFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; bitField0_ = (bitField0_ & ~0x00000002); operator_ = 0; bitField0_ = (bitField0_ & ~0x00000004); ref_ = ""; bitField0_ = (bitField0_ & ~0x00000008); name_ = 0; bitField0_ = (bitField0_ & ~0x00000010); nameEn_ = 0; bitField0_ = (bitField0_ & ~0x00000020); distance_ = 0; bitField0_ = (bitField0_ & ~0x00000040); color_ = 0; bitField0_ = (bitField0_ & ~0x00000080); if (directStopsBuilder_ == null) { directStops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { directStopsBuilder_.clear(); } if (reverseStopsBuilder_ == null) { reverseStops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { reverseStopsBuilder_.clear(); } geometry_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000400); if (scheduleTripBuilder_ == null) { scheduleTrip_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); } else { scheduleTripBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRoute_descriptor; } public net.osmand.binary.OsmandOdb.TransportRoute getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.TransportRoute.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.TransportRoute build() { net.osmand.binary.OsmandOdb.TransportRoute result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.TransportRoute buildPartial() { net.osmand.binary.OsmandOdb.TransportRoute result = new net.osmand.binary.OsmandOdb.TransportRoute(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.operator_ = operator_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.ref_ = ref_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.name_ = name_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.nameEn_ = nameEn_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.distance_ = distance_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.color_ = color_; if (directStopsBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { directStops_ = java.util.Collections.unmodifiableList(directStops_); bitField0_ = (bitField0_ & ~0x00000100); } result.directStops_ = directStops_; } else { result.directStops_ = directStopsBuilder_.build(); } if (reverseStopsBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { reverseStops_ = java.util.Collections.unmodifiableList(reverseStops_); bitField0_ = (bitField0_ & ~0x00000200); } result.reverseStops_ = reverseStops_; } else { result.reverseStops_ = reverseStopsBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000100; } result.geometry_ = geometry_; if (scheduleTripBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800)) { scheduleTrip_ = java.util.Collections.unmodifiableList(scheduleTrip_); bitField0_ = (bitField0_ & ~0x00000800); } result.scheduleTrip_ = scheduleTrip_; } else { result.scheduleTrip_ = scheduleTripBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.TransportRoute) { return mergeFrom((net.osmand.binary.OsmandOdb.TransportRoute)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.TransportRoute other) { if (other == net.osmand.binary.OsmandOdb.TransportRoute.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasType()) { setType(other.getType()); } if (other.hasOperator()) { setOperator(other.getOperator()); } if (other.hasRef()) { bitField0_ |= 0x00000008; ref_ = other.ref_; onChanged(); } if (other.hasName()) { setName(other.getName()); } if (other.hasNameEn()) { setNameEn(other.getNameEn()); } if (other.hasDistance()) { setDistance(other.getDistance()); } if (other.hasColor()) { setColor(other.getColor()); } if (directStopsBuilder_ == null) { if (!other.directStops_.isEmpty()) { if (directStops_.isEmpty()) { directStops_ = other.directStops_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureDirectStopsIsMutable(); directStops_.addAll(other.directStops_); } onChanged(); } } else { if (!other.directStops_.isEmpty()) { if (directStopsBuilder_.isEmpty()) { directStopsBuilder_.dispose(); directStopsBuilder_ = null; directStops_ = other.directStops_; bitField0_ = (bitField0_ & ~0x00000100); directStopsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDirectStopsFieldBuilder() : null; } else { directStopsBuilder_.addAllMessages(other.directStops_); } } } if (reverseStopsBuilder_ == null) { if (!other.reverseStops_.isEmpty()) { if (reverseStops_.isEmpty()) { reverseStops_ = other.reverseStops_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureReverseStopsIsMutable(); reverseStops_.addAll(other.reverseStops_); } onChanged(); } } else { if (!other.reverseStops_.isEmpty()) { if (reverseStopsBuilder_.isEmpty()) { reverseStopsBuilder_.dispose(); reverseStopsBuilder_ = null; reverseStops_ = other.reverseStops_; bitField0_ = (bitField0_ & ~0x00000200); reverseStopsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getReverseStopsFieldBuilder() : null; } else { reverseStopsBuilder_.addAllMessages(other.reverseStops_); } } } if (other.hasGeometry()) { setGeometry(other.getGeometry()); } if (scheduleTripBuilder_ == null) { if (!other.scheduleTrip_.isEmpty()) { if (scheduleTrip_.isEmpty()) { scheduleTrip_ = other.scheduleTrip_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureScheduleTripIsMutable(); scheduleTrip_.addAll(other.scheduleTrip_); } onChanged(); } } else { if (!other.scheduleTrip_.isEmpty()) { if (scheduleTripBuilder_.isEmpty()) { scheduleTripBuilder_.dispose(); scheduleTripBuilder_ = null; scheduleTrip_ = other.scheduleTrip_; bitField0_ = (bitField0_ & ~0x00000800); scheduleTripBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getScheduleTripFieldBuilder() : null; } else { scheduleTripBuilder_.addAllMessages(other.scheduleTrip_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } for (int i = 0; i < getDirectStopsCount(); i++) { if (!getDirectStops(i).isInitialized()) { return false; } } for (int i = 0; i < getReverseStopsCount(); i++) { if (!getReverseStops(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.TransportRoute parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.TransportRoute) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required uint64 id = 1; private long id_ ; /** * required uint64 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint64 id = 1; */ public long getId() { return id_; } /** * required uint64 id = 1; */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * required uint64 id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional uint32 type = 3; private int type_ ; /** * optional uint32 type = 3; * *
       * reference in string table
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 type = 3; * *
       * reference in string table
       * 
*/ public int getType() { return type_; } /** * optional uint32 type = 3; * *
       * reference in string table
       * 
*/ public Builder setType(int value) { bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * optional uint32 type = 3; * *
       * reference in string table
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } // optional uint32 operator = 4; private int operator_ ; /** * optional uint32 operator = 4; * *
       * reference in string table
       * 
*/ public boolean hasOperator() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 operator = 4; * *
       * reference in string table
       * 
*/ public int getOperator() { return operator_; } /** * optional uint32 operator = 4; * *
       * reference in string table
       * 
*/ public Builder setOperator(int value) { bitField0_ |= 0x00000004; operator_ = value; onChanged(); return this; } /** * optional uint32 operator = 4; * *
       * reference in string table
       * 
*/ public Builder clearOperator() { bitField0_ = (bitField0_ & ~0x00000004); operator_ = 0; onChanged(); return this; } // optional string ref = 5; private java.lang.Object ref_ = ""; /** * optional string ref = 5; */ public boolean hasRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string ref = 5; */ public java.lang.String getRef() { java.lang.Object ref = ref_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); ref_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string ref = 5; */ public com.google.protobuf.ByteString getRefBytes() { java.lang.Object ref = ref_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ref_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string ref = 5; */ public Builder setRef( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; ref_ = value; onChanged(); return this; } /** * optional string ref = 5; */ public Builder clearRef() { bitField0_ = (bitField0_ & ~0x00000008); ref_ = getDefaultInstance().getRef(); onChanged(); return this; } /** * optional string ref = 5; */ public Builder setRefBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; ref_ = value; onChanged(); return this; } // optional uint32 name = 6; private int name_ ; /** * optional uint32 name = 6; * *
       * reference in string table
       * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 name = 6; * *
       * reference in string table
       * 
*/ public int getName() { return name_; } /** * optional uint32 name = 6; * *
       * reference in string table
       * 
*/ public Builder setName(int value) { bitField0_ |= 0x00000010; name_ = value; onChanged(); return this; } /** * optional uint32 name = 6; * *
       * reference in string table
       * 
*/ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000010); name_ = 0; onChanged(); return this; } // optional uint32 name_en = 7; private int nameEn_ ; /** * optional uint32 name_en = 7; * *
       * reference in string table
       * 
*/ public boolean hasNameEn() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional uint32 name_en = 7; * *
       * reference in string table
       * 
*/ public int getNameEn() { return nameEn_; } /** * optional uint32 name_en = 7; * *
       * reference in string table
       * 
*/ public Builder setNameEn(int value) { bitField0_ |= 0x00000020; nameEn_ = value; onChanged(); return this; } /** * optional uint32 name_en = 7; * *
       * reference in string table
       * 
*/ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000020); nameEn_ = 0; onChanged(); return this; } // optional uint32 distance = 8; private int distance_ ; /** * optional uint32 distance = 8; * *
       * distance in meters
       * 
*/ public boolean hasDistance() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint32 distance = 8; * *
       * distance in meters
       * 
*/ public int getDistance() { return distance_; } /** * optional uint32 distance = 8; * *
       * distance in meters
       * 
*/ public Builder setDistance(int value) { bitField0_ |= 0x00000040; distance_ = value; onChanged(); return this; } /** * optional uint32 distance = 8; * *
       * distance in meters
       * 
*/ public Builder clearDistance() { bitField0_ = (bitField0_ & ~0x00000040); distance_ = 0; onChanged(); return this; } // optional uint32 color = 9; private int color_ ; /** * optional uint32 color = 9; * *
       * reference in string table
       * 
*/ public boolean hasColor() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint32 color = 9; * *
       * reference in string table
       * 
*/ public int getColor() { return color_; } /** * optional uint32 color = 9; * *
       * reference in string table
       * 
*/ public Builder setColor(int value) { bitField0_ |= 0x00000080; color_ = value; onChanged(); return this; } /** * optional uint32 color = 9; * *
       * reference in string table
       * 
*/ public Builder clearColor() { bitField0_ = (bitField0_ & ~0x00000080); color_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; private java.util.List directStops_ = java.util.Collections.emptyList(); private void ensureDirectStopsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { directStops_ = new java.util.ArrayList(directStops_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> directStopsBuilder_; /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public java.util.List getDirectStopsList() { if (directStopsBuilder_ == null) { return java.util.Collections.unmodifiableList(directStops_); } else { return directStopsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public int getDirectStopsCount() { if (directStopsBuilder_ == null) { return directStops_.size(); } else { return directStopsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public net.osmand.binary.OsmandOdb.TransportRouteStop getDirectStops(int index) { if (directStopsBuilder_ == null) { return directStops_.get(index); } else { return directStopsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public Builder setDirectStops( int index, net.osmand.binary.OsmandOdb.TransportRouteStop value) { if (directStopsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDirectStopsIsMutable(); directStops_.set(index, value); onChanged(); } else { directStopsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public Builder setDirectStops( int index, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { if (directStopsBuilder_ == null) { ensureDirectStopsIsMutable(); directStops_.set(index, builderForValue.build()); onChanged(); } else { directStopsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public Builder addDirectStops(net.osmand.binary.OsmandOdb.TransportRouteStop value) { if (directStopsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDirectStopsIsMutable(); directStops_.add(value); onChanged(); } else { directStopsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public Builder addDirectStops( int index, net.osmand.binary.OsmandOdb.TransportRouteStop value) { if (directStopsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDirectStopsIsMutable(); directStops_.add(index, value); onChanged(); } else { directStopsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public Builder addDirectStops( net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { if (directStopsBuilder_ == null) { ensureDirectStopsIsMutable(); directStops_.add(builderForValue.build()); onChanged(); } else { directStopsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public Builder addDirectStops( int index, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { if (directStopsBuilder_ == null) { ensureDirectStopsIsMutable(); directStops_.add(index, builderForValue.build()); onChanged(); } else { directStopsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public Builder addAllDirectStops( java.lang.Iterable values) { if (directStopsBuilder_ == null) { ensureDirectStopsIsMutable(); super.addAll(values, directStops_); onChanged(); } else { directStopsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public Builder clearDirectStops() { if (directStopsBuilder_ == null) { directStops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { directStopsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public Builder removeDirectStops(int index) { if (directStopsBuilder_ == null) { ensureDirectStopsIsMutable(); directStops_.remove(index); onChanged(); } else { directStopsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder getDirectStopsBuilder( int index) { return getDirectStopsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getDirectStopsOrBuilder( int index) { if (directStopsBuilder_ == null) { return directStops_.get(index); } else { return directStopsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public java.util.List getDirectStopsOrBuilderList() { if (directStopsBuilder_ != null) { return directStopsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(directStops_); } } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addDirectStopsBuilder() { return getDirectStopsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addDirectStopsBuilder( int index) { return getDirectStopsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; */ public java.util.List getDirectStopsBuilderList() { return getDirectStopsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> getDirectStopsFieldBuilder() { if (directStopsBuilder_ == null) { directStopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder>( directStops_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); directStops_ = null; } return directStopsBuilder_; } // repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; private java.util.List reverseStops_ = java.util.Collections.emptyList(); private void ensureReverseStopsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { reverseStops_ = new java.util.ArrayList(reverseStops_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> reverseStopsBuilder_; /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public java.util.List getReverseStopsList() { if (reverseStopsBuilder_ == null) { return java.util.Collections.unmodifiableList(reverseStops_); } else { return reverseStopsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public int getReverseStopsCount() { if (reverseStopsBuilder_ == null) { return reverseStops_.size(); } else { return reverseStopsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteStop getReverseStops(int index) { if (reverseStopsBuilder_ == null) { return reverseStops_.get(index); } else { return reverseStopsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public Builder setReverseStops( int index, net.osmand.binary.OsmandOdb.TransportRouteStop value) { if (reverseStopsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReverseStopsIsMutable(); reverseStops_.set(index, value); onChanged(); } else { reverseStopsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public Builder setReverseStops( int index, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { if (reverseStopsBuilder_ == null) { ensureReverseStopsIsMutable(); reverseStops_.set(index, builderForValue.build()); onChanged(); } else { reverseStopsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public Builder addReverseStops(net.osmand.binary.OsmandOdb.TransportRouteStop value) { if (reverseStopsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReverseStopsIsMutable(); reverseStops_.add(value); onChanged(); } else { reverseStopsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public Builder addReverseStops( int index, net.osmand.binary.OsmandOdb.TransportRouteStop value) { if (reverseStopsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReverseStopsIsMutable(); reverseStops_.add(index, value); onChanged(); } else { reverseStopsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public Builder addReverseStops( net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { if (reverseStopsBuilder_ == null) { ensureReverseStopsIsMutable(); reverseStops_.add(builderForValue.build()); onChanged(); } else { reverseStopsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public Builder addReverseStops( int index, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder builderForValue) { if (reverseStopsBuilder_ == null) { ensureReverseStopsIsMutable(); reverseStops_.add(index, builderForValue.build()); onChanged(); } else { reverseStopsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public Builder addAllReverseStops( java.lang.Iterable values) { if (reverseStopsBuilder_ == null) { ensureReverseStopsIsMutable(); super.addAll(values, reverseStops_); onChanged(); } else { reverseStopsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public Builder clearReverseStops() { if (reverseStopsBuilder_ == null) { reverseStops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { reverseStopsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public Builder removeReverseStops(int index) { if (reverseStopsBuilder_ == null) { ensureReverseStopsIsMutable(); reverseStops_.remove(index); onChanged(); } else { reverseStopsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder getReverseStopsBuilder( int index) { return getReverseStopsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getReverseStopsOrBuilder( int index) { if (reverseStopsBuilder_ == null) { return reverseStops_.get(index); } else { return reverseStopsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public java.util.List getReverseStopsOrBuilderList() { if (reverseStopsBuilder_ != null) { return reverseStopsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reverseStops_); } } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addReverseStopsBuilder() { return getReverseStopsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addReverseStopsBuilder( int index) { return getReverseStopsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; * *
       * deprecated (not used any more)
       * 
*/ public java.util.List getReverseStopsBuilderList() { return getReverseStopsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> getReverseStopsFieldBuilder() { if (reverseStopsBuilder_ == null) { reverseStopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder>( reverseStops_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); reverseStops_ = null; } return reverseStopsBuilder_; } // optional bytes geometry = 17; private com.google.protobuf.ByteString geometry_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes geometry = 17; * *
       * array of delta x,y sint32 (CodedIinputStream) >> 5 (precision 31 >> 5)
       * first x,y - 31 coordinates (>>5), next points is delta to previous
       * point, line or outer polygon coordinates
       * 0, 0 split geometry (for not connected segments)
       * 
*/ public boolean hasGeometry() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bytes geometry = 17; * *
       * array of delta x,y sint32 (CodedIinputStream) >> 5 (precision 31 >> 5)
       * first x,y - 31 coordinates (>>5), next points is delta to previous
       * point, line or outer polygon coordinates
       * 0, 0 split geometry (for not connected segments)
       * 
*/ public com.google.protobuf.ByteString getGeometry() { return geometry_; } /** * optional bytes geometry = 17; * *
       * array of delta x,y sint32 (CodedIinputStream) >> 5 (precision 31 >> 5)
       * first x,y - 31 coordinates (>>5), next points is delta to previous
       * point, line or outer polygon coordinates
       * 0, 0 split geometry (for not connected segments)
       * 
*/ public Builder setGeometry(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; geometry_ = value; onChanged(); return this; } /** * optional bytes geometry = 17; * *
       * array of delta x,y sint32 (CodedIinputStream) >> 5 (precision 31 >> 5)
       * first x,y - 31 coordinates (>>5), next points is delta to previous
       * point, line or outer polygon coordinates
       * 0, 0 split geometry (for not connected segments)
       * 
*/ public Builder clearGeometry() { bitField0_ = (bitField0_ & ~0x00000400); geometry_ = getDefaultInstance().getGeometry(); onChanged(); return this; } // repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; private java.util.List scheduleTrip_ = java.util.Collections.emptyList(); private void ensureScheduleTripIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { scheduleTrip_ = new java.util.ArrayList(scheduleTrip_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteSchedule, net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder, net.osmand.binary.OsmandOdb.TransportRouteScheduleOrBuilder> scheduleTripBuilder_; /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public java.util.List getScheduleTripList() { if (scheduleTripBuilder_ == null) { return java.util.Collections.unmodifiableList(scheduleTrip_); } else { return scheduleTripBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public int getScheduleTripCount() { if (scheduleTripBuilder_ == null) { return scheduleTrip_.size(); } else { return scheduleTripBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public net.osmand.binary.OsmandOdb.TransportRouteSchedule getScheduleTrip(int index) { if (scheduleTripBuilder_ == null) { return scheduleTrip_.get(index); } else { return scheduleTripBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public Builder setScheduleTrip( int index, net.osmand.binary.OsmandOdb.TransportRouteSchedule value) { if (scheduleTripBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScheduleTripIsMutable(); scheduleTrip_.set(index, value); onChanged(); } else { scheduleTripBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public Builder setScheduleTrip( int index, net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder builderForValue) { if (scheduleTripBuilder_ == null) { ensureScheduleTripIsMutable(); scheduleTrip_.set(index, builderForValue.build()); onChanged(); } else { scheduleTripBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public Builder addScheduleTrip(net.osmand.binary.OsmandOdb.TransportRouteSchedule value) { if (scheduleTripBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScheduleTripIsMutable(); scheduleTrip_.add(value); onChanged(); } else { scheduleTripBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public Builder addScheduleTrip( int index, net.osmand.binary.OsmandOdb.TransportRouteSchedule value) { if (scheduleTripBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScheduleTripIsMutable(); scheduleTrip_.add(index, value); onChanged(); } else { scheduleTripBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public Builder addScheduleTrip( net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder builderForValue) { if (scheduleTripBuilder_ == null) { ensureScheduleTripIsMutable(); scheduleTrip_.add(builderForValue.build()); onChanged(); } else { scheduleTripBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public Builder addScheduleTrip( int index, net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder builderForValue) { if (scheduleTripBuilder_ == null) { ensureScheduleTripIsMutable(); scheduleTrip_.add(index, builderForValue.build()); onChanged(); } else { scheduleTripBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public Builder addAllScheduleTrip( java.lang.Iterable values) { if (scheduleTripBuilder_ == null) { ensureScheduleTripIsMutable(); super.addAll(values, scheduleTrip_); onChanged(); } else { scheduleTripBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public Builder clearScheduleTrip() { if (scheduleTripBuilder_ == null) { scheduleTrip_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { scheduleTripBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public Builder removeScheduleTrip(int index) { if (scheduleTripBuilder_ == null) { ensureScheduleTripIsMutable(); scheduleTrip_.remove(index); onChanged(); } else { scheduleTripBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder getScheduleTripBuilder( int index) { return getScheduleTripFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public net.osmand.binary.OsmandOdb.TransportRouteScheduleOrBuilder getScheduleTripOrBuilder( int index) { if (scheduleTripBuilder_ == null) { return scheduleTrip_.get(index); } else { return scheduleTripBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public java.util.List getScheduleTripOrBuilderList() { if (scheduleTripBuilder_ != null) { return scheduleTripBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(scheduleTrip_); } } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder addScheduleTripBuilder() { return getScheduleTripFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportRouteSchedule.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder addScheduleTripBuilder( int index) { return getScheduleTripFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportRouteSchedule.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportRouteSchedule scheduleTrip = 18; */ public java.util.List getScheduleTripBuilderList() { return getScheduleTripFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteSchedule, net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder, net.osmand.binary.OsmandOdb.TransportRouteScheduleOrBuilder> getScheduleTripFieldBuilder() { if (scheduleTripBuilder_ == null) { scheduleTripBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteSchedule, net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder, net.osmand.binary.OsmandOdb.TransportRouteScheduleOrBuilder>( scheduleTrip_, ((bitField0_ & 0x00000800) == 0x00000800), getParentForChildren(), isClean()); scheduleTrip_ = null; } return scheduleTripBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.TransportRoute) } static { defaultInstance = new TransportRoute(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportRoute) } public interface TransportRouteScheduleOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional bytes avgStopIntervals = 1; /** * optional bytes avgStopIntervals = 1; * *
     * array of raw var int
     * 10-seconds based intervals between stops arrivals;
     * 
*/ boolean hasAvgStopIntervals(); /** * optional bytes avgStopIntervals = 1; * *
     * array of raw var int
     * 10-seconds based intervals between stops arrivals;
     * 
*/ com.google.protobuf.ByteString getAvgStopIntervals(); // optional bytes avgWaitIntervals = 2; /** * optional bytes avgWaitIntervals = 2; * *
     * optional 10-seconds based (0, if non-provided or less < 10 seconds)
     * 
*/ boolean hasAvgWaitIntervals(); /** * optional bytes avgWaitIntervals = 2; * *
     * optional 10-seconds based (0, if non-provided or less < 10 seconds)
     * 
*/ com.google.protobuf.ByteString getAvgWaitIntervals(); // optional bytes tripIntervals = 3; /** * optional bytes tripIntervals = 3; * *
     * 10-seconds delta based intervals for trips departing from first stop
     * 1st trip is diff from 00:00:00
     * 
*/ boolean hasTripIntervals(); /** * optional bytes tripIntervals = 3; * *
     * 10-seconds delta based intervals for trips departing from first stop
     * 1st trip is diff from 00:00:00
     * 
*/ com.google.protobuf.ByteString getTripIntervals(); // repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
     * exceptions	
     * 
*/ java.util.List getExceptionsList(); /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
     * exceptions	
     * 
*/ net.osmand.binary.OsmandOdb.TransportRouteScheduleException getExceptions(int index); /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
     * exceptions	
     * 
*/ int getExceptionsCount(); /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
     * exceptions	
     * 
*/ java.util.List getExceptionsOrBuilderList(); /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
     * exceptions	
     * 
*/ net.osmand.binary.OsmandOdb.TransportRouteScheduleExceptionOrBuilder getExceptionsOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.TransportRouteSchedule} */ public static final class TransportRouteSchedule extends com.google.protobuf.GeneratedMessage implements TransportRouteScheduleOrBuilder { // Use TransportRouteSchedule.newBuilder() to construct. private TransportRouteSchedule(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransportRouteSchedule(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransportRouteSchedule defaultInstance; public static TransportRouteSchedule getDefaultInstance() { return defaultInstance; } public TransportRouteSchedule getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransportRouteSchedule( 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; avgStopIntervals_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; avgWaitIntervals_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; tripIntervals_ = input.readBytes(); break; } case 66: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { exceptions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } exceptions_.add(input.readMessage(net.osmand.binary.OsmandOdb.TransportRouteScheduleException.PARSER, extensionRegistry)); 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_ & 0x00000008) == 0x00000008)) { exceptions_ = java.util.Collections.unmodifiableList(exceptions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteSchedule_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportRouteSchedule.class, net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransportRouteSchedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransportRouteSchedule(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional bytes avgStopIntervals = 1; public static final int AVGSTOPINTERVALS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString avgStopIntervals_; /** * optional bytes avgStopIntervals = 1; * *
     * array of raw var int
     * 10-seconds based intervals between stops arrivals;
     * 
*/ public boolean hasAvgStopIntervals() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes avgStopIntervals = 1; * *
     * array of raw var int
     * 10-seconds based intervals between stops arrivals;
     * 
*/ public com.google.protobuf.ByteString getAvgStopIntervals() { return avgStopIntervals_; } // optional bytes avgWaitIntervals = 2; public static final int AVGWAITINTERVALS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString avgWaitIntervals_; /** * optional bytes avgWaitIntervals = 2; * *
     * optional 10-seconds based (0, if non-provided or less < 10 seconds)
     * 
*/ public boolean hasAvgWaitIntervals() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes avgWaitIntervals = 2; * *
     * optional 10-seconds based (0, if non-provided or less < 10 seconds)
     * 
*/ public com.google.protobuf.ByteString getAvgWaitIntervals() { return avgWaitIntervals_; } // optional bytes tripIntervals = 3; public static final int TRIPINTERVALS_FIELD_NUMBER = 3; private com.google.protobuf.ByteString tripIntervals_; /** * optional bytes tripIntervals = 3; * *
     * 10-seconds delta based intervals for trips departing from first stop
     * 1st trip is diff from 00:00:00
     * 
*/ public boolean hasTripIntervals() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes tripIntervals = 3; * *
     * 10-seconds delta based intervals for trips departing from first stop
     * 1st trip is diff from 00:00:00
     * 
*/ public com.google.protobuf.ByteString getTripIntervals() { return tripIntervals_; } // repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; public static final int EXCEPTIONS_FIELD_NUMBER = 8; private java.util.List exceptions_; /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
     * exceptions	
     * 
*/ public java.util.List getExceptionsList() { return exceptions_; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
     * exceptions	
     * 
*/ public java.util.List getExceptionsOrBuilderList() { return exceptions_; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
     * exceptions	
     * 
*/ public int getExceptionsCount() { return exceptions_.size(); } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
     * exceptions	
     * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteScheduleException getExceptions(int index) { return exceptions_.get(index); } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
     * exceptions	
     * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteScheduleExceptionOrBuilder getExceptionsOrBuilder( int index) { return exceptions_.get(index); } private void initFields() { avgStopIntervals_ = com.google.protobuf.ByteString.EMPTY; avgWaitIntervals_ = com.google.protobuf.ByteString.EMPTY; tripIntervals_ = com.google.protobuf.ByteString.EMPTY; exceptions_ = 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, avgStopIntervals_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, avgWaitIntervals_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, tripIntervals_); } for (int i = 0; i < exceptions_.size(); i++) { output.writeMessage(8, exceptions_.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, avgStopIntervals_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, avgWaitIntervals_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, tripIntervals_); } for (int i = 0; i < exceptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, exceptions_.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.TransportRouteSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportRouteSchedule 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.TransportRouteSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportRouteSchedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.TransportRouteSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRouteSchedule 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.TransportRouteSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRouteSchedule 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.TransportRouteSchedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRouteSchedule 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.TransportRouteSchedule 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.TransportRouteSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.TransportRouteScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteSchedule_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportRouteSchedule.class, net.osmand.binary.OsmandOdb.TransportRouteSchedule.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.TransportRouteSchedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getExceptionsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); avgStopIntervals_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); avgWaitIntervals_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); tripIntervals_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); if (exceptionsBuilder_ == null) { exceptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { exceptionsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteSchedule_descriptor; } public net.osmand.binary.OsmandOdb.TransportRouteSchedule getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.TransportRouteSchedule.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.TransportRouteSchedule build() { net.osmand.binary.OsmandOdb.TransportRouteSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.TransportRouteSchedule buildPartial() { net.osmand.binary.OsmandOdb.TransportRouteSchedule result = new net.osmand.binary.OsmandOdb.TransportRouteSchedule(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.avgStopIntervals_ = avgStopIntervals_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.avgWaitIntervals_ = avgWaitIntervals_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.tripIntervals_ = tripIntervals_; if (exceptionsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { exceptions_ = java.util.Collections.unmodifiableList(exceptions_); bitField0_ = (bitField0_ & ~0x00000008); } result.exceptions_ = exceptions_; } else { result.exceptions_ = exceptionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.TransportRouteSchedule) { return mergeFrom((net.osmand.binary.OsmandOdb.TransportRouteSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.TransportRouteSchedule other) { if (other == net.osmand.binary.OsmandOdb.TransportRouteSchedule.getDefaultInstance()) return this; if (other.hasAvgStopIntervals()) { setAvgStopIntervals(other.getAvgStopIntervals()); } if (other.hasAvgWaitIntervals()) { setAvgWaitIntervals(other.getAvgWaitIntervals()); } if (other.hasTripIntervals()) { setTripIntervals(other.getTripIntervals()); } if (exceptionsBuilder_ == null) { if (!other.exceptions_.isEmpty()) { if (exceptions_.isEmpty()) { exceptions_ = other.exceptions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureExceptionsIsMutable(); exceptions_.addAll(other.exceptions_); } onChanged(); } } else { if (!other.exceptions_.isEmpty()) { if (exceptionsBuilder_.isEmpty()) { exceptionsBuilder_.dispose(); exceptionsBuilder_ = null; exceptions_ = other.exceptions_; bitField0_ = (bitField0_ & ~0x00000008); exceptionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getExceptionsFieldBuilder() : null; } else { exceptionsBuilder_.addAllMessages(other.exceptions_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.TransportRouteSchedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.TransportRouteSchedule) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bytes avgStopIntervals = 1; private com.google.protobuf.ByteString avgStopIntervals_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes avgStopIntervals = 1; * *
       * array of raw var int
       * 10-seconds based intervals between stops arrivals;
       * 
*/ public boolean hasAvgStopIntervals() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bytes avgStopIntervals = 1; * *
       * array of raw var int
       * 10-seconds based intervals between stops arrivals;
       * 
*/ public com.google.protobuf.ByteString getAvgStopIntervals() { return avgStopIntervals_; } /** * optional bytes avgStopIntervals = 1; * *
       * array of raw var int
       * 10-seconds based intervals between stops arrivals;
       * 
*/ public Builder setAvgStopIntervals(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; avgStopIntervals_ = value; onChanged(); return this; } /** * optional bytes avgStopIntervals = 1; * *
       * array of raw var int
       * 10-seconds based intervals between stops arrivals;
       * 
*/ public Builder clearAvgStopIntervals() { bitField0_ = (bitField0_ & ~0x00000001); avgStopIntervals_ = getDefaultInstance().getAvgStopIntervals(); onChanged(); return this; } // optional bytes avgWaitIntervals = 2; private com.google.protobuf.ByteString avgWaitIntervals_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes avgWaitIntervals = 2; * *
       * optional 10-seconds based (0, if non-provided or less < 10 seconds)
       * 
*/ public boolean hasAvgWaitIntervals() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes avgWaitIntervals = 2; * *
       * optional 10-seconds based (0, if non-provided or less < 10 seconds)
       * 
*/ public com.google.protobuf.ByteString getAvgWaitIntervals() { return avgWaitIntervals_; } /** * optional bytes avgWaitIntervals = 2; * *
       * optional 10-seconds based (0, if non-provided or less < 10 seconds)
       * 
*/ public Builder setAvgWaitIntervals(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; avgWaitIntervals_ = value; onChanged(); return this; } /** * optional bytes avgWaitIntervals = 2; * *
       * optional 10-seconds based (0, if non-provided or less < 10 seconds)
       * 
*/ public Builder clearAvgWaitIntervals() { bitField0_ = (bitField0_ & ~0x00000002); avgWaitIntervals_ = getDefaultInstance().getAvgWaitIntervals(); onChanged(); return this; } // optional bytes tripIntervals = 3; private com.google.protobuf.ByteString tripIntervals_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes tripIntervals = 3; * *
       * 10-seconds delta based intervals for trips departing from first stop
       * 1st trip is diff from 00:00:00
       * 
*/ public boolean hasTripIntervals() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes tripIntervals = 3; * *
       * 10-seconds delta based intervals for trips departing from first stop
       * 1st trip is diff from 00:00:00
       * 
*/ public com.google.protobuf.ByteString getTripIntervals() { return tripIntervals_; } /** * optional bytes tripIntervals = 3; * *
       * 10-seconds delta based intervals for trips departing from first stop
       * 1st trip is diff from 00:00:00
       * 
*/ public Builder setTripIntervals(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tripIntervals_ = value; onChanged(); return this; } /** * optional bytes tripIntervals = 3; * *
       * 10-seconds delta based intervals for trips departing from first stop
       * 1st trip is diff from 00:00:00
       * 
*/ public Builder clearTripIntervals() { bitField0_ = (bitField0_ & ~0x00000004); tripIntervals_ = getDefaultInstance().getTripIntervals(); onChanged(); return this; } // repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; private java.util.List exceptions_ = java.util.Collections.emptyList(); private void ensureExceptionsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { exceptions_ = new java.util.ArrayList(exceptions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteScheduleException, net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder, net.osmand.binary.OsmandOdb.TransportRouteScheduleExceptionOrBuilder> exceptionsBuilder_; /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public java.util.List getExceptionsList() { if (exceptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(exceptions_); } else { return exceptionsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public int getExceptionsCount() { if (exceptionsBuilder_ == null) { return exceptions_.size(); } else { return exceptionsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteScheduleException getExceptions(int index) { if (exceptionsBuilder_ == null) { return exceptions_.get(index); } else { return exceptionsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public Builder setExceptions( int index, net.osmand.binary.OsmandOdb.TransportRouteScheduleException value) { if (exceptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExceptionsIsMutable(); exceptions_.set(index, value); onChanged(); } else { exceptionsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public Builder setExceptions( int index, net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder builderForValue) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.set(index, builderForValue.build()); onChanged(); } else { exceptionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public Builder addExceptions(net.osmand.binary.OsmandOdb.TransportRouteScheduleException value) { if (exceptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExceptionsIsMutable(); exceptions_.add(value); onChanged(); } else { exceptionsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public Builder addExceptions( int index, net.osmand.binary.OsmandOdb.TransportRouteScheduleException value) { if (exceptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExceptionsIsMutable(); exceptions_.add(index, value); onChanged(); } else { exceptionsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public Builder addExceptions( net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder builderForValue) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.add(builderForValue.build()); onChanged(); } else { exceptionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public Builder addExceptions( int index, net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder builderForValue) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.add(index, builderForValue.build()); onChanged(); } else { exceptionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public Builder addAllExceptions( java.lang.Iterable values) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); super.addAll(values, exceptions_); onChanged(); } else { exceptionsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public Builder clearExceptions() { if (exceptionsBuilder_ == null) { exceptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { exceptionsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public Builder removeExceptions(int index) { if (exceptionsBuilder_ == null) { ensureExceptionsIsMutable(); exceptions_.remove(index); onChanged(); } else { exceptionsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder getExceptionsBuilder( int index) { return getExceptionsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteScheduleExceptionOrBuilder getExceptionsOrBuilder( int index) { if (exceptionsBuilder_ == null) { return exceptions_.get(index); } else { return exceptionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public java.util.List getExceptionsOrBuilderList() { if (exceptionsBuilder_ != null) { return exceptionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exceptions_); } } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder addExceptionsBuilder() { return getExceptionsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportRouteScheduleException.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder addExceptionsBuilder( int index) { return getExceptionsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportRouteScheduleException.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportRouteScheduleException exceptions = 8; * *
       * exceptions	
       * 
*/ public java.util.List getExceptionsBuilderList() { return getExceptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteScheduleException, net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder, net.osmand.binary.OsmandOdb.TransportRouteScheduleExceptionOrBuilder> getExceptionsFieldBuilder() { if (exceptionsBuilder_ == null) { exceptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteScheduleException, net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder, net.osmand.binary.OsmandOdb.TransportRouteScheduleExceptionOrBuilder>( exceptions_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); exceptions_ = null; } return exceptionsBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.TransportRouteSchedule) } static { defaultInstance = new TransportRouteSchedule(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportRouteSchedule) } public interface TransportRouteScheduleExceptionOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated uint32 tripIndexes = 1; /** * repeated uint32 tripIndexes = 1; * *
     * provided if exception applicable to the trips
     * 
*/ java.util.List getTripIndexesList(); /** * repeated uint32 tripIndexes = 1; * *
     * provided if exception applicable to the trips
     * 
*/ int getTripIndexesCount(); /** * repeated uint32 tripIndexes = 1; * *
     * provided if exception applicable to the trips
     * 
*/ int getTripIndexes(int index); // repeated uint32 stopIndexes = 2; /** * repeated uint32 stopIndexes = 2; * *
     * provided if exception applicable to the stop
     * 
*/ java.util.List getStopIndexesList(); /** * repeated uint32 stopIndexes = 2; * *
     * provided if exception applicable to the stop
     * 
*/ int getStopIndexesCount(); /** * repeated uint32 stopIndexes = 2; * *
     * provided if exception applicable to the stop
     * 
*/ int getStopIndexes(int index); // optional bool available = 3; /** * optional bool available = 3; * *
     * indicates whether the trip or stop available in certain restriction (default true)
     * 
*/ boolean hasAvailable(); /** * optional bool available = 3; * *
     * indicates whether the trip or stop available in certain restriction (default true)
     * 
*/ boolean getAvailable(); // repeated uint32 delayArrival = 5; /** * repeated uint32 delayArrival = 5; * *
     * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
     * delay is measured in X * 10 seconds
     * 
*/ java.util.List getDelayArrivalList(); /** * repeated uint32 delayArrival = 5; * *
     * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
     * delay is measured in X * 10 seconds
     * 
*/ int getDelayArrivalCount(); /** * repeated uint32 delayArrival = 5; * *
     * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
     * delay is measured in X * 10 seconds
     * 
*/ int getDelayArrival(int index); // repeated int32 deltaWaitInterval = 6; /** * repeated int32 deltaWaitInterval = 6; */ java.util.List getDeltaWaitIntervalList(); /** * repeated int32 deltaWaitInterval = 6; */ int getDeltaWaitIntervalCount(); /** * repeated int32 deltaWaitInterval = 6; */ int getDeltaWaitInterval(int index); // repeated uint32 dayOfWeekRestriction = 7; /** * repeated uint32 dayOfWeekRestriction = 7; * *
     * day of week exceptions, Monday - 0, Sunday - 6
     * 
*/ java.util.List getDayOfWeekRestrictionList(); /** * repeated uint32 dayOfWeekRestriction = 7; * *
     * day of week exceptions, Monday - 0, Sunday - 6
     * 
*/ int getDayOfWeekRestrictionCount(); /** * repeated uint32 dayOfWeekRestriction = 7; * *
     * day of week exceptions, Monday - 0, Sunday - 6
     * 
*/ int getDayOfWeekRestriction(int index); // repeated uint32 dayOfYearRestriction = 8; /** * repeated uint32 dayOfYearRestriction = 8; * *
     * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
     * 
*/ java.util.List getDayOfYearRestrictionList(); /** * repeated uint32 dayOfYearRestriction = 8; * *
     * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
     * 
*/ int getDayOfYearRestrictionCount(); /** * repeated uint32 dayOfYearRestriction = 8; * *
     * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
     * 
*/ int getDayOfYearRestriction(int index); } /** * Protobuf type {@code OsmAnd.OBF.TransportRouteScheduleException} */ public static final class TransportRouteScheduleException extends com.google.protobuf.GeneratedMessage implements TransportRouteScheduleExceptionOrBuilder { // Use TransportRouteScheduleException.newBuilder() to construct. private TransportRouteScheduleException(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransportRouteScheduleException(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransportRouteScheduleException defaultInstance; public static TransportRouteScheduleException getDefaultInstance() { return defaultInstance; } public TransportRouteScheduleException getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransportRouteScheduleException( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { tripIndexes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } tripIndexes_.add(input.readUInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { tripIndexes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { tripIndexes_.add(input.readUInt32()); } input.popLimit(limit); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { stopIndexes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } stopIndexes_.add(input.readUInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { stopIndexes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { stopIndexes_.add(input.readUInt32()); } input.popLimit(limit); break; } case 24: { bitField0_ |= 0x00000001; available_ = input.readBool(); break; } case 40: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { delayArrival_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } delayArrival_.add(input.readUInt32()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { delayArrival_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { delayArrival_.add(input.readUInt32()); } input.popLimit(limit); break; } case 48: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { deltaWaitInterval_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } deltaWaitInterval_.add(input.readInt32()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { deltaWaitInterval_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } while (input.getBytesUntilLimit() > 0) { deltaWaitInterval_.add(input.readInt32()); } input.popLimit(limit); break; } case 56: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { dayOfWeekRestriction_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } dayOfWeekRestriction_.add(input.readUInt32()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { dayOfWeekRestriction_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { dayOfWeekRestriction_.add(input.readUInt32()); } input.popLimit(limit); break; } case 64: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { dayOfYearRestriction_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } dayOfYearRestriction_.add(input.readUInt32()); break; } case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { dayOfYearRestriction_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { dayOfYearRestriction_.add(input.readUInt32()); } input.popLimit(limit); 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)) { tripIndexes_ = java.util.Collections.unmodifiableList(tripIndexes_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { stopIndexes_ = java.util.Collections.unmodifiableList(stopIndexes_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { delayArrival_ = java.util.Collections.unmodifiableList(delayArrival_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { deltaWaitInterval_ = java.util.Collections.unmodifiableList(deltaWaitInterval_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { dayOfWeekRestriction_ = java.util.Collections.unmodifiableList(dayOfWeekRestriction_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { dayOfYearRestriction_ = java.util.Collections.unmodifiableList(dayOfYearRestriction_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteScheduleException_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteScheduleException_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportRouteScheduleException.class, net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransportRouteScheduleException parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransportRouteScheduleException(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // repeated uint32 tripIndexes = 1; public static final int TRIPINDEXES_FIELD_NUMBER = 1; private java.util.List tripIndexes_; /** * repeated uint32 tripIndexes = 1; * *
     * provided if exception applicable to the trips
     * 
*/ public java.util.List getTripIndexesList() { return tripIndexes_; } /** * repeated uint32 tripIndexes = 1; * *
     * provided if exception applicable to the trips
     * 
*/ public int getTripIndexesCount() { return tripIndexes_.size(); } /** * repeated uint32 tripIndexes = 1; * *
     * provided if exception applicable to the trips
     * 
*/ public int getTripIndexes(int index) { return tripIndexes_.get(index); } // repeated uint32 stopIndexes = 2; public static final int STOPINDEXES_FIELD_NUMBER = 2; private java.util.List stopIndexes_; /** * repeated uint32 stopIndexes = 2; * *
     * provided if exception applicable to the stop
     * 
*/ public java.util.List getStopIndexesList() { return stopIndexes_; } /** * repeated uint32 stopIndexes = 2; * *
     * provided if exception applicable to the stop
     * 
*/ public int getStopIndexesCount() { return stopIndexes_.size(); } /** * repeated uint32 stopIndexes = 2; * *
     * provided if exception applicable to the stop
     * 
*/ public int getStopIndexes(int index) { return stopIndexes_.get(index); } // optional bool available = 3; public static final int AVAILABLE_FIELD_NUMBER = 3; private boolean available_; /** * optional bool available = 3; * *
     * indicates whether the trip or stop available in certain restriction (default true)
     * 
*/ public boolean hasAvailable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool available = 3; * *
     * indicates whether the trip or stop available in certain restriction (default true)
     * 
*/ public boolean getAvailable() { return available_; } // repeated uint32 delayArrival = 5; public static final int DELAYARRIVAL_FIELD_NUMBER = 5; private java.util.List delayArrival_; /** * repeated uint32 delayArrival = 5; * *
     * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
     * delay is measured in X * 10 seconds
     * 
*/ public java.util.List getDelayArrivalList() { return delayArrival_; } /** * repeated uint32 delayArrival = 5; * *
     * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
     * delay is measured in X * 10 seconds
     * 
*/ public int getDelayArrivalCount() { return delayArrival_.size(); } /** * repeated uint32 delayArrival = 5; * *
     * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
     * delay is measured in X * 10 seconds
     * 
*/ public int getDelayArrival(int index) { return delayArrival_.get(index); } // repeated int32 deltaWaitInterval = 6; public static final int DELTAWAITINTERVAL_FIELD_NUMBER = 6; private java.util.List deltaWaitInterval_; /** * repeated int32 deltaWaitInterval = 6; */ public java.util.List getDeltaWaitIntervalList() { return deltaWaitInterval_; } /** * repeated int32 deltaWaitInterval = 6; */ public int getDeltaWaitIntervalCount() { return deltaWaitInterval_.size(); } /** * repeated int32 deltaWaitInterval = 6; */ public int getDeltaWaitInterval(int index) { return deltaWaitInterval_.get(index); } // repeated uint32 dayOfWeekRestriction = 7; public static final int DAYOFWEEKRESTRICTION_FIELD_NUMBER = 7; private java.util.List dayOfWeekRestriction_; /** * repeated uint32 dayOfWeekRestriction = 7; * *
     * day of week exceptions, Monday - 0, Sunday - 6
     * 
*/ public java.util.List getDayOfWeekRestrictionList() { return dayOfWeekRestriction_; } /** * repeated uint32 dayOfWeekRestriction = 7; * *
     * day of week exceptions, Monday - 0, Sunday - 6
     * 
*/ public int getDayOfWeekRestrictionCount() { return dayOfWeekRestriction_.size(); } /** * repeated uint32 dayOfWeekRestriction = 7; * *
     * day of week exceptions, Monday - 0, Sunday - 6
     * 
*/ public int getDayOfWeekRestriction(int index) { return dayOfWeekRestriction_.get(index); } // repeated uint32 dayOfYearRestriction = 8; public static final int DAYOFYEARRESTRICTION_FIELD_NUMBER = 8; private java.util.List dayOfYearRestriction_; /** * repeated uint32 dayOfYearRestriction = 8; * *
     * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
     * 
*/ public java.util.List getDayOfYearRestrictionList() { return dayOfYearRestriction_; } /** * repeated uint32 dayOfYearRestriction = 8; * *
     * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
     * 
*/ public int getDayOfYearRestrictionCount() { return dayOfYearRestriction_.size(); } /** * repeated uint32 dayOfYearRestriction = 8; * *
     * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
     * 
*/ public int getDayOfYearRestriction(int index) { return dayOfYearRestriction_.get(index); } private void initFields() { tripIndexes_ = java.util.Collections.emptyList(); stopIndexes_ = java.util.Collections.emptyList(); available_ = false; delayArrival_ = java.util.Collections.emptyList(); deltaWaitInterval_ = java.util.Collections.emptyList(); dayOfWeekRestriction_ = java.util.Collections.emptyList(); dayOfYearRestriction_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < tripIndexes_.size(); i++) { output.writeUInt32(1, tripIndexes_.get(i)); } for (int i = 0; i < stopIndexes_.size(); i++) { output.writeUInt32(2, stopIndexes_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(3, available_); } for (int i = 0; i < delayArrival_.size(); i++) { output.writeUInt32(5, delayArrival_.get(i)); } for (int i = 0; i < deltaWaitInterval_.size(); i++) { output.writeInt32(6, deltaWaitInterval_.get(i)); } for (int i = 0; i < dayOfWeekRestriction_.size(); i++) { output.writeUInt32(7, dayOfWeekRestriction_.get(i)); } for (int i = 0; i < dayOfYearRestriction_.size(); i++) { output.writeUInt32(8, dayOfYearRestriction_.get(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 < tripIndexes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(tripIndexes_.get(i)); } size += dataSize; size += 1 * getTripIndexesList().size(); } { int dataSize = 0; for (int i = 0; i < stopIndexes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(stopIndexes_.get(i)); } size += dataSize; size += 1 * getStopIndexesList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, available_); } { int dataSize = 0; for (int i = 0; i < delayArrival_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(delayArrival_.get(i)); } size += dataSize; size += 1 * getDelayArrivalList().size(); } { int dataSize = 0; for (int i = 0; i < deltaWaitInterval_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(deltaWaitInterval_.get(i)); } size += dataSize; size += 1 * getDeltaWaitIntervalList().size(); } { int dataSize = 0; for (int i = 0; i < dayOfWeekRestriction_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dayOfWeekRestriction_.get(i)); } size += dataSize; size += 1 * getDayOfWeekRestrictionList().size(); } { int dataSize = 0; for (int i = 0; i < dayOfYearRestriction_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dayOfYearRestriction_.get(i)); } size += dataSize; size += 1 * getDayOfYearRestrictionList().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.TransportRouteScheduleException parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportRouteScheduleException 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.TransportRouteScheduleException parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportRouteScheduleException parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.TransportRouteScheduleException parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRouteScheduleException 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.TransportRouteScheduleException parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRouteScheduleException 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.TransportRouteScheduleException parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRouteScheduleException 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.TransportRouteScheduleException 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.TransportRouteScheduleException} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.TransportRouteScheduleExceptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteScheduleException_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteScheduleException_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportRouteScheduleException.class, net.osmand.binary.OsmandOdb.TransportRouteScheduleException.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.TransportRouteScheduleException.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); tripIndexes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); stopIndexes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); available_ = false; bitField0_ = (bitField0_ & ~0x00000004); delayArrival_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); deltaWaitInterval_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); dayOfWeekRestriction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); dayOfYearRestriction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteScheduleException_descriptor; } public net.osmand.binary.OsmandOdb.TransportRouteScheduleException getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.TransportRouteScheduleException.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.TransportRouteScheduleException build() { net.osmand.binary.OsmandOdb.TransportRouteScheduleException result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.TransportRouteScheduleException buildPartial() { net.osmand.binary.OsmandOdb.TransportRouteScheduleException result = new net.osmand.binary.OsmandOdb.TransportRouteScheduleException(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { tripIndexes_ = java.util.Collections.unmodifiableList(tripIndexes_); bitField0_ = (bitField0_ & ~0x00000001); } result.tripIndexes_ = tripIndexes_; if (((bitField0_ & 0x00000002) == 0x00000002)) { stopIndexes_ = java.util.Collections.unmodifiableList(stopIndexes_); bitField0_ = (bitField0_ & ~0x00000002); } result.stopIndexes_ = stopIndexes_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } result.available_ = available_; if (((bitField0_ & 0x00000008) == 0x00000008)) { delayArrival_ = java.util.Collections.unmodifiableList(delayArrival_); bitField0_ = (bitField0_ & ~0x00000008); } result.delayArrival_ = delayArrival_; if (((bitField0_ & 0x00000010) == 0x00000010)) { deltaWaitInterval_ = java.util.Collections.unmodifiableList(deltaWaitInterval_); bitField0_ = (bitField0_ & ~0x00000010); } result.deltaWaitInterval_ = deltaWaitInterval_; if (((bitField0_ & 0x00000020) == 0x00000020)) { dayOfWeekRestriction_ = java.util.Collections.unmodifiableList(dayOfWeekRestriction_); bitField0_ = (bitField0_ & ~0x00000020); } result.dayOfWeekRestriction_ = dayOfWeekRestriction_; if (((bitField0_ & 0x00000040) == 0x00000040)) { dayOfYearRestriction_ = java.util.Collections.unmodifiableList(dayOfYearRestriction_); bitField0_ = (bitField0_ & ~0x00000040); } result.dayOfYearRestriction_ = dayOfYearRestriction_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.TransportRouteScheduleException) { return mergeFrom((net.osmand.binary.OsmandOdb.TransportRouteScheduleException)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.TransportRouteScheduleException other) { if (other == net.osmand.binary.OsmandOdb.TransportRouteScheduleException.getDefaultInstance()) return this; if (!other.tripIndexes_.isEmpty()) { if (tripIndexes_.isEmpty()) { tripIndexes_ = other.tripIndexes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTripIndexesIsMutable(); tripIndexes_.addAll(other.tripIndexes_); } onChanged(); } if (!other.stopIndexes_.isEmpty()) { if (stopIndexes_.isEmpty()) { stopIndexes_ = other.stopIndexes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStopIndexesIsMutable(); stopIndexes_.addAll(other.stopIndexes_); } onChanged(); } if (other.hasAvailable()) { setAvailable(other.getAvailable()); } if (!other.delayArrival_.isEmpty()) { if (delayArrival_.isEmpty()) { delayArrival_ = other.delayArrival_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDelayArrivalIsMutable(); delayArrival_.addAll(other.delayArrival_); } onChanged(); } if (!other.deltaWaitInterval_.isEmpty()) { if (deltaWaitInterval_.isEmpty()) { deltaWaitInterval_ = other.deltaWaitInterval_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureDeltaWaitIntervalIsMutable(); deltaWaitInterval_.addAll(other.deltaWaitInterval_); } onChanged(); } if (!other.dayOfWeekRestriction_.isEmpty()) { if (dayOfWeekRestriction_.isEmpty()) { dayOfWeekRestriction_ = other.dayOfWeekRestriction_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDayOfWeekRestrictionIsMutable(); dayOfWeekRestriction_.addAll(other.dayOfWeekRestriction_); } onChanged(); } if (!other.dayOfYearRestriction_.isEmpty()) { if (dayOfYearRestriction_.isEmpty()) { dayOfYearRestriction_ = other.dayOfYearRestriction_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureDayOfYearRestrictionIsMutable(); dayOfYearRestriction_.addAll(other.dayOfYearRestriction_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.TransportRouteScheduleException parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.TransportRouteScheduleException) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated uint32 tripIndexes = 1; private java.util.List tripIndexes_ = java.util.Collections.emptyList(); private void ensureTripIndexesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { tripIndexes_ = new java.util.ArrayList(tripIndexes_); bitField0_ |= 0x00000001; } } /** * repeated uint32 tripIndexes = 1; * *
       * provided if exception applicable to the trips
       * 
*/ public java.util.List getTripIndexesList() { return java.util.Collections.unmodifiableList(tripIndexes_); } /** * repeated uint32 tripIndexes = 1; * *
       * provided if exception applicable to the trips
       * 
*/ public int getTripIndexesCount() { return tripIndexes_.size(); } /** * repeated uint32 tripIndexes = 1; * *
       * provided if exception applicable to the trips
       * 
*/ public int getTripIndexes(int index) { return tripIndexes_.get(index); } /** * repeated uint32 tripIndexes = 1; * *
       * provided if exception applicable to the trips
       * 
*/ public Builder setTripIndexes( int index, int value) { ensureTripIndexesIsMutable(); tripIndexes_.set(index, value); onChanged(); return this; } /** * repeated uint32 tripIndexes = 1; * *
       * provided if exception applicable to the trips
       * 
*/ public Builder addTripIndexes(int value) { ensureTripIndexesIsMutable(); tripIndexes_.add(value); onChanged(); return this; } /** * repeated uint32 tripIndexes = 1; * *
       * provided if exception applicable to the trips
       * 
*/ public Builder addAllTripIndexes( java.lang.Iterable values) { ensureTripIndexesIsMutable(); super.addAll(values, tripIndexes_); onChanged(); return this; } /** * repeated uint32 tripIndexes = 1; * *
       * provided if exception applicable to the trips
       * 
*/ public Builder clearTripIndexes() { tripIndexes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // repeated uint32 stopIndexes = 2; private java.util.List stopIndexes_ = java.util.Collections.emptyList(); private void ensureStopIndexesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { stopIndexes_ = new java.util.ArrayList(stopIndexes_); bitField0_ |= 0x00000002; } } /** * repeated uint32 stopIndexes = 2; * *
       * provided if exception applicable to the stop
       * 
*/ public java.util.List getStopIndexesList() { return java.util.Collections.unmodifiableList(stopIndexes_); } /** * repeated uint32 stopIndexes = 2; * *
       * provided if exception applicable to the stop
       * 
*/ public int getStopIndexesCount() { return stopIndexes_.size(); } /** * repeated uint32 stopIndexes = 2; * *
       * provided if exception applicable to the stop
       * 
*/ public int getStopIndexes(int index) { return stopIndexes_.get(index); } /** * repeated uint32 stopIndexes = 2; * *
       * provided if exception applicable to the stop
       * 
*/ public Builder setStopIndexes( int index, int value) { ensureStopIndexesIsMutable(); stopIndexes_.set(index, value); onChanged(); return this; } /** * repeated uint32 stopIndexes = 2; * *
       * provided if exception applicable to the stop
       * 
*/ public Builder addStopIndexes(int value) { ensureStopIndexesIsMutable(); stopIndexes_.add(value); onChanged(); return this; } /** * repeated uint32 stopIndexes = 2; * *
       * provided if exception applicable to the stop
       * 
*/ public Builder addAllStopIndexes( java.lang.Iterable values) { ensureStopIndexesIsMutable(); super.addAll(values, stopIndexes_); onChanged(); return this; } /** * repeated uint32 stopIndexes = 2; * *
       * provided if exception applicable to the stop
       * 
*/ public Builder clearStopIndexes() { stopIndexes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional bool available = 3; private boolean available_ ; /** * optional bool available = 3; * *
       * indicates whether the trip or stop available in certain restriction (default true)
       * 
*/ public boolean hasAvailable() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool available = 3; * *
       * indicates whether the trip or stop available in certain restriction (default true)
       * 
*/ public boolean getAvailable() { return available_; } /** * optional bool available = 3; * *
       * indicates whether the trip or stop available in certain restriction (default true)
       * 
*/ public Builder setAvailable(boolean value) { bitField0_ |= 0x00000004; available_ = value; onChanged(); return this; } /** * optional bool available = 3; * *
       * indicates whether the trip or stop available in certain restriction (default true)
       * 
*/ public Builder clearAvailable() { bitField0_ = (bitField0_ & ~0x00000004); available_ = false; onChanged(); return this; } // repeated uint32 delayArrival = 5; private java.util.List delayArrival_ = java.util.Collections.emptyList(); private void ensureDelayArrivalIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { delayArrival_ = new java.util.ArrayList(delayArrival_); bitField0_ |= 0x00000008; } } /** * repeated uint32 delayArrival = 5; * *
       * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
       * delay is measured in X * 10 seconds
       * 
*/ public java.util.List getDelayArrivalList() { return java.util.Collections.unmodifiableList(delayArrival_); } /** * repeated uint32 delayArrival = 5; * *
       * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
       * delay is measured in X * 10 seconds
       * 
*/ public int getDelayArrivalCount() { return delayArrival_.size(); } /** * repeated uint32 delayArrival = 5; * *
       * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
       * delay is measured in X * 10 seconds
       * 
*/ public int getDelayArrival(int index) { return delayArrival_.get(index); } /** * repeated uint32 delayArrival = 5; * *
       * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
       * delay is measured in X * 10 seconds
       * 
*/ public Builder setDelayArrival( int index, int value) { ensureDelayArrivalIsMutable(); delayArrival_.set(index, value); onChanged(); return this; } /** * repeated uint32 delayArrival = 5; * *
       * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
       * delay is measured in X * 10 seconds
       * 
*/ public Builder addDelayArrival(int value) { ensureDelayArrivalIsMutable(); delayArrival_.add(value); onChanged(); return this; } /** * repeated uint32 delayArrival = 5; * *
       * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
       * delay is measured in X * 10 seconds
       * 
*/ public Builder addAllDelayArrival( java.lang.Iterable values) { ensureDelayArrivalIsMutable(); super.addAll(values, delayArrival_); onChanged(); return this; } /** * repeated uint32 delayArrival = 5; * *
       * if 1 number is provided, the delay is applicable to all trips/stops, otherwise it has numbers for each route or stop
       * delay is measured in X * 10 seconds
       * 
*/ public Builder clearDelayArrival() { delayArrival_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // repeated int32 deltaWaitInterval = 6; private java.util.List deltaWaitInterval_ = java.util.Collections.emptyList(); private void ensureDeltaWaitIntervalIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { deltaWaitInterval_ = new java.util.ArrayList(deltaWaitInterval_); bitField0_ |= 0x00000010; } } /** * repeated int32 deltaWaitInterval = 6; */ public java.util.List getDeltaWaitIntervalList() { return java.util.Collections.unmodifiableList(deltaWaitInterval_); } /** * repeated int32 deltaWaitInterval = 6; */ public int getDeltaWaitIntervalCount() { return deltaWaitInterval_.size(); } /** * repeated int32 deltaWaitInterval = 6; */ public int getDeltaWaitInterval(int index) { return deltaWaitInterval_.get(index); } /** * repeated int32 deltaWaitInterval = 6; */ public Builder setDeltaWaitInterval( int index, int value) { ensureDeltaWaitIntervalIsMutable(); deltaWaitInterval_.set(index, value); onChanged(); return this; } /** * repeated int32 deltaWaitInterval = 6; */ public Builder addDeltaWaitInterval(int value) { ensureDeltaWaitIntervalIsMutable(); deltaWaitInterval_.add(value); onChanged(); return this; } /** * repeated int32 deltaWaitInterval = 6; */ public Builder addAllDeltaWaitInterval( java.lang.Iterable values) { ensureDeltaWaitIntervalIsMutable(); super.addAll(values, deltaWaitInterval_); onChanged(); return this; } /** * repeated int32 deltaWaitInterval = 6; */ public Builder clearDeltaWaitInterval() { deltaWaitInterval_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } // repeated uint32 dayOfWeekRestriction = 7; private java.util.List dayOfWeekRestriction_ = java.util.Collections.emptyList(); private void ensureDayOfWeekRestrictionIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { dayOfWeekRestriction_ = new java.util.ArrayList(dayOfWeekRestriction_); bitField0_ |= 0x00000020; } } /** * repeated uint32 dayOfWeekRestriction = 7; * *
       * day of week exceptions, Monday - 0, Sunday - 6
       * 
*/ public java.util.List getDayOfWeekRestrictionList() { return java.util.Collections.unmodifiableList(dayOfWeekRestriction_); } /** * repeated uint32 dayOfWeekRestriction = 7; * *
       * day of week exceptions, Monday - 0, Sunday - 6
       * 
*/ public int getDayOfWeekRestrictionCount() { return dayOfWeekRestriction_.size(); } /** * repeated uint32 dayOfWeekRestriction = 7; * *
       * day of week exceptions, Monday - 0, Sunday - 6
       * 
*/ public int getDayOfWeekRestriction(int index) { return dayOfWeekRestriction_.get(index); } /** * repeated uint32 dayOfWeekRestriction = 7; * *
       * day of week exceptions, Monday - 0, Sunday - 6
       * 
*/ public Builder setDayOfWeekRestriction( int index, int value) { ensureDayOfWeekRestrictionIsMutable(); dayOfWeekRestriction_.set(index, value); onChanged(); return this; } /** * repeated uint32 dayOfWeekRestriction = 7; * *
       * day of week exceptions, Monday - 0, Sunday - 6
       * 
*/ public Builder addDayOfWeekRestriction(int value) { ensureDayOfWeekRestrictionIsMutable(); dayOfWeekRestriction_.add(value); onChanged(); return this; } /** * repeated uint32 dayOfWeekRestriction = 7; * *
       * day of week exceptions, Monday - 0, Sunday - 6
       * 
*/ public Builder addAllDayOfWeekRestriction( java.lang.Iterable values) { ensureDayOfWeekRestrictionIsMutable(); super.addAll(values, dayOfWeekRestriction_); onChanged(); return this; } /** * repeated uint32 dayOfWeekRestriction = 7; * *
       * day of week exceptions, Monday - 0, Sunday - 6
       * 
*/ public Builder clearDayOfWeekRestriction() { dayOfWeekRestriction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } // repeated uint32 dayOfYearRestriction = 8; private java.util.List dayOfYearRestriction_ = java.util.Collections.emptyList(); private void ensureDayOfYearRestrictionIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { dayOfYearRestriction_ = new java.util.ArrayList(dayOfYearRestriction_); bitField0_ |= 0x00000040; } } /** * repeated uint32 dayOfYearRestriction = 8; * *
       * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
       * 
*/ public java.util.List getDayOfYearRestrictionList() { return java.util.Collections.unmodifiableList(dayOfYearRestriction_); } /** * repeated uint32 dayOfYearRestriction = 8; * *
       * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
       * 
*/ public int getDayOfYearRestrictionCount() { return dayOfYearRestriction_.size(); } /** * repeated uint32 dayOfYearRestriction = 8; * *
       * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
       * 
*/ public int getDayOfYearRestriction(int index) { return dayOfYearRestriction_.get(index); } /** * repeated uint32 dayOfYearRestriction = 8; * *
       * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
       * 
*/ public Builder setDayOfYearRestriction( int index, int value) { ensureDayOfYearRestrictionIsMutable(); dayOfYearRestriction_.set(index, value); onChanged(); return this; } /** * repeated uint32 dayOfYearRestriction = 8; * *
       * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
       * 
*/ public Builder addDayOfYearRestriction(int value) { ensureDayOfYearRestrictionIsMutable(); dayOfYearRestriction_.add(value); onChanged(); return this; } /** * repeated uint32 dayOfYearRestriction = 8; * *
       * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
       * 
*/ public Builder addAllDayOfYearRestriction( java.lang.Iterable values) { ensureDayOfYearRestrictionIsMutable(); super.addAll(values, dayOfYearRestriction_); onChanged(); return this; } /** * repeated uint32 dayOfYearRestriction = 8; * *
       * day of year exceptions 01.01.2000 - 0, 01.02.2000 - 1
       * 
*/ public Builder clearDayOfYearRestriction() { dayOfYearRestriction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.TransportRouteScheduleException) } static { defaultInstance = new TransportRouteScheduleException(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportRouteScheduleException) } public interface TransportRouteStopOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint64 id = 1; /** * required sint64 id = 1; * *
     * delta encoded to previous stop (first stop is delta to 0)
     * 
*/ boolean hasId(); /** * required sint64 id = 1; * *
     * delta encoded to previous stop (first stop is delta to 0)
     * 
*/ long getId(); // required sint32 dx = 2; /** * required sint32 dx = 2; * *
     * delta encoded to previous stop (24 zoom)
     * 
*/ boolean hasDx(); /** * required sint32 dx = 2; * *
     * delta encoded to previous stop (24 zoom)
     * 
*/ int getDx(); // required sint32 dy = 3; /** * required sint32 dy = 3; * *
     * delta encoded to previous stop (24 zoom)
     * 
*/ boolean hasDy(); /** * required sint32 dy = 3; * *
     * delta encoded to previous stop (24 zoom)
     * 
*/ int getDy(); // required uint32 name = 6; /** * required uint32 name = 6; * *
     * index in message table
     * 
*/ boolean hasName(); /** * required uint32 name = 6; * *
     * index in message table
     * 
*/ int getName(); // optional uint32 name_en = 7; /** * optional uint32 name_en = 7; * *
     * index in message table
     * 
*/ boolean hasNameEn(); /** * optional uint32 name_en = 7; * *
     * index in message table
     * 
*/ int getNameEn(); } /** * Protobuf type {@code OsmAnd.OBF.TransportRouteStop} */ public static final class TransportRouteStop extends com.google.protobuf.GeneratedMessage implements TransportRouteStopOrBuilder { // Use TransportRouteStop.newBuilder() to construct. private TransportRouteStop(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransportRouteStop(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransportRouteStop defaultInstance; public static TransportRouteStop getDefaultInstance() { return defaultInstance; } public TransportRouteStop getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransportRouteStop( 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; id_ = input.readSInt64(); break; } case 16: { bitField0_ |= 0x00000002; dx_ = input.readSInt32(); break; } case 24: { bitField0_ |= 0x00000004; dy_ = input.readSInt32(); break; } case 48: { bitField0_ |= 0x00000008; name_ = input.readUInt32(); break; } case 56: { bitField0_ |= 0x00000010; nameEn_ = 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_TransportRouteStop_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteStop_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportRouteStop.class, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransportRouteStop parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransportRouteStop(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required sint64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * required sint64 id = 1; * *
     * delta encoded to previous stop (first stop is delta to 0)
     * 
*/ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint64 id = 1; * *
     * delta encoded to previous stop (first stop is delta to 0)
     * 
*/ public long getId() { return id_; } // required sint32 dx = 2; public static final int DX_FIELD_NUMBER = 2; private int dx_; /** * required sint32 dx = 2; * *
     * delta encoded to previous stop (24 zoom)
     * 
*/ public boolean hasDx() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 dx = 2; * *
     * delta encoded to previous stop (24 zoom)
     * 
*/ public int getDx() { return dx_; } // required sint32 dy = 3; public static final int DY_FIELD_NUMBER = 3; private int dy_; /** * required sint32 dy = 3; * *
     * delta encoded to previous stop (24 zoom)
     * 
*/ public boolean hasDy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint32 dy = 3; * *
     * delta encoded to previous stop (24 zoom)
     * 
*/ public int getDy() { return dy_; } // required uint32 name = 6; public static final int NAME_FIELD_NUMBER = 6; private int name_; /** * required uint32 name = 6; * *
     * index in message table
     * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required uint32 name = 6; * *
     * index in message table
     * 
*/ public int getName() { return name_; } // optional uint32 name_en = 7; public static final int NAME_EN_FIELD_NUMBER = 7; private int nameEn_; /** * optional uint32 name_en = 7; * *
     * index in message table
     * 
*/ public boolean hasNameEn() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 name_en = 7; * *
     * index in message table
     * 
*/ public int getNameEn() { return nameEn_; } private void initFields() { id_ = 0L; dx_ = 0; dy_ = 0; name_ = 0; nameEn_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasDx()) { memoizedIsInitialized = 0; return false; } if (!hasDy()) { memoizedIsInitialized = 0; return false; } if (!hasName()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeSInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(2, dx_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeSInt32(3, dy_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(6, name_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(7, nameEn_); } 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 .computeSInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, dx_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(3, dy_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, name_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, nameEn_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.TransportRouteStop parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportRouteStop 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.TransportRouteStop parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportRouteStop parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.TransportRouteStop parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRouteStop 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.TransportRouteStop parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRouteStop 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.TransportRouteStop parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportRouteStop 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.TransportRouteStop 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.TransportRouteStop} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteStop_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteStop_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportRouteStop.class, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.TransportRouteStop.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); dx_ = 0; bitField0_ = (bitField0_ & ~0x00000002); dy_ = 0; bitField0_ = (bitField0_ & ~0x00000004); name_ = 0; bitField0_ = (bitField0_ & ~0x00000008); nameEn_ = 0; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportRouteStop_descriptor; } public net.osmand.binary.OsmandOdb.TransportRouteStop getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.TransportRouteStop build() { net.osmand.binary.OsmandOdb.TransportRouteStop result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.TransportRouteStop buildPartial() { net.osmand.binary.OsmandOdb.TransportRouteStop result = new net.osmand.binary.OsmandOdb.TransportRouteStop(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.dx_ = dx_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.dy_ = dy_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.name_ = name_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.nameEn_ = nameEn_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.TransportRouteStop) { return mergeFrom((net.osmand.binary.OsmandOdb.TransportRouteStop)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.TransportRouteStop other) { if (other == net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasDx()) { setDx(other.getDx()); } if (other.hasDy()) { setDy(other.getDy()); } if (other.hasName()) { setName(other.getName()); } if (other.hasNameEn()) { setNameEn(other.getNameEn()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasDx()) { return false; } if (!hasDy()) { return false; } if (!hasName()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.TransportRouteStop parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.TransportRouteStop) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required sint64 id = 1; private long id_ ; /** * required sint64 id = 1; * *
       * delta encoded to previous stop (first stop is delta to 0)
       * 
*/ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint64 id = 1; * *
       * delta encoded to previous stop (first stop is delta to 0)
       * 
*/ public long getId() { return id_; } /** * required sint64 id = 1; * *
       * delta encoded to previous stop (first stop is delta to 0)
       * 
*/ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * required sint64 id = 1; * *
       * delta encoded to previous stop (first stop is delta to 0)
       * 
*/ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // required sint32 dx = 2; private int dx_ ; /** * required sint32 dx = 2; * *
       * delta encoded to previous stop (24 zoom)
       * 
*/ public boolean hasDx() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 dx = 2; * *
       * delta encoded to previous stop (24 zoom)
       * 
*/ public int getDx() { return dx_; } /** * required sint32 dx = 2; * *
       * delta encoded to previous stop (24 zoom)
       * 
*/ public Builder setDx(int value) { bitField0_ |= 0x00000002; dx_ = value; onChanged(); return this; } /** * required sint32 dx = 2; * *
       * delta encoded to previous stop (24 zoom)
       * 
*/ public Builder clearDx() { bitField0_ = (bitField0_ & ~0x00000002); dx_ = 0; onChanged(); return this; } // required sint32 dy = 3; private int dy_ ; /** * required sint32 dy = 3; * *
       * delta encoded to previous stop (24 zoom)
       * 
*/ public boolean hasDy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint32 dy = 3; * *
       * delta encoded to previous stop (24 zoom)
       * 
*/ public int getDy() { return dy_; } /** * required sint32 dy = 3; * *
       * delta encoded to previous stop (24 zoom)
       * 
*/ public Builder setDy(int value) { bitField0_ |= 0x00000004; dy_ = value; onChanged(); return this; } /** * required sint32 dy = 3; * *
       * delta encoded to previous stop (24 zoom)
       * 
*/ public Builder clearDy() { bitField0_ = (bitField0_ & ~0x00000004); dy_ = 0; onChanged(); return this; } // required uint32 name = 6; private int name_ ; /** * required uint32 name = 6; * *
       * index in message table
       * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required uint32 name = 6; * *
       * index in message table
       * 
*/ public int getName() { return name_; } /** * required uint32 name = 6; * *
       * index in message table
       * 
*/ public Builder setName(int value) { bitField0_ |= 0x00000008; name_ = value; onChanged(); return this; } /** * required uint32 name = 6; * *
       * index in message table
       * 
*/ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000008); name_ = 0; onChanged(); return this; } // optional uint32 name_en = 7; private int nameEn_ ; /** * optional uint32 name_en = 7; * *
       * index in message table
       * 
*/ public boolean hasNameEn() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 name_en = 7; * *
       * index in message table
       * 
*/ public int getNameEn() { return nameEn_; } /** * optional uint32 name_en = 7; * *
       * index in message table
       * 
*/ public Builder setNameEn(int value) { bitField0_ |= 0x00000010; nameEn_ = value; onChanged(); return this; } /** * optional uint32 name_en = 7; * *
       * index in message table
       * 
*/ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000010); nameEn_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.TransportRouteStop) } static { defaultInstance = new TransportRouteStop(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportRouteStop) } public interface TransportStopOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint32 dx = 1; /** * required sint32 dx = 1; * *
     * delta encoded to parent (24 zoom) to left
     * 
*/ boolean hasDx(); /** * required sint32 dx = 1; * *
     * delta encoded to parent (24 zoom) to left
     * 
*/ int getDx(); // required sint32 dy = 2; /** * required sint32 dy = 2; * *
     * delta encoded to parent (24 zoom) to top
     * 
*/ boolean hasDy(); /** * required sint32 dy = 2; * *
     * delta encoded to parent (24 zoom) to top
     * 
*/ int getDy(); // required sint64 id = 5; /** * required sint64 id = 5; * *
     * delta encoded to parent base id 
     * 
*/ boolean hasId(); /** * required sint64 id = 5; * *
     * delta encoded to parent base id 
     * 
*/ long getId(); // required uint32 name = 6; /** * required uint32 name = 6; * *
     * index in message table
     * 
*/ boolean hasName(); /** * required uint32 name = 6; * *
     * index in message table
     * 
*/ int getName(); // optional uint32 name_en = 7; /** * optional uint32 name_en = 7; * *
     * index in message table
     * 
*/ boolean hasNameEn(); /** * optional uint32 name_en = 7; * *
     * index in message table
     * 
*/ int getNameEn(); // optional bytes additionalNamePairs = 8; /** * optional bytes additionalNamePairs = 8; * *
     * array of bytes (array of pairs <raw var int>)
     * 
*/ boolean hasAdditionalNamePairs(); /** * optional bytes additionalNamePairs = 8; * *
     * array of bytes (array of pairs <raw var int>)
     * 
*/ com.google.protobuf.ByteString getAdditionalNamePairs(); // repeated .OsmAnd.OBF.TransportStopExit exits = 9; /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ java.util.List getExitsList(); /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ net.osmand.binary.OsmandOdb.TransportStopExit getExits(int index); /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ int getExitsCount(); /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ java.util.List getExitsOrBuilderList(); /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ net.osmand.binary.OsmandOdb.TransportStopExitOrBuilder getExitsOrBuilder( int index); // repeated uint32 routes = 16; /** * repeated uint32 routes = 16; * *
     * -shift to transport route containing that stop 
     * 
*/ java.util.List getRoutesList(); /** * repeated uint32 routes = 16; * *
     * -shift to transport route containing that stop 
     * 
*/ int getRoutesCount(); /** * repeated uint32 routes = 16; * *
     * -shift to transport route containing that stop 
     * 
*/ int getRoutes(int index); // repeated uint64 deletedRoutesIds = 20; /** * repeated uint64 deletedRoutesIds = 20; * *
     * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
     *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
     * message is started when body is started 
     * 
*/ java.util.List getDeletedRoutesIdsList(); /** * repeated uint64 deletedRoutesIds = 20; * *
     * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
     *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
     * message is started when body is started 
     * 
*/ int getDeletedRoutesIdsCount(); /** * repeated uint64 deletedRoutesIds = 20; * *
     * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
     *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
     * message is started when body is started 
     * 
*/ long getDeletedRoutesIds(int index); // repeated uint64 routesIds = 22; /** * repeated uint64 routesIds = 22; * *
     * ids of [routes] that contain this stop
     * - length and values correspond to [routes] array
     * - old version (< 08/2019) files don't have them
     * - default algorithm makes them sorted 
     * 
*/ java.util.List getRoutesIdsList(); /** * repeated uint64 routesIds = 22; * *
     * ids of [routes] that contain this stop
     * - length and values correspond to [routes] array
     * - old version (< 08/2019) files don't have them
     * - default algorithm makes them sorted 
     * 
*/ int getRoutesIdsCount(); /** * repeated uint64 routesIds = 22; * *
     * ids of [routes] that contain this stop
     * - length and values correspond to [routes] array
     * - old version (< 08/2019) files don't have them
     * - default algorithm makes them sorted 
     * 
*/ long getRoutesIds(int index); } /** * Protobuf type {@code OsmAnd.OBF.TransportStop} */ public static final class TransportStop extends com.google.protobuf.GeneratedMessage implements TransportStopOrBuilder { // Use TransportStop.newBuilder() to construct. private TransportStop(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransportStop(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransportStop defaultInstance; public static TransportStop getDefaultInstance() { return defaultInstance; } public TransportStop getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransportStop( 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; dx_ = input.readSInt32(); break; } case 16: { bitField0_ |= 0x00000002; dy_ = input.readSInt32(); break; } case 40: { bitField0_ |= 0x00000004; id_ = input.readSInt64(); break; } case 48: { bitField0_ |= 0x00000008; name_ = input.readUInt32(); break; } case 56: { bitField0_ |= 0x00000010; nameEn_ = input.readUInt32(); break; } case 66: { bitField0_ |= 0x00000020; additionalNamePairs_ = input.readBytes(); break; } case 74: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { exits_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } exits_.add(input.readMessage(net.osmand.binary.OsmandOdb.TransportStopExit.PARSER, extensionRegistry)); break; } case 128: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { routes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } routes_.add(input.readUInt32()); break; } case 130: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) { routes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } while (input.getBytesUntilLimit() > 0) { routes_.add(input.readUInt32()); } input.popLimit(limit); break; } case 160: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { deletedRoutesIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } deletedRoutesIds_.add(input.readUInt64()); break; } case 162: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { deletedRoutesIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } while (input.getBytesUntilLimit() > 0) { deletedRoutesIds_.add(input.readUInt64()); } input.popLimit(limit); break; } case 176: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { routesIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } routesIds_.add(input.readUInt64()); break; } case 178: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) { routesIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } while (input.getBytesUntilLimit() > 0) { routesIds_.add(input.readUInt64()); } input.popLimit(limit); 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_ & 0x00000040) == 0x00000040)) { exits_ = java.util.Collections.unmodifiableList(exits_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { routes_ = java.util.Collections.unmodifiableList(routes_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { deletedRoutesIds_ = java.util.Collections.unmodifiableList(deletedRoutesIds_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { routesIds_ = java.util.Collections.unmodifiableList(routesIds_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStop_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStop_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportStop.class, net.osmand.binary.OsmandOdb.TransportStop.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransportStop parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransportStop(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required sint32 dx = 1; public static final int DX_FIELD_NUMBER = 1; private int dx_; /** * required sint32 dx = 1; * *
     * delta encoded to parent (24 zoom) to left
     * 
*/ public boolean hasDx() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint32 dx = 1; * *
     * delta encoded to parent (24 zoom) to left
     * 
*/ public int getDx() { return dx_; } // required sint32 dy = 2; public static final int DY_FIELD_NUMBER = 2; private int dy_; /** * required sint32 dy = 2; * *
     * delta encoded to parent (24 zoom) to top
     * 
*/ public boolean hasDy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 dy = 2; * *
     * delta encoded to parent (24 zoom) to top
     * 
*/ public int getDy() { return dy_; } // required sint64 id = 5; public static final int ID_FIELD_NUMBER = 5; private long id_; /** * required sint64 id = 5; * *
     * delta encoded to parent base id 
     * 
*/ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint64 id = 5; * *
     * delta encoded to parent base id 
     * 
*/ public long getId() { return id_; } // required uint32 name = 6; public static final int NAME_FIELD_NUMBER = 6; private int name_; /** * required uint32 name = 6; * *
     * index in message table
     * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required uint32 name = 6; * *
     * index in message table
     * 
*/ public int getName() { return name_; } // optional uint32 name_en = 7; public static final int NAME_EN_FIELD_NUMBER = 7; private int nameEn_; /** * optional uint32 name_en = 7; * *
     * index in message table
     * 
*/ public boolean hasNameEn() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 name_en = 7; * *
     * index in message table
     * 
*/ public int getNameEn() { return nameEn_; } // optional bytes additionalNamePairs = 8; public static final int ADDITIONALNAMEPAIRS_FIELD_NUMBER = 8; private com.google.protobuf.ByteString additionalNamePairs_; /** * optional bytes additionalNamePairs = 8; * *
     * array of bytes (array of pairs <raw var int>)
     * 
*/ public boolean hasAdditionalNamePairs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes additionalNamePairs = 8; * *
     * array of bytes (array of pairs <raw var int>)
     * 
*/ public com.google.protobuf.ByteString getAdditionalNamePairs() { return additionalNamePairs_; } // repeated .OsmAnd.OBF.TransportStopExit exits = 9; public static final int EXITS_FIELD_NUMBER = 9; private java.util.List exits_; /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public java.util.List getExitsList() { return exits_; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public java.util.List getExitsOrBuilderList() { return exits_; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public int getExitsCount() { return exits_.size(); } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public net.osmand.binary.OsmandOdb.TransportStopExit getExits(int index) { return exits_.get(index); } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public net.osmand.binary.OsmandOdb.TransportStopExitOrBuilder getExitsOrBuilder( int index) { return exits_.get(index); } // repeated uint32 routes = 16; public static final int ROUTES_FIELD_NUMBER = 16; private java.util.List routes_; /** * repeated uint32 routes = 16; * *
     * -shift to transport route containing that stop 
     * 
*/ public java.util.List getRoutesList() { return routes_; } /** * repeated uint32 routes = 16; * *
     * -shift to transport route containing that stop 
     * 
*/ public int getRoutesCount() { return routes_.size(); } /** * repeated uint32 routes = 16; * *
     * -shift to transport route containing that stop 
     * 
*/ public int getRoutes(int index) { return routes_.get(index); } // repeated uint64 deletedRoutesIds = 20; public static final int DELETEDROUTESIDS_FIELD_NUMBER = 20; private java.util.List deletedRoutesIds_; /** * repeated uint64 deletedRoutesIds = 20; * *
     * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
     *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
     * message is started when body is started 
     * 
*/ public java.util.List getDeletedRoutesIdsList() { return deletedRoutesIds_; } /** * repeated uint64 deletedRoutesIds = 20; * *
     * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
     *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
     * message is started when body is started 
     * 
*/ public int getDeletedRoutesIdsCount() { return deletedRoutesIds_.size(); } /** * repeated uint64 deletedRoutesIds = 20; * *
     * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
     *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
     * message is started when body is started 
     * 
*/ public long getDeletedRoutesIds(int index) { return deletedRoutesIds_.get(index); } // repeated uint64 routesIds = 22; public static final int ROUTESIDS_FIELD_NUMBER = 22; private java.util.List routesIds_; /** * repeated uint64 routesIds = 22; * *
     * ids of [routes] that contain this stop
     * - length and values correspond to [routes] array
     * - old version (< 08/2019) files don't have them
     * - default algorithm makes them sorted 
     * 
*/ public java.util.List getRoutesIdsList() { return routesIds_; } /** * repeated uint64 routesIds = 22; * *
     * ids of [routes] that contain this stop
     * - length and values correspond to [routes] array
     * - old version (< 08/2019) files don't have them
     * - default algorithm makes them sorted 
     * 
*/ public int getRoutesIdsCount() { return routesIds_.size(); } /** * repeated uint64 routesIds = 22; * *
     * ids of [routes] that contain this stop
     * - length and values correspond to [routes] array
     * - old version (< 08/2019) files don't have them
     * - default algorithm makes them sorted 
     * 
*/ public long getRoutesIds(int index) { return routesIds_.get(index); } private void initFields() { dx_ = 0; dy_ = 0; id_ = 0L; name_ = 0; nameEn_ = 0; additionalNamePairs_ = com.google.protobuf.ByteString.EMPTY; exits_ = java.util.Collections.emptyList(); routes_ = java.util.Collections.emptyList(); deletedRoutesIds_ = java.util.Collections.emptyList(); routesIds_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasDx()) { memoizedIsInitialized = 0; return false; } if (!hasDy()) { memoizedIsInitialized = 0; return false; } if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasName()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getExitsCount(); i++) { if (!getExits(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, dx_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(2, dy_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeSInt64(5, id_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(6, name_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(7, nameEn_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(8, additionalNamePairs_); } for (int i = 0; i < exits_.size(); i++) { output.writeMessage(9, exits_.get(i)); } for (int i = 0; i < routes_.size(); i++) { output.writeUInt32(16, routes_.get(i)); } for (int i = 0; i < deletedRoutesIds_.size(); i++) { output.writeUInt64(20, deletedRoutesIds_.get(i)); } for (int i = 0; i < routesIds_.size(); i++) { output.writeUInt64(22, routesIds_.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, dx_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, dy_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(5, id_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, name_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, nameEn_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, additionalNamePairs_); } for (int i = 0; i < exits_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, exits_.get(i)); } { int dataSize = 0; for (int i = 0; i < routes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(routes_.get(i)); } size += dataSize; size += 2 * getRoutesList().size(); } { int dataSize = 0; for (int i = 0; i < deletedRoutesIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(deletedRoutesIds_.get(i)); } size += dataSize; size += 2 * getDeletedRoutesIdsList().size(); } { int dataSize = 0; for (int i = 0; i < routesIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(routesIds_.get(i)); } size += dataSize; size += 2 * getRoutesIdsList().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.TransportStop parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportStop 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.TransportStop parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportStop parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.TransportStop parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportStop 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.TransportStop parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.TransportStop 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.TransportStop parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportStop 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.TransportStop 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.TransportStop} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.TransportStopOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStop_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStop_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportStop.class, net.osmand.binary.OsmandOdb.TransportStop.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.TransportStop.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getExitsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); dx_ = 0; bitField0_ = (bitField0_ & ~0x00000001); dy_ = 0; bitField0_ = (bitField0_ & ~0x00000002); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); name_ = 0; bitField0_ = (bitField0_ & ~0x00000008); nameEn_ = 0; bitField0_ = (bitField0_ & ~0x00000010); additionalNamePairs_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); if (exitsBuilder_ == null) { exits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { exitsBuilder_.clear(); } routes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); deletedRoutesIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); routesIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStop_descriptor; } public net.osmand.binary.OsmandOdb.TransportStop getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.TransportStop.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.TransportStop build() { net.osmand.binary.OsmandOdb.TransportStop result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.TransportStop buildPartial() { net.osmand.binary.OsmandOdb.TransportStop result = new net.osmand.binary.OsmandOdb.TransportStop(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.dx_ = dx_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.dy_ = dy_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.id_ = id_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.name_ = name_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.nameEn_ = nameEn_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.additionalNamePairs_ = additionalNamePairs_; if (exitsBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { exits_ = java.util.Collections.unmodifiableList(exits_); bitField0_ = (bitField0_ & ~0x00000040); } result.exits_ = exits_; } else { result.exits_ = exitsBuilder_.build(); } if (((bitField0_ & 0x00000080) == 0x00000080)) { routes_ = java.util.Collections.unmodifiableList(routes_); bitField0_ = (bitField0_ & ~0x00000080); } result.routes_ = routes_; if (((bitField0_ & 0x00000100) == 0x00000100)) { deletedRoutesIds_ = java.util.Collections.unmodifiableList(deletedRoutesIds_); bitField0_ = (bitField0_ & ~0x00000100); } result.deletedRoutesIds_ = deletedRoutesIds_; if (((bitField0_ & 0x00000200) == 0x00000200)) { routesIds_ = java.util.Collections.unmodifiableList(routesIds_); bitField0_ = (bitField0_ & ~0x00000200); } result.routesIds_ = routesIds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.TransportStop) { return mergeFrom((net.osmand.binary.OsmandOdb.TransportStop)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.TransportStop other) { if (other == net.osmand.binary.OsmandOdb.TransportStop.getDefaultInstance()) return this; if (other.hasDx()) { setDx(other.getDx()); } if (other.hasDy()) { setDy(other.getDy()); } if (other.hasId()) { setId(other.getId()); } if (other.hasName()) { setName(other.getName()); } if (other.hasNameEn()) { setNameEn(other.getNameEn()); } if (other.hasAdditionalNamePairs()) { setAdditionalNamePairs(other.getAdditionalNamePairs()); } if (exitsBuilder_ == null) { if (!other.exits_.isEmpty()) { if (exits_.isEmpty()) { exits_ = other.exits_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureExitsIsMutable(); exits_.addAll(other.exits_); } onChanged(); } } else { if (!other.exits_.isEmpty()) { if (exitsBuilder_.isEmpty()) { exitsBuilder_.dispose(); exitsBuilder_ = null; exits_ = other.exits_; bitField0_ = (bitField0_ & ~0x00000040); exitsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getExitsFieldBuilder() : null; } else { exitsBuilder_.addAllMessages(other.exits_); } } } if (!other.routes_.isEmpty()) { if (routes_.isEmpty()) { routes_ = other.routes_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureRoutesIsMutable(); routes_.addAll(other.routes_); } onChanged(); } if (!other.deletedRoutesIds_.isEmpty()) { if (deletedRoutesIds_.isEmpty()) { deletedRoutesIds_ = other.deletedRoutesIds_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureDeletedRoutesIdsIsMutable(); deletedRoutesIds_.addAll(other.deletedRoutesIds_); } onChanged(); } if (!other.routesIds_.isEmpty()) { if (routesIds_.isEmpty()) { routesIds_ = other.routesIds_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureRoutesIdsIsMutable(); routesIds_.addAll(other.routesIds_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasDx()) { return false; } if (!hasDy()) { return false; } if (!hasId()) { return false; } if (!hasName()) { return false; } for (int i = 0; i < getExitsCount(); i++) { if (!getExits(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.TransportStop parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.TransportStop) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required sint32 dx = 1; private int dx_ ; /** * required sint32 dx = 1; * *
       * delta encoded to parent (24 zoom) to left
       * 
*/ public boolean hasDx() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint32 dx = 1; * *
       * delta encoded to parent (24 zoom) to left
       * 
*/ public int getDx() { return dx_; } /** * required sint32 dx = 1; * *
       * delta encoded to parent (24 zoom) to left
       * 
*/ public Builder setDx(int value) { bitField0_ |= 0x00000001; dx_ = value; onChanged(); return this; } /** * required sint32 dx = 1; * *
       * delta encoded to parent (24 zoom) to left
       * 
*/ public Builder clearDx() { bitField0_ = (bitField0_ & ~0x00000001); dx_ = 0; onChanged(); return this; } // required sint32 dy = 2; private int dy_ ; /** * required sint32 dy = 2; * *
       * delta encoded to parent (24 zoom) to top
       * 
*/ public boolean hasDy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 dy = 2; * *
       * delta encoded to parent (24 zoom) to top
       * 
*/ public int getDy() { return dy_; } /** * required sint32 dy = 2; * *
       * delta encoded to parent (24 zoom) to top
       * 
*/ public Builder setDy(int value) { bitField0_ |= 0x00000002; dy_ = value; onChanged(); return this; } /** * required sint32 dy = 2; * *
       * delta encoded to parent (24 zoom) to top
       * 
*/ public Builder clearDy() { bitField0_ = (bitField0_ & ~0x00000002); dy_ = 0; onChanged(); return this; } // required sint64 id = 5; private long id_ ; /** * required sint64 id = 5; * *
       * delta encoded to parent base id 
       * 
*/ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint64 id = 5; * *
       * delta encoded to parent base id 
       * 
*/ public long getId() { return id_; } /** * required sint64 id = 5; * *
       * delta encoded to parent base id 
       * 
*/ public Builder setId(long value) { bitField0_ |= 0x00000004; id_ = value; onChanged(); return this; } /** * required sint64 id = 5; * *
       * delta encoded to parent base id 
       * 
*/ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000004); id_ = 0L; onChanged(); return this; } // required uint32 name = 6; private int name_ ; /** * required uint32 name = 6; * *
       * index in message table
       * 
*/ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required uint32 name = 6; * *
       * index in message table
       * 
*/ public int getName() { return name_; } /** * required uint32 name = 6; * *
       * index in message table
       * 
*/ public Builder setName(int value) { bitField0_ |= 0x00000008; name_ = value; onChanged(); return this; } /** * required uint32 name = 6; * *
       * index in message table
       * 
*/ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000008); name_ = 0; onChanged(); return this; } // optional uint32 name_en = 7; private int nameEn_ ; /** * optional uint32 name_en = 7; * *
       * index in message table
       * 
*/ public boolean hasNameEn() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 name_en = 7; * *
       * index in message table
       * 
*/ public int getNameEn() { return nameEn_; } /** * optional uint32 name_en = 7; * *
       * index in message table
       * 
*/ public Builder setNameEn(int value) { bitField0_ |= 0x00000010; nameEn_ = value; onChanged(); return this; } /** * optional uint32 name_en = 7; * *
       * index in message table
       * 
*/ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000010); nameEn_ = 0; onChanged(); return this; } // optional bytes additionalNamePairs = 8; private com.google.protobuf.ByteString additionalNamePairs_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes additionalNamePairs = 8; * *
       * array of bytes (array of pairs <raw var int>)
       * 
*/ public boolean hasAdditionalNamePairs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes additionalNamePairs = 8; * *
       * array of bytes (array of pairs <raw var int>)
       * 
*/ public com.google.protobuf.ByteString getAdditionalNamePairs() { return additionalNamePairs_; } /** * optional bytes additionalNamePairs = 8; * *
       * array of bytes (array of pairs <raw var int>)
       * 
*/ public Builder setAdditionalNamePairs(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; additionalNamePairs_ = value; onChanged(); return this; } /** * optional bytes additionalNamePairs = 8; * *
       * array of bytes (array of pairs <raw var int>)
       * 
*/ public Builder clearAdditionalNamePairs() { bitField0_ = (bitField0_ & ~0x00000020); additionalNamePairs_ = getDefaultInstance().getAdditionalNamePairs(); onChanged(); return this; } // repeated .OsmAnd.OBF.TransportStopExit exits = 9; private java.util.List exits_ = java.util.Collections.emptyList(); private void ensureExitsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { exits_ = new java.util.ArrayList(exits_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportStopExit, net.osmand.binary.OsmandOdb.TransportStopExit.Builder, net.osmand.binary.OsmandOdb.TransportStopExitOrBuilder> exitsBuilder_; /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public java.util.List getExitsList() { if (exitsBuilder_ == null) { return java.util.Collections.unmodifiableList(exits_); } else { return exitsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public int getExitsCount() { if (exitsBuilder_ == null) { return exits_.size(); } else { return exitsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public net.osmand.binary.OsmandOdb.TransportStopExit getExits(int index) { if (exitsBuilder_ == null) { return exits_.get(index); } else { return exitsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public Builder setExits( int index, net.osmand.binary.OsmandOdb.TransportStopExit value) { if (exitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExitsIsMutable(); exits_.set(index, value); onChanged(); } else { exitsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public Builder setExits( int index, net.osmand.binary.OsmandOdb.TransportStopExit.Builder builderForValue) { if (exitsBuilder_ == null) { ensureExitsIsMutable(); exits_.set(index, builderForValue.build()); onChanged(); } else { exitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public Builder addExits(net.osmand.binary.OsmandOdb.TransportStopExit value) { if (exitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExitsIsMutable(); exits_.add(value); onChanged(); } else { exitsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public Builder addExits( int index, net.osmand.binary.OsmandOdb.TransportStopExit value) { if (exitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExitsIsMutable(); exits_.add(index, value); onChanged(); } else { exitsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public Builder addExits( net.osmand.binary.OsmandOdb.TransportStopExit.Builder builderForValue) { if (exitsBuilder_ == null) { ensureExitsIsMutable(); exits_.add(builderForValue.build()); onChanged(); } else { exitsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public Builder addExits( int index, net.osmand.binary.OsmandOdb.TransportStopExit.Builder builderForValue) { if (exitsBuilder_ == null) { ensureExitsIsMutable(); exits_.add(index, builderForValue.build()); onChanged(); } else { exitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public Builder addAllExits( java.lang.Iterable values) { if (exitsBuilder_ == null) { ensureExitsIsMutable(); super.addAll(values, exits_); onChanged(); } else { exitsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public Builder clearExits() { if (exitsBuilder_ == null) { exits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { exitsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public Builder removeExits(int index) { if (exitsBuilder_ == null) { ensureExitsIsMutable(); exits_.remove(index); onChanged(); } else { exitsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public net.osmand.binary.OsmandOdb.TransportStopExit.Builder getExitsBuilder( int index) { return getExitsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public net.osmand.binary.OsmandOdb.TransportStopExitOrBuilder getExitsOrBuilder( int index) { if (exitsBuilder_ == null) { return exits_.get(index); } else { return exitsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public java.util.List getExitsOrBuilderList() { if (exitsBuilder_ != null) { return exitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exits_); } } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public net.osmand.binary.OsmandOdb.TransportStopExit.Builder addExitsBuilder() { return getExitsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportStopExit.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public net.osmand.binary.OsmandOdb.TransportStopExit.Builder addExitsBuilder( int index) { return getExitsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportStopExit.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportStopExit exits = 9; */ public java.util.List getExitsBuilderList() { return getExitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportStopExit, net.osmand.binary.OsmandOdb.TransportStopExit.Builder, net.osmand.binary.OsmandOdb.TransportStopExitOrBuilder> getExitsFieldBuilder() { if (exitsBuilder_ == null) { exitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportStopExit, net.osmand.binary.OsmandOdb.TransportStopExit.Builder, net.osmand.binary.OsmandOdb.TransportStopExitOrBuilder>( exits_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); exits_ = null; } return exitsBuilder_; } // repeated uint32 routes = 16; private java.util.List routes_ = java.util.Collections.emptyList(); private void ensureRoutesIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { routes_ = new java.util.ArrayList(routes_); bitField0_ |= 0x00000080; } } /** * repeated uint32 routes = 16; * *
       * -shift to transport route containing that stop 
       * 
*/ public java.util.List getRoutesList() { return java.util.Collections.unmodifiableList(routes_); } /** * repeated uint32 routes = 16; * *
       * -shift to transport route containing that stop 
       * 
*/ public int getRoutesCount() { return routes_.size(); } /** * repeated uint32 routes = 16; * *
       * -shift to transport route containing that stop 
       * 
*/ public int getRoutes(int index) { return routes_.get(index); } /** * repeated uint32 routes = 16; * *
       * -shift to transport route containing that stop 
       * 
*/ public Builder setRoutes( int index, int value) { ensureRoutesIsMutable(); routes_.set(index, value); onChanged(); return this; } /** * repeated uint32 routes = 16; * *
       * -shift to transport route containing that stop 
       * 
*/ public Builder addRoutes(int value) { ensureRoutesIsMutable(); routes_.add(value); onChanged(); return this; } /** * repeated uint32 routes = 16; * *
       * -shift to transport route containing that stop 
       * 
*/ public Builder addAllRoutes( java.lang.Iterable values) { ensureRoutesIsMutable(); super.addAll(values, routes_); onChanged(); return this; } /** * repeated uint32 routes = 16; * *
       * -shift to transport route containing that stop 
       * 
*/ public Builder clearRoutes() { routes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } // repeated uint64 deletedRoutesIds = 20; private java.util.List deletedRoutesIds_ = java.util.Collections.emptyList(); private void ensureDeletedRoutesIdsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { deletedRoutesIds_ = new java.util.ArrayList(deletedRoutesIds_); bitField0_ |= 0x00000100; } } /** * repeated uint64 deletedRoutesIds = 20; * *
       * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
       *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
       * message is started when body is started 
       * 
*/ public java.util.List getDeletedRoutesIdsList() { return java.util.Collections.unmodifiableList(deletedRoutesIds_); } /** * repeated uint64 deletedRoutesIds = 20; * *
       * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
       *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
       * message is started when body is started 
       * 
*/ public int getDeletedRoutesIdsCount() { return deletedRoutesIds_.size(); } /** * repeated uint64 deletedRoutesIds = 20; * *
       * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
       *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
       * message is started when body is started 
       * 
*/ public long getDeletedRoutesIds(int index) { return deletedRoutesIds_.get(index); } /** * repeated uint64 deletedRoutesIds = 20; * *
       * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
       *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
       * message is started when body is started 
       * 
*/ public Builder setDeletedRoutesIds( int index, long value) { ensureDeletedRoutesIdsIsMutable(); deletedRoutesIds_.set(index, value); onChanged(); return this; } /** * repeated uint64 deletedRoutesIds = 20; * *
       * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
       *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
       * message is started when body is started 
       * 
*/ public Builder addDeletedRoutesIds(long value) { ensureDeletedRoutesIdsIsMutable(); deletedRoutesIds_.add(value); onChanged(); return this; } /** * repeated uint64 deletedRoutesIds = 20; * *
       * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
       *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
       * message is started when body is started 
       * 
*/ public Builder addAllDeletedRoutesIds( java.lang.Iterable values) { ensureDeletedRoutesIdsIsMutable(); super.addAll(values, deletedRoutesIds_); onChanged(); return this; } /** * repeated uint64 deletedRoutesIds = 20; * *
       * TransportStop.Message.start -  sizeof(TransportStop.Message.length) - routes[i] 
       *				= TransportRoute.Message.start - sizeof(TransportRoute.Message.length)
       * message is started when body is started 
       * 
*/ public Builder clearDeletedRoutesIds() { deletedRoutesIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } // repeated uint64 routesIds = 22; private java.util.List routesIds_ = java.util.Collections.emptyList(); private void ensureRoutesIdsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { routesIds_ = new java.util.ArrayList(routesIds_); bitField0_ |= 0x00000200; } } /** * repeated uint64 routesIds = 22; * *
       * ids of [routes] that contain this stop
       * - length and values correspond to [routes] array
       * - old version (< 08/2019) files don't have them
       * - default algorithm makes them sorted 
       * 
*/ public java.util.List getRoutesIdsList() { return java.util.Collections.unmodifiableList(routesIds_); } /** * repeated uint64 routesIds = 22; * *
       * ids of [routes] that contain this stop
       * - length and values correspond to [routes] array
       * - old version (< 08/2019) files don't have them
       * - default algorithm makes them sorted 
       * 
*/ public int getRoutesIdsCount() { return routesIds_.size(); } /** * repeated uint64 routesIds = 22; * *
       * ids of [routes] that contain this stop
       * - length and values correspond to [routes] array
       * - old version (< 08/2019) files don't have them
       * - default algorithm makes them sorted 
       * 
*/ public long getRoutesIds(int index) { return routesIds_.get(index); } /** * repeated uint64 routesIds = 22; * *
       * ids of [routes] that contain this stop
       * - length and values correspond to [routes] array
       * - old version (< 08/2019) files don't have them
       * - default algorithm makes them sorted 
       * 
*/ public Builder setRoutesIds( int index, long value) { ensureRoutesIdsIsMutable(); routesIds_.set(index, value); onChanged(); return this; } /** * repeated uint64 routesIds = 22; * *
       * ids of [routes] that contain this stop
       * - length and values correspond to [routes] array
       * - old version (< 08/2019) files don't have them
       * - default algorithm makes them sorted 
       * 
*/ public Builder addRoutesIds(long value) { ensureRoutesIdsIsMutable(); routesIds_.add(value); onChanged(); return this; } /** * repeated uint64 routesIds = 22; * *
       * ids of [routes] that contain this stop
       * - length and values correspond to [routes] array
       * - old version (< 08/2019) files don't have them
       * - default algorithm makes them sorted 
       * 
*/ public Builder addAllRoutesIds( java.lang.Iterable values) { ensureRoutesIdsIsMutable(); super.addAll(values, routesIds_); onChanged(); return this; } /** * repeated uint64 routesIds = 22; * *
       * ids of [routes] that contain this stop
       * - length and values correspond to [routes] array
       * - old version (< 08/2019) files don't have them
       * - default algorithm makes them sorted 
       * 
*/ public Builder clearRoutesIds() { routesIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.TransportStop) } static { defaultInstance = new TransportStop(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportStop) } public interface TransportStopExitOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint32 dx = 1; /** * required sint32 dx = 1; * *
     * delta x
     * 
*/ boolean hasDx(); /** * required sint32 dx = 1; * *
     * delta x
     * 
*/ int getDx(); // required sint32 dy = 2; /** * required sint32 dy = 2; * *
     * delta y
     * 
*/ boolean hasDy(); /** * required sint32 dy = 2; * *
     * delta y
     * 
*/ int getDy(); // required uint32 ref = 3; /** * required uint32 ref = 3; */ boolean hasRef(); /** * required uint32 ref = 3; */ int getRef(); } /** * Protobuf type {@code OsmAnd.OBF.TransportStopExit} */ public static final class TransportStopExit extends com.google.protobuf.GeneratedMessage implements TransportStopExitOrBuilder { // Use TransportStopExit.newBuilder() to construct. private TransportStopExit(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransportStopExit(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransportStopExit defaultInstance; public static TransportStopExit getDefaultInstance() { return defaultInstance; } public TransportStopExit getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransportStopExit( 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; dx_ = input.readSInt32(); break; } case 16: { bitField0_ |= 0x00000002; dy_ = input.readSInt32(); break; } case 24: { bitField0_ |= 0x00000004; ref_ = 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_TransportStopExit_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopExit_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportStopExit.class, net.osmand.binary.OsmandOdb.TransportStopExit.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransportStopExit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransportStopExit(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required sint32 dx = 1; public static final int DX_FIELD_NUMBER = 1; private int dx_; /** * required sint32 dx = 1; * *
     * delta x
     * 
*/ public boolean hasDx() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint32 dx = 1; * *
     * delta x
     * 
*/ public int getDx() { return dx_; } // required sint32 dy = 2; public static final int DY_FIELD_NUMBER = 2; private int dy_; /** * required sint32 dy = 2; * *
     * delta y
     * 
*/ public boolean hasDy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 dy = 2; * *
     * delta y
     * 
*/ public int getDy() { return dy_; } // required uint32 ref = 3; public static final int REF_FIELD_NUMBER = 3; private int ref_; /** * required uint32 ref = 3; */ public boolean hasRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required uint32 ref = 3; */ public int getRef() { return ref_; } private void initFields() { dx_ = 0; dy_ = 0; ref_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasDx()) { memoizedIsInitialized = 0; return false; } if (!hasDy()) { memoizedIsInitialized = 0; return false; } if (!hasRef()) { 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, dx_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(2, dy_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, ref_); } 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, dx_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, dy_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, ref_); } 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.TransportStopExit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportStopExit 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.TransportStopExit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportStopExit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.TransportStopExit parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportStopExit 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.TransportStopExit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.TransportStopExit 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.TransportStopExit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportStopExit 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.TransportStopExit 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.TransportStopExit} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.TransportStopExitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopExit_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopExit_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportStopExit.class, net.osmand.binary.OsmandOdb.TransportStopExit.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.TransportStopExit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); dx_ = 0; bitField0_ = (bitField0_ & ~0x00000001); dy_ = 0; bitField0_ = (bitField0_ & ~0x00000002); ref_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopExit_descriptor; } public net.osmand.binary.OsmandOdb.TransportStopExit getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.TransportStopExit.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.TransportStopExit build() { net.osmand.binary.OsmandOdb.TransportStopExit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.TransportStopExit buildPartial() { net.osmand.binary.OsmandOdb.TransportStopExit result = new net.osmand.binary.OsmandOdb.TransportStopExit(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.dx_ = dx_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.dy_ = dy_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.ref_ = ref_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.TransportStopExit) { return mergeFrom((net.osmand.binary.OsmandOdb.TransportStopExit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.TransportStopExit other) { if (other == net.osmand.binary.OsmandOdb.TransportStopExit.getDefaultInstance()) return this; if (other.hasDx()) { setDx(other.getDx()); } if (other.hasDy()) { setDy(other.getDy()); } if (other.hasRef()) { setRef(other.getRef()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasDx()) { return false; } if (!hasDy()) { return false; } if (!hasRef()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.TransportStopExit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.TransportStopExit) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required sint32 dx = 1; private int dx_ ; /** * required sint32 dx = 1; * *
       * delta x
       * 
*/ public boolean hasDx() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint32 dx = 1; * *
       * delta x
       * 
*/ public int getDx() { return dx_; } /** * required sint32 dx = 1; * *
       * delta x
       * 
*/ public Builder setDx(int value) { bitField0_ |= 0x00000001; dx_ = value; onChanged(); return this; } /** * required sint32 dx = 1; * *
       * delta x
       * 
*/ public Builder clearDx() { bitField0_ = (bitField0_ & ~0x00000001); dx_ = 0; onChanged(); return this; } // required sint32 dy = 2; private int dy_ ; /** * required sint32 dy = 2; * *
       * delta y
       * 
*/ public boolean hasDy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 dy = 2; * *
       * delta y
       * 
*/ public int getDy() { return dy_; } /** * required sint32 dy = 2; * *
       * delta y
       * 
*/ public Builder setDy(int value) { bitField0_ |= 0x00000002; dy_ = value; onChanged(); return this; } /** * required sint32 dy = 2; * *
       * delta y
       * 
*/ public Builder clearDy() { bitField0_ = (bitField0_ & ~0x00000002); dy_ = 0; onChanged(); return this; } // required uint32 ref = 3; private int ref_ ; /** * required uint32 ref = 3; */ public boolean hasRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required uint32 ref = 3; */ public int getRef() { return ref_; } /** * required uint32 ref = 3; */ public Builder setRef(int value) { bitField0_ |= 0x00000004; ref_ = value; onChanged(); return this; } /** * required uint32 ref = 3; */ public Builder clearRef() { bitField0_ = (bitField0_ & ~0x00000004); ref_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.TransportStopExit) } static { defaultInstance = new TransportStopExit(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportStopExit) } public interface TransportStopsTreeOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint32 left = 1; /** * required sint32 left = 1; * *
     * delta encoded (24 zoom)
     * 
*/ boolean hasLeft(); /** * required sint32 left = 1; * *
     * delta encoded (24 zoom)
     * 
*/ int getLeft(); // required sint32 right = 2; /** * required sint32 right = 2; * *
     * delta encoded (24 zoom)
     * 
*/ boolean hasRight(); /** * required sint32 right = 2; * *
     * delta encoded (24 zoom)
     * 
*/ int getRight(); // required sint32 top = 3; /** * required sint32 top = 3; * *
     * delta encoded (24 zoom)
     * 
*/ boolean hasTop(); /** * required sint32 top = 3; * *
     * delta encoded (24 zoom)
     * 
*/ int getTop(); // required sint32 bottom = 4; /** * required sint32 bottom = 4; * *
     * delta encoded (24 zoom)
     * 
*/ boolean hasBottom(); /** * required sint32 bottom = 4; * *
     * delta encoded (24 zoom)
     * 
*/ int getBottom(); // repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getSubtreesList(); /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.TransportStopsTree getSubtrees(int index); /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
     * encoded as fixed32 length delimited
     * 
*/ int getSubtreesCount(); /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getSubtreesOrBuilderList(); /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getSubtreesOrBuilder( int index); // repeated .OsmAnd.OBF.TransportStop leafs = 8; /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ java.util.List getLeafsList(); /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ net.osmand.binary.OsmandOdb.TransportStop getLeafs(int index); /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ int getLeafsCount(); /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ java.util.List getLeafsOrBuilderList(); /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ net.osmand.binary.OsmandOdb.TransportStopOrBuilder getLeafsOrBuilder( int index); // optional uint64 baseId = 16; /** * optional uint64 baseId = 16; * *
     * written as last
     * 
*/ boolean hasBaseId(); /** * optional uint64 baseId = 16; * *
     * written as last
     * 
*/ long getBaseId(); } /** * Protobuf type {@code OsmAnd.OBF.TransportStopsTree} */ public static final class TransportStopsTree extends com.google.protobuf.GeneratedMessage implements TransportStopsTreeOrBuilder { // Use TransportStopsTree.newBuilder() to construct. private TransportStopsTree(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransportStopsTree(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransportStopsTree defaultInstance; public static TransportStopsTree getDefaultInstance() { return defaultInstance; } public TransportStopsTree getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransportStopsTree( 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 58: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { subtrees_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } subtrees_.add(input.readMessage(net.osmand.binary.OsmandOdb.TransportStopsTree.PARSER, extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { leafs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } leafs_.add(input.readMessage(net.osmand.binary.OsmandOdb.TransportStop.PARSER, extensionRegistry)); break; } case 128: { bitField0_ |= 0x00000010; baseId_ = input.readUInt64(); 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_ & 0x00000010) == 0x00000010)) { subtrees_ = java.util.Collections.unmodifiableList(subtrees_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { leafs_ = java.util.Collections.unmodifiableList(leafs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopsTree_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopsTree_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportStopsTree.class, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransportStopsTree parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransportStopsTree(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required sint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; private int left_; /** * required sint32 left = 1; * *
     * delta encoded (24 zoom)
     * 
*/ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint32 left = 1; * *
     * delta encoded (24 zoom)
     * 
*/ 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 (24 zoom)
     * 
*/ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 right = 2; * *
     * delta encoded (24 zoom)
     * 
*/ 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 (24 zoom)
     * 
*/ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint32 top = 3; * *
     * delta encoded (24 zoom)
     * 
*/ 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 (24 zoom)
     * 
*/ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required sint32 bottom = 4; * *
     * delta encoded (24 zoom)
     * 
*/ public int getBottom() { return bottom_; } // repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; public static final int SUBTREES_FIELD_NUMBER = 7; private java.util.List subtrees_; /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getSubtreesList() { return subtrees_; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getSubtreesOrBuilderList() { return subtrees_; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
     * encoded as fixed32 length delimited
     * 
*/ public int getSubtreesCount() { return subtrees_.size(); } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTree getSubtrees(int index) { return subtrees_.get(index); } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getSubtreesOrBuilder( int index) { return subtrees_.get(index); } // repeated .OsmAnd.OBF.TransportStop leafs = 8; public static final int LEAFS_FIELD_NUMBER = 8; private java.util.List leafs_; /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public java.util.List getLeafsList() { return leafs_; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public java.util.List getLeafsOrBuilderList() { return leafs_; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public int getLeafsCount() { return leafs_.size(); } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public net.osmand.binary.OsmandOdb.TransportStop getLeafs(int index) { return leafs_.get(index); } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public net.osmand.binary.OsmandOdb.TransportStopOrBuilder getLeafsOrBuilder( int index) { return leafs_.get(index); } // optional uint64 baseId = 16; public static final int BASEID_FIELD_NUMBER = 16; private long baseId_; /** * optional uint64 baseId = 16; * *
     * written as last
     * 
*/ public boolean hasBaseId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint64 baseId = 16; * *
     * written as last
     * 
*/ public long getBaseId() { return baseId_; } private void initFields() { left_ = 0; right_ = 0; top_ = 0; bottom_ = 0; subtrees_ = java.util.Collections.emptyList(); leafs_ = java.util.Collections.emptyList(); baseId_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { 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 < getSubtreesCount(); i++) { if (!getSubtrees(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getLeafsCount(); i++) { if (!getLeafs(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((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_); } for (int i = 0; i < subtrees_.size(); i++) { output.writeMessage(7, subtrees_.get(i)); } for (int i = 0; i < leafs_.size(); i++) { output.writeMessage(8, leafs_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt64(16, baseId_); } 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_); } for (int i = 0; i < subtrees_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, subtrees_.get(i)); } for (int i = 0; i < leafs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, leafs_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(16, baseId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.TransportStopsTree parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportStopsTree 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.TransportStopsTree parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.TransportStopsTree parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.TransportStopsTree parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportStopsTree 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.TransportStopsTree parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.TransportStopsTree 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.TransportStopsTree parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.TransportStopsTree 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.TransportStopsTree 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.TransportStopsTree} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopsTree_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopsTree_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.TransportStopsTree.class, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.TransportStopsTree.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSubtreesFieldBuilder(); getLeafsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); left_ = 0; bitField0_ = (bitField0_ & ~0x00000001); right_ = 0; bitField0_ = (bitField0_ & ~0x00000002); top_ = 0; bitField0_ = (bitField0_ & ~0x00000004); bottom_ = 0; bitField0_ = (bitField0_ & ~0x00000008); if (subtreesBuilder_ == null) { subtrees_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { subtreesBuilder_.clear(); } if (leafsBuilder_ == null) { leafs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { leafsBuilder_.clear(); } baseId_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_TransportStopsTree_descriptor; } public net.osmand.binary.OsmandOdb.TransportStopsTree getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.TransportStopsTree build() { net.osmand.binary.OsmandOdb.TransportStopsTree result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.TransportStopsTree buildPartial() { net.osmand.binary.OsmandOdb.TransportStopsTree result = new net.osmand.binary.OsmandOdb.TransportStopsTree(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.left_ = left_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.right_ = right_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.top_ = top_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.bottom_ = bottom_; if (subtreesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { subtrees_ = java.util.Collections.unmodifiableList(subtrees_); bitField0_ = (bitField0_ & ~0x00000010); } result.subtrees_ = subtrees_; } else { result.subtrees_ = subtreesBuilder_.build(); } if (leafsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { leafs_ = java.util.Collections.unmodifiableList(leafs_); bitField0_ = (bitField0_ & ~0x00000020); } result.leafs_ = leafs_; } else { result.leafs_ = leafsBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } result.baseId_ = baseId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.TransportStopsTree) { return mergeFrom((net.osmand.binary.OsmandOdb.TransportStopsTree)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.TransportStopsTree other) { if (other == net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance()) return this; if (other.hasLeft()) { setLeft(other.getLeft()); } if (other.hasRight()) { setRight(other.getRight()); } if (other.hasTop()) { setTop(other.getTop()); } if (other.hasBottom()) { setBottom(other.getBottom()); } if (subtreesBuilder_ == null) { if (!other.subtrees_.isEmpty()) { if (subtrees_.isEmpty()) { subtrees_ = other.subtrees_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSubtreesIsMutable(); subtrees_.addAll(other.subtrees_); } onChanged(); } } else { if (!other.subtrees_.isEmpty()) { if (subtreesBuilder_.isEmpty()) { subtreesBuilder_.dispose(); subtreesBuilder_ = null; subtrees_ = other.subtrees_; bitField0_ = (bitField0_ & ~0x00000010); subtreesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSubtreesFieldBuilder() : null; } else { subtreesBuilder_.addAllMessages(other.subtrees_); } } } if (leafsBuilder_ == null) { if (!other.leafs_.isEmpty()) { if (leafs_.isEmpty()) { leafs_ = other.leafs_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureLeafsIsMutable(); leafs_.addAll(other.leafs_); } onChanged(); } } else { if (!other.leafs_.isEmpty()) { if (leafsBuilder_.isEmpty()) { leafsBuilder_.dispose(); leafsBuilder_ = null; leafs_ = other.leafs_; bitField0_ = (bitField0_ & ~0x00000020); leafsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLeafsFieldBuilder() : null; } else { leafsBuilder_.addAllMessages(other.leafs_); } } } if (other.hasBaseId()) { setBaseId(other.getBaseId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasLeft()) { return false; } if (!hasRight()) { return false; } if (!hasTop()) { return false; } if (!hasBottom()) { return false; } for (int i = 0; i < getSubtreesCount(); i++) { if (!getSubtrees(i).isInitialized()) { return false; } } for (int i = 0; i < getLeafsCount(); i++) { if (!getLeafs(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.TransportStopsTree parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.TransportStopsTree) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required sint32 left = 1; private int left_ ; /** * required sint32 left = 1; * *
       * delta encoded (24 zoom)
       * 
*/ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint32 left = 1; * *
       * delta encoded (24 zoom)
       * 
*/ public int getLeft() { return left_; } /** * required sint32 left = 1; * *
       * delta encoded (24 zoom)
       * 
*/ public Builder setLeft(int value) { bitField0_ |= 0x00000001; left_ = value; onChanged(); return this; } /** * required sint32 left = 1; * *
       * delta encoded (24 zoom)
       * 
*/ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000001); left_ = 0; onChanged(); return this; } // required sint32 right = 2; private int right_ ; /** * required sint32 right = 2; * *
       * delta encoded (24 zoom)
       * 
*/ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 right = 2; * *
       * delta encoded (24 zoom)
       * 
*/ public int getRight() { return right_; } /** * required sint32 right = 2; * *
       * delta encoded (24 zoom)
       * 
*/ public Builder setRight(int value) { bitField0_ |= 0x00000002; right_ = value; onChanged(); return this; } /** * required sint32 right = 2; * *
       * delta encoded (24 zoom)
       * 
*/ public Builder clearRight() { bitField0_ = (bitField0_ & ~0x00000002); right_ = 0; onChanged(); return this; } // required sint32 top = 3; private int top_ ; /** * required sint32 top = 3; * *
       * delta encoded (24 zoom)
       * 
*/ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint32 top = 3; * *
       * delta encoded (24 zoom)
       * 
*/ public int getTop() { return top_; } /** * required sint32 top = 3; * *
       * delta encoded (24 zoom)
       * 
*/ public Builder setTop(int value) { bitField0_ |= 0x00000004; top_ = value; onChanged(); return this; } /** * required sint32 top = 3; * *
       * delta encoded (24 zoom)
       * 
*/ public Builder clearTop() { bitField0_ = (bitField0_ & ~0x00000004); top_ = 0; onChanged(); return this; } // required sint32 bottom = 4; private int bottom_ ; /** * required sint32 bottom = 4; * *
       * delta encoded (24 zoom)
       * 
*/ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required sint32 bottom = 4; * *
       * delta encoded (24 zoom)
       * 
*/ public int getBottom() { return bottom_; } /** * required sint32 bottom = 4; * *
       * delta encoded (24 zoom)
       * 
*/ public Builder setBottom(int value) { bitField0_ |= 0x00000008; bottom_ = value; onChanged(); return this; } /** * required sint32 bottom = 4; * *
       * delta encoded (24 zoom)
       * 
*/ public Builder clearBottom() { bitField0_ = (bitField0_ & ~0x00000008); bottom_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; private java.util.List subtrees_ = java.util.Collections.emptyList(); private void ensureSubtreesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { subtrees_ = new java.util.ArrayList(subtrees_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> subtreesBuilder_; /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getSubtreesList() { if (subtreesBuilder_ == null) { return java.util.Collections.unmodifiableList(subtrees_); } else { return subtreesBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public int getSubtreesCount() { if (subtreesBuilder_ == null) { return subtrees_.size(); } else { return subtreesBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTree getSubtrees(int index) { if (subtreesBuilder_ == null) { return subtrees_.get(index); } else { return subtreesBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setSubtrees( int index, net.osmand.binary.OsmandOdb.TransportStopsTree value) { if (subtreesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubtreesIsMutable(); subtrees_.set(index, value); onChanged(); } else { subtreesBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setSubtrees( int index, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { if (subtreesBuilder_ == null) { ensureSubtreesIsMutable(); subtrees_.set(index, builderForValue.build()); onChanged(); } else { subtreesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addSubtrees(net.osmand.binary.OsmandOdb.TransportStopsTree value) { if (subtreesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubtreesIsMutable(); subtrees_.add(value); onChanged(); } else { subtreesBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addSubtrees( int index, net.osmand.binary.OsmandOdb.TransportStopsTree value) { if (subtreesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubtreesIsMutable(); subtrees_.add(index, value); onChanged(); } else { subtreesBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addSubtrees( net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { if (subtreesBuilder_ == null) { ensureSubtreesIsMutable(); subtrees_.add(builderForValue.build()); onChanged(); } else { subtreesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addSubtrees( int index, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { if (subtreesBuilder_ == null) { ensureSubtreesIsMutable(); subtrees_.add(index, builderForValue.build()); onChanged(); } else { subtreesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addAllSubtrees( java.lang.Iterable values) { if (subtreesBuilder_ == null) { ensureSubtreesIsMutable(); super.addAll(values, subtrees_); onChanged(); } else { subtreesBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder clearSubtrees() { if (subtreesBuilder_ == null) { subtrees_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { subtreesBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder removeSubtrees(int index) { if (subtreesBuilder_ == null) { ensureSubtreesIsMutable(); subtrees_.remove(index); onChanged(); } else { subtreesBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder getSubtreesBuilder( int index) { return getSubtreesFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getSubtreesOrBuilder( int index) { if (subtreesBuilder_ == null) { return subtrees_.get(index); } else { return subtreesBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getSubtreesOrBuilderList() { if (subtreesBuilder_ != null) { return subtreesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subtrees_); } } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder addSubtreesBuilder() { return getSubtreesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder addSubtreesBuilder( int index) { return getSubtreesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getSubtreesBuilderList() { return getSubtreesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> getSubtreesFieldBuilder() { if (subtreesBuilder_ == null) { subtreesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder>( subtrees_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); subtrees_ = null; } return subtreesBuilder_; } // repeated .OsmAnd.OBF.TransportStop leafs = 8; private java.util.List leafs_ = java.util.Collections.emptyList(); private void ensureLeafsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { leafs_ = new java.util.ArrayList(leafs_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportStop, net.osmand.binary.OsmandOdb.TransportStop.Builder, net.osmand.binary.OsmandOdb.TransportStopOrBuilder> leafsBuilder_; /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public java.util.List getLeafsList() { if (leafsBuilder_ == null) { return java.util.Collections.unmodifiableList(leafs_); } else { return leafsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public int getLeafsCount() { if (leafsBuilder_ == null) { return leafs_.size(); } else { return leafsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public net.osmand.binary.OsmandOdb.TransportStop getLeafs(int index) { if (leafsBuilder_ == null) { return leafs_.get(index); } else { return leafsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public Builder setLeafs( int index, net.osmand.binary.OsmandOdb.TransportStop value) { if (leafsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLeafsIsMutable(); leafs_.set(index, value); onChanged(); } else { leafsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public Builder setLeafs( int index, net.osmand.binary.OsmandOdb.TransportStop.Builder builderForValue) { if (leafsBuilder_ == null) { ensureLeafsIsMutable(); leafs_.set(index, builderForValue.build()); onChanged(); } else { leafsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public Builder addLeafs(net.osmand.binary.OsmandOdb.TransportStop value) { if (leafsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLeafsIsMutable(); leafs_.add(value); onChanged(); } else { leafsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public Builder addLeafs( int index, net.osmand.binary.OsmandOdb.TransportStop value) { if (leafsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLeafsIsMutable(); leafs_.add(index, value); onChanged(); } else { leafsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public Builder addLeafs( net.osmand.binary.OsmandOdb.TransportStop.Builder builderForValue) { if (leafsBuilder_ == null) { ensureLeafsIsMutable(); leafs_.add(builderForValue.build()); onChanged(); } else { leafsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public Builder addLeafs( int index, net.osmand.binary.OsmandOdb.TransportStop.Builder builderForValue) { if (leafsBuilder_ == null) { ensureLeafsIsMutable(); leafs_.add(index, builderForValue.build()); onChanged(); } else { leafsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public Builder addAllLeafs( java.lang.Iterable values) { if (leafsBuilder_ == null) { ensureLeafsIsMutable(); super.addAll(values, leafs_); onChanged(); } else { leafsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public Builder clearLeafs() { if (leafsBuilder_ == null) { leafs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { leafsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public Builder removeLeafs(int index) { if (leafsBuilder_ == null) { ensureLeafsIsMutable(); leafs_.remove(index); onChanged(); } else { leafsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public net.osmand.binary.OsmandOdb.TransportStop.Builder getLeafsBuilder( int index) { return getLeafsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public net.osmand.binary.OsmandOdb.TransportStopOrBuilder getLeafsOrBuilder( int index) { if (leafsBuilder_ == null) { return leafs_.get(index); } else { return leafsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public java.util.List getLeafsOrBuilderList() { if (leafsBuilder_ != null) { return leafsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(leafs_); } } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public net.osmand.binary.OsmandOdb.TransportStop.Builder addLeafsBuilder() { return getLeafsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportStop.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public net.osmand.binary.OsmandOdb.TransportStop.Builder addLeafsBuilder( int index) { return getLeafsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportStop.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.TransportStop leafs = 8; */ public java.util.List getLeafsBuilderList() { return getLeafsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportStop, net.osmand.binary.OsmandOdb.TransportStop.Builder, net.osmand.binary.OsmandOdb.TransportStopOrBuilder> getLeafsFieldBuilder() { if (leafsBuilder_ == null) { leafsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportStop, net.osmand.binary.OsmandOdb.TransportStop.Builder, net.osmand.binary.OsmandOdb.TransportStopOrBuilder>( leafs_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); leafs_ = null; } return leafsBuilder_; } // optional uint64 baseId = 16; private long baseId_ ; /** * optional uint64 baseId = 16; * *
       * written as last
       * 
*/ public boolean hasBaseId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint64 baseId = 16; * *
       * written as last
       * 
*/ public long getBaseId() { return baseId_; } /** * optional uint64 baseId = 16; * *
       * written as last
       * 
*/ public Builder setBaseId(long value) { bitField0_ |= 0x00000040; baseId_ = value; onChanged(); return this; } /** * optional uint64 baseId = 16; * *
       * written as last
       * 
*/ public Builder clearBaseId() { bitField0_ = (bitField0_ & ~0x00000040); baseId_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.TransportStopsTree) } static { defaultInstance = new TransportStopsTree(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.TransportStopsTree) } public interface OsmAndTransportIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string name = 1; /** * optional string name = 1; */ boolean hasName(); /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); // optional .OsmAnd.OBF.TransportRoutes routes = 3; /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ boolean hasRoutes(); /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.TransportRoutes getRoutes(); /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder getRoutesOrBuilder(); // optional .OsmAnd.OBF.TransportStopsTree stops = 6; /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ boolean hasStops(); /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.TransportStopsTree getStops(); /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getStopsOrBuilder(); // required .OsmAnd.OBF.StringTable stringTable = 9; /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ boolean hasStringTable(); /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ net.osmand.binary.OsmandOdb.StringTable getStringTable(); /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder(); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndTransportIndex} */ public static final class OsmAndTransportIndex extends com.google.protobuf.GeneratedMessage implements OsmAndTransportIndexOrBuilder { // Use OsmAndTransportIndex.newBuilder() to construct. private OsmAndTransportIndex(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndTransportIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndTransportIndex defaultInstance; public static OsmAndTransportIndex getDefaultInstance() { return defaultInstance; } public OsmAndTransportIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndTransportIndex( 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 26: { net.osmand.binary.OsmandOdb.TransportRoutes.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = routes_.toBuilder(); } routes_ = input.readMessage(net.osmand.binary.OsmandOdb.TransportRoutes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(routes_); routes_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 50: { net.osmand.binary.OsmandOdb.TransportStopsTree.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = stops_.toBuilder(); } stops_ = input.readMessage(net.osmand.binary.OsmandOdb.TransportStopsTree.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stops_); stops_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 74: { net.osmand.binary.OsmandOdb.StringTable.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = stringTable_.toBuilder(); } stringTable_ = input.readMessage(net.osmand.binary.OsmandOdb.StringTable.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stringTable_); stringTable_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; 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_OsmAndTransportIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTransportIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndTransportIndex.class, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndTransportIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndTransportIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * 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 .OsmAnd.OBF.TransportRoutes routes = 3; public static final int ROUTES_FIELD_NUMBER = 3; private net.osmand.binary.OsmandOdb.TransportRoutes routes_; /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ public boolean hasRoutes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.TransportRoutes getRoutes() { return routes_; } /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder getRoutesOrBuilder() { return routes_; } // optional .OsmAnd.OBF.TransportStopsTree stops = 6; public static final int STOPS_FIELD_NUMBER = 6; private net.osmand.binary.OsmandOdb.TransportStopsTree stops_; /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ public boolean hasStops() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTree getStops() { return stops_; } /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getStopsOrBuilder() { return stops_; } // required .OsmAnd.OBF.StringTable stringTable = 9; public static final int STRINGTABLE_FIELD_NUMBER = 9; private net.osmand.binary.OsmandOdb.StringTable stringTable_; /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ public boolean hasStringTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ public net.osmand.binary.OsmandOdb.StringTable getStringTable() { return stringTable_; } /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { return stringTable_; } private void initFields() { name_ = ""; routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasStringTable()) { memoizedIsInitialized = 0; return false; } if (hasRoutes()) { if (!getRoutes().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasStops()) { if (!getStops().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, routes_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(6, stops_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(9, 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 .computeBytesSize(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, routes_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, stops_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, stringTable_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndTransportIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndTransportIndex 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.OsmAndTransportIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndTransportIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndTransportIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndTransportIndex 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.OsmAndTransportIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndTransportIndex 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.OsmAndTransportIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndTransportIndex 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.OsmAndTransportIndex 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.OsmAndTransportIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTransportIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTransportIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndTransportIndex.class, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndTransportIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRoutesFieldBuilder(); getStopsFieldBuilder(); getStringTableFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (routesBuilder_ == null) { routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); } else { routesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (stopsBuilder_ == null) { stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); } else { stopsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (stringTableBuilder_ == null) { stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } else { stringTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndTransportIndex_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndTransportIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndTransportIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndTransportIndex build() { net.osmand.binary.OsmandOdb.OsmAndTransportIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndTransportIndex buildPartial() { net.osmand.binary.OsmandOdb.OsmAndTransportIndex result = new net.osmand.binary.OsmandOdb.OsmAndTransportIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (routesBuilder_ == null) { result.routes_ = routes_; } else { result.routes_ = routesBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (stopsBuilder_ == null) { result.stops_ = stops_; } else { result.stops_ = stopsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (stringTableBuilder_ == null) { result.stringTable_ = stringTable_; } else { result.stringTable_ = stringTableBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndTransportIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndTransportIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndTransportIndex other) { if (other == net.osmand.binary.OsmandOdb.OsmAndTransportIndex.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasRoutes()) { mergeRoutes(other.getRoutes()); } if (other.hasStops()) { mergeStops(other.getStops()); } if (other.hasStringTable()) { mergeStringTable(other.getStringTable()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasStringTable()) { return false; } if (hasRoutes()) { if (!getRoutes().isInitialized()) { return false; } } if (hasStops()) { if (!getStops().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndTransportIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndTransportIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string name = 1; private java.lang.Object name_ = ""; /** * 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 .OsmAnd.OBF.TransportRoutes routes = 3; private net.osmand.binary.OsmandOdb.TransportRoutes routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.TransportRoutes, net.osmand.binary.OsmandOdb.TransportRoutes.Builder, net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder> routesBuilder_; /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public boolean hasRoutes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRoutes getRoutes() { if (routesBuilder_ == null) { return routes_; } else { return routesBuilder_.getMessage(); } } /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setRoutes(net.osmand.binary.OsmandOdb.TransportRoutes value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } routes_ = value; onChanged(); } else { routesBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setRoutes( net.osmand.binary.OsmandOdb.TransportRoutes.Builder builderForValue) { if (routesBuilder_ == null) { routes_ = builderForValue.build(); onChanged(); } else { routesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder mergeRoutes(net.osmand.binary.OsmandOdb.TransportRoutes value) { if (routesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && routes_ != net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance()) { routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.newBuilder(routes_).mergeFrom(value).buildPartial(); } else { routes_ = value; } onChanged(); } else { routesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder clearRoutes() { if (routesBuilder_ == null) { routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); onChanged(); } else { routesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRoutes.Builder getRoutesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRoutesFieldBuilder().getBuilder(); } /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder getRoutesOrBuilder() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilder(); } else { return routes_; } } /** * optional .OsmAnd.OBF.TransportRoutes routes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.TransportRoutes, net.osmand.binary.OsmandOdb.TransportRoutes.Builder, net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder> getRoutesFieldBuilder() { if (routesBuilder_ == null) { routesBuilder_ = new com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.TransportRoutes, net.osmand.binary.OsmandOdb.TransportRoutes.Builder, net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder>( routes_, getParentForChildren(), isClean()); routes_ = null; } return routesBuilder_; } // optional .OsmAnd.OBF.TransportStopsTree stops = 6; private net.osmand.binary.OsmandOdb.TransportStopsTree stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> stopsBuilder_; /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public boolean hasStops() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTree getStops() { if (stopsBuilder_ == null) { return stops_; } else { return stopsBuilder_.getMessage(); } } /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setStops(net.osmand.binary.OsmandOdb.TransportStopsTree value) { if (stopsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stops_ = value; onChanged(); } else { stopsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setStops( net.osmand.binary.OsmandOdb.TransportStopsTree.Builder builderForValue) { if (stopsBuilder_ == null) { stops_ = builderForValue.build(); onChanged(); } else { stopsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder mergeStops(net.osmand.binary.OsmandOdb.TransportStopsTree value) { if (stopsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && stops_ != net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance()) { stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.newBuilder(stops_).mergeFrom(value).buildPartial(); } else { stops_ = value; } onChanged(); } else { stopsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder clearStops() { if (stopsBuilder_ == null) { stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); onChanged(); } else { stopsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder getStopsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStopsFieldBuilder().getBuilder(); } /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getStopsOrBuilder() { if (stopsBuilder_ != null) { return stopsBuilder_.getMessageOrBuilder(); } else { return stops_; } } /** * optional .OsmAnd.OBF.TransportStopsTree stops = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> getStopsFieldBuilder() { if (stopsBuilder_ == null) { stopsBuilder_ = new com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.TransportStopsTree, net.osmand.binary.OsmandOdb.TransportStopsTree.Builder, net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder>( stops_, getParentForChildren(), isClean()); stops_ = null; } return stopsBuilder_; } // required .OsmAnd.OBF.StringTable stringTable = 9; private net.osmand.binary.OsmandOdb.StringTable stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> stringTableBuilder_; /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ public boolean hasStringTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ public net.osmand.binary.OsmandOdb.StringTable getStringTable() { if (stringTableBuilder_ == null) { return stringTable_; } else { return stringTableBuilder_.getMessage(); } } /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ 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_ |= 0x00000008; return this; } /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ public Builder setStringTable( net.osmand.binary.OsmandOdb.StringTable.Builder builderForValue) { if (stringTableBuilder_ == null) { stringTable_ = builderForValue.build(); onChanged(); } else { stringTableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ public Builder mergeStringTable(net.osmand.binary.OsmandOdb.StringTable value) { if (stringTableBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && stringTable_ != net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) { stringTable_ = net.osmand.binary.OsmandOdb.StringTable.newBuilder(stringTable_).mergeFrom(value).buildPartial(); } else { stringTable_ = value; } onChanged(); } else { stringTableBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ public Builder clearStringTable() { if (stringTableBuilder_ == null) { stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); onChanged(); } else { stringTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ public net.osmand.binary.OsmandOdb.StringTable.Builder getStringTableBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStringTableFieldBuilder().getBuilder(); } /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { if (stringTableBuilder_ != null) { return stringTableBuilder_.getMessageOrBuilder(); } else { return stringTable_; } } /** * required .OsmAnd.OBF.StringTable stringTable = 9; */ private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> getStringTableFieldBuilder() { if (stringTableBuilder_ == null) { stringTableBuilder_ = new com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder>( stringTable_, getParentForChildren(), isClean()); stringTable_ = null; } return stringTableBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndTransportIndex) } static { defaultInstance = new OsmAndTransportIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndTransportIndex) } public interface OsmAndPoiIndexOrBuilder 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(); // required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ boolean hasBoundaries(); /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries(); /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder(); // repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ java.util.List getCategoriesTableList(); /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ net.osmand.binary.OsmandOdb.OsmAndCategoryTable getCategoriesTable(int index); /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ int getCategoriesTableCount(); /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ java.util.List getCategoriesTableOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder getCategoriesTableOrBuilder( int index); // optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ boolean hasNameIndex(); /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getNameIndex(); /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder getNameIndexOrBuilder(); // optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ boolean hasSubtypesTable(); /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getSubtypesTable(); /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder getSubtypesTableOrBuilder(); // repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getBoxesList(); /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiBox getBoxes(int index); /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ int getBoxesCount(); /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getBoxesOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getBoxesOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getPoiDataList(); /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiBoxData getPoiData(int index); /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ int getPoiDataCount(); /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getPoiDataOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder getPoiDataOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndPoiIndex} */ public static final class OsmAndPoiIndex extends com.google.protobuf.GeneratedMessage implements OsmAndPoiIndexOrBuilder { // Use OsmAndPoiIndex.newBuilder() to construct. private OsmAndPoiIndex(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndPoiIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndPoiIndex defaultInstance; public static OsmAndPoiIndex getDefaultInstance() { return defaultInstance; } public OsmAndPoiIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndPoiIndex( 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: { net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = boundaries_.toBuilder(); } boundaries_ = input.readMessage(net.osmand.binary.OsmandOdb.OsmAndTileBox.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(boundaries_); boundaries_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { categoriesTable_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } categoriesTable_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndCategoryTable.PARSER, extensionRegistry)); break; } case 34: { net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = nameIndex_.toBuilder(); } nameIndex_ = input.readMessage(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nameIndex_); nameIndex_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 42: { net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = subtypesTable_.toBuilder(); } subtypesTable_ = input.readMessage(net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(subtypesTable_); subtypesTable_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { boxes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } boxes_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndPoiBox.PARSER, extensionRegistry)); break; } case 74: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { poiData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } poiData_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.PARSER, extensionRegistry)); 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_ & 0x00000004) == 0x00000004)) { categoriesTable_ = java.util.Collections.unmodifiableList(categoriesTable_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { boxes_ = java.util.Collections.unmodifiableList(boxes_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { poiData_ = java.util.Collections.unmodifiableList(poiData_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiIndex.class, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndPoiIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndPoiIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * 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) { 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; } } // required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; public static final int BOUNDARIES_FIELD_NUMBER = 2; private net.osmand.binary.OsmandOdb.OsmAndTileBox boundaries_; /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ public boolean hasBoundaries() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { return boundaries_; } /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ public net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder() { return boundaries_; } // repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; public static final int CATEGORIESTABLE_FIELD_NUMBER = 3; private java.util.List categoriesTable_; /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public java.util.List getCategoriesTableList() { return categoriesTable_; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public java.util.List getCategoriesTableOrBuilderList() { return categoriesTable_; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public int getCategoriesTableCount() { return categoriesTable_.size(); } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTable getCategoriesTable(int index) { return categoriesTable_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder getCategoriesTableOrBuilder( int index) { return categoriesTable_.get(index); } // optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; public static final int NAMEINDEX_FIELD_NUMBER = 4; private net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex nameIndex_; /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ public boolean hasNameIndex() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getNameIndex() { return nameIndex_; } /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder getNameIndexOrBuilder() { return nameIndex_; } // optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; public static final int SUBTYPESTABLE_FIELD_NUMBER = 5; private net.osmand.binary.OsmandOdb.OsmAndSubtypesTable subtypesTable_; /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public boolean hasSubtypesTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getSubtypesTable() { return subtypesTable_; } /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder getSubtypesTableOrBuilder() { return subtypesTable_; } // repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; public static final int BOXES_FIELD_NUMBER = 6; private java.util.List boxes_; /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getBoxesList() { return boxes_; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getBoxesOrBuilderList() { return boxes_; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ public int getBoxesCount() { return boxes_.size(); } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBox getBoxes(int index) { return boxes_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getBoxesOrBuilder( int index) { return boxes_.get(index); } // repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; public static final int POIDATA_FIELD_NUMBER = 9; private java.util.List poiData_; /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getPoiDataList() { return poiData_; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getPoiDataOrBuilderList() { return poiData_; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ public int getPoiDataCount() { return poiData_.size(); } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData getPoiData(int index) { return poiData_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder getPoiDataOrBuilder( int index) { return poiData_.get(index); } private void initFields() { name_ = ""; boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); categoriesTable_ = java.util.Collections.emptyList(); nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); boxes_ = java.util.Collections.emptyList(); poiData_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasBoundaries()) { memoizedIsInitialized = 0; return false; } if (!getBoundaries().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getCategoriesTableCount(); i++) { if (!getCategoriesTable(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasNameIndex()) { if (!getNameIndex().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasSubtypesTable()) { if (!getSubtypesTable().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getBoxesCount(); i++) { if (!getBoxes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getPoiDataCount(); i++) { if (!getPoiData(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, boundaries_); } for (int i = 0; i < categoriesTable_.size(); i++) { output.writeMessage(3, categoriesTable_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, nameIndex_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, subtypesTable_); } for (int i = 0; i < boxes_.size(); i++) { output.writeMessage(6, boxes_.get(i)); } for (int i = 0; i < poiData_.size(); i++) { output.writeMessage(9, poiData_.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 .computeMessageSize(2, boundaries_); } for (int i = 0; i < categoriesTable_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, categoriesTable_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, nameIndex_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, subtypesTable_); } for (int i = 0; i < boxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, boxes_.get(i)); } for (int i = 0; i < poiData_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, poiData_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndPoiIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiIndex 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.OsmAndPoiIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndPoiIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiIndex 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.OsmAndPoiIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiIndex 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.OsmAndPoiIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiIndex 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.OsmAndPoiIndex 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.OsmAndPoiIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiIndex.class, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBoundariesFieldBuilder(); getCategoriesTableFieldBuilder(); getNameIndexFieldBuilder(); getSubtypesTableFieldBuilder(); getBoxesFieldBuilder(); getPoiDataFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (boundariesBuilder_ == null) { boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); } else { boundariesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (categoriesTableBuilder_ == null) { categoriesTable_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { categoriesTableBuilder_.clear(); } if (nameIndexBuilder_ == null) { nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); } else { nameIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (subtypesTableBuilder_ == null) { subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); } else { subtypesTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { boxesBuilder_.clear(); } if (poiDataBuilder_ == null) { poiData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { poiDataBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiIndex_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndPoiIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndPoiIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndPoiIndex build() { net.osmand.binary.OsmandOdb.OsmAndPoiIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiIndex buildPartial() { net.osmand.binary.OsmandOdb.OsmAndPoiIndex result = new net.osmand.binary.OsmandOdb.OsmAndPoiIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (boundariesBuilder_ == null) { result.boundaries_ = boundaries_; } else { result.boundaries_ = boundariesBuilder_.build(); } if (categoriesTableBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { categoriesTable_ = java.util.Collections.unmodifiableList(categoriesTable_); bitField0_ = (bitField0_ & ~0x00000004); } result.categoriesTable_ = categoriesTable_; } else { result.categoriesTable_ = categoriesTableBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (nameIndexBuilder_ == null) { result.nameIndex_ = nameIndex_; } else { result.nameIndex_ = nameIndexBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } if (subtypesTableBuilder_ == null) { result.subtypesTable_ = subtypesTable_; } else { result.subtypesTable_ = subtypesTableBuilder_.build(); } if (boxesBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { boxes_ = java.util.Collections.unmodifiableList(boxes_); bitField0_ = (bitField0_ & ~0x00000020); } result.boxes_ = boxes_; } else { result.boxes_ = boxesBuilder_.build(); } if (poiDataBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { poiData_ = java.util.Collections.unmodifiableList(poiData_); bitField0_ = (bitField0_ & ~0x00000040); } result.poiData_ = poiData_; } else { result.poiData_ = poiDataBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndPoiIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndPoiIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiIndex other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiIndex.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasBoundaries()) { mergeBoundaries(other.getBoundaries()); } if (categoriesTableBuilder_ == null) { if (!other.categoriesTable_.isEmpty()) { if (categoriesTable_.isEmpty()) { categoriesTable_ = other.categoriesTable_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCategoriesTableIsMutable(); categoriesTable_.addAll(other.categoriesTable_); } onChanged(); } } else { if (!other.categoriesTable_.isEmpty()) { if (categoriesTableBuilder_.isEmpty()) { categoriesTableBuilder_.dispose(); categoriesTableBuilder_ = null; categoriesTable_ = other.categoriesTable_; bitField0_ = (bitField0_ & ~0x00000004); categoriesTableBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCategoriesTableFieldBuilder() : null; } else { categoriesTableBuilder_.addAllMessages(other.categoriesTable_); } } } if (other.hasNameIndex()) { mergeNameIndex(other.getNameIndex()); } if (other.hasSubtypesTable()) { mergeSubtypesTable(other.getSubtypesTable()); } if (boxesBuilder_ == null) { if (!other.boxes_.isEmpty()) { if (boxes_.isEmpty()) { boxes_ = other.boxes_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureBoxesIsMutable(); boxes_.addAll(other.boxes_); } onChanged(); } } else { if (!other.boxes_.isEmpty()) { if (boxesBuilder_.isEmpty()) { boxesBuilder_.dispose(); boxesBuilder_ = null; boxes_ = other.boxes_; bitField0_ = (bitField0_ & ~0x00000020); boxesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBoxesFieldBuilder() : null; } else { boxesBuilder_.addAllMessages(other.boxes_); } } } if (poiDataBuilder_ == null) { if (!other.poiData_.isEmpty()) { if (poiData_.isEmpty()) { poiData_ = other.poiData_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensurePoiDataIsMutable(); poiData_.addAll(other.poiData_); } onChanged(); } } else { if (!other.poiData_.isEmpty()) { if (poiDataBuilder_.isEmpty()) { poiDataBuilder_.dispose(); poiDataBuilder_ = null; poiData_ = other.poiData_; bitField0_ = (bitField0_ & ~0x00000040); poiDataBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPoiDataFieldBuilder() : null; } else { poiDataBuilder_.addAllMessages(other.poiData_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasBoundaries()) { return false; } if (!getBoundaries().isInitialized()) { return false; } for (int i = 0; i < getCategoriesTableCount(); i++) { if (!getCategoriesTable(i).isInitialized()) { return false; } } if (hasNameIndex()) { if (!getNameIndex().isInitialized()) { return false; } } if (hasSubtypesTable()) { if (!getSubtypesTable().isInitialized()) { return false; } } for (int i = 0; i < getBoxesCount(); i++) { if (!getBoxes(i).isInitialized()) { return false; } } for (int i = 0; i < getPoiDataCount(); i++) { if (!getPoiData(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndPoiIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndPoiIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string name = 1; private java.lang.Object name_ = ""; /** * 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; } // required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; private net.osmand.binary.OsmandOdb.OsmAndTileBox boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndTileBox, net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder, net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder> boundariesBuilder_; /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ public boolean hasBoundaries() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { if (boundariesBuilder_ == null) { return boundaries_; } else { return boundariesBuilder_.getMessage(); } } /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ 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_ |= 0x00000002; return this; } /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ public Builder setBoundaries( net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder builderForValue) { if (boundariesBuilder_ == null) { boundaries_ = builderForValue.build(); onChanged(); } else { boundariesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ public Builder mergeBoundaries(net.osmand.binary.OsmandOdb.OsmAndTileBox value) { if (boundariesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && boundaries_ != net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance()) { boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.newBuilder(boundaries_).mergeFrom(value).buildPartial(); } else { boundaries_ = value; } onChanged(); } else { boundariesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ public Builder clearBoundaries() { if (boundariesBuilder_ == null) { boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); onChanged(); } else { boundariesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ public net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder getBoundariesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBoundariesFieldBuilder().getBuilder(); } /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ public net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder() { if (boundariesBuilder_ != null) { return boundariesBuilder_.getMessageOrBuilder(); } else { return boundaries_; } } /** * required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; */ private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndTileBox, net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder, net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder> getBoundariesFieldBuilder() { if (boundariesBuilder_ == null) { boundariesBuilder_ = new com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndTileBox, net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder, net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder>( boundaries_, getParentForChildren(), isClean()); boundaries_ = null; } return boundariesBuilder_; } // repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; private java.util.List categoriesTable_ = java.util.Collections.emptyList(); private void ensureCategoriesTableIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { categoriesTable_ = new java.util.ArrayList(categoriesTable_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndCategoryTable, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder, net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder> categoriesTableBuilder_; /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public java.util.List getCategoriesTableList() { if (categoriesTableBuilder_ == null) { return java.util.Collections.unmodifiableList(categoriesTable_); } else { return categoriesTableBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public int getCategoriesTableCount() { if (categoriesTableBuilder_ == null) { return categoriesTable_.size(); } else { return categoriesTableBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTable getCategoriesTable(int index) { if (categoriesTableBuilder_ == null) { return categoriesTable_.get(index); } else { return categoriesTableBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public Builder setCategoriesTable( int index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable value) { if (categoriesTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCategoriesTableIsMutable(); categoriesTable_.set(index, value); onChanged(); } else { categoriesTableBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public Builder setCategoriesTable( int index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder builderForValue) { if (categoriesTableBuilder_ == null) { ensureCategoriesTableIsMutable(); categoriesTable_.set(index, builderForValue.build()); onChanged(); } else { categoriesTableBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public Builder addCategoriesTable(net.osmand.binary.OsmandOdb.OsmAndCategoryTable value) { if (categoriesTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCategoriesTableIsMutable(); categoriesTable_.add(value); onChanged(); } else { categoriesTableBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public Builder addCategoriesTable( int index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable value) { if (categoriesTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCategoriesTableIsMutable(); categoriesTable_.add(index, value); onChanged(); } else { categoriesTableBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public Builder addCategoriesTable( net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder builderForValue) { if (categoriesTableBuilder_ == null) { ensureCategoriesTableIsMutable(); categoriesTable_.add(builderForValue.build()); onChanged(); } else { categoriesTableBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public Builder addCategoriesTable( int index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder builderForValue) { if (categoriesTableBuilder_ == null) { ensureCategoriesTableIsMutable(); categoriesTable_.add(index, builderForValue.build()); onChanged(); } else { categoriesTableBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public Builder addAllCategoriesTable( java.lang.Iterable values) { if (categoriesTableBuilder_ == null) { ensureCategoriesTableIsMutable(); super.addAll(values, categoriesTable_); onChanged(); } else { categoriesTableBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public Builder clearCategoriesTable() { if (categoriesTableBuilder_ == null) { categoriesTable_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { categoriesTableBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public Builder removeCategoriesTable(int index) { if (categoriesTableBuilder_ == null) { ensureCategoriesTableIsMutable(); categoriesTable_.remove(index); onChanged(); } else { categoriesTableBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder getCategoriesTableBuilder( int index) { return getCategoriesTableFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder getCategoriesTableOrBuilder( int index) { if (categoriesTableBuilder_ == null) { return categoriesTable_.get(index); } else { return categoriesTableBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public java.util.List getCategoriesTableOrBuilderList() { if (categoriesTableBuilder_ != null) { return categoriesTableBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(categoriesTable_); } } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder addCategoriesTableBuilder() { return getCategoriesTableFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndCategoryTable.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder addCategoriesTableBuilder( int index) { return getCategoriesTableFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; */ public java.util.List getCategoriesTableBuilderList() { return getCategoriesTableFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndCategoryTable, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder, net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder> getCategoriesTableFieldBuilder() { if (categoriesTableBuilder_ == null) { categoriesTableBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndCategoryTable, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder, net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder>( categoriesTable_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); categoriesTable_ = null; } return categoriesTableBuilder_; } // optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; private net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder> nameIndexBuilder_; /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public boolean hasNameIndex() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getNameIndex() { if (nameIndexBuilder_ == null) { return nameIndex_; } else { return nameIndexBuilder_.getMessage(); } } /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setNameIndex(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex value) { if (nameIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nameIndex_ = value; onChanged(); } else { nameIndexBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setNameIndex( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder builderForValue) { if (nameIndexBuilder_ == null) { nameIndex_ = builderForValue.build(); onChanged(); } else { nameIndexBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder mergeNameIndex(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex value) { if (nameIndexBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && nameIndex_ != net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance()) { nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.newBuilder(nameIndex_).mergeFrom(value).buildPartial(); } else { nameIndex_ = value; } onChanged(); } else { nameIndexBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder clearNameIndex() { if (nameIndexBuilder_ == null) { nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); onChanged(); } else { nameIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder getNameIndexBuilder() { bitField0_ |= 0x00000008; onChanged(); return getNameIndexFieldBuilder().getBuilder(); } /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder getNameIndexOrBuilder() { if (nameIndexBuilder_ != null) { return nameIndexBuilder_.getMessageOrBuilder(); } else { return nameIndex_; } } /** * optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder> getNameIndexFieldBuilder() { if (nameIndexBuilder_ == null) { nameIndexBuilder_ = new com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder>( nameIndex_, getParentForChildren(), isClean()); nameIndex_ = null; } return nameIndexBuilder_; } // optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; private net.osmand.binary.OsmandOdb.OsmAndSubtypesTable subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndSubtypesTable, net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder, net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder> subtypesTableBuilder_; /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public boolean hasSubtypesTable() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getSubtypesTable() { if (subtypesTableBuilder_ == null) { return subtypesTable_; } else { return subtypesTableBuilder_.getMessage(); } } /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public Builder setSubtypesTable(net.osmand.binary.OsmandOdb.OsmAndSubtypesTable value) { if (subtypesTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subtypesTable_ = value; onChanged(); } else { subtypesTableBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public Builder setSubtypesTable( net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder builderForValue) { if (subtypesTableBuilder_ == null) { subtypesTable_ = builderForValue.build(); onChanged(); } else { subtypesTableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public Builder mergeSubtypesTable(net.osmand.binary.OsmandOdb.OsmAndSubtypesTable value) { if (subtypesTableBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && subtypesTable_ != net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance()) { subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.newBuilder(subtypesTable_).mergeFrom(value).buildPartial(); } else { subtypesTable_ = value; } onChanged(); } else { subtypesTableBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public Builder clearSubtypesTable() { if (subtypesTableBuilder_ == null) { subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); onChanged(); } else { subtypesTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder getSubtypesTableBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSubtypesTableFieldBuilder().getBuilder(); } /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ public net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder getSubtypesTableOrBuilder() { if (subtypesTableBuilder_ != null) { return subtypesTableBuilder_.getMessageOrBuilder(); } else { return subtypesTable_; } } /** * optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; */ private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndSubtypesTable, net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder, net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder> getSubtypesTableFieldBuilder() { if (subtypesTableBuilder_ == null) { subtypesTableBuilder_ = new com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndSubtypesTable, net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder, net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder>( subtypesTable_, getParentForChildren(), isClean()); subtypesTable_ = null; } return subtypesTableBuilder_; } // repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; private java.util.List boxes_ = java.util.Collections.emptyList(); private void ensureBoxesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { boxes_ = new java.util.ArrayList(boxes_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> boxesBuilder_; /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getBoxesList() { if (boxesBuilder_ == null) { return java.util.Collections.unmodifiableList(boxes_); } else { return boxesBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public int getBoxesCount() { if (boxesBuilder_ == null) { return boxes_.size(); } else { return boxesBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBox getBoxes(int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { if (boxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoxesIsMutable(); boxes_.set(index, value); onChanged(); } else { boxesBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.set(index, builderForValue.build()); onChanged(); } else { boxesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { if (boxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoxesIsMutable(); boxes_.add(value); onChanged(); } else { boxesBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { if (boxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoxesIsMutable(); boxes_.add(index, value); onChanged(); } else { boxesBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addBoxes( net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.add(builderForValue.build()); onChanged(); } else { boxesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.add(index, builderForValue.build()); onChanged(); } else { boxesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addAllBoxes( java.lang.Iterable values) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); super.addAll(values, boxes_); onChanged(); } else { boxesBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder clearBoxes() { if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { boxesBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder removeBoxes(int index) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.remove(index); onChanged(); } else { boxesBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder getBoxesBuilder( int index) { return getBoxesFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getBoxesOrBuilder( int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getBoxesOrBuilderList() { if (boxesBuilder_ != null) { return boxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(boxes_); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addBoxesBuilder() { return getBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addBoxesBuilder( int index) { return getBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getBoxesBuilderList() { return getBoxesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> getBoxesFieldBuilder() { if (boxesBuilder_ == null) { boxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder>( boxes_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); boxes_ = null; } return boxesBuilder_; } // repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; private java.util.List poiData_ = java.util.Collections.emptyList(); private void ensurePoiDataIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { poiData_ = new java.util.ArrayList(poiData_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBoxData, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder> poiDataBuilder_; /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getPoiDataList() { if (poiDataBuilder_ == null) { return java.util.Collections.unmodifiableList(poiData_); } else { return poiDataBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public int getPoiDataCount() { if (poiDataBuilder_ == null) { return poiData_.size(); } else { return poiDataBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData getPoiData(int index) { if (poiDataBuilder_ == null) { return poiData_.get(index); } else { return poiDataBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setPoiData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData value) { if (poiDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoiDataIsMutable(); poiData_.set(index, value); onChanged(); } else { poiDataBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setPoiData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder builderForValue) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); poiData_.set(index, builderForValue.build()); onChanged(); } else { poiDataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addPoiData(net.osmand.binary.OsmandOdb.OsmAndPoiBoxData value) { if (poiDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoiDataIsMutable(); poiData_.add(value); onChanged(); } else { poiDataBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addPoiData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData value) { if (poiDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoiDataIsMutable(); poiData_.add(index, value); onChanged(); } else { poiDataBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addPoiData( net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder builderForValue) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); poiData_.add(builderForValue.build()); onChanged(); } else { poiDataBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addPoiData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder builderForValue) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); poiData_.add(index, builderForValue.build()); onChanged(); } else { poiDataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addAllPoiData( java.lang.Iterable values) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); super.addAll(values, poiData_); onChanged(); } else { poiDataBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder clearPoiData() { if (poiDataBuilder_ == null) { poiData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { poiDataBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder removePoiData(int index) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); poiData_.remove(index); onChanged(); } else { poiDataBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder getPoiDataBuilder( int index) { return getPoiDataFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder getPoiDataOrBuilder( int index) { if (poiDataBuilder_ == null) { return poiData_.get(index); } else { return poiDataBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getPoiDataOrBuilderList() { if (poiDataBuilder_ != null) { return poiDataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(poiData_); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder addPoiDataBuilder() { return getPoiDataFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder addPoiDataBuilder( int index) { return getPoiDataFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getPoiDataBuilderList() { return getPoiDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBoxData, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder> getPoiDataFieldBuilder() { if (poiDataBuilder_ == null) { poiDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBoxData, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder>( poiData_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); poiData_ = null; } return poiDataBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiIndex) } static { defaultInstance = new OsmAndPoiIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiIndex) } public interface OsmAndPoiNameIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .OsmAnd.OBF.IndexedStringTable table = 3; /** * required .OsmAnd.OBF.IndexedStringTable table = 3; * *
     * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message
     * encoded as fixed32 length delimited
     * 
*/ boolean hasTable(); /** * required .OsmAnd.OBF.IndexedStringTable table = 3; * *
     * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.IndexedStringTable getTable(); /** * required .OsmAnd.OBF.IndexedStringTable table = 3; * *
     * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder(); // repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ java.util.List getDataList(); /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData getData(int index); /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ int getDataCount(); /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ java.util.List getDataOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder getDataOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndPoiNameIndex} */ public static final class OsmAndPoiNameIndex extends com.google.protobuf.GeneratedMessage implements OsmAndPoiNameIndexOrBuilder { // Use OsmAndPoiNameIndex.newBuilder() to construct. private OsmAndPoiNameIndex(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndPoiNameIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndPoiNameIndex defaultInstance; public static OsmAndPoiNameIndex getDefaultInstance() { return defaultInstance; } public OsmAndPoiNameIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndPoiNameIndex( 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: { 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 42: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } data_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.PARSER, extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { data_ = java.util.Collections.unmodifiableList(data_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.class, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndPoiNameIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndPoiNameIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface OsmAndPoiNameIndexDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
       * can contain multiple data offsets
       * 
*/ java.util.List getAtomsList(); /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
       * can contain multiple data offsets
       * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom getAtoms(int index); /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
       * can contain multiple data offsets
       * 
*/ int getAtomsCount(); /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
       * can contain multiple data offsets
       * 
*/ java.util.List getAtomsOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
       * can contain multiple data offsets
       * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder getAtomsOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData} */ public static final class OsmAndPoiNameIndexData extends com.google.protobuf.GeneratedMessage implements OsmAndPoiNameIndexDataOrBuilder { // Use OsmAndPoiNameIndexData.newBuilder() to construct. private OsmAndPoiNameIndexData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndPoiNameIndexData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndPoiNameIndexData defaultInstance; public static OsmAndPoiNameIndexData getDefaultInstance() { return defaultInstance; } public OsmAndPoiNameIndexData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndPoiNameIndexData( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { atoms_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } atoms_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.PARSER, extensionRegistry)); 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)) { atoms_ = java.util.Collections.unmodifiableList(atoms_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.class, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndPoiNameIndexData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndPoiNameIndexData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; public static final int ATOMS_FIELD_NUMBER = 3; private java.util.List atoms_; /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
       * can contain multiple data offsets
       * 
*/ public java.util.List getAtomsList() { return atoms_; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
       * can contain multiple data offsets
       * 
*/ public java.util.List getAtomsOrBuilderList() { return atoms_; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
       * can contain multiple data offsets
       * 
*/ public int getAtomsCount() { return atoms_.size(); } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
       * can contain multiple data offsets
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom getAtoms(int index) { return atoms_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
       * can contain multiple data offsets
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder getAtomsOrBuilder( int index) { return atoms_.get(index); } private void initFields() { atoms_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < atoms_.size(); i++) { output.writeMessage(3, atoms_.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 < atoms_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, atoms_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData 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.OsmAndPoiNameIndex.OsmAndPoiNameIndexData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData 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.OsmAndPoiNameIndex.OsmAndPoiNameIndexData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData 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.OsmAndPoiNameIndex.OsmAndPoiNameIndexData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData 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.OsmAndPoiNameIndex.OsmAndPoiNameIndexData 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.OsmAndPoiNameIndex.OsmAndPoiNameIndexData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.class, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAtomsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (atomsBuilder_ == null) { atoms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { atomsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData build() { net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData buildPartial() { net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData(this); int from_bitField0_ = bitField0_; if (atomsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { atoms_ = java.util.Collections.unmodifiableList(atoms_); bitField0_ = (bitField0_ & ~0x00000001); } result.atoms_ = atoms_; } else { result.atoms_ = atomsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.getDefaultInstance()) return this; if (atomsBuilder_ == null) { if (!other.atoms_.isEmpty()) { if (atoms_.isEmpty()) { atoms_ = other.atoms_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAtomsIsMutable(); atoms_.addAll(other.atoms_); } onChanged(); } } else { if (!other.atoms_.isEmpty()) { if (atomsBuilder_.isEmpty()) { atomsBuilder_.dispose(); atomsBuilder_ = null; atoms_ = other.atoms_; bitField0_ = (bitField0_ & ~0x00000001); atomsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAtomsFieldBuilder() : null; } else { atomsBuilder_.addAllMessages(other.atoms_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; private java.util.List atoms_ = java.util.Collections.emptyList(); private void ensureAtomsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { atoms_ = new java.util.ArrayList(atoms_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder> atomsBuilder_; /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public java.util.List getAtomsList() { if (atomsBuilder_ == null) { return java.util.Collections.unmodifiableList(atoms_); } else { return atomsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public int getAtomsCount() { if (atomsBuilder_ == null) { return atoms_.size(); } else { return atomsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom getAtoms(int index) { if (atomsBuilder_ == null) { return atoms_.get(index); } else { return atomsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public Builder setAtoms( int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom value) { if (atomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAtomsIsMutable(); atoms_.set(index, value); onChanged(); } else { atomsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public Builder setAtoms( int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder builderForValue) { if (atomsBuilder_ == null) { ensureAtomsIsMutable(); atoms_.set(index, builderForValue.build()); onChanged(); } else { atomsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public Builder addAtoms(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom value) { if (atomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAtomsIsMutable(); atoms_.add(value); onChanged(); } else { atomsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public Builder addAtoms( int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom value) { if (atomsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAtomsIsMutable(); atoms_.add(index, value); onChanged(); } else { atomsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public Builder addAtoms( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder builderForValue) { if (atomsBuilder_ == null) { ensureAtomsIsMutable(); atoms_.add(builderForValue.build()); onChanged(); } else { atomsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public Builder addAtoms( int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder builderForValue) { if (atomsBuilder_ == null) { ensureAtomsIsMutable(); atoms_.add(index, builderForValue.build()); onChanged(); } else { atomsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public Builder addAllAtoms( java.lang.Iterable values) { if (atomsBuilder_ == null) { ensureAtomsIsMutable(); super.addAll(values, atoms_); onChanged(); } else { atomsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public Builder clearAtoms() { if (atomsBuilder_ == null) { atoms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { atomsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public Builder removeAtoms(int index) { if (atomsBuilder_ == null) { ensureAtomsIsMutable(); atoms_.remove(index); onChanged(); } else { atomsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder getAtomsBuilder( int index) { return getAtomsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder getAtomsOrBuilder( int index) { if (atomsBuilder_ == null) { return atoms_.get(index); } else { return atomsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public java.util.List getAtomsOrBuilderList() { if (atomsBuilder_ != null) { return atomsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(atoms_); } } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder addAtomsBuilder() { return getAtomsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder addAtomsBuilder( int index) { return getAtomsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; * *
         * can contain multiple data offsets
         * 
*/ public java.util.List getAtomsBuilderList() { return getAtomsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder> getAtomsFieldBuilder() { if (atomsBuilder_ == null) { atomsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder>( atoms_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); atoms_ = null; } return atomsBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData) } static { defaultInstance = new OsmAndPoiNameIndexData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData) } private int bitField0_; // required .OsmAnd.OBF.IndexedStringTable table = 3; public static final int TABLE_FIELD_NUMBER = 3; private net.osmand.binary.OsmandOdb.IndexedStringTable table_; /** * required .OsmAnd.OBF.IndexedStringTable table = 3; * *
     * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message
     * encoded as fixed32 length delimited
     * 
*/ public boolean hasTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .OsmAnd.OBF.IndexedStringTable table = 3; * *
     * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { return table_; } /** * required .OsmAnd.OBF.IndexedStringTable table = 3; * *
     * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder() { return table_; } // repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; public static final int DATA_FIELD_NUMBER = 5; private java.util.List data_; /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public java.util.List getDataList() { return data_; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public java.util.List getDataOrBuilderList() { return data_; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public int getDataCount() { return data_.size(); } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData getData(int index) { return data_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder getDataOrBuilder( int index) { return data_.get(index); } private void initFields() { table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); data_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTable()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(3, table_); } for (int i = 0; i < data_.size(); i++) { output.writeMessage(5, data_.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(3, table_); } for (int i = 0; i < data_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, data_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex 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.OsmAndPoiNameIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex 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.OsmAndPoiNameIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex 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.OsmAndPoiNameIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex 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.OsmAndPoiNameIndex 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.OsmAndPoiNameIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.class, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTableFieldBuilder(); getDataFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (tableBuilder_ == null) { table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); } else { tableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { dataBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex build() { net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex buildPartial() { net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (tableBuilder_ == null) { result.table_ = table_; } else { result.table_ = tableBuilder_.build(); } if (dataBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000002); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance()) return this; if (other.hasTable()) { mergeTable(other.getTable()); } if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } } else { if (!other.data_.isEmpty()) { if (dataBuilder_.isEmpty()) { dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000002); dataBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDataFieldBuilder() : null; } else { dataBuilder_.addAllMessages(other.data_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTable()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .OsmAnd.OBF.IndexedStringTable table = 3; private net.osmand.binary.OsmandOdb.IndexedStringTable table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.IndexedStringTable, net.osmand.binary.OsmandOdb.IndexedStringTable.Builder, net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> tableBuilder_; /** * required .OsmAnd.OBF.IndexedStringTable table = 3; * *
       * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message
       * encoded as fixed32 length delimited
       * 
*/ public boolean hasTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .OsmAnd.OBF.IndexedStringTable table = 3; * *
       * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex 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 = 3; * *
       * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex 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 = 3; * *
       * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex 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 = 3; * *
       * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex 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 = 3; * *
       * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex 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 = 3; * *
       * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex 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 = 3; * *
       * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex 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 = 3; * *
       * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex 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.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; private java.util.List data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { data_ = new java.util.ArrayList(data_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder> dataBuilder_; /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public java.util.List getDataList() { if (dataBuilder_ == null) { return java.util.Collections.unmodifiableList(data_); } else { return dataBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public int getDataCount() { if (dataBuilder_ == null) { return data_.size(); } else { return dataBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public Builder setData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); } else { dataBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public Builder setData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.set(index, builderForValue.build()); onChanged(); } else { dataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public Builder addData(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); } else { dataBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public Builder addData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(index, value); onChanged(); } else { dataBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public Builder addData( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public Builder addData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(index, builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public Builder addAllData( java.lang.Iterable values) { if (dataBuilder_ == null) { ensureDataIsMutable(); super.addAll(values, data_); onChanged(); } else { dataBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public Builder removeData(int index) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.remove(index); onChanged(); } else { dataBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder getDataBuilder( int index) { return getDataFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder getDataOrBuilder( int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public java.util.List getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder addDataBuilder() { return getDataFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder addDataBuilder( int index) { return getDataFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; */ public java.util.List getDataBuilderList() { return getDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder>( data_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiNameIndex) } static { defaultInstance = new OsmAndPoiNameIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiNameIndex) } public interface OsmAndPoiNameIndexDataAtomOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional uint32 zoom = 2; /** * optional uint32 zoom = 2; * *
     * fields do not preserve order define, they are repeating 
     * 
*/ boolean hasZoom(); /** * optional uint32 zoom = 2; * *
     * fields do not preserve order define, they are repeating 
     * 
*/ int getZoom(); // optional uint32 x = 3; /** * optional uint32 x = 3; */ boolean hasX(); /** * optional uint32 x = 3; */ int getX(); // optional uint32 y = 4; /** * optional uint32 y = 4; */ boolean hasY(); /** * optional uint32 y = 4; */ int getY(); // optional fixed32 shiftTo = 14; /** * optional fixed32 shiftTo = 14; * *
     * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start
     * message is started when body is started
     * 
*/ boolean hasShiftTo(); /** * optional fixed32 shiftTo = 14; * *
     * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start
     * message is started when body is started
     * 
*/ int getShiftTo(); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndPoiNameIndexDataAtom} */ public static final class OsmAndPoiNameIndexDataAtom extends com.google.protobuf.GeneratedMessage implements OsmAndPoiNameIndexDataAtomOrBuilder { // Use OsmAndPoiNameIndexDataAtom.newBuilder() to construct. private OsmAndPoiNameIndexDataAtom(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndPoiNameIndexDataAtom(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndPoiNameIndexDataAtom defaultInstance; public static OsmAndPoiNameIndexDataAtom getDefaultInstance() { return defaultInstance; } public OsmAndPoiNameIndexDataAtom getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndPoiNameIndexDataAtom( 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: { bitField0_ |= 0x00000001; zoom_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000002; x_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000004; y_ = input.readUInt32(); break; } case 117: { bitField0_ |= 0x00000008; shiftTo_ = input.readFixed32(); 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_OsmAndPoiNameIndexDataAtom_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.class, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndPoiNameIndexDataAtom parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndPoiNameIndexDataAtom(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional uint32 zoom = 2; public static final int ZOOM_FIELD_NUMBER = 2; private int zoom_; /** * optional uint32 zoom = 2; * *
     * fields do not preserve order define, they are repeating 
     * 
*/ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 zoom = 2; * *
     * fields do not preserve order define, they are repeating 
     * 
*/ public int getZoom() { return zoom_; } // optional uint32 x = 3; public static final int X_FIELD_NUMBER = 3; private int x_; /** * optional uint32 x = 3; */ public boolean hasX() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 x = 3; */ public int getX() { return x_; } // optional uint32 y = 4; public static final int Y_FIELD_NUMBER = 4; private int y_; /** * optional uint32 y = 4; */ public boolean hasY() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 y = 4; */ public int getY() { return y_; } // optional fixed32 shiftTo = 14; public static final int SHIFTTO_FIELD_NUMBER = 14; private int shiftTo_; /** * optional fixed32 shiftTo = 14; * *
     * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start
     * message is started when body is started
     * 
*/ public boolean hasShiftTo() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional fixed32 shiftTo = 14; * *
     * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start
     * message is started when body is started
     * 
*/ public int getShiftTo() { return shiftTo_; } private void initFields() { zoom_ = 0; x_ = 0; y_ = 0; shiftTo_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(2, zoom_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(3, x_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(4, y_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeFixed32(14, shiftTo_); } 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(2, zoom_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, x_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, y_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeFixed32Size(14, shiftTo_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom 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.OsmAndPoiNameIndexDataAtom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom 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.OsmAndPoiNameIndexDataAtom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom 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.OsmAndPoiNameIndexDataAtom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom 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.OsmAndPoiNameIndexDataAtom 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.OsmAndPoiNameIndexDataAtom} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.class, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); zoom_ = 0; bitField0_ = (bitField0_ & ~0x00000001); x_ = 0; bitField0_ = (bitField0_ & ~0x00000002); y_ = 0; bitField0_ = (bitField0_ & ~0x00000004); shiftTo_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom build() { net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom buildPartial() { net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom result = new net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.zoom_ = zoom_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.x_ = x_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.y_ = y_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.shiftTo_ = shiftTo_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.getDefaultInstance()) return this; if (other.hasZoom()) { setZoom(other.getZoom()); } if (other.hasX()) { setX(other.getX()); } if (other.hasY()) { setY(other.getY()); } if (other.hasShiftTo()) { setShiftTo(other.getShiftTo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional uint32 zoom = 2; private int zoom_ ; /** * optional uint32 zoom = 2; * *
       * fields do not preserve order define, they are repeating 
       * 
*/ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 zoom = 2; * *
       * fields do not preserve order define, they are repeating 
       * 
*/ public int getZoom() { return zoom_; } /** * optional uint32 zoom = 2; * *
       * fields do not preserve order define, they are repeating 
       * 
*/ public Builder setZoom(int value) { bitField0_ |= 0x00000001; zoom_ = value; onChanged(); return this; } /** * optional uint32 zoom = 2; * *
       * fields do not preserve order define, they are repeating 
       * 
*/ public Builder clearZoom() { bitField0_ = (bitField0_ & ~0x00000001); zoom_ = 0; onChanged(); return this; } // optional uint32 x = 3; private int x_ ; /** * optional uint32 x = 3; */ public boolean hasX() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 x = 3; */ public int getX() { return x_; } /** * optional uint32 x = 3; */ public Builder setX(int value) { bitField0_ |= 0x00000002; x_ = value; onChanged(); return this; } /** * optional uint32 x = 3; */ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000002); x_ = 0; onChanged(); return this; } // optional uint32 y = 4; private int y_ ; /** * optional uint32 y = 4; */ public boolean hasY() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 y = 4; */ public int getY() { return y_; } /** * optional uint32 y = 4; */ public Builder setY(int value) { bitField0_ |= 0x00000004; y_ = value; onChanged(); return this; } /** * optional uint32 y = 4; */ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000004); y_ = 0; onChanged(); return this; } // optional fixed32 shiftTo = 14; private int shiftTo_ ; /** * optional fixed32 shiftTo = 14; * *
       * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start
       * message is started when body is started
       * 
*/ public boolean hasShiftTo() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional fixed32 shiftTo = 14; * *
       * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start
       * message is started when body is started
       * 
*/ public int getShiftTo() { return shiftTo_; } /** * optional fixed32 shiftTo = 14; * *
       * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start
       * message is started when body is started
       * 
*/ public Builder setShiftTo(int value) { bitField0_ |= 0x00000008; shiftTo_ = value; onChanged(); return this; } /** * optional fixed32 shiftTo = 14; * *
       * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start
       * message is started when body is started
       * 
*/ public Builder clearShiftTo() { bitField0_ = (bitField0_ & ~0x00000008); shiftTo_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiNameIndexDataAtom) } static { defaultInstance = new OsmAndPoiNameIndexDataAtom(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiNameIndexDataAtom) } public interface OsmAndCategoryTableOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string category = 1; /** * required string category = 1; * *
     * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
     * 
*/ boolean hasCategory(); /** * required string category = 1; * *
     * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
     * 
*/ java.lang.String getCategory(); /** * required string category = 1; * *
     * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
     * 
*/ com.google.protobuf.ByteString getCategoryBytes(); // repeated string subcategories = 3; /** * repeated string subcategories = 3; */ java.util.List getSubcategoriesList(); /** * repeated string subcategories = 3; */ int getSubcategoriesCount(); /** * repeated string subcategories = 3; */ java.lang.String getSubcategories(int index); /** * repeated string subcategories = 3; */ com.google.protobuf.ByteString getSubcategoriesBytes(int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndCategoryTable} */ public static final class OsmAndCategoryTable extends com.google.protobuf.GeneratedMessage implements OsmAndCategoryTableOrBuilder { // Use OsmAndCategoryTable.newBuilder() to construct. private OsmAndCategoryTable(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndCategoryTable(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndCategoryTable defaultInstance; public static OsmAndCategoryTable getDefaultInstance() { return defaultInstance; } public OsmAndCategoryTable getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndCategoryTable( 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; category_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { subcategories_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } subcategories_.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_ & 0x00000002) == 0x00000002)) { subcategories_ = new com.google.protobuf.UnmodifiableLazyStringList(subcategories_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndCategoryTable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndCategoryTable_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndCategoryTable.class, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndCategoryTable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndCategoryTable(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string category = 1; public static final int CATEGORY_FIELD_NUMBER = 1; private java.lang.Object category_; /** * required string category = 1; * *
     * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
     * 
*/ public boolean hasCategory() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string category = 1; * *
     * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
     * 
*/ public java.lang.String getCategory() { java.lang.Object ref = category_; 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()) { category_ = s; } return s; } } /** * required string category = 1; * *
     * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
     * 
*/ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); category_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string subcategories = 3; public static final int SUBCATEGORIES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList subcategories_; /** * repeated string subcategories = 3; */ public java.util.List getSubcategoriesList() { return subcategories_; } /** * repeated string subcategories = 3; */ public int getSubcategoriesCount() { return subcategories_.size(); } /** * repeated string subcategories = 3; */ public java.lang.String getSubcategories(int index) { return subcategories_.get(index); } /** * repeated string subcategories = 3; */ public com.google.protobuf.ByteString getSubcategoriesBytes(int index) { return subcategories_.getByteString(index); } private void initFields() { category_ = ""; subcategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasCategory()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getCategoryBytes()); } for (int i = 0; i < subcategories_.size(); i++) { output.writeBytes(3, subcategories_.getByteString(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, getCategoryBytes()); } { int dataSize = 0; for (int i = 0; i < subcategories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(subcategories_.getByteString(i)); } size += dataSize; size += 1 * getSubcategoriesList().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.OsmAndCategoryTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndCategoryTable 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.OsmAndCategoryTable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndCategoryTable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndCategoryTable parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndCategoryTable 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.OsmAndCategoryTable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndCategoryTable 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.OsmAndCategoryTable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndCategoryTable 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.OsmAndCategoryTable 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.OsmAndCategoryTable} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndCategoryTable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndCategoryTable_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndCategoryTable.class, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndCategoryTable.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); category_ = ""; bitField0_ = (bitField0_ & ~0x00000001); subcategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndCategoryTable_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndCategoryTable getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndCategoryTable.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndCategoryTable build() { net.osmand.binary.OsmandOdb.OsmAndCategoryTable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndCategoryTable buildPartial() { net.osmand.binary.OsmandOdb.OsmAndCategoryTable result = new net.osmand.binary.OsmandOdb.OsmAndCategoryTable(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.category_ = category_; if (((bitField0_ & 0x00000002) == 0x00000002)) { subcategories_ = new com.google.protobuf.UnmodifiableLazyStringList( subcategories_); bitField0_ = (bitField0_ & ~0x00000002); } result.subcategories_ = subcategories_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndCategoryTable) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndCategoryTable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndCategoryTable other) { if (other == net.osmand.binary.OsmandOdb.OsmAndCategoryTable.getDefaultInstance()) return this; if (other.hasCategory()) { bitField0_ |= 0x00000001; category_ = other.category_; onChanged(); } if (!other.subcategories_.isEmpty()) { if (subcategories_.isEmpty()) { subcategories_ = other.subcategories_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSubcategoriesIsMutable(); subcategories_.addAll(other.subcategories_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasCategory()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndCategoryTable parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndCategoryTable) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string category = 1; private java.lang.Object category_ = ""; /** * required string category = 1; * *
       * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
       * 
*/ public boolean hasCategory() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string category = 1; * *
       * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
       * 
*/ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); category_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string category = 1; * *
       * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
       * 
*/ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); category_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string category = 1; * *
       * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
       * 
*/ public Builder setCategory( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; category_ = value; onChanged(); return this; } /** * required string category = 1; * *
       * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
       * 
*/ public Builder clearCategory() { bitField0_ = (bitField0_ & ~0x00000001); category_ = getDefaultInstance().getCategory(); onChanged(); return this; } /** * required string category = 1; * *
       * general id of poi type is calculated  ((subcategory_order << 7) | category_order)
       * 
*/ public Builder setCategoryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; category_ = value; onChanged(); return this; } // repeated string subcategories = 3; private com.google.protobuf.LazyStringList subcategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSubcategoriesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { subcategories_ = new com.google.protobuf.LazyStringArrayList(subcategories_); bitField0_ |= 0x00000002; } } /** * repeated string subcategories = 3; */ public java.util.List getSubcategoriesList() { return java.util.Collections.unmodifiableList(subcategories_); } /** * repeated string subcategories = 3; */ public int getSubcategoriesCount() { return subcategories_.size(); } /** * repeated string subcategories = 3; */ public java.lang.String getSubcategories(int index) { return subcategories_.get(index); } /** * repeated string subcategories = 3; */ public com.google.protobuf.ByteString getSubcategoriesBytes(int index) { return subcategories_.getByteString(index); } /** * repeated string subcategories = 3; */ public Builder setSubcategories( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubcategoriesIsMutable(); subcategories_.set(index, value); onChanged(); return this; } /** * repeated string subcategories = 3; */ public Builder addSubcategories( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubcategoriesIsMutable(); subcategories_.add(value); onChanged(); return this; } /** * repeated string subcategories = 3; */ public Builder addAllSubcategories( java.lang.Iterable values) { ensureSubcategoriesIsMutable(); super.addAll(values, subcategories_); onChanged(); return this; } /** * repeated string subcategories = 3; */ public Builder clearSubcategories() { subcategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string subcategories = 3; */ public Builder addSubcategoriesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSubcategoriesIsMutable(); subcategories_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndCategoryTable) } static { defaultInstance = new OsmAndCategoryTable(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndCategoryTable) } public interface OsmAndSubtypesTableOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
     * id calculated
     * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
     * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
     * 
*/ java.util.List getSubtypesList(); /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
     * id calculated
     * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
     * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiSubtype getSubtypes(int index); /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
     * id calculated
     * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
     * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
     * 
*/ int getSubtypesCount(); /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
     * id calculated
     * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
     * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
     * 
*/ java.util.List getSubtypesOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
     * id calculated
     * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
     * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder getSubtypesOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndSubtypesTable} */ public static final class OsmAndSubtypesTable extends com.google.protobuf.GeneratedMessage implements OsmAndSubtypesTableOrBuilder { // Use OsmAndSubtypesTable.newBuilder() to construct. private OsmAndSubtypesTable(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndSubtypesTable(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndSubtypesTable defaultInstance; public static OsmAndSubtypesTable getDefaultInstance() { return defaultInstance; } public OsmAndSubtypesTable getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndSubtypesTable( 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)) { subtypes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } subtypes_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.PARSER, extensionRegistry)); 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)) { subtypes_ = java.util.Collections.unmodifiableList(subtypes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndSubtypesTable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndSubtypesTable_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.class, net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndSubtypesTable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndSubtypesTable(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; public static final int SUBTYPES_FIELD_NUMBER = 4; private java.util.List subtypes_; /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
     * id calculated
     * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
     * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
     * 
*/ public java.util.List getSubtypesList() { return subtypes_; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
     * id calculated
     * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
     * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
     * 
*/ public java.util.List getSubtypesOrBuilderList() { return subtypes_; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
     * id calculated
     * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
     * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
     * 
*/ public int getSubtypesCount() { return subtypes_.size(); } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
     * id calculated
     * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
     * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype getSubtypes(int index) { return subtypes_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
     * id calculated
     * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
     * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder getSubtypesOrBuilder( int index) { return subtypes_.get(index); } private void initFields() { subtypes_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getSubtypesCount(); i++) { if (!getSubtypes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < subtypes_.size(); i++) { output.writeMessage(4, subtypes_.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 < subtypes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, subtypes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndSubtypesTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndSubtypesTable 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.OsmAndSubtypesTable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndSubtypesTable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndSubtypesTable parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndSubtypesTable 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.OsmAndSubtypesTable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndSubtypesTable 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.OsmAndSubtypesTable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndSubtypesTable 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.OsmAndSubtypesTable 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.OsmAndSubtypesTable} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndSubtypesTable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndSubtypesTable_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.class, net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSubtypesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (subtypesBuilder_ == null) { subtypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { subtypesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndSubtypesTable_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable build() { net.osmand.binary.OsmandOdb.OsmAndSubtypesTable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable buildPartial() { net.osmand.binary.OsmandOdb.OsmAndSubtypesTable result = new net.osmand.binary.OsmandOdb.OsmAndSubtypesTable(this); int from_bitField0_ = bitField0_; if (subtypesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { subtypes_ = java.util.Collections.unmodifiableList(subtypes_); bitField0_ = (bitField0_ & ~0x00000001); } result.subtypes_ = subtypes_; } else { result.subtypes_ = subtypesBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndSubtypesTable) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndSubtypesTable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndSubtypesTable other) { if (other == net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance()) return this; if (subtypesBuilder_ == null) { if (!other.subtypes_.isEmpty()) { if (subtypes_.isEmpty()) { subtypes_ = other.subtypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSubtypesIsMutable(); subtypes_.addAll(other.subtypes_); } onChanged(); } } else { if (!other.subtypes_.isEmpty()) { if (subtypesBuilder_.isEmpty()) { subtypesBuilder_.dispose(); subtypesBuilder_ = null; subtypes_ = other.subtypes_; bitField0_ = (bitField0_ & ~0x00000001); subtypesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSubtypesFieldBuilder() : null; } else { subtypesBuilder_.addAllMessages(other.subtypes_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getSubtypesCount(); i++) { if (!getSubtypes(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndSubtypesTable parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndSubtypesTable) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; private java.util.List subtypes_ = java.util.Collections.emptyList(); private void ensureSubtypesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { subtypes_ = new java.util.ArrayList(subtypes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiSubtype, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder> subtypesBuilder_; /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public java.util.List getSubtypesList() { if (subtypesBuilder_ == null) { return java.util.Collections.unmodifiableList(subtypes_); } else { return subtypesBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public int getSubtypesCount() { if (subtypesBuilder_ == null) { return subtypes_.size(); } else { return subtypesBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype getSubtypes(int index) { if (subtypesBuilder_ == null) { return subtypes_.get(index); } else { return subtypesBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public Builder setSubtypes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype value) { if (subtypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubtypesIsMutable(); subtypes_.set(index, value); onChanged(); } else { subtypesBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public Builder setSubtypes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder builderForValue) { if (subtypesBuilder_ == null) { ensureSubtypesIsMutable(); subtypes_.set(index, builderForValue.build()); onChanged(); } else { subtypesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public Builder addSubtypes(net.osmand.binary.OsmandOdb.OsmAndPoiSubtype value) { if (subtypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubtypesIsMutable(); subtypes_.add(value); onChanged(); } else { subtypesBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public Builder addSubtypes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype value) { if (subtypesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubtypesIsMutable(); subtypes_.add(index, value); onChanged(); } else { subtypesBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public Builder addSubtypes( net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder builderForValue) { if (subtypesBuilder_ == null) { ensureSubtypesIsMutable(); subtypes_.add(builderForValue.build()); onChanged(); } else { subtypesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public Builder addSubtypes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder builderForValue) { if (subtypesBuilder_ == null) { ensureSubtypesIsMutable(); subtypes_.add(index, builderForValue.build()); onChanged(); } else { subtypesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public Builder addAllSubtypes( java.lang.Iterable values) { if (subtypesBuilder_ == null) { ensureSubtypesIsMutable(); super.addAll(values, subtypes_); onChanged(); } else { subtypesBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public Builder clearSubtypes() { if (subtypesBuilder_ == null) { subtypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { subtypesBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public Builder removeSubtypes(int index) { if (subtypesBuilder_ == null) { ensureSubtypesIsMutable(); subtypes_.remove(index); onChanged(); } else { subtypesBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder getSubtypesBuilder( int index) { return getSubtypesFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder getSubtypesOrBuilder( int index) { if (subtypesBuilder_ == null) { return subtypes_.get(index); } else { return subtypesBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public java.util.List getSubtypesOrBuilderList() { if (subtypesBuilder_ != null) { return subtypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subtypes_); } } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder addSubtypesBuilder() { return getSubtypesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder addSubtypesBuilder( int index) { return getSubtypesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; * *
       * id calculated
       * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1
       * 2. if subtypes_order > 31  : ( (subtypeValue << 16) | subtypes_order) << 1 + 1	 
       * 
*/ public java.util.List getSubtypesBuilderList() { return getSubtypesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiSubtype, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder> getSubtypesFieldBuilder() { if (subtypesBuilder_ == null) { subtypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiSubtype, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder>( subtypes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); subtypes_ = null; } return subtypesBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndSubtypesTable) } static { defaultInstance = new OsmAndSubtypesTable(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndSubtypesTable) } public interface OsmAndPoiSubtypeOrBuilder 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 tagname = 2; /** * optional string tagname = 2; * *
     * same to name if not present
     * 
*/ boolean hasTagname(); /** * optional string tagname = 2; * *
     * same to name if not present
     * 
*/ java.lang.String getTagname(); /** * optional string tagname = 2; * *
     * same to name if not present
     * 
*/ com.google.protobuf.ByteString getTagnameBytes(); // required bool isText = 3; /** * required bool isText = 3; */ boolean hasIsText(); /** * required bool isText = 3; */ boolean getIsText(); // optional uint32 frequency = 5; /** * optional uint32 frequency = 5; */ boolean hasFrequency(); /** * optional uint32 frequency = 5; */ int getFrequency(); // optional uint32 subtypeValuesSize = 6; /** * optional uint32 subtypeValuesSize = 6; */ boolean hasSubtypeValuesSize(); /** * optional uint32 subtypeValuesSize = 6; */ int getSubtypeValuesSize(); // repeated string subtypeValue = 8; /** * repeated string subtypeValue = 8; */ java.util.List getSubtypeValueList(); /** * repeated string subtypeValue = 8; */ int getSubtypeValueCount(); /** * repeated string subtypeValue = 8; */ java.lang.String getSubtypeValue(int index); /** * repeated string subtypeValue = 8; */ com.google.protobuf.ByteString getSubtypeValueBytes(int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndPoiSubtype} */ public static final class OsmAndPoiSubtype extends com.google.protobuf.GeneratedMessage implements OsmAndPoiSubtypeOrBuilder { // Use OsmAndPoiSubtype.newBuilder() to construct. private OsmAndPoiSubtype(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndPoiSubtype(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndPoiSubtype defaultInstance; public static OsmAndPoiSubtype getDefaultInstance() { return defaultInstance; } public OsmAndPoiSubtype getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndPoiSubtype( 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; tagname_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; isText_ = input.readBool(); break; } case 40: { bitField0_ |= 0x00000008; frequency_ = input.readUInt32(); break; } case 48: { bitField0_ |= 0x00000010; subtypeValuesSize_ = input.readUInt32(); break; } case 66: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { subtypeValue_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } subtypeValue_.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_ & 0x00000020) == 0x00000020)) { subtypeValue_ = new com.google.protobuf.UnmodifiableLazyStringList(subtypeValue_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiSubtype_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiSubtype_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.class, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndPoiSubtype parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndPoiSubtype(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * 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) { 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 tagname = 2; public static final int TAGNAME_FIELD_NUMBER = 2; private java.lang.Object tagname_; /** * optional string tagname = 2; * *
     * same to name if not present
     * 
*/ public boolean hasTagname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string tagname = 2; * *
     * same to name if not present
     * 
*/ public java.lang.String getTagname() { java.lang.Object ref = tagname_; 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()) { tagname_ = s; } return s; } } /** * optional string tagname = 2; * *
     * same to name if not present
     * 
*/ public com.google.protobuf.ByteString getTagnameBytes() { java.lang.Object ref = tagname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tagname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required bool isText = 3; public static final int ISTEXT_FIELD_NUMBER = 3; private boolean isText_; /** * required bool isText = 3; */ public boolean hasIsText() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required bool isText = 3; */ public boolean getIsText() { return isText_; } // optional uint32 frequency = 5; public static final int FREQUENCY_FIELD_NUMBER = 5; private int frequency_; /** * optional uint32 frequency = 5; */ public boolean hasFrequency() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 frequency = 5; */ public int getFrequency() { return frequency_; } // optional uint32 subtypeValuesSize = 6; public static final int SUBTYPEVALUESSIZE_FIELD_NUMBER = 6; private int subtypeValuesSize_; /** * optional uint32 subtypeValuesSize = 6; */ public boolean hasSubtypeValuesSize() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 subtypeValuesSize = 6; */ public int getSubtypeValuesSize() { return subtypeValuesSize_; } // repeated string subtypeValue = 8; public static final int SUBTYPEVALUE_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList subtypeValue_; /** * repeated string subtypeValue = 8; */ public java.util.List getSubtypeValueList() { return subtypeValue_; } /** * repeated string subtypeValue = 8; */ public int getSubtypeValueCount() { return subtypeValue_.size(); } /** * repeated string subtypeValue = 8; */ public java.lang.String getSubtypeValue(int index) { return subtypeValue_.get(index); } /** * repeated string subtypeValue = 8; */ public com.google.protobuf.ByteString getSubtypeValueBytes(int index) { return subtypeValue_.getByteString(index); } private void initFields() { name_ = ""; tagname_ = ""; isText_ = false; frequency_ = 0; subtypeValuesSize_ = 0; subtypeValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasIsText()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getTagnameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, isText_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(5, frequency_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(6, subtypeValuesSize_); } for (int i = 0; i < subtypeValue_.size(); i++) { output.writeBytes(8, subtypeValue_.getByteString(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, getTagnameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isText_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, frequency_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, subtypeValuesSize_); } { int dataSize = 0; for (int i = 0; i < subtypeValue_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(subtypeValue_.getByteString(i)); } size += dataSize; size += 1 * getSubtypeValueList().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.OsmAndPoiSubtype parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiSubtype 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.OsmAndPoiSubtype parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiSubtype parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndPoiSubtype parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiSubtype 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.OsmAndPoiSubtype parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiSubtype 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.OsmAndPoiSubtype parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiSubtype 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.OsmAndPoiSubtype 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.OsmAndPoiSubtype} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiSubtype_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiSubtype_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.class, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); tagname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); isText_ = false; bitField0_ = (bitField0_ & ~0x00000004); frequency_ = 0; bitField0_ = (bitField0_ & ~0x00000008); subtypeValuesSize_ = 0; bitField0_ = (bitField0_ & ~0x00000010); subtypeValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiSubtype_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype build() { net.osmand.binary.OsmandOdb.OsmAndPoiSubtype result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype buildPartial() { net.osmand.binary.OsmandOdb.OsmAndPoiSubtype result = new net.osmand.binary.OsmandOdb.OsmAndPoiSubtype(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.tagname_ = tagname_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.isText_ = isText_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.frequency_ = frequency_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.subtypeValuesSize_ = subtypeValuesSize_; if (((bitField0_ & 0x00000020) == 0x00000020)) { subtypeValue_ = new com.google.protobuf.UnmodifiableLazyStringList( subtypeValue_); bitField0_ = (bitField0_ & ~0x00000020); } result.subtypeValue_ = subtypeValue_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndPoiSubtype) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndPoiSubtype)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiSubtype other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasTagname()) { bitField0_ |= 0x00000002; tagname_ = other.tagname_; onChanged(); } if (other.hasIsText()) { setIsText(other.getIsText()); } if (other.hasFrequency()) { setFrequency(other.getFrequency()); } if (other.hasSubtypeValuesSize()) { setSubtypeValuesSize(other.getSubtypeValuesSize()); } if (!other.subtypeValue_.isEmpty()) { if (subtypeValue_.isEmpty()) { subtypeValue_ = other.subtypeValue_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSubtypeValueIsMutable(); subtypeValue_.addAll(other.subtypeValue_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasIsText()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndPoiSubtype parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndPoiSubtype) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string name = 1; private java.lang.Object name_ = ""; /** * 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 tagname = 2; private java.lang.Object tagname_ = ""; /** * optional string tagname = 2; * *
       * same to name if not present
       * 
*/ public boolean hasTagname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string tagname = 2; * *
       * same to name if not present
       * 
*/ public java.lang.String getTagname() { java.lang.Object ref = tagname_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); tagname_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string tagname = 2; * *
       * same to name if not present
       * 
*/ public com.google.protobuf.ByteString getTagnameBytes() { java.lang.Object ref = tagname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tagname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string tagname = 2; * *
       * same to name if not present
       * 
*/ public Builder setTagname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; tagname_ = value; onChanged(); return this; } /** * optional string tagname = 2; * *
       * same to name if not present
       * 
*/ public Builder clearTagname() { bitField0_ = (bitField0_ & ~0x00000002); tagname_ = getDefaultInstance().getTagname(); onChanged(); return this; } /** * optional string tagname = 2; * *
       * same to name if not present
       * 
*/ public Builder setTagnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; tagname_ = value; onChanged(); return this; } // required bool isText = 3; private boolean isText_ ; /** * required bool isText = 3; */ public boolean hasIsText() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required bool isText = 3; */ public boolean getIsText() { return isText_; } /** * required bool isText = 3; */ public Builder setIsText(boolean value) { bitField0_ |= 0x00000004; isText_ = value; onChanged(); return this; } /** * required bool isText = 3; */ public Builder clearIsText() { bitField0_ = (bitField0_ & ~0x00000004); isText_ = false; onChanged(); return this; } // optional uint32 frequency = 5; private int frequency_ ; /** * optional uint32 frequency = 5; */ public boolean hasFrequency() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional uint32 frequency = 5; */ public int getFrequency() { return frequency_; } /** * optional uint32 frequency = 5; */ public Builder setFrequency(int value) { bitField0_ |= 0x00000008; frequency_ = value; onChanged(); return this; } /** * optional uint32 frequency = 5; */ public Builder clearFrequency() { bitField0_ = (bitField0_ & ~0x00000008); frequency_ = 0; onChanged(); return this; } // optional uint32 subtypeValuesSize = 6; private int subtypeValuesSize_ ; /** * optional uint32 subtypeValuesSize = 6; */ public boolean hasSubtypeValuesSize() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint32 subtypeValuesSize = 6; */ public int getSubtypeValuesSize() { return subtypeValuesSize_; } /** * optional uint32 subtypeValuesSize = 6; */ public Builder setSubtypeValuesSize(int value) { bitField0_ |= 0x00000010; subtypeValuesSize_ = value; onChanged(); return this; } /** * optional uint32 subtypeValuesSize = 6; */ public Builder clearSubtypeValuesSize() { bitField0_ = (bitField0_ & ~0x00000010); subtypeValuesSize_ = 0; onChanged(); return this; } // repeated string subtypeValue = 8; private com.google.protobuf.LazyStringList subtypeValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSubtypeValueIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { subtypeValue_ = new com.google.protobuf.LazyStringArrayList(subtypeValue_); bitField0_ |= 0x00000020; } } /** * repeated string subtypeValue = 8; */ public java.util.List getSubtypeValueList() { return java.util.Collections.unmodifiableList(subtypeValue_); } /** * repeated string subtypeValue = 8; */ public int getSubtypeValueCount() { return subtypeValue_.size(); } /** * repeated string subtypeValue = 8; */ public java.lang.String getSubtypeValue(int index) { return subtypeValue_.get(index); } /** * repeated string subtypeValue = 8; */ public com.google.protobuf.ByteString getSubtypeValueBytes(int index) { return subtypeValue_.getByteString(index); } /** * repeated string subtypeValue = 8; */ public Builder setSubtypeValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubtypeValueIsMutable(); subtypeValue_.set(index, value); onChanged(); return this; } /** * repeated string subtypeValue = 8; */ public Builder addSubtypeValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubtypeValueIsMutable(); subtypeValue_.add(value); onChanged(); return this; } /** * repeated string subtypeValue = 8; */ public Builder addAllSubtypeValue( java.lang.Iterable values) { ensureSubtypeValueIsMutable(); super.addAll(values, subtypeValue_); onChanged(); return this; } /** * repeated string subtypeValue = 8; */ public Builder clearSubtypeValue() { subtypeValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * repeated string subtypeValue = 8; */ public Builder addSubtypeValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSubtypeValueIsMutable(); subtypeValue_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiSubtype) } static { defaultInstance = new OsmAndPoiSubtype(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiSubtype) } public interface OsmAndPoiBoxOrBuilder extends com.google.protobuf.MessageOrBuilder { // required uint32 zoom = 1; /** * required uint32 zoom = 1; * *
     * delta encoded to parent
     * 
*/ boolean hasZoom(); /** * required uint32 zoom = 1; * *
     * delta encoded to parent
     * 
*/ int getZoom(); // required sint32 left = 2; /** * required sint32 left = 2; * *
     * size is one tile
     * 
*/ boolean hasLeft(); /** * required sint32 left = 2; * *
     * size is one tile
     * 
*/ int getLeft(); // required sint32 top = 3; /** * required sint32 top = 3; * *
     * delta encoded (zoom)
     * 
*/ boolean hasTop(); /** * required sint32 top = 3; * *
     * delta encoded (zoom)
     * 
*/ int getTop(); // optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ boolean hasCategories(); /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ net.osmand.binary.OsmandOdb.OsmAndPoiCategories getCategories(); /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder getCategoriesOrBuilder(); // repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getSubBoxesList(); /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiBox getSubBoxes(int index); /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
     * encoded as fixed32 length delimited
     * 
*/ int getSubBoxesCount(); /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getSubBoxesOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getSubBoxesOrBuilder( int index); // optional fixed32 shiftToData = 14; /** * optional fixed32 shiftToData = 14; * *
     * must be the last
     * 
*/ boolean hasShiftToData(); /** * optional fixed32 shiftToData = 14; * *
     * must be the last
     * 
*/ int getShiftToData(); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndPoiBox} */ public static final class OsmAndPoiBox extends com.google.protobuf.GeneratedMessage implements OsmAndPoiBoxOrBuilder { // Use OsmAndPoiBox.newBuilder() to construct. private OsmAndPoiBox(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndPoiBox(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndPoiBox defaultInstance; public static OsmAndPoiBox getDefaultInstance() { return defaultInstance; } public OsmAndPoiBox getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndPoiBox( 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; zoom_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; left_ = input.readSInt32(); break; } case 24: { bitField0_ |= 0x00000004; top_ = input.readSInt32(); break; } case 34: { net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = categories_.toBuilder(); } categories_ = input.readMessage(net.osmand.binary.OsmandOdb.OsmAndPoiCategories.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(categories_); categories_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 82: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { subBoxes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } subBoxes_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndPoiBox.PARSER, extensionRegistry)); break; } case 117: { bitField0_ |= 0x00000010; shiftToData_ = input.readFixed32(); 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_ & 0x00000010) == 0x00000010)) { subBoxes_ = java.util.Collections.unmodifiableList(subBoxes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBox_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBox_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiBox.class, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndPoiBox parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndPoiBox(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required uint32 zoom = 1; public static final int ZOOM_FIELD_NUMBER = 1; private int zoom_; /** * required uint32 zoom = 1; * *
     * delta encoded to parent
     * 
*/ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 zoom = 1; * *
     * delta encoded to parent
     * 
*/ public int getZoom() { return zoom_; } // required sint32 left = 2; public static final int LEFT_FIELD_NUMBER = 2; private int left_; /** * required sint32 left = 2; * *
     * size is one tile
     * 
*/ public boolean hasLeft() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 left = 2; * *
     * size is one tile
     * 
*/ public int getLeft() { return left_; } // required sint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; private int top_; /** * required sint32 top = 3; * *
     * delta encoded (zoom)
     * 
*/ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint32 top = 3; * *
     * delta encoded (zoom)
     * 
*/ public int getTop() { return top_; } // optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; public static final int CATEGORIES_FIELD_NUMBER = 4; private net.osmand.binary.OsmandOdb.OsmAndPoiCategories categories_; /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public boolean hasCategories() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public net.osmand.binary.OsmandOdb.OsmAndPoiCategories getCategories() { return categories_; } /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder getCategoriesOrBuilder() { return categories_; } // repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; public static final int SUBBOXES_FIELD_NUMBER = 10; private java.util.List subBoxes_; /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getSubBoxesList() { return subBoxes_; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getSubBoxesOrBuilderList() { return subBoxes_; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
     * encoded as fixed32 length delimited
     * 
*/ public int getSubBoxesCount() { return subBoxes_.size(); } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBox getSubBoxes(int index) { return subBoxes_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getSubBoxesOrBuilder( int index) { return subBoxes_.get(index); } // optional fixed32 shiftToData = 14; public static final int SHIFTTODATA_FIELD_NUMBER = 14; private int shiftToData_; /** * optional fixed32 shiftToData = 14; * *
     * must be the last
     * 
*/ public boolean hasShiftToData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional fixed32 shiftToData = 14; * *
     * must be the last
     * 
*/ public int getShiftToData() { return shiftToData_; } private void initFields() { zoom_ = 0; left_ = 0; top_ = 0; categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); subBoxes_ = java.util.Collections.emptyList(); shiftToData_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasZoom()) { memoizedIsInitialized = 0; return false; } if (!hasLeft()) { memoizedIsInitialized = 0; return false; } if (!hasTop()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getSubBoxesCount(); i++) { if (!getSubBoxes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, zoom_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(2, left_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeSInt32(3, top_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, categories_); } for (int i = 0; i < subBoxes_.size(); i++) { output.writeMessage(10, subBoxes_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeFixed32(14, shiftToData_); } 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, zoom_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, left_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(3, top_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, categories_); } for (int i = 0; i < subBoxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, subBoxes_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeFixed32Size(14, shiftToData_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBox parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBox 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.OsmAndPoiBox parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBox parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBox parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBox 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.OsmAndPoiBox parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBox 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.OsmAndPoiBox parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBox 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.OsmAndPoiBox 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.OsmAndPoiBox} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBox_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBox_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiBox.class, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiBox.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCategoriesFieldBuilder(); getSubBoxesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); zoom_ = 0; bitField0_ = (bitField0_ & ~0x00000001); left_ = 0; bitField0_ = (bitField0_ & ~0x00000002); top_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (categoriesBuilder_ == null) { categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); } else { categoriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (subBoxesBuilder_ == null) { subBoxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { subBoxesBuilder_.clear(); } shiftToData_ = 0; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBox_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndPoiBox getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndPoiBox build() { net.osmand.binary.OsmandOdb.OsmAndPoiBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiBox buildPartial() { net.osmand.binary.OsmandOdb.OsmAndPoiBox result = new net.osmand.binary.OsmandOdb.OsmAndPoiBox(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.zoom_ = zoom_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.left_ = left_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.top_ = top_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (categoriesBuilder_ == null) { result.categories_ = categories_; } else { result.categories_ = categoriesBuilder_.build(); } if (subBoxesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { subBoxes_ = java.util.Collections.unmodifiableList(subBoxes_); bitField0_ = (bitField0_ & ~0x00000010); } result.subBoxes_ = subBoxes_; } else { result.subBoxes_ = subBoxesBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.shiftToData_ = shiftToData_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndPoiBox) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndPoiBox)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiBox other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()) return this; if (other.hasZoom()) { setZoom(other.getZoom()); } if (other.hasLeft()) { setLeft(other.getLeft()); } if (other.hasTop()) { setTop(other.getTop()); } if (other.hasCategories()) { mergeCategories(other.getCategories()); } if (subBoxesBuilder_ == null) { if (!other.subBoxes_.isEmpty()) { if (subBoxes_.isEmpty()) { subBoxes_ = other.subBoxes_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSubBoxesIsMutable(); subBoxes_.addAll(other.subBoxes_); } onChanged(); } } else { if (!other.subBoxes_.isEmpty()) { if (subBoxesBuilder_.isEmpty()) { subBoxesBuilder_.dispose(); subBoxesBuilder_ = null; subBoxes_ = other.subBoxes_; bitField0_ = (bitField0_ & ~0x00000010); subBoxesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSubBoxesFieldBuilder() : null; } else { subBoxesBuilder_.addAllMessages(other.subBoxes_); } } } if (other.hasShiftToData()) { setShiftToData(other.getShiftToData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasZoom()) { return false; } if (!hasLeft()) { return false; } if (!hasTop()) { return false; } for (int i = 0; i < getSubBoxesCount(); i++) { if (!getSubBoxes(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndPoiBox parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndPoiBox) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required uint32 zoom = 1; private int zoom_ ; /** * required uint32 zoom = 1; * *
       * delta encoded to parent
       * 
*/ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 zoom = 1; * *
       * delta encoded to parent
       * 
*/ public int getZoom() { return zoom_; } /** * required uint32 zoom = 1; * *
       * delta encoded to parent
       * 
*/ public Builder setZoom(int value) { bitField0_ |= 0x00000001; zoom_ = value; onChanged(); return this; } /** * required uint32 zoom = 1; * *
       * delta encoded to parent
       * 
*/ public Builder clearZoom() { bitField0_ = (bitField0_ & ~0x00000001); zoom_ = 0; onChanged(); return this; } // required sint32 left = 2; private int left_ ; /** * required sint32 left = 2; * *
       * size is one tile
       * 
*/ public boolean hasLeft() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 left = 2; * *
       * size is one tile
       * 
*/ public int getLeft() { return left_; } /** * required sint32 left = 2; * *
       * size is one tile
       * 
*/ public Builder setLeft(int value) { bitField0_ |= 0x00000002; left_ = value; onChanged(); return this; } /** * required sint32 left = 2; * *
       * size is one tile
       * 
*/ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000002); left_ = 0; onChanged(); return this; } // required sint32 top = 3; private int top_ ; /** * required sint32 top = 3; * *
       * delta encoded (zoom)
       * 
*/ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required sint32 top = 3; * *
       * delta encoded (zoom)
       * 
*/ public int getTop() { return top_; } /** * required sint32 top = 3; * *
       * delta encoded (zoom)
       * 
*/ public Builder setTop(int value) { bitField0_ |= 0x00000004; top_ = value; onChanged(); return this; } /** * required sint32 top = 3; * *
       * delta encoded (zoom)
       * 
*/ public Builder clearTop() { bitField0_ = (bitField0_ & ~0x00000004); top_ = 0; onChanged(); return this; } // optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; private net.osmand.binary.OsmandOdb.OsmAndPoiCategories categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiCategories, net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder> categoriesBuilder_; /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public boolean hasCategories() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public net.osmand.binary.OsmandOdb.OsmAndPoiCategories getCategories() { if (categoriesBuilder_ == null) { return categories_; } else { return categoriesBuilder_.getMessage(); } } /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public Builder setCategories(net.osmand.binary.OsmandOdb.OsmAndPoiCategories value) { if (categoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } categories_ = value; onChanged(); } else { categoriesBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public Builder setCategories( net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder builderForValue) { if (categoriesBuilder_ == null) { categories_ = builderForValue.build(); onChanged(); } else { categoriesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public Builder mergeCategories(net.osmand.binary.OsmandOdb.OsmAndPoiCategories value) { if (categoriesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && categories_ != net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance()) { categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.newBuilder(categories_).mergeFrom(value).buildPartial(); } else { categories_ = value; } onChanged(); } else { categoriesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public Builder clearCategories() { if (categoriesBuilder_ == null) { categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); onChanged(); } else { categoriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder getCategoriesBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCategoriesFieldBuilder().getBuilder(); } /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ public net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder getCategoriesOrBuilder() { if (categoriesBuilder_ != null) { return categoriesBuilder_.getMessageOrBuilder(); } else { return categories_; } } /** * optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; */ private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiCategories, net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder> getCategoriesFieldBuilder() { if (categoriesBuilder_ == null) { categoriesBuilder_ = new com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiCategories, net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder>( categories_, getParentForChildren(), isClean()); categories_ = null; } return categoriesBuilder_; } // repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; private java.util.List subBoxes_ = java.util.Collections.emptyList(); private void ensureSubBoxesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { subBoxes_ = new java.util.ArrayList(subBoxes_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> subBoxesBuilder_; /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getSubBoxesList() { if (subBoxesBuilder_ == null) { return java.util.Collections.unmodifiableList(subBoxes_); } else { return subBoxesBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public int getSubBoxesCount() { if (subBoxesBuilder_ == null) { return subBoxes_.size(); } else { return subBoxesBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBox getSubBoxes(int index) { if (subBoxesBuilder_ == null) { return subBoxes_.get(index); } else { return subBoxesBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setSubBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { if (subBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubBoxesIsMutable(); subBoxes_.set(index, value); onChanged(); } else { subBoxesBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setSubBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { if (subBoxesBuilder_ == null) { ensureSubBoxesIsMutable(); subBoxes_.set(index, builderForValue.build()); onChanged(); } else { subBoxesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addSubBoxes(net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { if (subBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubBoxesIsMutable(); subBoxes_.add(value); onChanged(); } else { subBoxesBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addSubBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox value) { if (subBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubBoxesIsMutable(); subBoxes_.add(index, value); onChanged(); } else { subBoxesBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addSubBoxes( net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { if (subBoxesBuilder_ == null) { ensureSubBoxesIsMutable(); subBoxes_.add(builderForValue.build()); onChanged(); } else { subBoxesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addSubBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder builderForValue) { if (subBoxesBuilder_ == null) { ensureSubBoxesIsMutable(); subBoxes_.add(index, builderForValue.build()); onChanged(); } else { subBoxesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addAllSubBoxes( java.lang.Iterable values) { if (subBoxesBuilder_ == null) { ensureSubBoxesIsMutable(); super.addAll(values, subBoxes_); onChanged(); } else { subBoxesBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder clearSubBoxes() { if (subBoxesBuilder_ == null) { subBoxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { subBoxesBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder removeSubBoxes(int index) { if (subBoxesBuilder_ == null) { ensureSubBoxesIsMutable(); subBoxes_.remove(index); onChanged(); } else { subBoxesBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder getSubBoxesBuilder( int index) { return getSubBoxesFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getSubBoxesOrBuilder( int index) { if (subBoxesBuilder_ == null) { return subBoxes_.get(index); } else { return subBoxesBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getSubBoxesOrBuilderList() { if (subBoxesBuilder_ != null) { return subBoxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subBoxes_); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addSubBoxesBuilder() { return getSubBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addSubBoxesBuilder( int index) { return getSubBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getSubBoxesBuilderList() { return getSubBoxesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> getSubBoxesFieldBuilder() { if (subBoxesBuilder_ == null) { subBoxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBox, net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder>( subBoxes_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); subBoxes_ = null; } return subBoxesBuilder_; } // optional fixed32 shiftToData = 14; private int shiftToData_ ; /** * optional fixed32 shiftToData = 14; * *
       * must be the last
       * 
*/ public boolean hasShiftToData() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional fixed32 shiftToData = 14; * *
       * must be the last
       * 
*/ public int getShiftToData() { return shiftToData_; } /** * optional fixed32 shiftToData = 14; * *
       * must be the last
       * 
*/ public Builder setShiftToData(int value) { bitField0_ |= 0x00000020; shiftToData_ = value; onChanged(); return this; } /** * optional fixed32 shiftToData = 14; * *
       * must be the last
       * 
*/ public Builder clearShiftToData() { bitField0_ = (bitField0_ & ~0x00000020); shiftToData_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiBox) } static { defaultInstance = new OsmAndPoiBox(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiBox) } public interface OsmAndPoiCategoriesOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated uint32 categories = 3; /** * repeated uint32 categories = 3; * *
     * sorted categories
     * 
*/ java.util.List getCategoriesList(); /** * repeated uint32 categories = 3; * *
     * sorted categories
     * 
*/ int getCategoriesCount(); /** * repeated uint32 categories = 3; * *
     * sorted categories
     * 
*/ int getCategories(int index); // repeated uint32 subcategories = 5; /** * repeated uint32 subcategories = 5; */ java.util.List getSubcategoriesList(); /** * repeated uint32 subcategories = 5; */ int getSubcategoriesCount(); /** * repeated uint32 subcategories = 5; */ int getSubcategories(int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndPoiCategories} */ public static final class OsmAndPoiCategories extends com.google.protobuf.GeneratedMessage implements OsmAndPoiCategoriesOrBuilder { // Use OsmAndPoiCategories.newBuilder() to construct. private OsmAndPoiCategories(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndPoiCategories(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndPoiCategories defaultInstance; public static OsmAndPoiCategories getDefaultInstance() { return defaultInstance; } public OsmAndPoiCategories getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndPoiCategories( 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 24: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { categories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } categories_.add(input.readUInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { categories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { categories_.add(input.readUInt32()); } input.popLimit(limit); break; } case 40: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { subcategories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } subcategories_.add(input.readUInt32()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { subcategories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { subcategories_.add(input.readUInt32()); } input.popLimit(limit); 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)) { categories_ = java.util.Collections.unmodifiableList(categories_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { subcategories_ = java.util.Collections.unmodifiableList(subcategories_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiCategories_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiCategories_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiCategories.class, net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndPoiCategories parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndPoiCategories(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated uint32 categories = 3; public static final int CATEGORIES_FIELD_NUMBER = 3; private java.util.List categories_; /** * repeated uint32 categories = 3; * *
     * sorted categories
     * 
*/ public java.util.List getCategoriesList() { return categories_; } /** * repeated uint32 categories = 3; * *
     * sorted categories
     * 
*/ public int getCategoriesCount() { return categories_.size(); } /** * repeated uint32 categories = 3; * *
     * sorted categories
     * 
*/ public int getCategories(int index) { return categories_.get(index); } // repeated uint32 subcategories = 5; public static final int SUBCATEGORIES_FIELD_NUMBER = 5; private java.util.List subcategories_; /** * repeated uint32 subcategories = 5; */ public java.util.List getSubcategoriesList() { return subcategories_; } /** * repeated uint32 subcategories = 5; */ public int getSubcategoriesCount() { return subcategories_.size(); } /** * repeated uint32 subcategories = 5; */ public int getSubcategories(int index) { return subcategories_.get(index); } private void initFields() { categories_ = java.util.Collections.emptyList(); subcategories_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < categories_.size(); i++) { output.writeUInt32(3, categories_.get(i)); } for (int i = 0; i < subcategories_.size(); i++) { output.writeUInt32(5, subcategories_.get(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 < categories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(categories_.get(i)); } size += dataSize; size += 1 * getCategoriesList().size(); } { int dataSize = 0; for (int i = 0; i < subcategories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(subcategories_.get(i)); } size += dataSize; size += 1 * getSubcategoriesList().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.OsmAndPoiCategories parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiCategories 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.OsmAndPoiCategories parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiCategories parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndPoiCategories parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiCategories 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.OsmAndPoiCategories parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiCategories 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.OsmAndPoiCategories parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiCategories 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.OsmAndPoiCategories 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.OsmAndPoiCategories} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiCategories_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiCategories_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiCategories.class, net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiCategories.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); categories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); subcategories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiCategories_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndPoiCategories getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndPoiCategories build() { net.osmand.binary.OsmandOdb.OsmAndPoiCategories result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiCategories buildPartial() { net.osmand.binary.OsmandOdb.OsmAndPoiCategories result = new net.osmand.binary.OsmandOdb.OsmAndPoiCategories(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { categories_ = java.util.Collections.unmodifiableList(categories_); bitField0_ = (bitField0_ & ~0x00000001); } result.categories_ = categories_; if (((bitField0_ & 0x00000002) == 0x00000002)) { subcategories_ = java.util.Collections.unmodifiableList(subcategories_); bitField0_ = (bitField0_ & ~0x00000002); } result.subcategories_ = subcategories_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndPoiCategories) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndPoiCategories)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiCategories other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance()) return this; if (!other.categories_.isEmpty()) { if (categories_.isEmpty()) { categories_ = other.categories_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCategoriesIsMutable(); categories_.addAll(other.categories_); } onChanged(); } if (!other.subcategories_.isEmpty()) { if (subcategories_.isEmpty()) { subcategories_ = other.subcategories_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSubcategoriesIsMutable(); subcategories_.addAll(other.subcategories_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndPoiCategories parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndPoiCategories) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated uint32 categories = 3; private java.util.List categories_ = java.util.Collections.emptyList(); private void ensureCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { categories_ = new java.util.ArrayList(categories_); bitField0_ |= 0x00000001; } } /** * repeated uint32 categories = 3; * *
       * sorted categories
       * 
*/ public java.util.List getCategoriesList() { return java.util.Collections.unmodifiableList(categories_); } /** * repeated uint32 categories = 3; * *
       * sorted categories
       * 
*/ public int getCategoriesCount() { return categories_.size(); } /** * repeated uint32 categories = 3; * *
       * sorted categories
       * 
*/ public int getCategories(int index) { return categories_.get(index); } /** * repeated uint32 categories = 3; * *
       * sorted categories
       * 
*/ public Builder setCategories( int index, int value) { ensureCategoriesIsMutable(); categories_.set(index, value); onChanged(); return this; } /** * repeated uint32 categories = 3; * *
       * sorted categories
       * 
*/ public Builder addCategories(int value) { ensureCategoriesIsMutable(); categories_.add(value); onChanged(); return this; } /** * repeated uint32 categories = 3; * *
       * sorted categories
       * 
*/ public Builder addAllCategories( java.lang.Iterable values) { ensureCategoriesIsMutable(); super.addAll(values, categories_); onChanged(); return this; } /** * repeated uint32 categories = 3; * *
       * sorted categories
       * 
*/ public Builder clearCategories() { categories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // repeated uint32 subcategories = 5; private java.util.List subcategories_ = java.util.Collections.emptyList(); private void ensureSubcategoriesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { subcategories_ = new java.util.ArrayList(subcategories_); bitField0_ |= 0x00000002; } } /** * repeated uint32 subcategories = 5; */ public java.util.List getSubcategoriesList() { return java.util.Collections.unmodifiableList(subcategories_); } /** * repeated uint32 subcategories = 5; */ public int getSubcategoriesCount() { return subcategories_.size(); } /** * repeated uint32 subcategories = 5; */ public int getSubcategories(int index) { return subcategories_.get(index); } /** * repeated uint32 subcategories = 5; */ public Builder setSubcategories( int index, int value) { ensureSubcategoriesIsMutable(); subcategories_.set(index, value); onChanged(); return this; } /** * repeated uint32 subcategories = 5; */ public Builder addSubcategories(int value) { ensureSubcategoriesIsMutable(); subcategories_.add(value); onChanged(); return this; } /** * repeated uint32 subcategories = 5; */ public Builder addAllSubcategories( java.lang.Iterable values) { ensureSubcategoriesIsMutable(); super.addAll(values, subcategories_); onChanged(); return this; } /** * repeated uint32 subcategories = 5; */ public Builder clearSubcategories() { subcategories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiCategories) } static { defaultInstance = new OsmAndPoiCategories(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiCategories) } public interface OsmAndPoiBoxDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional uint32 zoom = 1; /** * optional uint32 zoom = 1; * *
     * zoom level
     * 
*/ boolean hasZoom(); /** * optional uint32 zoom = 1; * *
     * zoom level
     * 
*/ int getZoom(); // optional uint32 x = 2; /** * optional uint32 x = 2; * *
     * x tile
     * 
*/ boolean hasX(); /** * optional uint32 x = 2; * *
     * x tile
     * 
*/ int getX(); // optional uint32 y = 3; /** * optional uint32 y = 3; * *
     * y tile
     * 
*/ boolean hasY(); /** * optional uint32 y = 3; * *
     * y tile
     * 
*/ int getY(); // repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ java.util.List getPoiDataList(); /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom getPoiData(int index); /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ int getPoiDataCount(); /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ java.util.List getPoiDataOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder getPoiDataOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndPoiBoxData} */ public static final class OsmAndPoiBoxData extends com.google.protobuf.GeneratedMessage implements OsmAndPoiBoxDataOrBuilder { // Use OsmAndPoiBoxData.newBuilder() to construct. private OsmAndPoiBoxData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndPoiBoxData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndPoiBoxData defaultInstance; public static OsmAndPoiBoxData getDefaultInstance() { return defaultInstance; } public OsmAndPoiBoxData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndPoiBoxData( 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; zoom_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; x_ = input.readUInt32(); break; } case 24: { bitField0_ |= 0x00000004; y_ = input.readUInt32(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { poiData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } poiData_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.PARSER, extensionRegistry)); 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_ & 0x00000008) == 0x00000008)) { poiData_ = java.util.Collections.unmodifiableList(poiData_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.class, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndPoiBoxData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndPoiBoxData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional uint32 zoom = 1; public static final int ZOOM_FIELD_NUMBER = 1; private int zoom_; /** * optional uint32 zoom = 1; * *
     * zoom level
     * 
*/ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 zoom = 1; * *
     * zoom level
     * 
*/ public int getZoom() { return zoom_; } // optional uint32 x = 2; public static final int X_FIELD_NUMBER = 2; private int x_; /** * optional uint32 x = 2; * *
     * x tile
     * 
*/ public boolean hasX() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 x = 2; * *
     * x tile
     * 
*/ public int getX() { return x_; } // optional uint32 y = 3; public static final int Y_FIELD_NUMBER = 3; private int y_; /** * optional uint32 y = 3; * *
     * y tile
     * 
*/ public boolean hasY() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 y = 3; * *
     * y tile
     * 
*/ public int getY() { return y_; } // repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; public static final int POIDATA_FIELD_NUMBER = 5; private java.util.List poiData_; /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public java.util.List getPoiDataList() { return poiData_; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public java.util.List getPoiDataOrBuilderList() { return poiData_; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public int getPoiDataCount() { return poiData_.size(); } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom getPoiData(int index) { return poiData_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder getPoiDataOrBuilder( int index) { return poiData_.get(index); } private void initFields() { zoom_ = 0; x_ = 0; y_ = 0; poiData_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getPoiDataCount(); i++) { if (!getPoiData(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, zoom_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, x_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, y_); } for (int i = 0; i < poiData_.size(); i++) { output.writeMessage(5, poiData_.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 .computeUInt32Size(1, zoom_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, x_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, y_); } for (int i = 0; i < poiData_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, poiData_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxData 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.OsmAndPoiBoxData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxData 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.OsmAndPoiBoxData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxData 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.OsmAndPoiBoxData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxData 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.OsmAndPoiBoxData 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.OsmAndPoiBoxData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.class, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPoiDataFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); zoom_ = 0; bitField0_ = (bitField0_ & ~0x00000001); x_ = 0; bitField0_ = (bitField0_ & ~0x00000002); y_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (poiDataBuilder_ == null) { poiData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { poiDataBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxData_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData build() { net.osmand.binary.OsmandOdb.OsmAndPoiBoxData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData buildPartial() { net.osmand.binary.OsmandOdb.OsmAndPoiBoxData result = new net.osmand.binary.OsmandOdb.OsmAndPoiBoxData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.zoom_ = zoom_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.x_ = x_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.y_ = y_; if (poiDataBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { poiData_ = java.util.Collections.unmodifiableList(poiData_); bitField0_ = (bitField0_ & ~0x00000008); } result.poiData_ = poiData_; } else { result.poiData_ = poiDataBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndPoiBoxData) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndPoiBoxData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiBoxData other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.getDefaultInstance()) return this; if (other.hasZoom()) { setZoom(other.getZoom()); } if (other.hasX()) { setX(other.getX()); } if (other.hasY()) { setY(other.getY()); } if (poiDataBuilder_ == null) { if (!other.poiData_.isEmpty()) { if (poiData_.isEmpty()) { poiData_ = other.poiData_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePoiDataIsMutable(); poiData_.addAll(other.poiData_); } onChanged(); } } else { if (!other.poiData_.isEmpty()) { if (poiDataBuilder_.isEmpty()) { poiDataBuilder_.dispose(); poiDataBuilder_ = null; poiData_ = other.poiData_; bitField0_ = (bitField0_ & ~0x00000008); poiDataBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPoiDataFieldBuilder() : null; } else { poiDataBuilder_.addAllMessages(other.poiData_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getPoiDataCount(); i++) { if (!getPoiData(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndPoiBoxData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndPoiBoxData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional uint32 zoom = 1; private int zoom_ ; /** * optional uint32 zoom = 1; * *
       * zoom level
       * 
*/ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional uint32 zoom = 1; * *
       * zoom level
       * 
*/ public int getZoom() { return zoom_; } /** * optional uint32 zoom = 1; * *
       * zoom level
       * 
*/ public Builder setZoom(int value) { bitField0_ |= 0x00000001; zoom_ = value; onChanged(); return this; } /** * optional uint32 zoom = 1; * *
       * zoom level
       * 
*/ public Builder clearZoom() { bitField0_ = (bitField0_ & ~0x00000001); zoom_ = 0; onChanged(); return this; } // optional uint32 x = 2; private int x_ ; /** * optional uint32 x = 2; * *
       * x tile
       * 
*/ public boolean hasX() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional uint32 x = 2; * *
       * x tile
       * 
*/ public int getX() { return x_; } /** * optional uint32 x = 2; * *
       * x tile
       * 
*/ public Builder setX(int value) { bitField0_ |= 0x00000002; x_ = value; onChanged(); return this; } /** * optional uint32 x = 2; * *
       * x tile
       * 
*/ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000002); x_ = 0; onChanged(); return this; } // optional uint32 y = 3; private int y_ ; /** * optional uint32 y = 3; * *
       * y tile
       * 
*/ public boolean hasY() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint32 y = 3; * *
       * y tile
       * 
*/ public int getY() { return y_; } /** * optional uint32 y = 3; * *
       * y tile
       * 
*/ public Builder setY(int value) { bitField0_ |= 0x00000004; y_ = value; onChanged(); return this; } /** * optional uint32 y = 3; * *
       * y tile
       * 
*/ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000004); y_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; private java.util.List poiData_ = java.util.Collections.emptyList(); private void ensurePoiDataIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { poiData_ = new java.util.ArrayList(poiData_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder> poiDataBuilder_; /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public java.util.List getPoiDataList() { if (poiDataBuilder_ == null) { return java.util.Collections.unmodifiableList(poiData_); } else { return poiDataBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public int getPoiDataCount() { if (poiDataBuilder_ == null) { return poiData_.size(); } else { return poiDataBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom getPoiData(int index) { if (poiDataBuilder_ == null) { return poiData_.get(index); } else { return poiDataBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public Builder setPoiData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom value) { if (poiDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoiDataIsMutable(); poiData_.set(index, value); onChanged(); } else { poiDataBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public Builder setPoiData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder builderForValue) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); poiData_.set(index, builderForValue.build()); onChanged(); } else { poiDataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public Builder addPoiData(net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom value) { if (poiDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoiDataIsMutable(); poiData_.add(value); onChanged(); } else { poiDataBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public Builder addPoiData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom value) { if (poiDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoiDataIsMutable(); poiData_.add(index, value); onChanged(); } else { poiDataBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public Builder addPoiData( net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder builderForValue) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); poiData_.add(builderForValue.build()); onChanged(); } else { poiDataBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public Builder addPoiData( int index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder builderForValue) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); poiData_.add(index, builderForValue.build()); onChanged(); } else { poiDataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public Builder addAllPoiData( java.lang.Iterable values) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); super.addAll(values, poiData_); onChanged(); } else { poiDataBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public Builder clearPoiData() { if (poiDataBuilder_ == null) { poiData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { poiDataBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public Builder removePoiData(int index) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); poiData_.remove(index); onChanged(); } else { poiDataBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder getPoiDataBuilder( int index) { return getPoiDataFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder getPoiDataOrBuilder( int index) { if (poiDataBuilder_ == null) { return poiData_.get(index); } else { return poiDataBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public java.util.List getPoiDataOrBuilderList() { if (poiDataBuilder_ != null) { return poiDataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(poiData_); } } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder addPoiDataBuilder() { return getPoiDataFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder addPoiDataBuilder( int index) { return getPoiDataFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; */ public java.util.List getPoiDataBuilderList() { return getPoiDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder> getPoiDataFieldBuilder() { if (poiDataBuilder_ == null) { poiDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder>( poiData_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); poiData_ = null; } return poiDataBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiBoxData) } static { defaultInstance = new OsmAndPoiBoxData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiBoxData) } public interface OsmAndPoiBoxDataAtomOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint32 dx = 2; /** * required sint32 dx = 2; * *
     * delta encoded to OsmAndPoiBox on 24 zoom
     * 
*/ boolean hasDx(); /** * required sint32 dx = 2; * *
     * delta encoded to OsmAndPoiBox on 24 zoom
     * 
*/ int getDx(); // required sint32 dy = 3; /** * required sint32 dy = 3; * *
     * delta encoded to OsmAndPoiBox on 24 zoom
     * 
*/ boolean hasDy(); /** * required sint32 dy = 3; * *
     * delta encoded to OsmAndPoiBox on 24 zoom
     * 
*/ int getDy(); // repeated uint32 categories = 4; /** * repeated uint32 categories = 4; */ java.util.List getCategoriesList(); /** * repeated uint32 categories = 4; */ int getCategoriesCount(); /** * repeated uint32 categories = 4; */ int getCategories(int index); // repeated uint32 subcategories = 5; /** * repeated uint32 subcategories = 5; * *
     * v1.7
     * 
*/ java.util.List getSubcategoriesList(); /** * repeated uint32 subcategories = 5; * *
     * v1.7
     * 
*/ int getSubcategoriesCount(); /** * repeated uint32 subcategories = 5; * *
     * v1.7
     * 
*/ int getSubcategories(int index); // optional string name = 6; /** * optional string name = 6; */ boolean hasName(); /** * optional string name = 6; */ java.lang.String getName(); /** * optional string name = 6; */ com.google.protobuf.ByteString getNameBytes(); // optional string nameEn = 7; /** * optional string nameEn = 7; */ boolean hasNameEn(); /** * optional string nameEn = 7; */ java.lang.String getNameEn(); /** * optional string nameEn = 7; */ com.google.protobuf.ByteString getNameEnBytes(); // optional uint64 id = 8; /** * optional uint64 id = 8; */ boolean hasId(); /** * optional uint64 id = 8; */ long getId(); // optional string openingHours = 10; /** * optional string openingHours = 10; * *
     * deprecated from v1.7
     * 
*/ boolean hasOpeningHours(); /** * optional string openingHours = 10; * *
     * deprecated from v1.7
     * 
*/ java.lang.String getOpeningHours(); /** * optional string openingHours = 10; * *
     * deprecated from v1.7
     * 
*/ com.google.protobuf.ByteString getOpeningHoursBytes(); // optional string site = 11; /** * optional string site = 11; */ boolean hasSite(); /** * optional string site = 11; */ java.lang.String getSite(); /** * optional string site = 11; */ com.google.protobuf.ByteString getSiteBytes(); // optional string phone = 12; /** * optional string phone = 12; */ boolean hasPhone(); /** * optional string phone = 12; */ java.lang.String getPhone(); /** * optional string phone = 12; */ com.google.protobuf.ByteString getPhoneBytes(); // optional string note = 13; /** * optional string note = 13; */ boolean hasNote(); /** * optional string note = 13; */ java.lang.String getNote(); /** * optional string note = 13; */ com.google.protobuf.ByteString getNoteBytes(); // repeated uint32 textCategories = 14; /** * repeated uint32 textCategories = 14; * *
     * v1.7
     * 
*/ java.util.List getTextCategoriesList(); /** * repeated uint32 textCategories = 14; * *
     * v1.7
     * 
*/ int getTextCategoriesCount(); /** * repeated uint32 textCategories = 14; * *
     * v1.7
     * 
*/ int getTextCategories(int index); // repeated string textValues = 15; /** * repeated string textValues = 15; */ java.util.List getTextValuesList(); /** * repeated string textValues = 15; */ int getTextValuesCount(); /** * repeated string textValues = 15; */ java.lang.String getTextValues(int index); /** * repeated string textValues = 15; */ com.google.protobuf.ByteString getTextValuesBytes(int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndPoiBoxDataAtom} */ public static final class OsmAndPoiBoxDataAtom extends com.google.protobuf.GeneratedMessage implements OsmAndPoiBoxDataAtomOrBuilder { // Use OsmAndPoiBoxDataAtom.newBuilder() to construct. private OsmAndPoiBoxDataAtom(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndPoiBoxDataAtom(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndPoiBoxDataAtom defaultInstance; public static OsmAndPoiBoxDataAtom getDefaultInstance() { return defaultInstance; } public OsmAndPoiBoxDataAtom getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndPoiBoxDataAtom( 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: { bitField0_ |= 0x00000001; dx_ = input.readSInt32(); break; } case 24: { bitField0_ |= 0x00000002; dy_ = input.readSInt32(); break; } case 32: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { categories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } categories_.add(input.readUInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { categories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { categories_.add(input.readUInt32()); } input.popLimit(limit); break; } case 40: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { subcategories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } subcategories_.add(input.readUInt32()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { subcategories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { subcategories_.add(input.readUInt32()); } input.popLimit(limit); break; } case 50: { bitField0_ |= 0x00000004; name_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000008; nameEn_ = input.readBytes(); break; } case 64: { bitField0_ |= 0x00000010; id_ = input.readUInt64(); break; } case 82: { bitField0_ |= 0x00000020; openingHours_ = input.readBytes(); break; } case 90: { bitField0_ |= 0x00000040; site_ = input.readBytes(); break; } case 98: { bitField0_ |= 0x00000080; phone_ = input.readBytes(); break; } case 106: { bitField0_ |= 0x00000100; note_ = input.readBytes(); break; } case 112: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { textCategories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } textCategories_.add(input.readUInt32()); break; } case 114: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) { textCategories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } while (input.getBytesUntilLimit() > 0) { textCategories_.add(input.readUInt32()); } input.popLimit(limit); break; } case 122: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { textValues_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00001000; } textValues_.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_ & 0x00000004) == 0x00000004)) { categories_ = java.util.Collections.unmodifiableList(categories_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { subcategories_ = java.util.Collections.unmodifiableList(subcategories_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { textCategories_ = java.util.Collections.unmodifiableList(textCategories_); } if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { textValues_ = new com.google.protobuf.UnmodifiableLazyStringList(textValues_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.class, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndPoiBoxDataAtom parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndPoiBoxDataAtom(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required sint32 dx = 2; public static final int DX_FIELD_NUMBER = 2; private int dx_; /** * required sint32 dx = 2; * *
     * delta encoded to OsmAndPoiBox on 24 zoom
     * 
*/ public boolean hasDx() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint32 dx = 2; * *
     * delta encoded to OsmAndPoiBox on 24 zoom
     * 
*/ public int getDx() { return dx_; } // required sint32 dy = 3; public static final int DY_FIELD_NUMBER = 3; private int dy_; /** * required sint32 dy = 3; * *
     * delta encoded to OsmAndPoiBox on 24 zoom
     * 
*/ public boolean hasDy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 dy = 3; * *
     * delta encoded to OsmAndPoiBox on 24 zoom
     * 
*/ public int getDy() { return dy_; } // repeated uint32 categories = 4; public static final int CATEGORIES_FIELD_NUMBER = 4; private java.util.List categories_; /** * repeated uint32 categories = 4; */ public java.util.List getCategoriesList() { return categories_; } /** * repeated uint32 categories = 4; */ public int getCategoriesCount() { return categories_.size(); } /** * repeated uint32 categories = 4; */ public int getCategories(int index) { return categories_.get(index); } // repeated uint32 subcategories = 5; public static final int SUBCATEGORIES_FIELD_NUMBER = 5; private java.util.List subcategories_; /** * repeated uint32 subcategories = 5; * *
     * v1.7
     * 
*/ public java.util.List getSubcategoriesList() { return subcategories_; } /** * repeated uint32 subcategories = 5; * *
     * v1.7
     * 
*/ public int getSubcategoriesCount() { return subcategories_.size(); } /** * repeated uint32 subcategories = 5; * *
     * v1.7
     * 
*/ public int getSubcategories(int index) { return subcategories_.get(index); } // optional string name = 6; public static final int NAME_FIELD_NUMBER = 6; private java.lang.Object name_; /** * optional string name = 6; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string name = 6; */ 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 = 6; */ 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 = 7; public static final int NAMEEN_FIELD_NUMBER = 7; private java.lang.Object nameEn_; /** * optional string nameEn = 7; */ public boolean hasNameEn() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string nameEn = 7; */ 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 = 7; */ 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 = 8; public static final int ID_FIELD_NUMBER = 8; private long id_; /** * optional uint64 id = 8; */ public boolean hasId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional uint64 id = 8; */ public long getId() { return id_; } // optional string openingHours = 10; public static final int OPENINGHOURS_FIELD_NUMBER = 10; private java.lang.Object openingHours_; /** * optional string openingHours = 10; * *
     * deprecated from v1.7
     * 
*/ public boolean hasOpeningHours() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string openingHours = 10; * *
     * deprecated from v1.7
     * 
*/ public java.lang.String getOpeningHours() { java.lang.Object ref = openingHours_; 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()) { openingHours_ = s; } return s; } } /** * optional string openingHours = 10; * *
     * deprecated from v1.7
     * 
*/ public com.google.protobuf.ByteString getOpeningHoursBytes() { java.lang.Object ref = openingHours_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); openingHours_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string site = 11; public static final int SITE_FIELD_NUMBER = 11; private java.lang.Object site_; /** * optional string site = 11; */ public boolean hasSite() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string site = 11; */ public java.lang.String getSite() { java.lang.Object ref = site_; 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()) { site_ = s; } return s; } } /** * optional string site = 11; */ public com.google.protobuf.ByteString getSiteBytes() { java.lang.Object ref = site_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); site_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string phone = 12; public static final int PHONE_FIELD_NUMBER = 12; private java.lang.Object phone_; /** * optional string phone = 12; */ public boolean hasPhone() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string phone = 12; */ public java.lang.String getPhone() { java.lang.Object ref = phone_; 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()) { phone_ = s; } return s; } } /** * optional string phone = 12; */ public com.google.protobuf.ByteString getPhoneBytes() { java.lang.Object ref = phone_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string note = 13; public static final int NOTE_FIELD_NUMBER = 13; private java.lang.Object note_; /** * optional string note = 13; */ public boolean hasNote() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string note = 13; */ public java.lang.String getNote() { java.lang.Object ref = note_; 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()) { note_ = s; } return s; } } /** * optional string note = 13; */ public com.google.protobuf.ByteString getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); note_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated uint32 textCategories = 14; public static final int TEXTCATEGORIES_FIELD_NUMBER = 14; private java.util.List textCategories_; /** * repeated uint32 textCategories = 14; * *
     * v1.7
     * 
*/ public java.util.List getTextCategoriesList() { return textCategories_; } /** * repeated uint32 textCategories = 14; * *
     * v1.7
     * 
*/ public int getTextCategoriesCount() { return textCategories_.size(); } /** * repeated uint32 textCategories = 14; * *
     * v1.7
     * 
*/ public int getTextCategories(int index) { return textCategories_.get(index); } // repeated string textValues = 15; public static final int TEXTVALUES_FIELD_NUMBER = 15; private com.google.protobuf.LazyStringList textValues_; /** * repeated string textValues = 15; */ public java.util.List getTextValuesList() { return textValues_; } /** * repeated string textValues = 15; */ public int getTextValuesCount() { return textValues_.size(); } /** * repeated string textValues = 15; */ public java.lang.String getTextValues(int index) { return textValues_.get(index); } /** * repeated string textValues = 15; */ public com.google.protobuf.ByteString getTextValuesBytes(int index) { return textValues_.getByteString(index); } private void initFields() { dx_ = 0; dy_ = 0; categories_ = java.util.Collections.emptyList(); subcategories_ = java.util.Collections.emptyList(); name_ = ""; nameEn_ = ""; id_ = 0L; openingHours_ = ""; site_ = ""; phone_ = ""; note_ = ""; textCategories_ = java.util.Collections.emptyList(); textValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasDx()) { memoizedIsInitialized = 0; return false; } if (!hasDy()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeSInt32(2, dx_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(3, dy_); } for (int i = 0; i < categories_.size(); i++) { output.writeUInt32(4, categories_.get(i)); } for (int i = 0; i < subcategories_.size(); i++) { output.writeUInt32(5, subcategories_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(6, getNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(7, getNameEnBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt64(8, id_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(10, getOpeningHoursBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(11, getSiteBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(12, getPhoneBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBytes(13, getNoteBytes()); } for (int i = 0; i < textCategories_.size(); i++) { output.writeUInt32(14, textCategories_.get(i)); } for (int i = 0; i < textValues_.size(); i++) { output.writeBytes(15, textValues_.getByteString(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(2, dx_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(3, dy_); } { int dataSize = 0; for (int i = 0; i < categories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(categories_.get(i)); } size += dataSize; size += 1 * getCategoriesList().size(); } { int dataSize = 0; for (int i = 0; i < subcategories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(subcategories_.get(i)); } size += dataSize; size += 1 * getSubcategoriesList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getNameEnBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, id_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, getOpeningHoursBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, getSiteBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, getPhoneBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, getNoteBytes()); } { int dataSize = 0; for (int i = 0; i < textCategories_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(textCategories_.get(i)); } size += dataSize; size += 1 * getTextCategoriesList().size(); } { int dataSize = 0; for (int i = 0; i < textValues_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(textValues_.getByteString(i)); } size += dataSize; size += 1 * getTextValuesList().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.OsmAndPoiBoxDataAtom parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom 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.OsmAndPoiBoxDataAtom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom 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.OsmAndPoiBoxDataAtom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom 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.OsmAndPoiBoxDataAtom parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom 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.OsmAndPoiBoxDataAtom 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.OsmAndPoiBoxDataAtom} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.class, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); dx_ = 0; bitField0_ = (bitField0_ & ~0x00000001); dy_ = 0; bitField0_ = (bitField0_ & ~0x00000002); categories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); subcategories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); name_ = ""; bitField0_ = (bitField0_ & ~0x00000010); nameEn_ = ""; bitField0_ = (bitField0_ & ~0x00000020); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); openingHours_ = ""; bitField0_ = (bitField0_ & ~0x00000080); site_ = ""; bitField0_ = (bitField0_ & ~0x00000100); phone_ = ""; bitField0_ = (bitField0_ & ~0x00000200); note_ = ""; bitField0_ = (bitField0_ & ~0x00000400); textCategories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); textValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom build() { net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom buildPartial() { net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom result = new net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.dx_ = dx_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.dy_ = dy_; if (((bitField0_ & 0x00000004) == 0x00000004)) { categories_ = java.util.Collections.unmodifiableList(categories_); bitField0_ = (bitField0_ & ~0x00000004); } result.categories_ = categories_; if (((bitField0_ & 0x00000008) == 0x00000008)) { subcategories_ = java.util.Collections.unmodifiableList(subcategories_); bitField0_ = (bitField0_ & ~0x00000008); } result.subcategories_ = subcategories_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.name_ = name_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } result.nameEn_ = nameEn_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } result.id_ = id_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000020; } result.openingHours_ = openingHours_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } result.site_ = site_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000080; } result.phone_ = phone_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000100; } result.note_ = note_; if (((bitField0_ & 0x00000800) == 0x00000800)) { textCategories_ = java.util.Collections.unmodifiableList(textCategories_); bitField0_ = (bitField0_ & ~0x00000800); } result.textCategories_ = textCategories_; if (((bitField0_ & 0x00001000) == 0x00001000)) { textValues_ = new com.google.protobuf.UnmodifiableLazyStringList( textValues_); bitField0_ = (bitField0_ & ~0x00001000); } result.textValues_ = textValues_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom other) { if (other == net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.getDefaultInstance()) return this; if (other.hasDx()) { setDx(other.getDx()); } if (other.hasDy()) { setDy(other.getDy()); } if (!other.categories_.isEmpty()) { if (categories_.isEmpty()) { categories_ = other.categories_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCategoriesIsMutable(); categories_.addAll(other.categories_); } onChanged(); } if (!other.subcategories_.isEmpty()) { if (subcategories_.isEmpty()) { subcategories_ = other.subcategories_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSubcategoriesIsMutable(); subcategories_.addAll(other.subcategories_); } onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000010; name_ = other.name_; onChanged(); } if (other.hasNameEn()) { bitField0_ |= 0x00000020; nameEn_ = other.nameEn_; onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.hasOpeningHours()) { bitField0_ |= 0x00000080; openingHours_ = other.openingHours_; onChanged(); } if (other.hasSite()) { bitField0_ |= 0x00000100; site_ = other.site_; onChanged(); } if (other.hasPhone()) { bitField0_ |= 0x00000200; phone_ = other.phone_; onChanged(); } if (other.hasNote()) { bitField0_ |= 0x00000400; note_ = other.note_; onChanged(); } if (!other.textCategories_.isEmpty()) { if (textCategories_.isEmpty()) { textCategories_ = other.textCategories_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureTextCategoriesIsMutable(); textCategories_.addAll(other.textCategories_); } onChanged(); } if (!other.textValues_.isEmpty()) { if (textValues_.isEmpty()) { textValues_ = other.textValues_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureTextValuesIsMutable(); textValues_.addAll(other.textValues_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasDx()) { return false; } if (!hasDy()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required sint32 dx = 2; private int dx_ ; /** * required sint32 dx = 2; * *
       * delta encoded to OsmAndPoiBox on 24 zoom
       * 
*/ public boolean hasDx() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint32 dx = 2; * *
       * delta encoded to OsmAndPoiBox on 24 zoom
       * 
*/ public int getDx() { return dx_; } /** * required sint32 dx = 2; * *
       * delta encoded to OsmAndPoiBox on 24 zoom
       * 
*/ public Builder setDx(int value) { bitField0_ |= 0x00000001; dx_ = value; onChanged(); return this; } /** * required sint32 dx = 2; * *
       * delta encoded to OsmAndPoiBox on 24 zoom
       * 
*/ public Builder clearDx() { bitField0_ = (bitField0_ & ~0x00000001); dx_ = 0; onChanged(); return this; } // required sint32 dy = 3; private int dy_ ; /** * required sint32 dy = 3; * *
       * delta encoded to OsmAndPoiBox on 24 zoom
       * 
*/ public boolean hasDy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required sint32 dy = 3; * *
       * delta encoded to OsmAndPoiBox on 24 zoom
       * 
*/ public int getDy() { return dy_; } /** * required sint32 dy = 3; * *
       * delta encoded to OsmAndPoiBox on 24 zoom
       * 
*/ public Builder setDy(int value) { bitField0_ |= 0x00000002; dy_ = value; onChanged(); return this; } /** * required sint32 dy = 3; * *
       * delta encoded to OsmAndPoiBox on 24 zoom
       * 
*/ public Builder clearDy() { bitField0_ = (bitField0_ & ~0x00000002); dy_ = 0; onChanged(); return this; } // repeated uint32 categories = 4; private java.util.List categories_ = java.util.Collections.emptyList(); private void ensureCategoriesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { categories_ = new java.util.ArrayList(categories_); bitField0_ |= 0x00000004; } } /** * repeated uint32 categories = 4; */ public java.util.List getCategoriesList() { return java.util.Collections.unmodifiableList(categories_); } /** * repeated uint32 categories = 4; */ public int getCategoriesCount() { return categories_.size(); } /** * repeated uint32 categories = 4; */ public int getCategories(int index) { return categories_.get(index); } /** * repeated uint32 categories = 4; */ public Builder setCategories( int index, int value) { ensureCategoriesIsMutable(); categories_.set(index, value); onChanged(); return this; } /** * repeated uint32 categories = 4; */ public Builder addCategories(int value) { ensureCategoriesIsMutable(); categories_.add(value); onChanged(); return this; } /** * repeated uint32 categories = 4; */ public Builder addAllCategories( java.lang.Iterable values) { ensureCategoriesIsMutable(); super.addAll(values, categories_); onChanged(); return this; } /** * repeated uint32 categories = 4; */ public Builder clearCategories() { categories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // repeated uint32 subcategories = 5; private java.util.List subcategories_ = java.util.Collections.emptyList(); private void ensureSubcategoriesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { subcategories_ = new java.util.ArrayList(subcategories_); bitField0_ |= 0x00000008; } } /** * repeated uint32 subcategories = 5; * *
       * v1.7
       * 
*/ public java.util.List getSubcategoriesList() { return java.util.Collections.unmodifiableList(subcategories_); } /** * repeated uint32 subcategories = 5; * *
       * v1.7
       * 
*/ public int getSubcategoriesCount() { return subcategories_.size(); } /** * repeated uint32 subcategories = 5; * *
       * v1.7
       * 
*/ public int getSubcategories(int index) { return subcategories_.get(index); } /** * repeated uint32 subcategories = 5; * *
       * v1.7
       * 
*/ public Builder setSubcategories( int index, int value) { ensureSubcategoriesIsMutable(); subcategories_.set(index, value); onChanged(); return this; } /** * repeated uint32 subcategories = 5; * *
       * v1.7
       * 
*/ public Builder addSubcategories(int value) { ensureSubcategoriesIsMutable(); subcategories_.add(value); onChanged(); return this; } /** * repeated uint32 subcategories = 5; * *
       * v1.7
       * 
*/ public Builder addAllSubcategories( java.lang.Iterable values) { ensureSubcategoriesIsMutable(); super.addAll(values, subcategories_); onChanged(); return this; } /** * repeated uint32 subcategories = 5; * *
       * v1.7
       * 
*/ public Builder clearSubcategories() { subcategories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // optional string name = 6; private java.lang.Object name_ = ""; /** * optional string name = 6; */ public boolean hasName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string name = 6; */ 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 = 6; */ 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 = 6; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; name_ = value; onChanged(); return this; } /** * optional string name = 6; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000010); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 6; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; name_ = value; onChanged(); return this; } // optional string nameEn = 7; private java.lang.Object nameEn_ = ""; /** * optional string nameEn = 7; */ public boolean hasNameEn() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string nameEn = 7; */ 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 = 7; */ 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 = 7; */ public Builder setNameEn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; nameEn_ = value; onChanged(); return this; } /** * optional string nameEn = 7; */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000020); nameEn_ = getDefaultInstance().getNameEn(); onChanged(); return this; } /** * optional string nameEn = 7; */ public Builder setNameEnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; nameEn_ = value; onChanged(); return this; } // optional uint64 id = 8; private long id_ ; /** * optional uint64 id = 8; */ public boolean hasId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint64 id = 8; */ public long getId() { return id_; } /** * optional uint64 id = 8; */ public Builder setId(long value) { bitField0_ |= 0x00000040; id_ = value; onChanged(); return this; } /** * optional uint64 id = 8; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000040); id_ = 0L; onChanged(); return this; } // optional string openingHours = 10; private java.lang.Object openingHours_ = ""; /** * optional string openingHours = 10; * *
       * deprecated from v1.7
       * 
*/ public boolean hasOpeningHours() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string openingHours = 10; * *
       * deprecated from v1.7
       * 
*/ public java.lang.String getOpeningHours() { java.lang.Object ref = openingHours_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); openingHours_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string openingHours = 10; * *
       * deprecated from v1.7
       * 
*/ public com.google.protobuf.ByteString getOpeningHoursBytes() { java.lang.Object ref = openingHours_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); openingHours_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string openingHours = 10; * *
       * deprecated from v1.7
       * 
*/ public Builder setOpeningHours( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; openingHours_ = value; onChanged(); return this; } /** * optional string openingHours = 10; * *
       * deprecated from v1.7
       * 
*/ public Builder clearOpeningHours() { bitField0_ = (bitField0_ & ~0x00000080); openingHours_ = getDefaultInstance().getOpeningHours(); onChanged(); return this; } /** * optional string openingHours = 10; * *
       * deprecated from v1.7
       * 
*/ public Builder setOpeningHoursBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; openingHours_ = value; onChanged(); return this; } // optional string site = 11; private java.lang.Object site_ = ""; /** * optional string site = 11; */ public boolean hasSite() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string site = 11; */ public java.lang.String getSite() { java.lang.Object ref = site_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); site_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string site = 11; */ public com.google.protobuf.ByteString getSiteBytes() { java.lang.Object ref = site_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); site_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string site = 11; */ public Builder setSite( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; site_ = value; onChanged(); return this; } /** * optional string site = 11; */ public Builder clearSite() { bitField0_ = (bitField0_ & ~0x00000100); site_ = getDefaultInstance().getSite(); onChanged(); return this; } /** * optional string site = 11; */ public Builder setSiteBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; site_ = value; onChanged(); return this; } // optional string phone = 12; private java.lang.Object phone_ = ""; /** * optional string phone = 12; */ public boolean hasPhone() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string phone = 12; */ public java.lang.String getPhone() { java.lang.Object ref = phone_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); phone_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string phone = 12; */ public com.google.protobuf.ByteString getPhoneBytes() { java.lang.Object ref = phone_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phone_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string phone = 12; */ public Builder setPhone( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; phone_ = value; onChanged(); return this; } /** * optional string phone = 12; */ public Builder clearPhone() { bitField0_ = (bitField0_ & ~0x00000200); phone_ = getDefaultInstance().getPhone(); onChanged(); return this; } /** * optional string phone = 12; */ public Builder setPhoneBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; phone_ = value; onChanged(); return this; } // optional string note = 13; private java.lang.Object note_ = ""; /** * optional string note = 13; */ public boolean hasNote() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string note = 13; */ public java.lang.String getNote() { java.lang.Object ref = note_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); note_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string note = 13; */ public com.google.protobuf.ByteString getNoteBytes() { java.lang.Object ref = note_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); note_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string note = 13; */ public Builder setNote( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; note_ = value; onChanged(); return this; } /** * optional string note = 13; */ public Builder clearNote() { bitField0_ = (bitField0_ & ~0x00000400); note_ = getDefaultInstance().getNote(); onChanged(); return this; } /** * optional string note = 13; */ public Builder setNoteBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; note_ = value; onChanged(); return this; } // repeated uint32 textCategories = 14; private java.util.List textCategories_ = java.util.Collections.emptyList(); private void ensureTextCategoriesIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { textCategories_ = new java.util.ArrayList(textCategories_); bitField0_ |= 0x00000800; } } /** * repeated uint32 textCategories = 14; * *
       * v1.7
       * 
*/ public java.util.List getTextCategoriesList() { return java.util.Collections.unmodifiableList(textCategories_); } /** * repeated uint32 textCategories = 14; * *
       * v1.7
       * 
*/ public int getTextCategoriesCount() { return textCategories_.size(); } /** * repeated uint32 textCategories = 14; * *
       * v1.7
       * 
*/ public int getTextCategories(int index) { return textCategories_.get(index); } /** * repeated uint32 textCategories = 14; * *
       * v1.7
       * 
*/ public Builder setTextCategories( int index, int value) { ensureTextCategoriesIsMutable(); textCategories_.set(index, value); onChanged(); return this; } /** * repeated uint32 textCategories = 14; * *
       * v1.7
       * 
*/ public Builder addTextCategories(int value) { ensureTextCategoriesIsMutable(); textCategories_.add(value); onChanged(); return this; } /** * repeated uint32 textCategories = 14; * *
       * v1.7
       * 
*/ public Builder addAllTextCategories( java.lang.Iterable values) { ensureTextCategoriesIsMutable(); super.addAll(values, textCategories_); onChanged(); return this; } /** * repeated uint32 textCategories = 14; * *
       * v1.7
       * 
*/ public Builder clearTextCategories() { textCategories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } // repeated string textValues = 15; private com.google.protobuf.LazyStringList textValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTextValuesIsMutable() { if (!((bitField0_ & 0x00001000) == 0x00001000)) { textValues_ = new com.google.protobuf.LazyStringArrayList(textValues_); bitField0_ |= 0x00001000; } } /** * repeated string textValues = 15; */ public java.util.List getTextValuesList() { return java.util.Collections.unmodifiableList(textValues_); } /** * repeated string textValues = 15; */ public int getTextValuesCount() { return textValues_.size(); } /** * repeated string textValues = 15; */ public java.lang.String getTextValues(int index) { return textValues_.get(index); } /** * repeated string textValues = 15; */ public com.google.protobuf.ByteString getTextValuesBytes(int index) { return textValues_.getByteString(index); } /** * repeated string textValues = 15; */ public Builder setTextValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTextValuesIsMutable(); textValues_.set(index, value); onChanged(); return this; } /** * repeated string textValues = 15; */ public Builder addTextValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTextValuesIsMutable(); textValues_.add(value); onChanged(); return this; } /** * repeated string textValues = 15; */ public Builder addAllTextValues( java.lang.Iterable values) { ensureTextValuesIsMutable(); super.addAll(values, textValues_); onChanged(); return this; } /** * repeated string textValues = 15; */ public Builder clearTextValues() { textValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * repeated string textValues = 15; */ public Builder addTextValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTextValuesIsMutable(); textValues_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndPoiBoxDataAtom) } static { defaultInstance = new OsmAndPoiBoxDataAtom(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndPoiBoxDataAtom) } public interface IdTableOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated sint64 routeId = 1; /** * repeated sint64 routeId = 1; * *
     * diff between 2 ids
     * 
*/ java.util.List getRouteIdList(); /** * repeated sint64 routeId = 1; * *
     * diff between 2 ids
     * 
*/ int getRouteIdCount(); /** * repeated sint64 routeId = 1; * *
     * diff between 2 ids
     * 
*/ long getRouteId(int index); } /** * Protobuf type {@code OsmAnd.OBF.IdTable} * *
   **
   * Id table 1-based. Map of sequential ids to real ids
   * [1,2,3....n] -> [a1, ... an]
   * a1,.. an - (ideally sorted) set of longs
   * 
*/ public static final class IdTable extends com.google.protobuf.GeneratedMessage implements IdTableOrBuilder { // Use IdTable.newBuilder() to construct. private IdTable(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private IdTable(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final IdTable defaultInstance; public static IdTable getDefaultInstance() { return defaultInstance; } public IdTable getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IdTable( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { routeId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } routeId_.add(input.readSInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { routeId_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { routeId_.add(input.readSInt64()); } input.popLimit(limit); 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)) { routeId_ = java.util.Collections.unmodifiableList(routeId_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IdTable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IdTable_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.IdTable.class, net.osmand.binary.OsmandOdb.IdTable.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IdTable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IdTable(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated sint64 routeId = 1; public static final int ROUTEID_FIELD_NUMBER = 1; private java.util.List routeId_; /** * repeated sint64 routeId = 1; * *
     * diff between 2 ids
     * 
*/ public java.util.List getRouteIdList() { return routeId_; } /** * repeated sint64 routeId = 1; * *
     * diff between 2 ids
     * 
*/ public int getRouteIdCount() { return routeId_.size(); } /** * repeated sint64 routeId = 1; * *
     * diff between 2 ids
     * 
*/ public long getRouteId(int index) { return routeId_.get(index); } private void initFields() { routeId_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < routeId_.size(); i++) { output.writeSInt64(1, routeId_.get(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 < routeId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeSInt64SizeNoTag(routeId_.get(i)); } size += dataSize; size += 1 * getRouteIdList().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.IdTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.IdTable 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.IdTable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.IdTable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.IdTable parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.IdTable 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.IdTable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.IdTable 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.IdTable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.IdTable 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.IdTable 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.IdTable} * *
     **
     * Id table 1-based. Map of sequential ids to real ids
     * [1,2,3....n] -> [a1, ... an]
     * a1,.. an - (ideally sorted) set of longs
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.IdTableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IdTable_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IdTable_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.IdTable.class, net.osmand.binary.OsmandOdb.IdTable.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.IdTable.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); routeId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_IdTable_descriptor; } public net.osmand.binary.OsmandOdb.IdTable getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.IdTable build() { net.osmand.binary.OsmandOdb.IdTable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.IdTable buildPartial() { net.osmand.binary.OsmandOdb.IdTable result = new net.osmand.binary.OsmandOdb.IdTable(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { routeId_ = java.util.Collections.unmodifiableList(routeId_); bitField0_ = (bitField0_ & ~0x00000001); } result.routeId_ = routeId_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.IdTable) { return mergeFrom((net.osmand.binary.OsmandOdb.IdTable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.IdTable other) { if (other == net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance()) return this; if (!other.routeId_.isEmpty()) { if (routeId_.isEmpty()) { routeId_ = other.routeId_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRouteIdIsMutable(); routeId_.addAll(other.routeId_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.IdTable parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.IdTable) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated sint64 routeId = 1; private java.util.List routeId_ = java.util.Collections.emptyList(); private void ensureRouteIdIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { routeId_ = new java.util.ArrayList(routeId_); bitField0_ |= 0x00000001; } } /** * repeated sint64 routeId = 1; * *
       * diff between 2 ids
       * 
*/ public java.util.List getRouteIdList() { return java.util.Collections.unmodifiableList(routeId_); } /** * repeated sint64 routeId = 1; * *
       * diff between 2 ids
       * 
*/ public int getRouteIdCount() { return routeId_.size(); } /** * repeated sint64 routeId = 1; * *
       * diff between 2 ids
       * 
*/ public long getRouteId(int index) { return routeId_.get(index); } /** * repeated sint64 routeId = 1; * *
       * diff between 2 ids
       * 
*/ public Builder setRouteId( int index, long value) { ensureRouteIdIsMutable(); routeId_.set(index, value); onChanged(); return this; } /** * repeated sint64 routeId = 1; * *
       * diff between 2 ids
       * 
*/ public Builder addRouteId(long value) { ensureRouteIdIsMutable(); routeId_.add(value); onChanged(); return this; } /** * repeated sint64 routeId = 1; * *
       * diff between 2 ids
       * 
*/ public Builder addAllRouteId( java.lang.Iterable values) { ensureRouteIdIsMutable(); super.addAll(values, routeId_); onChanged(); return this; } /** * repeated sint64 routeId = 1; * *
       * diff between 2 ids
       * 
*/ public Builder clearRouteId() { routeId_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.IdTable) } static { defaultInstance = new IdTable(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.IdTable) } public interface RestrictionDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 type = 1; /** * required int32 type = 1; */ boolean hasType(); /** * required int32 type = 1; */ int getType(); // required int32 from = 2; /** * required int32 from = 2; */ boolean hasFrom(); /** * required int32 from = 2; */ int getFrom(); // required int32 to = 3; /** * required int32 to = 3; */ boolean hasTo(); /** * required int32 to = 3; */ int getTo(); // optional int32 via = 4; /** * optional int32 via = 4; */ boolean hasVia(); /** * optional int32 via = 4; */ int getVia(); } /** * Protobuf type {@code OsmAnd.OBF.RestrictionData} */ public static final class RestrictionData extends com.google.protobuf.GeneratedMessage implements RestrictionDataOrBuilder { // Use RestrictionData.newBuilder() to construct. private RestrictionData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RestrictionData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RestrictionData defaultInstance; public static RestrictionData getDefaultInstance() { return defaultInstance; } public RestrictionData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RestrictionData( 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; type_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; from_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; to_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; via_ = input.readInt32(); 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_RestrictionData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RestrictionData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.RestrictionData.class, net.osmand.binary.OsmandOdb.RestrictionData.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RestrictionData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RestrictionData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 type = 1; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * required int32 type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 type = 1; */ public int getType() { return type_; } // required int32 from = 2; public static final int FROM_FIELD_NUMBER = 2; private int from_; /** * required int32 from = 2; */ public boolean hasFrom() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 from = 2; */ public int getFrom() { return from_; } // required int32 to = 3; public static final int TO_FIELD_NUMBER = 3; private int to_; /** * required int32 to = 3; */ public boolean hasTo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 to = 3; */ public int getTo() { return to_; } // optional int32 via = 4; public static final int VIA_FIELD_NUMBER = 4; private int via_; /** * optional int32 via = 4; */ public boolean hasVia() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 via = 4; */ public int getVia() { return via_; } private void initFields() { type_ = 0; from_ = 0; to_ = 0; via_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasFrom()) { memoizedIsInitialized = 0; return false; } if (!hasTo()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, from_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, to_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, via_); } 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, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, from_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, to_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, via_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.RestrictionData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.RestrictionData 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.RestrictionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.RestrictionData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.RestrictionData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.RestrictionData 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.RestrictionData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.RestrictionData 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.RestrictionData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.RestrictionData 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.RestrictionData 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.RestrictionData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RestrictionData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RestrictionData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.RestrictionData.class, net.osmand.binary.OsmandOdb.RestrictionData.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.RestrictionData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); from_ = 0; bitField0_ = (bitField0_ & ~0x00000002); to_ = 0; bitField0_ = (bitField0_ & ~0x00000004); via_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RestrictionData_descriptor; } public net.osmand.binary.OsmandOdb.RestrictionData getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.RestrictionData.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.RestrictionData build() { net.osmand.binary.OsmandOdb.RestrictionData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.RestrictionData buildPartial() { net.osmand.binary.OsmandOdb.RestrictionData result = new net.osmand.binary.OsmandOdb.RestrictionData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.from_ = from_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.to_ = to_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.via_ = via_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.RestrictionData) { return mergeFrom((net.osmand.binary.OsmandOdb.RestrictionData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.RestrictionData other) { if (other == net.osmand.binary.OsmandOdb.RestrictionData.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasFrom()) { setFrom(other.getFrom()); } if (other.hasTo()) { setTo(other.getTo()); } if (other.hasVia()) { setVia(other.getVia()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (!hasFrom()) { return false; } if (!hasTo()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.RestrictionData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.RestrictionData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 type = 1; private int type_ ; /** * required int32 type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 type = 1; */ public int getType() { return type_; } /** * required int32 type = 1; */ public Builder setType(int value) { bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * required int32 type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } // required int32 from = 2; private int from_ ; /** * required int32 from = 2; */ public boolean hasFrom() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 from = 2; */ public int getFrom() { return from_; } /** * required int32 from = 2; */ public Builder setFrom(int value) { bitField0_ |= 0x00000002; from_ = value; onChanged(); return this; } /** * required int32 from = 2; */ public Builder clearFrom() { bitField0_ = (bitField0_ & ~0x00000002); from_ = 0; onChanged(); return this; } // required int32 to = 3; private int to_ ; /** * required int32 to = 3; */ public boolean hasTo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 to = 3; */ public int getTo() { return to_; } /** * required int32 to = 3; */ public Builder setTo(int value) { bitField0_ |= 0x00000004; to_ = value; onChanged(); return this; } /** * required int32 to = 3; */ public Builder clearTo() { bitField0_ = (bitField0_ & ~0x00000004); to_ = 0; onChanged(); return this; } // optional int32 via = 4; private int via_ ; /** * optional int32 via = 4; */ public boolean hasVia() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 via = 4; */ public int getVia() { return via_; } /** * optional int32 via = 4; */ public Builder setVia(int value) { bitField0_ |= 0x00000008; via_ = value; onChanged(); return this; } /** * optional int32 via = 4; */ public Builder clearVia() { bitField0_ = (bitField0_ & ~0x00000008); via_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.RestrictionData) } static { defaultInstance = new RestrictionData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.RestrictionData) } public interface RouteDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // required bytes points = 1; /** * required bytes points = 1; * *
     * array of delta x,y sint32 (CodedIinputStream) >> 5
     * first x delta to Tree.left, y to delta Tree.top (next delta to previous)
     * 
*/ boolean hasPoints(); /** * required bytes points = 1; * *
     * array of delta x,y sint32 (CodedIinputStream) >> 5
     * first x delta to Tree.left, y to delta Tree.top (next delta to previous)
     * 
*/ com.google.protobuf.ByteString getPoints(); // optional bytes pointTypes = 4; /** * optional bytes pointTypes = 4; * *
     * continuous array of pairs
     *  [pointIndex - int32, pointTypes - bytes]
     * bytes - array of raw var int types
     * 
*/ boolean hasPointTypes(); /** * optional bytes pointTypes = 4; * *
     * continuous array of pairs
     *  [pointIndex - int32, pointTypes - bytes]
     * bytes - array of raw var int types
     * 
*/ com.google.protobuf.ByteString getPointTypes(); // optional bytes pointNames = 5; /** * optional bytes pointNames = 5; * *
     * continuous array of triples
     * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int]
     * 
*/ boolean hasPointNames(); /** * optional bytes pointNames = 5; * *
     * continuous array of triples
     * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int]
     * 
*/ com.google.protobuf.ByteString getPointNames(); // 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(); // required int32 routeId = 12; /** * required int32 routeId = 12; * *
     * id internal
     * 
*/ boolean hasRouteId(); /** * required int32 routeId = 12; * *
     * id internal
     * 
*/ int getRouteId(); // optional bytes stringNames = 14; /** * optional bytes stringNames = 14; * *
     * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> >
     * 
*/ boolean hasStringNames(); /** * optional bytes stringNames = 14; * *
     * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> >
     * 
*/ com.google.protobuf.ByteString getStringNames(); } /** * Protobuf type {@code OsmAnd.OBF.RouteData} */ public static final class RouteData extends com.google.protobuf.GeneratedMessage implements RouteDataOrBuilder { // Use RouteData.newBuilder() to construct. private RouteData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RouteData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RouteData defaultInstance; public static RouteData getDefaultInstance() { return defaultInstance; } public RouteData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RouteData( 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; points_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000002; pointTypes_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000004; pointNames_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000008; types_ = input.readBytes(); break; } case 96: { bitField0_ |= 0x00000010; routeId_ = input.readInt32(); break; } case 114: { bitField0_ |= 0x00000020; stringNames_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RouteData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RouteData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.RouteData.class, net.osmand.binary.OsmandOdb.RouteData.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RouteData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RouteData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required bytes points = 1; public static final int POINTS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString points_; /** * required bytes points = 1; * *
     * array of delta x,y sint32 (CodedIinputStream) >> 5
     * first x delta to Tree.left, y to delta Tree.top (next delta to previous)
     * 
*/ public boolean hasPoints() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes points = 1; * *
     * array of delta x,y sint32 (CodedIinputStream) >> 5
     * first x delta to Tree.left, y to delta Tree.top (next delta to previous)
     * 
*/ public com.google.protobuf.ByteString getPoints() { return points_; } // optional bytes pointTypes = 4; public static final int POINTTYPES_FIELD_NUMBER = 4; private com.google.protobuf.ByteString pointTypes_; /** * optional bytes pointTypes = 4; * *
     * continuous array of pairs
     *  [pointIndex - int32, pointTypes - bytes]
     * bytes - array of raw var int types
     * 
*/ public boolean hasPointTypes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes pointTypes = 4; * *
     * continuous array of pairs
     *  [pointIndex - int32, pointTypes - bytes]
     * bytes - array of raw var int types
     * 
*/ public com.google.protobuf.ByteString getPointTypes() { return pointTypes_; } // optional bytes pointNames = 5; public static final int POINTNAMES_FIELD_NUMBER = 5; private com.google.protobuf.ByteString pointNames_; /** * optional bytes pointNames = 5; * *
     * continuous array of triples
     * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int]
     * 
*/ public boolean hasPointNames() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes pointNames = 5; * *
     * continuous array of triples
     * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int]
     * 
*/ public com.google.protobuf.ByteString getPointNames() { return pointNames_; } // 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_; } // required int32 routeId = 12; public static final int ROUTEID_FIELD_NUMBER = 12; private int routeId_; /** * required int32 routeId = 12; * *
     * id internal
     * 
*/ public boolean hasRouteId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required int32 routeId = 12; * *
     * id internal
     * 
*/ public int getRouteId() { return routeId_; } // optional bytes stringNames = 14; public static final int STRINGNAMES_FIELD_NUMBER = 14; private com.google.protobuf.ByteString stringNames_; /** * optional bytes stringNames = 14; * *
     * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> >
     * 
*/ public boolean hasStringNames() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes stringNames = 14; * *
     * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> >
     * 
*/ public com.google.protobuf.ByteString getStringNames() { return stringNames_; } private void initFields() { points_ = com.google.protobuf.ByteString.EMPTY; pointTypes_ = com.google.protobuf.ByteString.EMPTY; pointNames_ = com.google.protobuf.ByteString.EMPTY; types_ = com.google.protobuf.ByteString.EMPTY; routeId_ = 0; stringNames_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasPoints()) { memoizedIsInitialized = 0; return false; } if (!hasTypes()) { memoizedIsInitialized = 0; return false; } if (!hasRouteId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, points_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(4, pointTypes_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(5, pointNames_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(7, types_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(12, routeId_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(14, stringNames_); } 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, points_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, pointTypes_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, pointNames_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, types_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, routeId_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(14, stringNames_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.RouteData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.RouteData 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.RouteData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.RouteData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.RouteData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.RouteData 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.RouteData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.RouteData 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.RouteData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.RouteData 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.RouteData 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.RouteData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.RouteDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RouteData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RouteData_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.RouteData.class, net.osmand.binary.OsmandOdb.RouteData.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.RouteData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); points_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); pointTypes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); pointNames_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); types_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); routeId_ = 0; bitField0_ = (bitField0_ & ~0x00000010); stringNames_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_RouteData_descriptor; } public net.osmand.binary.OsmandOdb.RouteData getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.RouteData.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.RouteData build() { net.osmand.binary.OsmandOdb.RouteData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.RouteData buildPartial() { net.osmand.binary.OsmandOdb.RouteData result = new net.osmand.binary.OsmandOdb.RouteData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.points_ = points_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.pointTypes_ = pointTypes_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.pointNames_ = pointNames_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.types_ = types_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.routeId_ = routeId_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.stringNames_ = stringNames_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.RouteData) { return mergeFrom((net.osmand.binary.OsmandOdb.RouteData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.RouteData other) { if (other == net.osmand.binary.OsmandOdb.RouteData.getDefaultInstance()) return this; if (other.hasPoints()) { setPoints(other.getPoints()); } if (other.hasPointTypes()) { setPointTypes(other.getPointTypes()); } if (other.hasPointNames()) { setPointNames(other.getPointNames()); } if (other.hasTypes()) { setTypes(other.getTypes()); } if (other.hasRouteId()) { setRouteId(other.getRouteId()); } if (other.hasStringNames()) { setStringNames(other.getStringNames()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasPoints()) { return false; } if (!hasTypes()) { return false; } if (!hasRouteId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.RouteData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.RouteData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required bytes points = 1; private com.google.protobuf.ByteString points_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes points = 1; * *
       * array of delta x,y sint32 (CodedIinputStream) >> 5
       * first x delta to Tree.left, y to delta Tree.top (next delta to previous)
       * 
*/ public boolean hasPoints() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bytes points = 1; * *
       * array of delta x,y sint32 (CodedIinputStream) >> 5
       * first x delta to Tree.left, y to delta Tree.top (next delta to previous)
       * 
*/ public com.google.protobuf.ByteString getPoints() { return points_; } /** * required bytes points = 1; * *
       * array of delta x,y sint32 (CodedIinputStream) >> 5
       * first x delta to Tree.left, y to delta Tree.top (next delta to previous)
       * 
*/ public Builder setPoints(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; points_ = value; onChanged(); return this; } /** * required bytes points = 1; * *
       * array of delta x,y sint32 (CodedIinputStream) >> 5
       * first x delta to Tree.left, y to delta Tree.top (next delta to previous)
       * 
*/ public Builder clearPoints() { bitField0_ = (bitField0_ & ~0x00000001); points_ = getDefaultInstance().getPoints(); onChanged(); return this; } // optional bytes pointTypes = 4; private com.google.protobuf.ByteString pointTypes_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes pointTypes = 4; * *
       * continuous array of pairs
       *  [pointIndex - int32, pointTypes - bytes]
       * bytes - array of raw var int types
       * 
*/ public boolean hasPointTypes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes pointTypes = 4; * *
       * continuous array of pairs
       *  [pointIndex - int32, pointTypes - bytes]
       * bytes - array of raw var int types
       * 
*/ public com.google.protobuf.ByteString getPointTypes() { return pointTypes_; } /** * optional bytes pointTypes = 4; * *
       * continuous array of pairs
       *  [pointIndex - int32, pointTypes - bytes]
       * bytes - array of raw var int types
       * 
*/ public Builder setPointTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; pointTypes_ = value; onChanged(); return this; } /** * optional bytes pointTypes = 4; * *
       * continuous array of pairs
       *  [pointIndex - int32, pointTypes - bytes]
       * bytes - array of raw var int types
       * 
*/ public Builder clearPointTypes() { bitField0_ = (bitField0_ & ~0x00000002); pointTypes_ = getDefaultInstance().getPointTypes(); onChanged(); return this; } // optional bytes pointNames = 5; private com.google.protobuf.ByteString pointNames_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes pointNames = 5; * *
       * continuous array of triples
       * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int]
       * 
*/ public boolean hasPointNames() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes pointNames = 5; * *
       * continuous array of triples
       * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int]
       * 
*/ public com.google.protobuf.ByteString getPointNames() { return pointNames_; } /** * optional bytes pointNames = 5; * *
       * continuous array of triples
       * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int]
       * 
*/ public Builder setPointNames(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; pointNames_ = value; onChanged(); return this; } /** * optional bytes pointNames = 5; * *
       * continuous array of triples
       * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int]
       * 
*/ public Builder clearPointNames() { bitField0_ = (bitField0_ & ~0x00000004); pointNames_ = getDefaultInstance().getPointNames(); 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_ & 0x00000008) == 0x00000008); } /** * 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_ |= 0x00000008; types_ = value; onChanged(); return this; } /** * required bytes types = 7; * *
       * array of raw var int types
       * 
*/ public Builder clearTypes() { bitField0_ = (bitField0_ & ~0x00000008); types_ = getDefaultInstance().getTypes(); onChanged(); return this; } // required int32 routeId = 12; private int routeId_ ; /** * required int32 routeId = 12; * *
       * id internal
       * 
*/ public boolean hasRouteId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required int32 routeId = 12; * *
       * id internal
       * 
*/ public int getRouteId() { return routeId_; } /** * required int32 routeId = 12; * *
       * id internal
       * 
*/ public Builder setRouteId(int value) { bitField0_ |= 0x00000010; routeId_ = value; onChanged(); return this; } /** * required int32 routeId = 12; * *
       * id internal
       * 
*/ public Builder clearRouteId() { bitField0_ = (bitField0_ & ~0x00000010); routeId_ = 0; onChanged(); return this; } // optional bytes stringNames = 14; private com.google.protobuf.ByteString stringNames_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes stringNames = 14; * *
       * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> >
       * 
*/ public boolean hasStringNames() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bytes stringNames = 14; * *
       * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> >
       * 
*/ public com.google.protobuf.ByteString getStringNames() { return stringNames_; } /** * optional bytes stringNames = 14; * *
       * 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 = 14; * *
       * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> >
       * 
*/ public Builder clearStringNames() { bitField0_ = (bitField0_ & ~0x00000020); stringNames_ = getDefaultInstance().getStringNames(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.RouteData) } static { defaultInstance = new RouteData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.RouteData) } public interface OsmAndRoutingIndexOrBuilder 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(); // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ java.util.List getRulesList(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule getRules(int index); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ int getRulesCount(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ java.util.List getRulesOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder getRulesOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getRootBoxesList(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getRootBoxes(int index); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ int getRootBoxesCount(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getRootBoxesOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getRootBoxesOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getBasemapBoxesList(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBasemapBoxes(int index); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ int getBasemapBoxesCount(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ java.util.List getBasemapBoxesOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBasemapBoxesOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ java.util.List getBlocksList(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock getBlocks(int index); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ int getBlocksCount(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ java.util.List getBlocksOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder getBlocksOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndRoutingIndex} */ public static final class OsmAndRoutingIndex extends com.google.protobuf.GeneratedMessage implements OsmAndRoutingIndexOrBuilder { // Use OsmAndRoutingIndex.newBuilder() to construct. private OsmAndRoutingIndex(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsmAndRoutingIndex(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsmAndRoutingIndex defaultInstance; public static OsmAndRoutingIndex getDefaultInstance() { return defaultInstance; } public OsmAndRoutingIndex getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsmAndRoutingIndex( 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: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { rules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } rules_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { rootBoxes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } rootBoxes_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.PARSER, extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { basemapBoxes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } basemapBoxes_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { blocks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } blocks_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.PARSER, extensionRegistry)); 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_ & 0x00000002) == 0x00000002)) { rules_ = java.util.Collections.unmodifiableList(rules_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { rootBoxes_ = java.util.Collections.unmodifiableList(rootBoxes_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { basemapBoxes_ = java.util.Collections.unmodifiableList(basemapBoxes_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.class, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsmAndRoutingIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsmAndRoutingIndex(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface RouteEncodingRuleOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string tag = 3; /** * required string tag = 3; */ boolean hasTag(); /** * required string tag = 3; */ java.lang.String getTag(); /** * required string tag = 3; */ com.google.protobuf.ByteString getTagBytes(); // required string value = 5; /** * required string value = 5; */ boolean hasValue(); /** * required string value = 5; */ java.lang.String getValue(); /** * required 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(); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule} */ public static final class RouteEncodingRule extends com.google.protobuf.GeneratedMessage implements RouteEncodingRuleOrBuilder { // Use RouteEncodingRule.newBuilder() to construct. private RouteEncodingRule(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RouteEncodingRule(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RouteEncodingRule defaultInstance; public static RouteEncodingRule getDefaultInstance() { return defaultInstance; } public RouteEncodingRule getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RouteEncodingRule( 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; } } } } 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_OsmAndRoutingIndex_RouteEncodingRule_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.class, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RouteEncodingRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RouteEncodingRule(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string tag = 3; public static final int TAG_FIELD_NUMBER = 3; private java.lang.Object tag_; /** * 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; } } // required string value = 5; public static final int VALUE_FIELD_NUMBER = 5; private java.lang.Object value_; /** * required string value = 5; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required 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; } } /** * required 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_; } private void initFields() { tag_ = ""; value_ = ""; id_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTag()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(3, getTagBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(5, getValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(7, id_); } 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_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule 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.OsmAndRoutingIndex.RouteEncodingRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule 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.OsmAndRoutingIndex.RouteEncodingRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule 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.OsmAndRoutingIndex.RouteEncodingRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule 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.OsmAndRoutingIndex.RouteEncodingRule 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.OsmAndRoutingIndex.RouteEncodingRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.class, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); tag_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); id_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule build() { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule buildPartial() { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.tag_ = tag_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.id_ = id_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule other) { if (other == net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.getDefaultInstance()) return this; if (other.hasTag()) { bitField0_ |= 0x00000001; tag_ = other.tag_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } if (other.hasId()) { setId(other.getId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTag()) { return false; } if (!hasValue()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string tag = 3; private java.lang.Object tag_ = ""; /** * 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; } // required string value = 5; private java.lang.Object value_ = ""; /** * required string value = 5; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required 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; } } /** * required 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; } } /** * required string value = 5; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * required string value = 5; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required 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; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule) } static { defaultInstance = new RouteEncodingRule(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule) } public interface RouteDataBoxOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint32 left = 1; /** * required sint32 left = 1; * *
       * for root box is absolute coordinates
       * 
*/ boolean hasLeft(); /** * required sint32 left = 1; * *
       * for root box is absolute coordinates
       * 
*/ 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 shiftToData = 5; /** * optional fixed32 shiftToData = 5; * *
       *shift from routeDataBox start to message RouteDataBlock
       * 
*/ boolean hasShiftToData(); /** * optional fixed32 shiftToData = 5; * *
       *shift from routeDataBox start to message RouteDataBlock
       * 
*/ int getShiftToData(); // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ java.util.List getBoxesList(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBoxes(int index); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ int getBoxesCount(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ java.util.List getBoxesOrBuilderList(); /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBoxesOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox} */ public static final class RouteDataBox extends com.google.protobuf.GeneratedMessage implements RouteDataBoxOrBuilder { // Use RouteDataBox.newBuilder() to construct. private RouteDataBox(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RouteDataBox(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RouteDataBox defaultInstance; public static RouteDataBox getDefaultInstance() { return defaultInstance; } public RouteDataBox getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RouteDataBox( 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; shiftToData_ = input.readFixed32(); break; } case 58: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { boxes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } boxes_.add(input.readMessage(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.PARSER, extensionRegistry)); 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_ & 0x00000020) == 0x00000020)) { boxes_ = java.util.Collections.unmodifiableList(boxes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.class, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RouteDataBox parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RouteDataBox(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required sint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; private int left_; /** * required sint32 left = 1; * *
       * for root box is absolute coordinates
       * 
*/ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint32 left = 1; * *
       * for root box is absolute coordinates
       * 
*/ 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 shiftToData = 5; public static final int SHIFTTODATA_FIELD_NUMBER = 5; private int shiftToData_; /** * optional fixed32 shiftToData = 5; * *
       *shift from routeDataBox start to message RouteDataBlock
       * 
*/ public boolean hasShiftToData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional fixed32 shiftToData = 5; * *
       *shift from routeDataBox start to message RouteDataBlock
       * 
*/ public int getShiftToData() { return shiftToData_; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; public static final int BOXES_FIELD_NUMBER = 7; private java.util.List boxes_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public java.util.List getBoxesList() { return boxes_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public java.util.List getBoxesOrBuilderList() { return boxes_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public int getBoxesCount() { return boxes_.size(); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBoxes(int index) { return boxes_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBoxesOrBuilder( int index) { return boxes_.get(index); } private void initFields() { left_ = 0; right_ = 0; top_ = 0; bottom_ = 0; shiftToData_ = 0; boxes_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { 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, shiftToData_); } 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, shiftToData_); } 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.OsmAndRoutingIndex.RouteDataBox parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox 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.OsmAndRoutingIndex.RouteDataBox parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox 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.OsmAndRoutingIndex.RouteDataBox parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox 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.OsmAndRoutingIndex.RouteDataBox parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox 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.OsmAndRoutingIndex.RouteDataBox 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.OsmAndRoutingIndex.RouteDataBox} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.class, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getBoxesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); left_ = 0; bitField0_ = (bitField0_ & ~0x00000001); right_ = 0; bitField0_ = (bitField0_ & ~0x00000002); top_ = 0; bitField0_ = (bitField0_ & ~0x00000004); bottom_ = 0; bitField0_ = (bitField0_ & ~0x00000008); shiftToData_ = 0; bitField0_ = (bitField0_ & ~0x00000010); if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { boxesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox build() { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox buildPartial() { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.left_ = left_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.right_ = right_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.top_ = top_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.bottom_ = bottom_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.shiftToData_ = shiftToData_; if (boxesBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { boxes_ = java.util.Collections.unmodifiableList(boxes_); bitField0_ = (bitField0_ & ~0x00000020); } result.boxes_ = boxes_; } else { result.boxes_ = boxesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox other) { if (other == net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()) return this; if (other.hasLeft()) { setLeft(other.getLeft()); } if (other.hasRight()) { setRight(other.getRight()); } if (other.hasTop()) { setTop(other.getTop()); } if (other.hasBottom()) { setBottom(other.getBottom()); } if (other.hasShiftToData()) { setShiftToData(other.getShiftToData()); } if (boxesBuilder_ == null) { if (!other.boxes_.isEmpty()) { if (boxes_.isEmpty()) { boxes_ = other.boxes_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureBoxesIsMutable(); boxes_.addAll(other.boxes_); } onChanged(); } } else { if (!other.boxes_.isEmpty()) { if (boxesBuilder_.isEmpty()) { boxesBuilder_.dispose(); boxesBuilder_ = null; boxes_ = other.boxes_; bitField0_ = (bitField0_ & ~0x00000020); boxesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBoxesFieldBuilder() : null; } else { boxesBuilder_.addAllMessages(other.boxes_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasLeft()) { return false; } if (!hasRight()) { return false; } if (!hasTop()) { return false; } if (!hasBottom()) { return false; } for (int i = 0; i < getBoxesCount(); i++) { if (!getBoxes(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required sint32 left = 1; private int left_ ; /** * required sint32 left = 1; * *
         * for root box is absolute coordinates
         * 
*/ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required sint32 left = 1; * *
         * for root box is absolute coordinates
         * 
*/ public int getLeft() { return left_; } /** * required sint32 left = 1; * *
         * for root box is absolute coordinates
         * 
*/ public Builder setLeft(int value) { bitField0_ |= 0x00000001; left_ = value; onChanged(); return this; } /** * required sint32 left = 1; * *
         * for root box is absolute coordinates
         * 
*/ 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 shiftToData = 5; private int shiftToData_ ; /** * optional fixed32 shiftToData = 5; * *
         *shift from routeDataBox start to message RouteDataBlock
         * 
*/ public boolean hasShiftToData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional fixed32 shiftToData = 5; * *
         *shift from routeDataBox start to message RouteDataBlock
         * 
*/ public int getShiftToData() { return shiftToData_; } /** * optional fixed32 shiftToData = 5; * *
         *shift from routeDataBox start to message RouteDataBlock
         * 
*/ public Builder setShiftToData(int value) { bitField0_ |= 0x00000010; shiftToData_ = value; onChanged(); return this; } /** * optional fixed32 shiftToData = 5; * *
         *shift from routeDataBox start to message RouteDataBlock
         * 
*/ public Builder clearShiftToData() { bitField0_ = (bitField0_ & ~0x00000010); shiftToData_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; private java.util.List boxes_ = java.util.Collections.emptyList(); private void ensureBoxesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { boxes_ = new java.util.ArrayList(boxes_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> boxesBuilder_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public java.util.List getBoxesList() { if (boxesBuilder_ == null) { return java.util.Collections.unmodifiableList(boxes_); } else { return boxesBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public int getBoxesCount() { if (boxesBuilder_ == null) { return boxes_.size(); } else { return boxesBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBoxes(int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public Builder setBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { if (boxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoxesIsMutable(); boxes_.set(index, value); onChanged(); } else { boxesBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public Builder setBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.set(index, builderForValue.build()); onChanged(); } else { boxesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public Builder addBoxes(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { if (boxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoxesIsMutable(); boxes_.add(value); onChanged(); } else { boxesBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public Builder addBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { if (boxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoxesIsMutable(); boxes_.add(index, value); onChanged(); } else { boxesBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public Builder addBoxes( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.add(builderForValue.build()); onChanged(); } else { boxesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public Builder addBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.add(index, builderForValue.build()); onChanged(); } else { boxesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public Builder addAllBoxes( java.lang.Iterable values) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); super.addAll(values, boxes_); onChanged(); } else { boxesBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public Builder clearBoxes() { if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { boxesBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public Builder removeBoxes(int index) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.remove(index); onChanged(); } else { boxesBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder getBoxesBuilder( int index) { return getBoxesFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBoxesOrBuilder( int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public java.util.List getBoxesOrBuilderList() { if (boxesBuilder_ != null) { return boxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(boxes_); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBoxesBuilder() { return getBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBoxesBuilder( int index) { return getBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; */ public java.util.List getBoxesBuilderList() { return getBoxesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getBoxesFieldBuilder() { if (boxesBuilder_ == null) { boxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder>( boxes_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); boxes_ = null; } return boxesBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox) } static { defaultInstance = new RouteDataBox(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox) } public interface RouteDataBlockOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .OsmAnd.OBF.IdTable idTable = 5; /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
       * 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
       * 
*/ boolean hasIdTable(); /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
       * 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
       * 
*/ net.osmand.binary.OsmandOdb.IdTable getIdTable(); /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
       * 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
       * 
*/ net.osmand.binary.OsmandOdb.IdTableOrBuilder getIdTableOrBuilder(); // repeated .OsmAnd.OBF.RouteData dataObjects = 6; /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ java.util.List getDataObjectsList(); /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ net.osmand.binary.OsmandOdb.RouteData getDataObjects(int index); /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ int getDataObjectsCount(); /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ java.util.List getDataObjectsOrBuilderList(); /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ net.osmand.binary.OsmandOdb.RouteDataOrBuilder getDataObjectsOrBuilder( int index); // repeated .OsmAnd.OBF.RestrictionData restrictions = 7; /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ java.util.List getRestrictionsList(); /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ net.osmand.binary.OsmandOdb.RestrictionData getRestrictions(int index); /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ int getRestrictionsCount(); /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ java.util.List getRestrictionsOrBuilderList(); /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder getRestrictionsOrBuilder( int index); // optional .OsmAnd.OBF.StringTable stringTable = 8; /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ boolean hasStringTable(); /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ net.osmand.binary.OsmandOdb.StringTable getStringTable(); /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder(); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock} */ public static final class RouteDataBlock extends com.google.protobuf.GeneratedMessage implements RouteDataBlockOrBuilder { // Use RouteDataBlock.newBuilder() to construct. private RouteDataBlock(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RouteDataBlock(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RouteDataBlock defaultInstance; public static RouteDataBlock getDefaultInstance() { return defaultInstance; } public RouteDataBlock getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RouteDataBlock( 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 42: { net.osmand.binary.OsmandOdb.IdTable.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = idTable_.toBuilder(); } idTable_ = input.readMessage(net.osmand.binary.OsmandOdb.IdTable.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(idTable_); idTable_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { dataObjects_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } dataObjects_.add(input.readMessage(net.osmand.binary.OsmandOdb.RouteData.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { restrictions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } restrictions_.add(input.readMessage(net.osmand.binary.OsmandOdb.RestrictionData.PARSER, extensionRegistry)); break; } case 66: { net.osmand.binary.OsmandOdb.StringTable.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = stringTable_.toBuilder(); } stringTable_ = input.readMessage(net.osmand.binary.OsmandOdb.StringTable.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stringTable_); stringTable_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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_ & 0x00000002) == 0x00000002)) { dataObjects_ = java.util.Collections.unmodifiableList(dataObjects_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { restrictions_ = java.util.Collections.unmodifiableList(restrictions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.class, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RouteDataBlock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RouteDataBlock(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .OsmAnd.OBF.IdTable idTable = 5; public static final int IDTABLE_FIELD_NUMBER = 5; private net.osmand.binary.OsmandOdb.IdTable idTable_; /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
       * 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 boolean hasIdTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
       * 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 net.osmand.binary.OsmandOdb.IdTable getIdTable() { return idTable_; } /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
       * 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 net.osmand.binary.OsmandOdb.IdTableOrBuilder getIdTableOrBuilder() { return idTable_; } // repeated .OsmAnd.OBF.RouteData dataObjects = 6; public static final int DATAOBJECTS_FIELD_NUMBER = 6; private java.util.List dataObjects_; /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public java.util.List getDataObjectsList() { return dataObjects_; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public java.util.List getDataObjectsOrBuilderList() { return dataObjects_; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public int getDataObjectsCount() { return dataObjects_.size(); } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public net.osmand.binary.OsmandOdb.RouteData getDataObjects(int index) { return dataObjects_.get(index); } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public net.osmand.binary.OsmandOdb.RouteDataOrBuilder getDataObjectsOrBuilder( int index) { return dataObjects_.get(index); } // repeated .OsmAnd.OBF.RestrictionData restrictions = 7; public static final int RESTRICTIONS_FIELD_NUMBER = 7; private java.util.List restrictions_; /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public java.util.List getRestrictionsList() { return restrictions_; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public java.util.List getRestrictionsOrBuilderList() { return restrictions_; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public int getRestrictionsCount() { return restrictions_.size(); } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public net.osmand.binary.OsmandOdb.RestrictionData getRestrictions(int index) { return restrictions_.get(index); } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder getRestrictionsOrBuilder( int index) { return restrictions_.get(index); } // optional .OsmAnd.OBF.StringTable stringTable = 8; public static final int STRINGTABLE_FIELD_NUMBER = 8; private net.osmand.binary.OsmandOdb.StringTable stringTable_; /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ public boolean hasStringTable() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ public net.osmand.binary.OsmandOdb.StringTable getStringTable() { return stringTable_; } /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { return stringTable_; } private void initFields() { idTable_ = net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); dataObjects_ = java.util.Collections.emptyList(); restrictions_ = java.util.Collections.emptyList(); stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getDataObjectsCount(); i++) { if (!getDataObjects(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getRestrictionsCount(); i++) { if (!getRestrictions(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(5, idTable_); } for (int i = 0; i < dataObjects_.size(); i++) { output.writeMessage(6, dataObjects_.get(i)); } for (int i = 0; i < restrictions_.size(); i++) { output.writeMessage(7, restrictions_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(8, 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 .computeMessageSize(5, idTable_); } for (int i = 0; i < dataObjects_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, dataObjects_.get(i)); } for (int i = 0; i < restrictions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, restrictions_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, stringTable_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock 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.OsmAndRoutingIndex.RouteDataBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock 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.OsmAndRoutingIndex.RouteDataBlock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock 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.OsmAndRoutingIndex.RouteDataBlock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock 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.OsmAndRoutingIndex.RouteDataBlock 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.OsmAndRoutingIndex.RouteDataBlock} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.class, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getIdTableFieldBuilder(); getDataObjectsFieldBuilder(); getRestrictionsFieldBuilder(); getStringTableFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (idTableBuilder_ == null) { idTable_ = net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); } else { idTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (dataObjectsBuilder_ == null) { dataObjects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { dataObjectsBuilder_.clear(); } if (restrictionsBuilder_ == null) { restrictions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { restrictionsBuilder_.clear(); } if (stringTableBuilder_ == null) { stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); } else { stringTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock build() { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock buildPartial() { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (idTableBuilder_ == null) { result.idTable_ = idTable_; } else { result.idTable_ = idTableBuilder_.build(); } if (dataObjectsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { dataObjects_ = java.util.Collections.unmodifiableList(dataObjects_); bitField0_ = (bitField0_ & ~0x00000002); } result.dataObjects_ = dataObjects_; } else { result.dataObjects_ = dataObjectsBuilder_.build(); } if (restrictionsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { restrictions_ = java.util.Collections.unmodifiableList(restrictions_); bitField0_ = (bitField0_ & ~0x00000004); } result.restrictions_ = restrictions_; } else { result.restrictions_ = restrictionsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } if (stringTableBuilder_ == null) { result.stringTable_ = stringTable_; } else { result.stringTable_ = stringTableBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock other) { if (other == net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.getDefaultInstance()) return this; if (other.hasIdTable()) { mergeIdTable(other.getIdTable()); } if (dataObjectsBuilder_ == null) { if (!other.dataObjects_.isEmpty()) { if (dataObjects_.isEmpty()) { dataObjects_ = other.dataObjects_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDataObjectsIsMutable(); dataObjects_.addAll(other.dataObjects_); } onChanged(); } } else { if (!other.dataObjects_.isEmpty()) { if (dataObjectsBuilder_.isEmpty()) { dataObjectsBuilder_.dispose(); dataObjectsBuilder_ = null; dataObjects_ = other.dataObjects_; bitField0_ = (bitField0_ & ~0x00000002); dataObjectsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDataObjectsFieldBuilder() : null; } else { dataObjectsBuilder_.addAllMessages(other.dataObjects_); } } } if (restrictionsBuilder_ == null) { if (!other.restrictions_.isEmpty()) { if (restrictions_.isEmpty()) { restrictions_ = other.restrictions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRestrictionsIsMutable(); restrictions_.addAll(other.restrictions_); } onChanged(); } } else { if (!other.restrictions_.isEmpty()) { if (restrictionsBuilder_.isEmpty()) { restrictionsBuilder_.dispose(); restrictionsBuilder_ = null; restrictions_ = other.restrictions_; bitField0_ = (bitField0_ & ~0x00000004); restrictionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRestrictionsFieldBuilder() : null; } else { restrictionsBuilder_.addAllMessages(other.restrictions_); } } } if (other.hasStringTable()) { mergeStringTable(other.getStringTable()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getDataObjectsCount(); i++) { if (!getDataObjects(i).isInitialized()) { return false; } } for (int i = 0; i < getRestrictionsCount(); i++) { if (!getRestrictions(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .OsmAnd.OBF.IdTable idTable = 5; private net.osmand.binary.OsmandOdb.IdTable idTable_ = net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.IdTable, net.osmand.binary.OsmandOdb.IdTable.Builder, net.osmand.binary.OsmandOdb.IdTableOrBuilder> idTableBuilder_; /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
         * 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 boolean hasIdTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
         * 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 net.osmand.binary.OsmandOdb.IdTable getIdTable() { if (idTableBuilder_ == null) { return idTable_; } else { return idTableBuilder_.getMessage(); } } /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
         * 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 Builder setIdTable(net.osmand.binary.OsmandOdb.IdTable value) { if (idTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } idTable_ = value; onChanged(); } else { idTableBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
         * 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 Builder setIdTable( net.osmand.binary.OsmandOdb.IdTable.Builder builderForValue) { if (idTableBuilder_ == null) { idTable_ = builderForValue.build(); onChanged(); } else { idTableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
         * 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 Builder mergeIdTable(net.osmand.binary.OsmandOdb.IdTable value) { if (idTableBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && idTable_ != net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance()) { idTable_ = net.osmand.binary.OsmandOdb.IdTable.newBuilder(idTable_).mergeFrom(value).buildPartial(); } else { idTable_ = value; } onChanged(); } else { idTableBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
         * 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 Builder clearIdTable() { if (idTableBuilder_ == null) { idTable_ = net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); onChanged(); } else { idTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
         * 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 net.osmand.binary.OsmandOdb.IdTable.Builder getIdTableBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdTableFieldBuilder().getBuilder(); } /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
         * 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 net.osmand.binary.OsmandOdb.IdTableOrBuilder getIdTableOrBuilder() { if (idTableBuilder_ != null) { return idTableBuilder_.getMessageOrBuilder(); } else { return idTable_; } } /** * optional .OsmAnd.OBF.IdTable idTable = 5; * *
         * 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
         * 
*/ private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.IdTable, net.osmand.binary.OsmandOdb.IdTable.Builder, net.osmand.binary.OsmandOdb.IdTableOrBuilder> getIdTableFieldBuilder() { if (idTableBuilder_ == null) { idTableBuilder_ = new com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.IdTable, net.osmand.binary.OsmandOdb.IdTable.Builder, net.osmand.binary.OsmandOdb.IdTableOrBuilder>( idTable_, getParentForChildren(), isClean()); idTable_ = null; } return idTableBuilder_; } // repeated .OsmAnd.OBF.RouteData dataObjects = 6; private java.util.List dataObjects_ = java.util.Collections.emptyList(); private void ensureDataObjectsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { dataObjects_ = new java.util.ArrayList(dataObjects_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.RouteData, net.osmand.binary.OsmandOdb.RouteData.Builder, net.osmand.binary.OsmandOdb.RouteDataOrBuilder> dataObjectsBuilder_; /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public java.util.List getDataObjectsList() { if (dataObjectsBuilder_ == null) { return java.util.Collections.unmodifiableList(dataObjects_); } else { return dataObjectsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public int getDataObjectsCount() { if (dataObjectsBuilder_ == null) { return dataObjects_.size(); } else { return dataObjectsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public net.osmand.binary.OsmandOdb.RouteData getDataObjects(int index) { if (dataObjectsBuilder_ == null) { return dataObjects_.get(index); } else { return dataObjectsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public Builder setDataObjects( int index, net.osmand.binary.OsmandOdb.RouteData value) { if (dataObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataObjectsIsMutable(); dataObjects_.set(index, value); onChanged(); } else { dataObjectsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public Builder setDataObjects( int index, net.osmand.binary.OsmandOdb.RouteData.Builder builderForValue) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); dataObjects_.set(index, builderForValue.build()); onChanged(); } else { dataObjectsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public Builder addDataObjects(net.osmand.binary.OsmandOdb.RouteData value) { if (dataObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataObjectsIsMutable(); dataObjects_.add(value); onChanged(); } else { dataObjectsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public Builder addDataObjects( int index, net.osmand.binary.OsmandOdb.RouteData value) { if (dataObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataObjectsIsMutable(); dataObjects_.add(index, value); onChanged(); } else { dataObjectsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public Builder addDataObjects( net.osmand.binary.OsmandOdb.RouteData.Builder builderForValue) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); dataObjects_.add(builderForValue.build()); onChanged(); } else { dataObjectsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public Builder addDataObjects( int index, net.osmand.binary.OsmandOdb.RouteData.Builder builderForValue) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); dataObjects_.add(index, builderForValue.build()); onChanged(); } else { dataObjectsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public Builder addAllDataObjects( java.lang.Iterable values) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); super.addAll(values, dataObjects_); onChanged(); } else { dataObjectsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public Builder clearDataObjects() { if (dataObjectsBuilder_ == null) { dataObjects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataObjectsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public Builder removeDataObjects(int index) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); dataObjects_.remove(index); onChanged(); } else { dataObjectsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public net.osmand.binary.OsmandOdb.RouteData.Builder getDataObjectsBuilder( int index) { return getDataObjectsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public net.osmand.binary.OsmandOdb.RouteDataOrBuilder getDataObjectsOrBuilder( int index) { if (dataObjectsBuilder_ == null) { return dataObjects_.get(index); } else { return dataObjectsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public java.util.List getDataObjectsOrBuilderList() { if (dataObjectsBuilder_ != null) { return dataObjectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dataObjects_); } } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public net.osmand.binary.OsmandOdb.RouteData.Builder addDataObjectsBuilder() { return getDataObjectsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.RouteData.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public net.osmand.binary.OsmandOdb.RouteData.Builder addDataObjectsBuilder( int index) { return getDataObjectsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.RouteData.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.RouteData dataObjects = 6; */ public java.util.List getDataObjectsBuilderList() { return getDataObjectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.RouteData, net.osmand.binary.OsmandOdb.RouteData.Builder, net.osmand.binary.OsmandOdb.RouteDataOrBuilder> getDataObjectsFieldBuilder() { if (dataObjectsBuilder_ == null) { dataObjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.RouteData, net.osmand.binary.OsmandOdb.RouteData.Builder, net.osmand.binary.OsmandOdb.RouteDataOrBuilder>( dataObjects_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); dataObjects_ = null; } return dataObjectsBuilder_; } // repeated .OsmAnd.OBF.RestrictionData restrictions = 7; private java.util.List restrictions_ = java.util.Collections.emptyList(); private void ensureRestrictionsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { restrictions_ = new java.util.ArrayList(restrictions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.RestrictionData, net.osmand.binary.OsmandOdb.RestrictionData.Builder, net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder> restrictionsBuilder_; /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public java.util.List getRestrictionsList() { if (restrictionsBuilder_ == null) { return java.util.Collections.unmodifiableList(restrictions_); } else { return restrictionsBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public int getRestrictionsCount() { if (restrictionsBuilder_ == null) { return restrictions_.size(); } else { return restrictionsBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public net.osmand.binary.OsmandOdb.RestrictionData getRestrictions(int index) { if (restrictionsBuilder_ == null) { return restrictions_.get(index); } else { return restrictionsBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public Builder setRestrictions( int index, net.osmand.binary.OsmandOdb.RestrictionData value) { if (restrictionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRestrictionsIsMutable(); restrictions_.set(index, value); onChanged(); } else { restrictionsBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public Builder setRestrictions( int index, net.osmand.binary.OsmandOdb.RestrictionData.Builder builderForValue) { if (restrictionsBuilder_ == null) { ensureRestrictionsIsMutable(); restrictions_.set(index, builderForValue.build()); onChanged(); } else { restrictionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public Builder addRestrictions(net.osmand.binary.OsmandOdb.RestrictionData value) { if (restrictionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRestrictionsIsMutable(); restrictions_.add(value); onChanged(); } else { restrictionsBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public Builder addRestrictions( int index, net.osmand.binary.OsmandOdb.RestrictionData value) { if (restrictionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRestrictionsIsMutable(); restrictions_.add(index, value); onChanged(); } else { restrictionsBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public Builder addRestrictions( net.osmand.binary.OsmandOdb.RestrictionData.Builder builderForValue) { if (restrictionsBuilder_ == null) { ensureRestrictionsIsMutable(); restrictions_.add(builderForValue.build()); onChanged(); } else { restrictionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public Builder addRestrictions( int index, net.osmand.binary.OsmandOdb.RestrictionData.Builder builderForValue) { if (restrictionsBuilder_ == null) { ensureRestrictionsIsMutable(); restrictions_.add(index, builderForValue.build()); onChanged(); } else { restrictionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public Builder addAllRestrictions( java.lang.Iterable values) { if (restrictionsBuilder_ == null) { ensureRestrictionsIsMutable(); super.addAll(values, restrictions_); onChanged(); } else { restrictionsBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public Builder clearRestrictions() { if (restrictionsBuilder_ == null) { restrictions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { restrictionsBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public Builder removeRestrictions(int index) { if (restrictionsBuilder_ == null) { ensureRestrictionsIsMutable(); restrictions_.remove(index); onChanged(); } else { restrictionsBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public net.osmand.binary.OsmandOdb.RestrictionData.Builder getRestrictionsBuilder( int index) { return getRestrictionsFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder getRestrictionsOrBuilder( int index) { if (restrictionsBuilder_ == null) { return restrictions_.get(index); } else { return restrictionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public java.util.List getRestrictionsOrBuilderList() { if (restrictionsBuilder_ != null) { return restrictionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(restrictions_); } } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public net.osmand.binary.OsmandOdb.RestrictionData.Builder addRestrictionsBuilder() { return getRestrictionsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.RestrictionData.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public net.osmand.binary.OsmandOdb.RestrictionData.Builder addRestrictionsBuilder( int index) { return getRestrictionsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.RestrictionData.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.RestrictionData restrictions = 7; */ public java.util.List getRestrictionsBuilderList() { return getRestrictionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.RestrictionData, net.osmand.binary.OsmandOdb.RestrictionData.Builder, net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder> getRestrictionsFieldBuilder() { if (restrictionsBuilder_ == null) { restrictionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.RestrictionData, net.osmand.binary.OsmandOdb.RestrictionData.Builder, net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder>( restrictions_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); restrictions_ = null; } return restrictionsBuilder_; } // optional .OsmAnd.OBF.StringTable stringTable = 8; private net.osmand.binary.OsmandOdb.StringTable stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> stringTableBuilder_; /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ public boolean hasStringTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ public net.osmand.binary.OsmandOdb.StringTable getStringTable() { if (stringTableBuilder_ == null) { return stringTable_; } else { return stringTableBuilder_.getMessage(); } } /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ 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_ |= 0x00000008; return this; } /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ public Builder setStringTable( net.osmand.binary.OsmandOdb.StringTable.Builder builderForValue) { if (stringTableBuilder_ == null) { stringTable_ = builderForValue.build(); onChanged(); } else { stringTableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ public Builder mergeStringTable(net.osmand.binary.OsmandOdb.StringTable value) { if (stringTableBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && stringTable_ != net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance()) { stringTable_ = net.osmand.binary.OsmandOdb.StringTable.newBuilder(stringTable_).mergeFrom(value).buildPartial(); } else { stringTable_ = value; } onChanged(); } else { stringTableBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ public Builder clearStringTable() { if (stringTableBuilder_ == null) { stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); onChanged(); } else { stringTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ public net.osmand.binary.OsmandOdb.StringTable.Builder getStringTableBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStringTableFieldBuilder().getBuilder(); } /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { if (stringTableBuilder_ != null) { return stringTableBuilder_.getMessageOrBuilder(); } else { return stringTable_; } } /** * optional .OsmAnd.OBF.StringTable stringTable = 8; */ private com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder> getStringTableFieldBuilder() { if (stringTableBuilder_ == null) { stringTableBuilder_ = new com.google.protobuf.SingleFieldBuilder< net.osmand.binary.OsmandOdb.StringTable, net.osmand.binary.OsmandOdb.StringTable.Builder, net.osmand.binary.OsmandOdb.StringTableOrBuilder>( stringTable_, getParentForChildren(), isClean()); stringTable_ = null; } return stringTableBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock) } static { defaultInstance = new RouteDataBlock(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock) } private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * 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) { 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; } } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; public static final int RULES_FIELD_NUMBER = 2; private java.util.List rules_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public java.util.List getRulesList() { return rules_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public java.util.List getRulesOrBuilderList() { return rules_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public int getRulesCount() { return rules_.size(); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule getRules(int index) { return rules_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder getRulesOrBuilder( int index) { return rules_.get(index); } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; public static final int ROOTBOXES_FIELD_NUMBER = 3; private java.util.List rootBoxes_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getRootBoxesList() { return rootBoxes_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getRootBoxesOrBuilderList() { return rootBoxes_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ public int getRootBoxesCount() { return rootBoxes_.size(); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getRootBoxes(int index) { return rootBoxes_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getRootBoxesOrBuilder( int index) { return rootBoxes_.get(index); } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; public static final int BASEMAPBOXES_FIELD_NUMBER = 4; private java.util.List basemapBoxes_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getBasemapBoxesList() { return basemapBoxes_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ public java.util.List getBasemapBoxesOrBuilderList() { return basemapBoxes_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ public int getBasemapBoxesCount() { return basemapBoxes_.size(); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBasemapBoxes(int index) { return basemapBoxes_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
     * encoded as fixed32 length delimited
     * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBasemapBoxesOrBuilder( int index) { return basemapBoxes_.get(index); } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; public static final int BLOCKS_FIELD_NUMBER = 5; private java.util.List blocks_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public java.util.List getBlocksList() { return blocks_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public java.util.List getBlocksOrBuilderList() { return blocks_; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public int getBlocksCount() { return blocks_.size(); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock getBlocks(int index) { return blocks_.get(index); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder getBlocksOrBuilder( int index) { return blocks_.get(index); } private void initFields() { name_ = ""; rules_ = java.util.Collections.emptyList(); rootBoxes_ = java.util.Collections.emptyList(); basemapBoxes_ = java.util.Collections.emptyList(); blocks_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { 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 < getRootBoxesCount(); i++) { if (!getRootBoxes(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getBasemapBoxesCount(); i++) { if (!getBasemapBoxes(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.writeBytes(1, getNameBytes()); } for (int i = 0; i < rules_.size(); i++) { output.writeMessage(2, rules_.get(i)); } for (int i = 0; i < rootBoxes_.size(); i++) { output.writeMessage(3, rootBoxes_.get(i)); } for (int i = 0; i < basemapBoxes_.size(); i++) { output.writeMessage(4, basemapBoxes_.get(i)); } for (int i = 0; i < blocks_.size(); i++) { output.writeMessage(5, 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 .computeBytesSize(1, getNameBytes()); } for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, rules_.get(i)); } for (int i = 0; i < rootBoxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, rootBoxes_.get(i)); } for (int i = 0; i < basemapBoxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, basemapBoxes_.get(i)); } for (int i = 0; i < blocks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, blocks_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex 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.OsmAndRoutingIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex 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.OsmAndRoutingIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex 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.OsmAndRoutingIndex parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.OsmAndRoutingIndex 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.OsmAndRoutingIndex 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.OsmAndRoutingIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.class, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder.class); } // Construct using net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRulesFieldBuilder(); getRootBoxesFieldBuilder(); getBasemapBoxesFieldBuilder(); getBlocksFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rulesBuilder_.clear(); } if (rootBoxesBuilder_ == null) { rootBoxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { rootBoxesBuilder_.clear(); } if (basemapBoxesBuilder_ == null) { basemapBoxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { basemapBoxesBuilder_.clear(); } if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { blocksBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return net.osmand.binary.OsmandOdb.internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex getDefaultInstanceForType() { return net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.getDefaultInstance(); } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex build() { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex buildPartial() { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex result = new net.osmand.binary.OsmandOdb.OsmAndRoutingIndex(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000002); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } if (rootBoxesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { rootBoxes_ = java.util.Collections.unmodifiableList(rootBoxes_); bitField0_ = (bitField0_ & ~0x00000004); } result.rootBoxes_ = rootBoxes_; } else { result.rootBoxes_ = rootBoxesBuilder_.build(); } if (basemapBoxesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { basemapBoxes_ = java.util.Collections.unmodifiableList(basemapBoxes_); bitField0_ = (bitField0_ & ~0x00000008); } result.basemapBoxes_ = basemapBoxes_; } else { result.basemapBoxes_ = basemapBoxesBuilder_.build(); } if (blocksBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); bitField0_ = (bitField0_ & ~0x00000010); } result.blocks_ = blocks_; } else { result.blocks_ = blocksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof net.osmand.binary.OsmandOdb.OsmAndRoutingIndex) { return mergeFrom((net.osmand.binary.OsmandOdb.OsmAndRoutingIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex other) { if (other == net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000002); rulesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } if (rootBoxesBuilder_ == null) { if (!other.rootBoxes_.isEmpty()) { if (rootBoxes_.isEmpty()) { rootBoxes_ = other.rootBoxes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRootBoxesIsMutable(); rootBoxes_.addAll(other.rootBoxes_); } onChanged(); } } else { if (!other.rootBoxes_.isEmpty()) { if (rootBoxesBuilder_.isEmpty()) { rootBoxesBuilder_.dispose(); rootBoxesBuilder_ = null; rootBoxes_ = other.rootBoxes_; bitField0_ = (bitField0_ & ~0x00000004); rootBoxesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRootBoxesFieldBuilder() : null; } else { rootBoxesBuilder_.addAllMessages(other.rootBoxes_); } } } if (basemapBoxesBuilder_ == null) { if (!other.basemapBoxes_.isEmpty()) { if (basemapBoxes_.isEmpty()) { basemapBoxes_ = other.basemapBoxes_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureBasemapBoxesIsMutable(); basemapBoxes_.addAll(other.basemapBoxes_); } onChanged(); } } else { if (!other.basemapBoxes_.isEmpty()) { if (basemapBoxesBuilder_.isEmpty()) { basemapBoxesBuilder_.dispose(); basemapBoxesBuilder_ = null; basemapBoxes_ = other.basemapBoxes_; bitField0_ = (bitField0_ & ~0x00000008); basemapBoxesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBasemapBoxesFieldBuilder() : null; } else { basemapBoxesBuilder_.addAllMessages(other.basemapBoxes_); } } } if (blocksBuilder_ == null) { if (!other.blocks_.isEmpty()) { if (blocks_.isEmpty()) { blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureBlocksIsMutable(); blocks_.addAll(other.blocks_); } onChanged(); } } else { if (!other.blocks_.isEmpty()) { if (blocksBuilder_.isEmpty()) { blocksBuilder_.dispose(); blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000010); blocksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } for (int i = 0; i < getRulesCount(); i++) { if (!getRules(i).isInitialized()) { return false; } } for (int i = 0; i < getRootBoxesCount(); i++) { if (!getRootBoxes(i).isInitialized()) { return false; } } for (int i = 0; i < getBasemapBoxesCount(); i++) { if (!getBasemapBoxes(i).isInitialized()) { return false; } } for (int i = 0; i < getBlocksCount(); i++) { if (!getBlocks(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { net.osmand.binary.OsmandOdb.OsmAndRoutingIndex parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (net.osmand.binary.OsmandOdb.OsmAndRoutingIndex) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string name = 1; private java.lang.Object name_ = ""; /** * 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; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; private java.util.List rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder> rulesBuilder_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public Builder setRules( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public Builder setRules( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public Builder addRules(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public Builder addRules( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public Builder addRules( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public Builder addRules( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public Builder addAllRules( java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); super.addAll(values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public java.util.List getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; */ public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder>( rules_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; private java.util.List rootBoxes_ = java.util.Collections.emptyList(); private void ensureRootBoxesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { rootBoxes_ = new java.util.ArrayList(rootBoxes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> rootBoxesBuilder_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getRootBoxesList() { if (rootBoxesBuilder_ == null) { return java.util.Collections.unmodifiableList(rootBoxes_); } else { return rootBoxesBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public int getRootBoxesCount() { if (rootBoxesBuilder_ == null) { return rootBoxes_.size(); } else { return rootBoxesBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getRootBoxes(int index) { if (rootBoxesBuilder_ == null) { return rootBoxes_.get(index); } else { return rootBoxesBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setRootBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { if (rootBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRootBoxesIsMutable(); rootBoxes_.set(index, value); onChanged(); } else { rootBoxesBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setRootBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { if (rootBoxesBuilder_ == null) { ensureRootBoxesIsMutable(); rootBoxes_.set(index, builderForValue.build()); onChanged(); } else { rootBoxesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addRootBoxes(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { if (rootBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRootBoxesIsMutable(); rootBoxes_.add(value); onChanged(); } else { rootBoxesBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addRootBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { if (rootBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRootBoxesIsMutable(); rootBoxes_.add(index, value); onChanged(); } else { rootBoxesBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addRootBoxes( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { if (rootBoxesBuilder_ == null) { ensureRootBoxesIsMutable(); rootBoxes_.add(builderForValue.build()); onChanged(); } else { rootBoxesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addRootBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { if (rootBoxesBuilder_ == null) { ensureRootBoxesIsMutable(); rootBoxes_.add(index, builderForValue.build()); onChanged(); } else { rootBoxesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addAllRootBoxes( java.lang.Iterable values) { if (rootBoxesBuilder_ == null) { ensureRootBoxesIsMutable(); super.addAll(values, rootBoxes_); onChanged(); } else { rootBoxesBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder clearRootBoxes() { if (rootBoxesBuilder_ == null) { rootBoxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { rootBoxesBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder removeRootBoxes(int index) { if (rootBoxesBuilder_ == null) { ensureRootBoxesIsMutable(); rootBoxes_.remove(index); onChanged(); } else { rootBoxesBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder getRootBoxesBuilder( int index) { return getRootBoxesFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getRootBoxesOrBuilder( int index) { if (rootBoxesBuilder_ == null) { return rootBoxes_.get(index); } else { return rootBoxesBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getRootBoxesOrBuilderList() { if (rootBoxesBuilder_ != null) { return rootBoxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rootBoxes_); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addRootBoxesBuilder() { return getRootBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addRootBoxesBuilder( int index) { return getRootBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getRootBoxesBuilderList() { return getRootBoxesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getRootBoxesFieldBuilder() { if (rootBoxesBuilder_ == null) { rootBoxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder>( rootBoxes_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); rootBoxes_ = null; } return rootBoxesBuilder_; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; private java.util.List basemapBoxes_ = java.util.Collections.emptyList(); private void ensureBasemapBoxesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { basemapBoxes_ = new java.util.ArrayList(basemapBoxes_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> basemapBoxesBuilder_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getBasemapBoxesList() { if (basemapBoxesBuilder_ == null) { return java.util.Collections.unmodifiableList(basemapBoxes_); } else { return basemapBoxesBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public int getBasemapBoxesCount() { if (basemapBoxesBuilder_ == null) { return basemapBoxes_.size(); } else { return basemapBoxesBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBasemapBoxes(int index) { if (basemapBoxesBuilder_ == null) { return basemapBoxes_.get(index); } else { return basemapBoxesBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setBasemapBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { if (basemapBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBasemapBoxesIsMutable(); basemapBoxes_.set(index, value); onChanged(); } else { basemapBoxesBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder setBasemapBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { if (basemapBoxesBuilder_ == null) { ensureBasemapBoxesIsMutable(); basemapBoxes_.set(index, builderForValue.build()); onChanged(); } else { basemapBoxesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addBasemapBoxes(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { if (basemapBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBasemapBoxesIsMutable(); basemapBoxes_.add(value); onChanged(); } else { basemapBoxesBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addBasemapBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox value) { if (basemapBoxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBasemapBoxesIsMutable(); basemapBoxes_.add(index, value); onChanged(); } else { basemapBoxesBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addBasemapBoxes( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { if (basemapBoxesBuilder_ == null) { ensureBasemapBoxesIsMutable(); basemapBoxes_.add(builderForValue.build()); onChanged(); } else { basemapBoxesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addBasemapBoxes( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder builderForValue) { if (basemapBoxesBuilder_ == null) { ensureBasemapBoxesIsMutable(); basemapBoxes_.add(index, builderForValue.build()); onChanged(); } else { basemapBoxesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder addAllBasemapBoxes( java.lang.Iterable values) { if (basemapBoxesBuilder_ == null) { ensureBasemapBoxesIsMutable(); super.addAll(values, basemapBoxes_); onChanged(); } else { basemapBoxesBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder clearBasemapBoxes() { if (basemapBoxesBuilder_ == null) { basemapBoxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { basemapBoxesBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public Builder removeBasemapBoxes(int index) { if (basemapBoxesBuilder_ == null) { ensureBasemapBoxesIsMutable(); basemapBoxes_.remove(index); onChanged(); } else { basemapBoxesBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder getBasemapBoxesBuilder( int index) { return getBasemapBoxesFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBasemapBoxesOrBuilder( int index) { if (basemapBoxesBuilder_ == null) { return basemapBoxes_.get(index); } else { return basemapBoxesBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getBasemapBoxesOrBuilderList() { if (basemapBoxesBuilder_ != null) { return basemapBoxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(basemapBoxes_); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBasemapBoxesBuilder() { return getBasemapBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBasemapBoxesBuilder( int index) { return getBasemapBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; * *
       * encoded as fixed32 length delimited
       * 
*/ public java.util.List getBasemapBoxesBuilderList() { return getBasemapBoxesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getBasemapBoxesFieldBuilder() { if (basemapBoxesBuilder_ == null) { basemapBoxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder>( basemapBoxes_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); basemapBoxes_ = null; } return basemapBoxesBuilder_; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; private java.util.List blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder> blocksBuilder_; /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public java.util.List getBlocksList() { if (blocksBuilder_ == null) { return java.util.Collections.unmodifiableList(blocks_); } else { return blocksBuilder_.getMessageList(); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public int getBlocksCount() { if (blocksBuilder_ == null) { return blocks_.size(); } else { return blocksBuilder_.getCount(); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock getBlocks(int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessage(index); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public Builder setBlocks( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.set(index, value); onChanged(); } else { blocksBuilder_.setMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public Builder setBlocks( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.set(index, builderForValue.build()); onChanged(); } else { blocksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public Builder addBlocks(net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.add(value); onChanged(); } else { blocksBuilder_.addMessage(value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public Builder addBlocks( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.add(index, value); onChanged(); } else { blocksBuilder_.addMessage(index, value); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public Builder addBlocks( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); onChanged(); } else { blocksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public Builder addBlocks( int index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(index, builderForValue.build()); onChanged(); } else { blocksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); super.addAll(values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public Builder clearBlocks() { if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { blocksBuilder_.clear(); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public Builder removeBlocks(int index) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.remove(index); onChanged(); } else { blocksBuilder_.remove(index); } return this; } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder getBlocksBuilder( int index) { return getBlocksFieldBuilder().getBuilder(index); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder getBlocksOrBuilder( int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public java.util.List getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(blocks_); } } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder addBlocksBuilder() { return getBlocksFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder addBlocksBuilder( int index) { return getBlocksFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.getDefaultInstance()); } /** * repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; */ public java.util.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder>( blocks_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.OsmAndRoutingIndex) } static { defaultInstance = new OsmAndRoutingIndex(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.OsmAndRoutingIndex) } private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndStructure_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndStructure_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndTileBox_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndTileBox_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_StringTable_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_StringTable_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_IndexedStringTable_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_IndexedStringTable_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndMapIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndMapIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_MapDataBlock_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_MapDataBlock_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_MapData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_MapData_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndAddressIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndAddressIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_CityIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_CityIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_CityBlockIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_CityBlockIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_StreetIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_StreetIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_StreetIntersection_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_StreetIntersection_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_BuildingIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_BuildingIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_TransportRoutes_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_TransportRoutes_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_TransportRoute_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_TransportRoute_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_TransportRouteSchedule_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_TransportRouteSchedule_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_TransportRouteScheduleException_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_TransportRouteScheduleException_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_TransportRouteStop_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_TransportRouteStop_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_TransportStop_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_TransportStop_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_TransportStopExit_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_TransportStopExit_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_TransportStopsTree_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_TransportStopsTree_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndTransportIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndTransportIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndPoiIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndPoiIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndCategoryTable_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndCategoryTable_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndSubtypesTable_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndSubtypesTable_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndPoiSubtype_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndPoiSubtype_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndPoiBox_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndPoiBox_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndPoiCategories_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndPoiCategories_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndPoiBoxData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndPoiBoxData_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_IdTable_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_IdTable_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_RestrictionData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_RestrictionData_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_RouteData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_RouteData_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndRoutingIndex_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\tOBF.proto\022\nOsmAnd.OBF\"\321\002\n\017OsmAndStruct" + "ure\022\017\n\007version\030\001 \002(\r\022\023\n\013dateCreated\030\022 \002(" + "\003\0224\n\014addressIndex\030\007 \003(\0132\036.OsmAnd.OBF.Osm" + "AndAddressIndex\0228\n\016transportIndex\030\004 \003(\0132" + " .OsmAnd.OBF.OsmAndTransportIndex\022,\n\010poi" + "Index\030\010 \003(\0132\032.OsmAnd.OBF.OsmAndPoiIndex\022" + ",\n\010mapIndex\030\006 \003(\0132\032.OsmAnd.OBF.OsmAndMap" + "Index\0224\n\014routingIndex\030\t \003(\0132\036.OsmAnd.OBF" + ".OsmAndRoutingIndex\022\026\n\016versionConfirm\030 " + "\002(\r\"I\n\rOsmAndTileBox\022\014\n\004left\030\001 \002(\r\022\r\n\005ri", "ght\030\002 \002(\r\022\013\n\003top\030\003 \002(\r\022\016\n\006bottom\030\004 \002(\r\"\030" + "\n\013StringTable\022\t\n\001s\030\001 \003(\t\"q\n\022IndexedStrin" + "gTable\022\016\n\006prefix\030\001 \001(\t\022\013\n\003key\030\003 \003(\t\022\013\n\003v" + "al\030\004 \003(\007\0221\n\tsubtables\030\005 \003(\0132\036.OsmAnd.OBF" + ".IndexedStringTable\"\337\004\n\016OsmAndMapIndex\022\014" + "\n\004name\030\002 \002(\t\0229\n\005rules\030\004 \003(\0132*.OsmAnd.OBF" + ".OsmAndMapIndex.MapEncodingRule\0227\n\006level" + "s\030\005 \003(\0132\'.OsmAnd.OBF.OsmAndMapIndex.MapR" + "ootLevel\032X\n\017MapEncodingRule\022\013\n\003tag\030\003 \002(\t" + "\022\r\n\005value\030\005 \001(\t\022\n\n\002id\030\007 \001(\r\022\017\n\007minZoom\030\t", " \001(\r\022\014\n\004type\030\n \001(\r\032\312\001\n\014MapRootLevel\022\017\n\007m" + "axZoom\030\001 \002(\005\022\017\n\007minZoom\030\002 \002(\005\022\014\n\004left\030\003 " + "\002(\005\022\r\n\005right\030\004 \002(\005\022\013\n\003top\030\005 \002(\005\022\016\n\006botto" + "m\030\006 \002(\005\0224\n\005boxes\030\007 \003(\0132%.OsmAnd.OBF.OsmA" + "ndMapIndex.MapDataBox\022(\n\006blocks\030\017 \003(\0132\030." + "OsmAnd.OBF.MapDataBlock\032\243\001\n\nMapDataBox\022\014" + "\n\004left\030\001 \002(\021\022\r\n\005right\030\002 \002(\021\022\013\n\003top\030\003 \002(\021" + "\022\016\n\006bottom\030\004 \002(\021\022\026\n\016shiftToMapData\030\005 \001(\007" + "\022\r\n\005ocean\030\006 \001(\010\0224\n\005boxes\030\007 \003(\0132%.OsmAnd." + "OBF.OsmAndMapIndex.MapDataBox\"v\n\014MapData", "Block\022\016\n\006baseId\030\n \001(\004\022(\n\013dataObjects\030\014 \003" + "(\0132\023.OsmAnd.OBF.MapData\022,\n\013stringTable\030\017" + " \001(\0132\027.OsmAnd.OBF.StringTable\"\320\001\n\007MapDat" + "a\022\023\n\013coordinates\030\001 \001(\014\022\027\n\017areaCoordinate" + "s\030\002 \001(\014\022\037\n\027polygonInnerCoordinates\030\004 \003(\014" + "\022\027\n\017additionalTypes\030\006 \001(\014\022\r\n\005types\030\007 \002(\014" + "\022\030\n\020labelcoordinates\030\010 \001(\014\022\023\n\013stringName" + "s\030\n \001(\014\022\n\n\002id\030\014 \002(\022\022\023\n\013rasterBytes\030\017 \001(\014" + "\"\364\003\n\022OsmAndAddressIndex\022\014\n\004name\030\001 \002(\t\022\017\n" + "\007name_en\030\002 \001(\t\022-\n\nboundaries\030\003 \001(\0132\031.Osm", "And.OBF.OsmAndTileBox\0223\n\022attributeTagsTa" + "ble\030\004 \001(\0132\027.OsmAnd.OBF.StringTable\022:\n\006ci" + "ties\030\006 \003(\0132*.OsmAnd.OBF.OsmAndAddressInd" + "ex.CitiesIndex\0229\n\tnameIndex\030\007 \001(\0132&.OsmA" + "nd.OBF.OsmAndAddressNameIndexData\032\343\001\n\013Ci" + "tiesIndex\022C\n\004type\030\002 \002(\01625.OsmAnd.OBF.Osm" + "AndAddressIndex.CitiesIndex.CitiesType\022%" + "\n\006cities\030\005 \003(\0132\025.OsmAnd.OBF.CityIndex\022*\n" + "\006blocks\030\007 \003(\0132\032.OsmAnd.OBF.CityBlockInde" + "x\"<\n\nCitiesType\022\021\n\rCitiesOrTowns\020\001\022\r\n\tPo", "stcodes\020\002\022\014\n\010Villages\020\003\"\342\001\n\032OsmAndAddres" + "sNameIndexData\022-\n\005table\030\004 \002(\0132\036.OsmAnd.O" + "BF.IndexedStringTable\022I\n\004atom\030\007 \003(\0132;.Os" + "mAnd.OBF.OsmAndAddressNameIndexData.Addr" + "essNameIndexData\032J\n\024AddressNameIndexData" + "\0222\n\004atom\030\004 \003(\0132$.OsmAnd.OBF.AddressNameI" + "ndexDataAtom\"\204\001\n\030AddressNameIndexDataAto" + "m\022\014\n\004name\030\001 \001(\t\022\016\n\006nameEn\030\002 \001(\t\022\014\n\004type\030" + "\003 \002(\r\022\024\n\014shiftToIndex\030\005 \003(\005\022\030\n\020shiftToCi" + "tyIndex\030\006 \003(\005\022\014\n\004xy16\030\007 \003(\r\"\260\001\n\tCityInde", "x\022\021\n\tcity_type\030\001 \001(\r\022\014\n\004name\030\002 \002(\t\022\017\n\007na" + "me_en\030\003 \001(\t\022\n\n\002id\030\004 \001(\004\022\t\n\001x\030\005 \002(\r\022\t\n\001y\030" + "\006 \002(\r\022\027\n\017attributeTagIds\030\007 \003(\r\022\027\n\017attrib" + "uteValues\030\010 \003(\t\022\035\n\025shiftToCityBlockIndex" + "\030\n \001(\007\"\202\001\n\016CityBlockIndex\022\030\n\020shiftToCity" + "Index\030\004 \001(\007\022,\n\tbuildings\030\n \003(\0132\031.OsmAnd." + "OBF.BuildingIndex\022(\n\007streets\030\014 \003(\0132\027.Osm" + "And.OBF.StreetIndex\"\345\001\n\013StreetIndex\022\014\n\004n" + "ame\030\001 \002(\t\022\017\n\007name_en\030\002 \001(\t\022\t\n\001x\030\003 \002(\021\022\t\n" + "\001y\030\004 \002(\021\0225\n\rintersections\030\005 \003(\0132\036.OsmAnd", ".OBF.StreetIntersection\022\n\n\002id\030\006 \001(\004\022\027\n\017a" + "ttributeTagIds\030\007 \003(\r\022\027\n\017attributeValues\030" + "\010 \003(\t\022,\n\tbuildings\030\014 \003(\0132\031.OsmAnd.OBF.Bu" + "ildingIndex\"\221\001\n\022StreetIntersection\022\014\n\004na" + "me\030\002 \002(\t\022\017\n\007name_en\030\003 \001(\t\022\024\n\014intersected" + "X\030\004 \002(\021\022\024\n\014intersectedY\030\005 \002(\021\022\027\n\017attribu" + "teTagIds\030\007 \003(\r\022\027\n\017attributeValues\030\010 \003(\t\"" + "\230\002\n\rBuildingIndex\022\014\n\004name\030\001 \002(\t\022\017\n\007name_" + "en\030\002 \001(\t\022\r\n\005name2\030\003 \001(\t\022\020\n\010name_en2\030\004 \001(" + "\t\022\025\n\rinterpolation\030\005 \001(\021\022\t\n\001x\030\007 \002(\021\022\t\n\001y", "\030\010 \002(\021\022\n\n\002x2\030\t \001(\021\022\n\n\002y2\030\n \001(\021\022\n\n\002id\030\r \001" + "(\004\022\020\n\010postcode\030\016 \001(\t\022\027\n\017attributeTagIds\030" + "\017 \003(\r\022\027\n\017attributeValues\030\020 \003(\t\022\030\n\020attrib" + "uteTagIds2\030\021 \003(\r\022\030\n\020attributeValues2\030\022 \003" + "(\t\"=\n\017TransportRoutes\022*\n\006routes\030\006 \003(\0132\032." + "OsmAnd.OBF.TransportRoute\"\300\002\n\016TransportR" + "oute\022\n\n\002id\030\001 \002(\004\022\014\n\004type\030\003 \001(\r\022\020\n\010operat" + "or\030\004 \001(\r\022\013\n\003ref\030\005 \001(\t\022\014\n\004name\030\006 \001(\r\022\017\n\007n" + "ame_en\030\007 \001(\r\022\020\n\010distance\030\010 \001(\r\022\r\n\005color\030" + "\t \001(\r\0223\n\013directStops\030\017 \003(\0132\036.OsmAnd.OBF.", "TransportRouteStop\0224\n\014reverseStops\030\020 \003(\013" + "2\036.OsmAnd.OBF.TransportRouteStop\022\020\n\010geom" + "etry\030\021 \001(\014\0228\n\014scheduleTrip\030\022 \003(\0132\".OsmAn" + "d.OBF.TransportRouteSchedule\"\244\001\n\026Transpo" + "rtRouteSchedule\022\030\n\020avgStopIntervals\030\001 \001(" + "\014\022\030\n\020avgWaitIntervals\030\002 \001(\014\022\025\n\rtripInter" + "vals\030\003 \001(\014\022?\n\nexceptions\030\010 \003(\0132+.OsmAnd." + "OBF.TransportRouteScheduleException\"\313\001\n\037" + "TransportRouteScheduleException\022\023\n\013tripI" + "ndexes\030\001 \003(\r\022\023\n\013stopIndexes\030\002 \003(\r\022\021\n\tava", "ilable\030\003 \001(\010\022\024\n\014delayArrival\030\005 \003(\r\022\031\n\021de" + "ltaWaitInterval\030\006 \003(\005\022\034\n\024dayOfWeekRestri" + "ction\030\007 \003(\r\022\034\n\024dayOfYearRestriction\030\010 \003(" + "\r\"W\n\022TransportRouteStop\022\n\n\002id\030\001 \002(\022\022\n\n\002d" + "x\030\002 \002(\021\022\n\n\002dy\030\003 \002(\021\022\014\n\004name\030\006 \002(\r\022\017\n\007nam" + "e_en\030\007 \001(\r\"\332\001\n\rTransportStop\022\n\n\002dx\030\001 \002(\021" + "\022\n\n\002dy\030\002 \002(\021\022\n\n\002id\030\005 \002(\022\022\014\n\004name\030\006 \002(\r\022\017" + "\n\007name_en\030\007 \001(\r\022\033\n\023additionalNamePairs\030\010" + " \001(\014\022,\n\005exits\030\t \003(\0132\035.OsmAnd.OBF.Transpo" + "rtStopExit\022\016\n\006routes\030\020 \003(\r\022\030\n\020deletedRou", "tesIds\030\024 \003(\004\022\021\n\troutesIds\030\026 \003(\004\"8\n\021Trans" + "portStopExit\022\n\n\002dx\030\001 \002(\021\022\n\n\002dy\030\002 \002(\021\022\013\n\003" + "ref\030\003 \002(\r\"\272\001\n\022TransportStopsTree\022\014\n\004left" + "\030\001 \002(\021\022\r\n\005right\030\002 \002(\021\022\013\n\003top\030\003 \002(\021\022\016\n\006bo" + "ttom\030\004 \002(\021\0220\n\010subtrees\030\007 \003(\0132\036.OsmAnd.OB" + "F.TransportStopsTree\022(\n\005leafs\030\010 \003(\0132\031.Os" + "mAnd.OBF.TransportStop\022\016\n\006baseId\030\020 \001(\004\"\256" + "\001\n\024OsmAndTransportIndex\022\014\n\004name\030\001 \001(\t\022+\n" + "\006routes\030\003 \001(\0132\033.OsmAnd.OBF.TransportRout" + "es\022-\n\005stops\030\006 \001(\0132\036.OsmAnd.OBF.Transport", "StopsTree\022,\n\013stringTable\030\t \002(\0132\027.OsmAnd." + "OBF.StringTable\"\312\002\n\016OsmAndPoiIndex\022\014\n\004na" + "me\030\001 \002(\t\022-\n\nboundaries\030\002 \002(\0132\031.OsmAnd.OB" + "F.OsmAndTileBox\0228\n\017categoriesTable\030\003 \003(\013" + "2\037.OsmAnd.OBF.OsmAndCategoryTable\0221\n\tnam" + "eIndex\030\004 \001(\0132\036.OsmAnd.OBF.OsmAndPoiNameI" + "ndex\0226\n\rsubtypesTable\030\005 \001(\0132\037.OsmAnd.OBF" + ".OsmAndSubtypesTable\022\'\n\005boxes\030\006 \003(\0132\030.Os" + "mAnd.OBF.OsmAndPoiBox\022-\n\007poiData\030\t \003(\0132\034" + ".OsmAnd.OBF.OsmAndPoiBoxData\"\331\001\n\022OsmAndP", "oiNameIndex\022-\n\005table\030\003 \002(\0132\036.OsmAnd.OBF." + "IndexedStringTable\022C\n\004data\030\005 \003(\01325.OsmAn" + "d.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIn" + "dexData\032O\n\026OsmAndPoiNameIndexData\0225\n\005ato" + "ms\030\003 \003(\0132&.OsmAnd.OBF.OsmAndPoiNameIndex" + "DataAtom\"Q\n\032OsmAndPoiNameIndexDataAtom\022\014" + "\n\004zoom\030\002 \001(\r\022\t\n\001x\030\003 \001(\r\022\t\n\001y\030\004 \001(\r\022\017\n\007sh" + "iftTo\030\016 \001(\007\">\n\023OsmAndCategoryTable\022\020\n\010ca" + "tegory\030\001 \002(\t\022\025\n\rsubcategories\030\003 \003(\t\"E\n\023O" + "smAndSubtypesTable\022.\n\010subtypes\030\004 \003(\0132\034.O", "smAnd.OBF.OsmAndPoiSubtype\"\205\001\n\020OsmAndPoi" + "Subtype\022\014\n\004name\030\001 \002(\t\022\017\n\007tagname\030\002 \001(\t\022\016" + "\n\006isText\030\003 \002(\010\022\021\n\tfrequency\030\005 \001(\r\022\031\n\021sub" + "typeValuesSize\030\006 \001(\r\022\024\n\014subtypeValue\030\010 \003" + "(\t\"\255\001\n\014OsmAndPoiBox\022\014\n\004zoom\030\001 \002(\r\022\014\n\004lef" + "t\030\002 \002(\021\022\013\n\003top\030\003 \002(\021\0223\n\ncategories\030\004 \001(\013" + "2\037.OsmAnd.OBF.OsmAndPoiCategories\022*\n\010sub" + "Boxes\030\n \003(\0132\030.OsmAnd.OBF.OsmAndPoiBox\022\023\n" + "\013shiftToData\030\016 \001(\007\"@\n\023OsmAndPoiCategorie" + "s\022\022\n\ncategories\030\003 \003(\r\022\025\n\rsubcategories\030\005", " \003(\r\"i\n\020OsmAndPoiBoxData\022\014\n\004zoom\030\001 \001(\r\022\t" + "\n\001x\030\002 \001(\r\022\t\n\001y\030\003 \001(\r\0221\n\007poiData\030\005 \003(\0132 ." + "OsmAnd.OBF.OsmAndPoiBoxDataAtom\"\360\001\n\024OsmA" + "ndPoiBoxDataAtom\022\n\n\002dx\030\002 \002(\021\022\n\n\002dy\030\003 \002(\021" + "\022\022\n\ncategories\030\004 \003(\r\022\025\n\rsubcategories\030\005 " + "\003(\r\022\014\n\004name\030\006 \001(\t\022\016\n\006nameEn\030\007 \001(\t\022\n\n\002id\030" + "\010 \001(\004\022\024\n\014openingHours\030\n \001(\t\022\014\n\004site\030\013 \001(" + "\t\022\r\n\005phone\030\014 \001(\t\022\014\n\004note\030\r \001(\t\022\026\n\016textCa" + "tegories\030\016 \003(\r\022\022\n\ntextValues\030\017 \003(\t\"\032\n\007Id" + "Table\022\017\n\007routeId\030\001 \003(\022\"F\n\017RestrictionDat", "a\022\014\n\004type\030\001 \002(\005\022\014\n\004from\030\002 \002(\005\022\n\n\002to\030\003 \002(" + "\005\022\013\n\003via\030\004 \001(\005\"x\n\tRouteData\022\016\n\006points\030\001 " + "\002(\014\022\022\n\npointTypes\030\004 \001(\014\022\022\n\npointNames\030\005 " + "\001(\014\022\r\n\005types\030\007 \002(\014\022\017\n\007routeId\030\014 \002(\005\022\023\n\013s" + "tringNames\030\016 \001(\014\"\304\005\n\022OsmAndRoutingIndex\022" + "\014\n\004name\030\001 \002(\t\022?\n\005rules\030\002 \003(\01320.OsmAnd.OB" + "F.OsmAndRoutingIndex.RouteEncodingRule\022>" + "\n\trootBoxes\030\003 \003(\0132+.OsmAnd.OBF.OsmAndRou" + "tingIndex.RouteDataBox\022A\n\014basemapBoxes\030\004" + " \003(\0132+.OsmAnd.OBF.OsmAndRoutingIndex.Rou", "teDataBox\022=\n\006blocks\030\005 \003(\0132-.OsmAnd.OBF.O" + "smAndRoutingIndex.RouteDataBlock\032;\n\021Rout" + "eEncodingRule\022\013\n\003tag\030\003 \002(\t\022\r\n\005value\030\005 \002(" + "\t\022\n\n\002id\030\007 \001(\r\032\231\001\n\014RouteDataBox\022\014\n\004left\030\001" + " \002(\021\022\r\n\005right\030\002 \002(\021\022\013\n\003top\030\003 \002(\021\022\016\n\006bott" + "om\030\004 \002(\021\022\023\n\013shiftToData\030\005 \001(\007\022:\n\005boxes\030\007" + " \003(\0132+.OsmAnd.OBF.OsmAndRoutingIndex.Rou" + "teDataBox\032\303\001\n\016RouteDataBlock\022$\n\007idTable\030" + "\005 \001(\0132\023.OsmAnd.OBF.IdTable\022*\n\013dataObject" + "s\030\006 \003(\0132\025.OsmAnd.OBF.RouteData\0221\n\014restri", "ctions\030\007 \003(\0132\033.OsmAnd.OBF.RestrictionDat" + "a\022,\n\013stringTable\030\010 \001(\0132\027.OsmAnd.OBF.Stri" + "ngTableB\036\n\021net.osmand.binaryB\tOsmandOdb" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_OsmAnd_OBF_OsmAndStructure_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_OsmAnd_OBF_OsmAndStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndStructure_descriptor, new java.lang.String[] { "Version", "DateCreated", "AddressIndex", "TransportIndex", "PoiIndex", "MapIndex", "RoutingIndex", "VersionConfirm", }); internal_static_OsmAnd_OBF_OsmAndTileBox_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_OsmAnd_OBF_OsmAndTileBox_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndTileBox_descriptor, new java.lang.String[] { "Left", "Right", "Top", "Bottom", }); internal_static_OsmAnd_OBF_StringTable_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_OsmAnd_OBF_StringTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_StringTable_descriptor, new java.lang.String[] { "S", }); internal_static_OsmAnd_OBF_IndexedStringTable_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_OsmAnd_OBF_IndexedStringTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_IndexedStringTable_descriptor, new java.lang.String[] { "Prefix", "Key", "Val", "Subtables", }); internal_static_OsmAnd_OBF_OsmAndMapIndex_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_OsmAnd_OBF_OsmAndMapIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndMapIndex_descriptor, new java.lang.String[] { "Name", "Rules", "Levels", }); internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_descriptor = internal_static_OsmAnd_OBF_OsmAndMapIndex_descriptor.getNestedTypes().get(0); internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndMapIndex_MapEncodingRule_descriptor, new java.lang.String[] { "Tag", "Value", "Id", "MinZoom", "Type", }); internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_descriptor = internal_static_OsmAnd_OBF_OsmAndMapIndex_descriptor.getNestedTypes().get(1); internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndMapIndex_MapRootLevel_descriptor, new java.lang.String[] { "MaxZoom", "MinZoom", "Left", "Right", "Top", "Bottom", "Boxes", "Blocks", }); internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_descriptor = internal_static_OsmAnd_OBF_OsmAndMapIndex_descriptor.getNestedTypes().get(2); internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndMapIndex_MapDataBox_descriptor, new java.lang.String[] { "Left", "Right", "Top", "Bottom", "ShiftToMapData", "Ocean", "Boxes", }); internal_static_OsmAnd_OBF_MapDataBlock_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_OsmAnd_OBF_MapDataBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_MapDataBlock_descriptor, new java.lang.String[] { "BaseId", "DataObjects", "StringTable", }); internal_static_OsmAnd_OBF_MapData_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_OsmAnd_OBF_MapData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_MapData_descriptor, new java.lang.String[] { "Coordinates", "AreaCoordinates", "PolygonInnerCoordinates", "AdditionalTypes", "Types", "Labelcoordinates", "StringNames", "Id", "RasterBytes", }); internal_static_OsmAnd_OBF_OsmAndAddressIndex_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_OsmAnd_OBF_OsmAndAddressIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndAddressIndex_descriptor, new java.lang.String[] { "Name", "NameEn", "Boundaries", "AttributeTagsTable", "Cities", "NameIndex", }); internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_descriptor = internal_static_OsmAnd_OBF_OsmAndAddressIndex_descriptor.getNestedTypes().get(0); internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndAddressIndex_CitiesIndex_descriptor, new java.lang.String[] { "Type", "Cities", "Blocks", }); internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_descriptor, new java.lang.String[] { "Table", "Atom", }); internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_descriptor = internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_descriptor.getNestedTypes().get(0); internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndAddressNameIndexData_AddressNameIndexData_descriptor, new java.lang.String[] { "Atom", }); internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_AddressNameIndexDataAtom_descriptor, new java.lang.String[] { "Name", "NameEn", "Type", "ShiftToIndex", "ShiftToCityIndex", "Xy16", }); internal_static_OsmAnd_OBF_CityIndex_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_OsmAnd_OBF_CityIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_CityIndex_descriptor, new java.lang.String[] { "CityType", "Name", "NameEn", "Id", "X", "Y", "AttributeTagIds", "AttributeValues", "ShiftToCityBlockIndex", }); internal_static_OsmAnd_OBF_CityBlockIndex_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_OsmAnd_OBF_CityBlockIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_CityBlockIndex_descriptor, new java.lang.String[] { "ShiftToCityIndex", "Buildings", "Streets", }); internal_static_OsmAnd_OBF_StreetIndex_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_OsmAnd_OBF_StreetIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_StreetIndex_descriptor, new java.lang.String[] { "Name", "NameEn", "X", "Y", "Intersections", "Id", "AttributeTagIds", "AttributeValues", "Buildings", }); internal_static_OsmAnd_OBF_StreetIntersection_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_OsmAnd_OBF_StreetIntersection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_StreetIntersection_descriptor, new java.lang.String[] { "Name", "NameEn", "IntersectedX", "IntersectedY", "AttributeTagIds", "AttributeValues", }); internal_static_OsmAnd_OBF_BuildingIndex_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_OsmAnd_OBF_BuildingIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_BuildingIndex_descriptor, new java.lang.String[] { "Name", "NameEn", "Name2", "NameEn2", "Interpolation", "X", "Y", "X2", "Y2", "Id", "Postcode", "AttributeTagIds", "AttributeValues", "AttributeTagIds2", "AttributeValues2", }); internal_static_OsmAnd_OBF_TransportRoutes_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_OsmAnd_OBF_TransportRoutes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_TransportRoutes_descriptor, new java.lang.String[] { "Routes", }); internal_static_OsmAnd_OBF_TransportRoute_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_OsmAnd_OBF_TransportRoute_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_TransportRoute_descriptor, new java.lang.String[] { "Id", "Type", "Operator", "Ref", "Name", "NameEn", "Distance", "Color", "DirectStops", "ReverseStops", "Geometry", "ScheduleTrip", }); internal_static_OsmAnd_OBF_TransportRouteSchedule_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_OsmAnd_OBF_TransportRouteSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_TransportRouteSchedule_descriptor, new java.lang.String[] { "AvgStopIntervals", "AvgWaitIntervals", "TripIntervals", "Exceptions", }); internal_static_OsmAnd_OBF_TransportRouteScheduleException_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_OsmAnd_OBF_TransportRouteScheduleException_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_TransportRouteScheduleException_descriptor, new java.lang.String[] { "TripIndexes", "StopIndexes", "Available", "DelayArrival", "DeltaWaitInterval", "DayOfWeekRestriction", "DayOfYearRestriction", }); internal_static_OsmAnd_OBF_TransportRouteStop_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_OsmAnd_OBF_TransportRouteStop_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_TransportRouteStop_descriptor, new java.lang.String[] { "Id", "Dx", "Dy", "Name", "NameEn", }); internal_static_OsmAnd_OBF_TransportStop_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_OsmAnd_OBF_TransportStop_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_TransportStop_descriptor, new java.lang.String[] { "Dx", "Dy", "Id", "Name", "NameEn", "AdditionalNamePairs", "Exits", "Routes", "DeletedRoutesIds", "RoutesIds", }); internal_static_OsmAnd_OBF_TransportStopExit_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_OsmAnd_OBF_TransportStopExit_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_TransportStopExit_descriptor, new java.lang.String[] { "Dx", "Dy", "Ref", }); internal_static_OsmAnd_OBF_TransportStopsTree_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_OsmAnd_OBF_TransportStopsTree_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_TransportStopsTree_descriptor, new java.lang.String[] { "Left", "Right", "Top", "Bottom", "Subtrees", "Leafs", "BaseId", }); internal_static_OsmAnd_OBF_OsmAndTransportIndex_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_OsmAnd_OBF_OsmAndTransportIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndTransportIndex_descriptor, new java.lang.String[] { "Name", "Routes", "Stops", "StringTable", }); internal_static_OsmAnd_OBF_OsmAndPoiIndex_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_OsmAnd_OBF_OsmAndPoiIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndPoiIndex_descriptor, new java.lang.String[] { "Name", "Boundaries", "CategoriesTable", "NameIndex", "SubtypesTable", "Boxes", "PoiData", }); internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_descriptor, new java.lang.String[] { "Table", "Data", }); internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_descriptor = internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_descriptor.getNestedTypes().get(0); internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndPoiNameIndex_OsmAndPoiNameIndexData_descriptor, new java.lang.String[] { "Atoms", }); internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndPoiNameIndexDataAtom_descriptor, new java.lang.String[] { "Zoom", "X", "Y", "ShiftTo", }); internal_static_OsmAnd_OBF_OsmAndCategoryTable_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_OsmAnd_OBF_OsmAndCategoryTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndCategoryTable_descriptor, new java.lang.String[] { "Category", "Subcategories", }); internal_static_OsmAnd_OBF_OsmAndSubtypesTable_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_OsmAnd_OBF_OsmAndSubtypesTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndSubtypesTable_descriptor, new java.lang.String[] { "Subtypes", }); internal_static_OsmAnd_OBF_OsmAndPoiSubtype_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_OsmAnd_OBF_OsmAndPoiSubtype_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndPoiSubtype_descriptor, new java.lang.String[] { "Name", "Tagname", "IsText", "Frequency", "SubtypeValuesSize", "SubtypeValue", }); internal_static_OsmAnd_OBF_OsmAndPoiBox_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_OsmAnd_OBF_OsmAndPoiBox_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndPoiBox_descriptor, new java.lang.String[] { "Zoom", "Left", "Top", "Categories", "SubBoxes", "ShiftToData", }); internal_static_OsmAnd_OBF_OsmAndPoiCategories_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_OsmAnd_OBF_OsmAndPoiCategories_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndPoiCategories_descriptor, new java.lang.String[] { "Categories", "Subcategories", }); internal_static_OsmAnd_OBF_OsmAndPoiBoxData_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_OsmAnd_OBF_OsmAndPoiBoxData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndPoiBoxData_descriptor, new java.lang.String[] { "Zoom", "X", "Y", "PoiData", }); internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndPoiBoxDataAtom_descriptor, new java.lang.String[] { "Dx", "Dy", "Categories", "Subcategories", "Name", "NameEn", "Id", "OpeningHours", "Site", "Phone", "Note", "TextCategories", "TextValues", }); internal_static_OsmAnd_OBF_IdTable_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_OsmAnd_OBF_IdTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_IdTable_descriptor, new java.lang.String[] { "RouteId", }); internal_static_OsmAnd_OBF_RestrictionData_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_OsmAnd_OBF_RestrictionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_RestrictionData_descriptor, new java.lang.String[] { "Type", "From", "To", "Via", }); internal_static_OsmAnd_OBF_RouteData_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_OsmAnd_OBF_RouteData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_RouteData_descriptor, new java.lang.String[] { "Points", "PointTypes", "PointNames", "Types", "RouteId", "StringNames", }); internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_OsmAnd_OBF_OsmAndRoutingIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor, new java.lang.String[] { "Name", "Rules", "RootBoxes", "BasemapBoxes", "Blocks", }); internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_descriptor = internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor.getNestedTypes().get(0); internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteEncodingRule_descriptor, new java.lang.String[] { "Tag", "Value", "Id", }); internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_descriptor = internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor.getNestedTypes().get(1); internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBox_descriptor, new java.lang.String[] { "Left", "Right", "Top", "Bottom", "ShiftToData", "Boxes", }); internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_descriptor = internal_static_OsmAnd_OBF_OsmAndRoutingIndex_descriptor.getNestedTypes().get(2); internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_OsmAnd_OBF_OsmAndRoutingIndex_RouteDataBlock_descriptor, new java.lang.String[] { "IdTable", "DataObjects", "Restrictions", "StringTable", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }