// 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; /** * <code>required uint32 version = 1;</code> */ boolean hasVersion(); /** * <code>required uint32 version = 1;</code> */ int getVersion(); // required int64 dateCreated = 18; /** * <code>required int64 dateCreated = 18;</code> * * <pre> * System.currentTimeMillis() * </pre> */ boolean hasDateCreated(); /** * <code>required int64 dateCreated = 18;</code> * * <pre> * System.currentTimeMillis() * </pre> */ long getDateCreated(); // repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressIndex> getAddressIndexList(); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndAddressIndex getAddressIndex(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ int getAddressIndexCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder> getAddressIndexOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder getAddressIndexOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4; /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndTransportIndex> getTransportIndexList(); /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndTransportIndex getTransportIndex(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ int getTransportIndexCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder> getTransportIndexOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder getTransportIndexOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiIndex> getPoiIndexList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiIndex getPoiIndex(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ int getPoiIndexCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder> getPoiIndexOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder getPoiIndexOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex> getMapIndexList(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndMapIndex getMapIndex(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ int getMapIndexCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder> getMapIndexOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder getMapIndexOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex> getRoutingIndexList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex getRoutingIndex(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ int getRoutingIndexCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder> getRoutingIndexOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder getRoutingIndexOrBuilder( int index); // required uint32 versionConfirm = 32; /** * <code>required uint32 versionConfirm = 32;</code> * * <pre> * last field should version again (to check consistency) * </pre> */ boolean hasVersionConfirm(); /** * <code>required uint32 versionConfirm = 32;</code> * * <pre> * last field should version again (to check consistency) * </pre> */ int getVersionConfirm(); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndStructure} * * <pre> * 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 * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndTransportIndex>(); 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex>(); 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<net.osmand.binary.OsmandOdb.OsmAndAddressIndex>(); 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<net.osmand.binary.OsmandOdb.OsmAndPoiIndex>(); 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex>(); 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<OsmAndStructure> PARSER = new com.google.protobuf.AbstractParser<OsmAndStructure>() { 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<OsmAndStructure> getParserForType() { return PARSER; } private int bitField0_; // required uint32 version = 1; public static final int VERSION_FIELD_NUMBER = 1; private int version_; /** * <code>required uint32 version = 1;</code> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required uint32 version = 1;</code> */ public int getVersion() { return version_; } // required int64 dateCreated = 18; public static final int DATECREATED_FIELD_NUMBER = 18; private long dateCreated_; /** * <code>required int64 dateCreated = 18;</code> * * <pre> * System.currentTimeMillis() * </pre> */ public boolean hasDateCreated() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required int64 dateCreated = 18;</code> * * <pre> * System.currentTimeMillis() * </pre> */ public long getDateCreated() { return dateCreated_; } // repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; public static final int ADDRESSINDEX_FIELD_NUMBER = 7; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressIndex> addressIndex_; /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressIndex> getAddressIndexList() { return addressIndex_; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder> getAddressIndexOrBuilderList() { return addressIndex_; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public int getAddressIndexCount() { return addressIndex_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex getAddressIndex(int index) { return addressIndex_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndTransportIndex> transportIndex_; /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndTransportIndex> getTransportIndexList() { return transportIndex_; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder> getTransportIndexOrBuilderList() { return transportIndex_; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getTransportIndexCount() { return transportIndex_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndTransportIndex getTransportIndex(int index) { return transportIndex_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiIndex> poiIndex_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiIndex> getPoiIndexList() { return poiIndex_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder> getPoiIndexOrBuilderList() { return poiIndex_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public int getPoiIndexCount() { return poiIndex_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiIndex getPoiIndex(int index) { return poiIndex_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex> mapIndex_; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex> getMapIndexList() { return mapIndex_; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder> getMapIndexOrBuilderList() { return mapIndex_; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public int getMapIndexCount() { return mapIndex_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex getMapIndex(int index) { return mapIndex_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex> routingIndex_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex> getRoutingIndexList() { return routingIndex_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder> getRoutingIndexOrBuilderList() { return routingIndex_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getRoutingIndexCount() { return routingIndex_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex getRoutingIndex(int index) { return routingIndex_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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_; /** * <code>required uint32 versionConfirm = 32;</code> * * <pre> * last field should version again (to check consistency) * </pre> */ public boolean hasVersionConfirm() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required uint32 versionConfirm = 32;</code> * * <pre> * last field should version again (to check consistency) * </pre> */ 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} * * <pre> * 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 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<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_ ; /** * <code>required uint32 version = 1;</code> */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required uint32 version = 1;</code> */ public int getVersion() { return version_; } /** * <code>required uint32 version = 1;</code> */ public Builder setVersion(int value) { bitField0_ |= 0x00000001; version_ = value; onChanged(); return this; } /** * <code>required uint32 version = 1;</code> */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000001); version_ = 0; onChanged(); return this; } // required int64 dateCreated = 18; private long dateCreated_ ; /** * <code>required int64 dateCreated = 18;</code> * * <pre> * System.currentTimeMillis() * </pre> */ public boolean hasDateCreated() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required int64 dateCreated = 18;</code> * * <pre> * System.currentTimeMillis() * </pre> */ public long getDateCreated() { return dateCreated_; } /** * <code>required int64 dateCreated = 18;</code> * * <pre> * System.currentTimeMillis() * </pre> */ public Builder setDateCreated(long value) { bitField0_ |= 0x00000002; dateCreated_ = value; onChanged(); return this; } /** * <code>required int64 dateCreated = 18;</code> * * <pre> * System.currentTimeMillis() * </pre> */ public Builder clearDateCreated() { bitField0_ = (bitField0_ & ~0x00000002); dateCreated_ = 0L; onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressIndex> addressIndex_ = java.util.Collections.emptyList(); private void ensureAddressIndexIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { addressIndex_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndAddressIndex>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressIndex> getAddressIndexList() { if (addressIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(addressIndex_); } else { return addressIndexBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public int getAddressIndexCount() { if (addressIndexBuilder_ == null) { return addressIndex_.size(); } else { return addressIndexBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex getAddressIndex(int index) { if (addressIndexBuilder_ == null) { return addressIndex_.get(index); } else { return addressIndexBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public Builder addAllAddressIndex( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndAddressIndex> values) { if (addressIndexBuilder_ == null) { ensureAddressIndexIsMutable(); super.addAll(values, addressIndex_); onChanged(); } else { addressIndexBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public Builder clearAddressIndex() { if (addressIndexBuilder_ == null) { addressIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { addressIndexBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public Builder removeAddressIndex(int index) { if (addressIndexBuilder_ == null) { ensureAddressIndexIsMutable(); addressIndex_.remove(index); onChanged(); } else { addressIndexBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder getAddressIndexBuilder( int index) { return getAddressIndexFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder getAddressIndexOrBuilder( int index) { if (addressIndexBuilder_ == null) { return addressIndex_.get(index); } else { return addressIndexBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndAddressIndexOrBuilder> getAddressIndexOrBuilderList() { if (addressIndexBuilder_ != null) { return addressIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(addressIndex_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder addAddressIndexBuilder() { return getAddressIndexFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder addAddressIndexBuilder( int index) { return getAddressIndexFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex addressIndex = 7;</code> * * <pre> * first version of map index was 3. * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressIndex.Builder> 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<net.osmand.binary.OsmandOdb.OsmAndTransportIndex> transportIndex_ = java.util.Collections.emptyList(); private void ensureTransportIndexIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { transportIndex_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndTransportIndex>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndTransportIndex> getTransportIndexList() { if (transportIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(transportIndex_); } else { return transportIndexBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getTransportIndexCount() { if (transportIndexBuilder_ == null) { return transportIndex_.size(); } else { return transportIndexBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndTransportIndex getTransportIndex(int index) { if (transportIndexBuilder_ == null) { return transportIndex_.get(index); } else { return transportIndexBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder addAllTransportIndex( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndTransportIndex> values) { if (transportIndexBuilder_ == null) { ensureTransportIndexIsMutable(); super.addAll(values, transportIndex_); onChanged(); } else { transportIndexBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearTransportIndex() { if (transportIndexBuilder_ == null) { transportIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { transportIndexBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder removeTransportIndex(int index) { if (transportIndexBuilder_ == null) { ensureTransportIndexIsMutable(); transportIndex_.remove(index); onChanged(); } else { transportIndexBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder getTransportIndexBuilder( int index) { return getTransportIndexFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder getTransportIndexOrBuilder( int index) { if (transportIndexBuilder_ == null) { return transportIndex_.get(index); } else { return transportIndexBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndTransportIndexOrBuilder> getTransportIndexOrBuilderList() { if (transportIndexBuilder_ != null) { return transportIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(transportIndex_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder addTransportIndexBuilder() { return getTransportIndexFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndTransportIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder addTransportIndexBuilder( int index) { return getTransportIndexFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndTransportIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndTransportIndex transportIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndTransportIndex.Builder> 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<net.osmand.binary.OsmandOdb.OsmAndPoiIndex> poiIndex_ = java.util.Collections.emptyList(); private void ensurePoiIndexIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { poiIndex_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndPoiIndex>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiIndex> getPoiIndexList() { if (poiIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(poiIndex_); } else { return poiIndexBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public int getPoiIndexCount() { if (poiIndexBuilder_ == null) { return poiIndex_.size(); } else { return poiIndexBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiIndex getPoiIndex(int index) { if (poiIndexBuilder_ == null) { return poiIndex_.get(index); } else { return poiIndexBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public Builder addAllPoiIndex( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndPoiIndex> values) { if (poiIndexBuilder_ == null) { ensurePoiIndexIsMutable(); super.addAll(values, poiIndex_); onChanged(); } else { poiIndexBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public Builder clearPoiIndex() { if (poiIndexBuilder_ == null) { poiIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { poiIndexBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public Builder removePoiIndex(int index) { if (poiIndexBuilder_ == null) { ensurePoiIndexIsMutable(); poiIndex_.remove(index); onChanged(); } else { poiIndexBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder getPoiIndexBuilder( int index) { return getPoiIndexFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder getPoiIndexOrBuilder( int index) { if (poiIndexBuilder_ == null) { return poiIndex_.get(index); } else { return poiIndexBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiIndexOrBuilder> getPoiIndexOrBuilderList() { if (poiIndexBuilder_ != null) { return poiIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(poiIndex_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder addPoiIndexBuilder() { return getPoiIndexFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder addPoiIndexBuilder( int index) { return getPoiIndexFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiIndex poiIndex = 8;</code> * * <pre> * slight changes previous version was 5 * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiIndex.Builder> 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex> mapIndex_ = java.util.Collections.emptyList(); private void ensureMapIndexIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { mapIndex_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndMapIndex>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex> getMapIndexList() { if (mapIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(mapIndex_); } else { return mapIndexBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public int getMapIndexCount() { if (mapIndexBuilder_ == null) { return mapIndex_.size(); } else { return mapIndexBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex getMapIndex(int index) { if (mapIndexBuilder_ == null) { return mapIndex_.get(index); } else { return mapIndexBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public Builder addAllMapIndex( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex> values) { if (mapIndexBuilder_ == null) { ensureMapIndexIsMutable(); super.addAll(values, mapIndex_); onChanged(); } else { mapIndexBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public Builder clearMapIndex() { if (mapIndexBuilder_ == null) { mapIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { mapIndexBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public Builder removeMapIndex(int index) { if (mapIndexBuilder_ == null) { ensureMapIndexIsMutable(); mapIndex_.remove(index); onChanged(); } else { mapIndexBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder getMapIndexBuilder( int index) { return getMapIndexFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder getMapIndexOrBuilder( int index) { if (mapIndexBuilder_ == null) { return mapIndex_.get(index); } else { return mapIndexBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndexOrBuilder> getMapIndexOrBuilderList() { if (mapIndexBuilder_ != null) { return mapIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(mapIndex_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder addMapIndexBuilder() { return getMapIndexFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndMapIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder addMapIndexBuilder( int index) { return getMapIndexFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex mapIndex = 6;</code> * * <pre> * first version of map index was 2. * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.Builder> 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex> routingIndex_ = java.util.Collections.emptyList(); private void ensureRoutingIndexIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { routingIndex_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex> getRoutingIndexList() { if (routingIndexBuilder_ == null) { return java.util.Collections.unmodifiableList(routingIndex_); } else { return routingIndexBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getRoutingIndexCount() { if (routingIndexBuilder_ == null) { return routingIndex_.size(); } else { return routingIndexBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex getRoutingIndex(int index) { if (routingIndexBuilder_ == null) { return routingIndex_.get(index); } else { return routingIndexBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder addAllRoutingIndex( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex> values) { if (routingIndexBuilder_ == null) { ensureRoutingIndexIsMutable(); super.addAll(values, routingIndex_); onChanged(); } else { routingIndexBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearRoutingIndex() { if (routingIndexBuilder_ == null) { routingIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { routingIndexBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder removeRoutingIndex(int index) { if (routingIndexBuilder_ == null) { ensureRoutingIndexIsMutable(); routingIndex_.remove(index); onChanged(); } else { routingIndexBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder getRoutingIndexBuilder( int index) { return getRoutingIndexFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder getRoutingIndexOrBuilder( int index) { if (routingIndexBuilder_ == null) { return routingIndex_.get(index); } else { return routingIndexBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndexOrBuilder> getRoutingIndexOrBuilderList() { if (routingIndexBuilder_ != null) { return routingIndexBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(routingIndex_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder addRoutingIndexBuilder() { return getRoutingIndexFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder addRoutingIndexBuilder( int index) { return getRoutingIndexFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex routingIndex = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.Builder> 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_ ; /** * <code>required uint32 versionConfirm = 32;</code> * * <pre> * last field should version again (to check consistency) * </pre> */ public boolean hasVersionConfirm() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>required uint32 versionConfirm = 32;</code> * * <pre> * last field should version again (to check consistency) * </pre> */ public int getVersionConfirm() { return versionConfirm_; } /** * <code>required uint32 versionConfirm = 32;</code> * * <pre> * last field should version again (to check consistency) * </pre> */ public Builder setVersionConfirm(int value) { bitField0_ |= 0x00000080; versionConfirm_ = value; onChanged(); return this; } /** * <code>required uint32 versionConfirm = 32;</code> * * <pre> * last field should version again (to check consistency) * </pre> */ 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; /** * <code>required uint32 left = 1;</code> * * <pre> * everything is encoded as 31 tile zoom * </pre> */ boolean hasLeft(); /** * <code>required uint32 left = 1;</code> * * <pre> * everything is encoded as 31 tile zoom * </pre> */ int getLeft(); // required uint32 right = 2; /** * <code>required uint32 right = 2;</code> */ boolean hasRight(); /** * <code>required uint32 right = 2;</code> */ int getRight(); // required uint32 top = 3; /** * <code>required uint32 top = 3;</code> */ boolean hasTop(); /** * <code>required uint32 top = 3;</code> */ int getTop(); // required uint32 bottom = 4; /** * <code>required uint32 bottom = 4;</code> */ boolean hasBottom(); /** * <code>required uint32 bottom = 4;</code> */ 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<OsmAndTileBox> PARSER = new com.google.protobuf.AbstractParser<OsmAndTileBox>() { 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<OsmAndTileBox> getParserForType() { return PARSER; } private int bitField0_; // required uint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; private int left_; /** * <code>required uint32 left = 1;</code> * * <pre> * everything is encoded as 31 tile zoom * </pre> */ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required uint32 left = 1;</code> * * <pre> * everything is encoded as 31 tile zoom * </pre> */ public int getLeft() { return left_; } // required uint32 right = 2; public static final int RIGHT_FIELD_NUMBER = 2; private int right_; /** * <code>required uint32 right = 2;</code> */ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required uint32 right = 2;</code> */ public int getRight() { return right_; } // required uint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; private int top_; /** * <code>required uint32 top = 3;</code> */ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required uint32 top = 3;</code> */ public int getTop() { return top_; } // required uint32 bottom = 4; public static final int BOTTOM_FIELD_NUMBER = 4; private int bottom_; /** * <code>required uint32 bottom = 4;</code> */ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required uint32 bottom = 4;</code> */ 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<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_ ; /** * <code>required uint32 left = 1;</code> * * <pre> * everything is encoded as 31 tile zoom * </pre> */ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required uint32 left = 1;</code> * * <pre> * everything is encoded as 31 tile zoom * </pre> */ public int getLeft() { return left_; } /** * <code>required uint32 left = 1;</code> * * <pre> * everything is encoded as 31 tile zoom * </pre> */ public Builder setLeft(int value) { bitField0_ |= 0x00000001; left_ = value; onChanged(); return this; } /** * <code>required uint32 left = 1;</code> * * <pre> * everything is encoded as 31 tile zoom * </pre> */ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000001); left_ = 0; onChanged(); return this; } // required uint32 right = 2; private int right_ ; /** * <code>required uint32 right = 2;</code> */ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required uint32 right = 2;</code> */ public int getRight() { return right_; } /** * <code>required uint32 right = 2;</code> */ public Builder setRight(int value) { bitField0_ |= 0x00000002; right_ = value; onChanged(); return this; } /** * <code>required uint32 right = 2;</code> */ public Builder clearRight() { bitField0_ = (bitField0_ & ~0x00000002); right_ = 0; onChanged(); return this; } // required uint32 top = 3; private int top_ ; /** * <code>required uint32 top = 3;</code> */ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required uint32 top = 3;</code> */ public int getTop() { return top_; } /** * <code>required uint32 top = 3;</code> */ public Builder setTop(int value) { bitField0_ |= 0x00000004; top_ = value; onChanged(); return this; } /** * <code>required uint32 top = 3;</code> */ public Builder clearTop() { bitField0_ = (bitField0_ & ~0x00000004); top_ = 0; onChanged(); return this; } // required uint32 bottom = 4; private int bottom_ ; /** * <code>required uint32 bottom = 4;</code> */ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required uint32 bottom = 4;</code> */ public int getBottom() { return bottom_; } /** * <code>required uint32 bottom = 4;</code> */ public Builder setBottom(int value) { bitField0_ |= 0x00000008; bottom_ = value; onChanged(); return this; } /** * <code>required uint32 bottom = 4;</code> */ 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; /** * <code>repeated string s = 1;</code> */ java.util.List<java.lang.String> getSList(); /** * <code>repeated string s = 1;</code> */ int getSCount(); /** * <code>repeated string s = 1;</code> */ java.lang.String getS(int index); /** * <code>repeated string s = 1;</code> */ com.google.protobuf.ByteString getSBytes(int index); } /** * Protobuf type {@code OsmAnd.OBF.StringTable} * * <pre> * String table, contains the common strings in each block. * </pre> */ 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<StringTable> PARSER = new com.google.protobuf.AbstractParser<StringTable>() { 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<StringTable> getParserForType() { return PARSER; } // repeated string s = 1; public static final int S_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList s_; /** * <code>repeated string s = 1;</code> */ public java.util.List<java.lang.String> getSList() { return s_; } /** * <code>repeated string s = 1;</code> */ public int getSCount() { return s_.size(); } /** * <code>repeated string s = 1;</code> */ public java.lang.String getS(int index) { return s_.get(index); } /** * <code>repeated string s = 1;</code> */ 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} * * <pre> * String table, contains the common strings in each block. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<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; } } /** * <code>repeated string s = 1;</code> */ public java.util.List<java.lang.String> getSList() { return java.util.Collections.unmodifiableList(s_); } /** * <code>repeated string s = 1;</code> */ public int getSCount() { return s_.size(); } /** * <code>repeated string s = 1;</code> */ public java.lang.String getS(int index) { return s_.get(index); } /** * <code>repeated string s = 1;</code> */ public com.google.protobuf.ByteString getSBytes(int index) { return s_.getByteString(index); } /** * <code>repeated string s = 1;</code> */ public Builder setS( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSIsMutable(); s_.set(index, value); onChanged(); return this; } /** * <code>repeated string s = 1;</code> */ public Builder addS( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSIsMutable(); s_.add(value); onChanged(); return this; } /** * <code>repeated string s = 1;</code> */ public Builder addAllS( java.lang.Iterable<java.lang.String> values) { ensureSIsMutable(); super.addAll(values, s_); onChanged(); return this; } /** * <code>repeated string s = 1;</code> */ public Builder clearS() { s_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>repeated string s = 1;</code> */ 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; /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ boolean hasPrefix(); /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ java.lang.String getPrefix(); /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ com.google.protobuf.ByteString getPrefixBytes(); // repeated string key = 3; /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ java.util.List<java.lang.String> getKeyList(); /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ int getKeyCount(); /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ java.lang.String getKey(int index); /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ com.google.protobuf.ByteString getKeyBytes(int index); // repeated fixed32 val = 4; /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ java.util.List<java.lang.Integer> getValList(); /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ int getValCount(); /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ int getVal(int index); // repeated .OsmAnd.OBF.IndexedStringTable subtables = 5; /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.IndexedStringTable> getSubtablesList(); /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ net.osmand.binary.OsmandOdb.IndexedStringTable getSubtables(int index); /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ int getSubtablesCount(); /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> getSubtablesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<net.osmand.binary.OsmandOdb.IndexedStringTable>(); 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<IndexedStringTable> PARSER = new com.google.protobuf.AbstractParser<IndexedStringTable>() { 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<IndexedStringTable> getParserForType() { return PARSER; } private int bitField0_; // optional string prefix = 1; public static final int PREFIX_FIELD_NUMBER = 1; private java.lang.Object prefix_; /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ public boolean hasPrefix() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ 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; } } /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ 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_; /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public java.util.List<java.lang.String> getKeyList() { return key_; } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public int getKeyCount() { return key_.size(); } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public java.lang.String getKey(int index) { return key_.get(index); } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ 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<java.lang.Integer> val_; /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ public java.util.List<java.lang.Integer> getValList() { return val_; } /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ public int getValCount() { return val_.size(); } /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ 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<net.osmand.binary.OsmandOdb.IndexedStringTable> subtables_; /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.IndexedStringTable> getSubtablesList() { return subtables_; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> getSubtablesOrBuilderList() { return subtables_; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public int getSubtablesCount() { return subtables_.size(); } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable getSubtables(int index) { return subtables_.get(index); } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ 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<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_ = ""; /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ public boolean hasPrefix() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ 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; } } /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ 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; } } /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ public Builder setPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; prefix_ = value; onChanged(); return this; } /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ public Builder clearPrefix() { bitField0_ = (bitField0_ & ~0x00000001); prefix_ = getDefaultInstance().getPrefix(); onChanged(); return this; } /** * <code>optional string prefix = 1;</code> * * <pre> * common prefix for all strings inside * </pre> */ 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; } } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public java.util.List<java.lang.String> getKeyList() { return java.util.Collections.unmodifiableList(key_); } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public int getKeyCount() { return key_.size(); } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public java.lang.String getKey(int index) { return key_.get(index); } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public com.google.protobuf.ByteString getKeyBytes(int index) { return key_.getByteString(index); } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public Builder setKey( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public Builder addKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public Builder addAllKey( java.lang.Iterable<java.lang.String> values) { ensureKeyIsMutable(); super.addAll(values, key_); onChanged(); return this; } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ public Builder clearKey() { key_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>repeated string key = 3;</code> * * <pre> * 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 * </pre> */ 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<java.lang.Integer> val_ = java.util.Collections.emptyList(); private void ensureValIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { val_ = new java.util.ArrayList<java.lang.Integer>(val_); bitField0_ |= 0x00000004; } } /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ public java.util.List<java.lang.Integer> getValList() { return java.util.Collections.unmodifiableList(val_); } /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ public int getValCount() { return val_.size(); } /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ public int getVal(int index) { return val_.get(index); } /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ public Builder setVal( int index, int value) { ensureValIsMutable(); val_.set(index, value); onChanged(); return this; } /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ public Builder addVal(int value) { ensureValIsMutable(); val_.add(value); onChanged(); return this; } /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ public Builder addAllVal( java.lang.Iterable<? extends java.lang.Integer> values) { ensureValIsMutable(); super.addAll(values, val_); onChanged(); return this; } /** * <code>repeated fixed32 val = 4;</code> * * <pre> * the shift to the data or one uint data itself * </pre> */ public Builder clearVal() { val_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // repeated .OsmAnd.OBF.IndexedStringTable subtables = 5; private java.util.List<net.osmand.binary.OsmandOdb.IndexedStringTable> subtables_ = java.util.Collections.emptyList(); private void ensureSubtablesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { subtables_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.IndexedStringTable>(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_; /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.IndexedStringTable> getSubtablesList() { if (subtablesBuilder_ == null) { return java.util.Collections.unmodifiableList(subtables_); } else { return subtablesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public int getSubtablesCount() { if (subtablesBuilder_ == null) { return subtables_.size(); } else { return subtablesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable getSubtables(int index) { if (subtablesBuilder_ == null) { return subtables_.get(index); } else { return subtablesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public Builder addAllSubtables( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.IndexedStringTable> values) { if (subtablesBuilder_ == null) { ensureSubtablesIsMutable(); super.addAll(values, subtables_); onChanged(); } else { subtablesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public Builder clearSubtables() { if (subtablesBuilder_ == null) { subtables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { subtablesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public Builder removeSubtables(int index) { if (subtablesBuilder_ == null) { ensureSubtablesIsMutable(); subtables_.remove(index); onChanged(); } else { subtablesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder getSubtablesBuilder( int index) { return getSubtablesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getSubtablesOrBuilder( int index) { if (subtablesBuilder_ == null) { return subtables_.get(index); } else { return subtablesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder> getSubtablesOrBuilderList() { if (subtablesBuilder_ != null) { return subtablesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subtables_); } } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder addSubtablesBuilder() { return getSubtablesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder addSubtablesBuilder( int index) { return getSubtablesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.IndexedStringTable subtables = 5;</code> * * <pre> * subtables are supposed to make search faster instead of searching through all strings * it's enough to read prefix in the header * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.IndexedStringTable.Builder> 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; /** * <code>required string name = 2;</code> */ boolean hasName(); /** * <code>required string name = 2;</code> */ java.lang.String getName(); /** * <code>required string name = 2;</code> */ com.google.protobuf.ByteString getNameBytes(); // repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule> getRulesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule getRules(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ int getRulesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder> getRulesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder getRulesOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel> getLevelsList(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel getLevels(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ int getLevelsCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder> getLevelsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder getLevelsOrBuilder( int index); } /** * Protobuf type {@code OsmAnd.OBF.OsmAndMapIndex} * * <pre> *///////////////////// * // Map messages //// * ///////////////////// * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule>(); 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel>(); 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<OsmAndMapIndex> PARSER = new com.google.protobuf.AbstractParser<OsmAndMapIndex>() { 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<OsmAndMapIndex> getParserForType() { return PARSER; } public interface MapEncodingRuleOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string tag = 3; /** * <code>required string tag = 3;</code> */ boolean hasTag(); /** * <code>required string tag = 3;</code> */ java.lang.String getTag(); /** * <code>required string tag = 3;</code> */ com.google.protobuf.ByteString getTagBytes(); // optional string value = 5; /** * <code>optional string value = 5;</code> */ boolean hasValue(); /** * <code>optional string value = 5;</code> */ java.lang.String getValue(); /** * <code>optional string value = 5;</code> */ com.google.protobuf.ByteString getValueBytes(); // optional uint32 id = 7; /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ boolean hasId(); /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ int getId(); // optional uint32 minZoom = 9; /** * <code>optional uint32 minZoom = 9;</code> * * <pre> * min zoom combination exists * </pre> */ boolean hasMinZoom(); /** * <code>optional uint32 minZoom = 9;</code> * * <pre> * min zoom combination exists * </pre> */ int getMinZoom(); // optional uint32 type = 10; /** * <code>optional uint32 type = 10;</code> * * <pre> * "additional" flag is encoded as %2 == 1 * </pre> */ boolean hasType(); /** * <code>optional uint32 type = 10;</code> * * <pre> * "additional" flag is encoded as %2 == 1 * </pre> */ 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<MapEncodingRule> PARSER = new com.google.protobuf.AbstractParser<MapEncodingRule>() { 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<MapEncodingRule> getParserForType() { return PARSER; } private int bitField0_; // required string tag = 3; public static final int TAG_FIELD_NUMBER = 3; private java.lang.Object tag_; /** * <code>required string tag = 3;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string tag = 3;</code> */ 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; } } /** * <code>required string tag = 3;</code> */ 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_; /** * <code>optional string value = 5;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string value = 5;</code> */ 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; } } /** * <code>optional string value = 5;</code> */ 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_; /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ public int getId() { return id_; } // optional uint32 minZoom = 9; public static final int MINZOOM_FIELD_NUMBER = 9; private int minZoom_; /** * <code>optional uint32 minZoom = 9;</code> * * <pre> * min zoom combination exists * </pre> */ public boolean hasMinZoom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 minZoom = 9;</code> * * <pre> * min zoom combination exists * </pre> */ public int getMinZoom() { return minZoom_; } // optional uint32 type = 10; public static final int TYPE_FIELD_NUMBER = 10; private int type_; /** * <code>optional uint32 type = 10;</code> * * <pre> * "additional" flag is encoded as %2 == 1 * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 type = 10;</code> * * <pre> * "additional" flag is encoded as %2 == 1 * </pre> */ 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<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_ = ""; /** * <code>required string tag = 3;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string tag = 3;</code> */ 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; } } /** * <code>required string tag = 3;</code> */ 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; } } /** * <code>required string tag = 3;</code> */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; tag_ = value; onChanged(); return this; } /** * <code>required string tag = 3;</code> */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000001); tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** * <code>required string tag = 3;</code> */ 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_ = ""; /** * <code>optional string value = 5;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string value = 5;</code> */ 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; } } /** * <code>optional string value = 5;</code> */ 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; } } /** * <code>optional string value = 5;</code> */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * <code>optional string value = 5;</code> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * <code>optional string value = 5;</code> */ 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_ ; /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ public int getId() { return id_; } /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ public Builder setId(int value) { bitField0_ |= 0x00000004; id_ = value; onChanged(); return this; } /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000004); id_ = 0; onChanged(); return this; } // optional uint32 minZoom = 9; private int minZoom_ ; /** * <code>optional uint32 minZoom = 9;</code> * * <pre> * min zoom combination exists * </pre> */ public boolean hasMinZoom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 minZoom = 9;</code> * * <pre> * min zoom combination exists * </pre> */ public int getMinZoom() { return minZoom_; } /** * <code>optional uint32 minZoom = 9;</code> * * <pre> * min zoom combination exists * </pre> */ public Builder setMinZoom(int value) { bitField0_ |= 0x00000008; minZoom_ = value; onChanged(); return this; } /** * <code>optional uint32 minZoom = 9;</code> * * <pre> * min zoom combination exists * </pre> */ public Builder clearMinZoom() { bitField0_ = (bitField0_ & ~0x00000008); minZoom_ = 0; onChanged(); return this; } // optional uint32 type = 10; private int type_ ; /** * <code>optional uint32 type = 10;</code> * * <pre> * "additional" flag is encoded as %2 == 1 * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 type = 10;</code> * * <pre> * "additional" flag is encoded as %2 == 1 * </pre> */ public int getType() { return type_; } /** * <code>optional uint32 type = 10;</code> * * <pre> * "additional" flag is encoded as %2 == 1 * </pre> */ public Builder setType(int value) { bitField0_ |= 0x00000010; type_ = value; onChanged(); return this; } /** * <code>optional uint32 type = 10;</code> * * <pre> * "additional" flag is encoded as %2 == 1 * </pre> */ 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; /** * <code>required int32 maxZoom = 1;</code> */ boolean hasMaxZoom(); /** * <code>required int32 maxZoom = 1;</code> */ int getMaxZoom(); // required int32 minZoom = 2; /** * <code>required int32 minZoom = 2;</code> */ boolean hasMinZoom(); /** * <code>required int32 minZoom = 2;</code> */ int getMinZoom(); // required int32 left = 3; /** * <code>required int32 left = 3;</code> */ boolean hasLeft(); /** * <code>required int32 left = 3;</code> */ int getLeft(); // required int32 right = 4; /** * <code>required int32 right = 4;</code> */ boolean hasRight(); /** * <code>required int32 right = 4;</code> */ int getRight(); // required int32 top = 5; /** * <code>required int32 top = 5;</code> */ boolean hasTop(); /** * <code>required int32 top = 5;</code> */ int getTop(); // required int32 bottom = 6; /** * <code>required int32 bottom = 6;</code> */ boolean hasBottom(); /** * <code>required int32 bottom = 6;</code> */ int getBottom(); // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> getBoxesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ int getBoxesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> getBoxesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder( int index); // repeated .OsmAnd.OBF.MapDataBlock blocks = 15; /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ java.util.List<net.osmand.binary.OsmandOdb.MapDataBlock> getBlocksList(); /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ net.osmand.binary.OsmandOdb.MapDataBlock getBlocks(int index); /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ int getBlocksCount(); /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder> getBlocksOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox>(); 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<net.osmand.binary.OsmandOdb.MapDataBlock>(); 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<MapRootLevel> PARSER = new com.google.protobuf.AbstractParser<MapRootLevel>() { 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<MapRootLevel> getParserForType() { return PARSER; } private int bitField0_; // required int32 maxZoom = 1; public static final int MAXZOOM_FIELD_NUMBER = 1; private int maxZoom_; /** * <code>required int32 maxZoom = 1;</code> */ public boolean hasMaxZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int32 maxZoom = 1;</code> */ public int getMaxZoom() { return maxZoom_; } // required int32 minZoom = 2; public static final int MINZOOM_FIELD_NUMBER = 2; private int minZoom_; /** * <code>required int32 minZoom = 2;</code> */ public boolean hasMinZoom() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required int32 minZoom = 2;</code> */ public int getMinZoom() { return minZoom_; } // required int32 left = 3; public static final int LEFT_FIELD_NUMBER = 3; private int left_; /** * <code>required int32 left = 3;</code> */ public boolean hasLeft() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required int32 left = 3;</code> */ public int getLeft() { return left_; } // required int32 right = 4; public static final int RIGHT_FIELD_NUMBER = 4; private int right_; /** * <code>required int32 right = 4;</code> */ public boolean hasRight() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required int32 right = 4;</code> */ public int getRight() { return right_; } // required int32 top = 5; public static final int TOP_FIELD_NUMBER = 5; private int top_; /** * <code>required int32 top = 5;</code> */ public boolean hasTop() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>required int32 top = 5;</code> */ public int getTop() { return top_; } // required int32 bottom = 6; public static final int BOTTOM_FIELD_NUMBER = 6; private int bottom_; /** * <code>required int32 bottom = 6;</code> */ public boolean hasBottom() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>required int32 bottom = 6;</code> */ public int getBottom() { return bottom_; } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; public static final int BOXES_FIELD_NUMBER = 7; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> boxes_; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> getBoxesList() { return boxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> getBoxesOrBuilderList() { return boxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public int getBoxesCount() { return boxes_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) { return boxes_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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<net.osmand.binary.OsmandOdb.MapDataBlock> blocks_; /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.MapDataBlock> getBlocksList() { return blocks_; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder> getBlocksOrBuilderList() { return blocks_; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public int getBlocksCount() { return blocks_.size(); } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public net.osmand.binary.OsmandOdb.MapDataBlock getBlocks(int index) { return blocks_.get(index); } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ 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<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_ ; /** * <code>required int32 maxZoom = 1;</code> */ public boolean hasMaxZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int32 maxZoom = 1;</code> */ public int getMaxZoom() { return maxZoom_; } /** * <code>required int32 maxZoom = 1;</code> */ public Builder setMaxZoom(int value) { bitField0_ |= 0x00000001; maxZoom_ = value; onChanged(); return this; } /** * <code>required int32 maxZoom = 1;</code> */ public Builder clearMaxZoom() { bitField0_ = (bitField0_ & ~0x00000001); maxZoom_ = 0; onChanged(); return this; } // required int32 minZoom = 2; private int minZoom_ ; /** * <code>required int32 minZoom = 2;</code> */ public boolean hasMinZoom() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required int32 minZoom = 2;</code> */ public int getMinZoom() { return minZoom_; } /** * <code>required int32 minZoom = 2;</code> */ public Builder setMinZoom(int value) { bitField0_ |= 0x00000002; minZoom_ = value; onChanged(); return this; } /** * <code>required int32 minZoom = 2;</code> */ public Builder clearMinZoom() { bitField0_ = (bitField0_ & ~0x00000002); minZoom_ = 0; onChanged(); return this; } // required int32 left = 3; private int left_ ; /** * <code>required int32 left = 3;</code> */ public boolean hasLeft() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required int32 left = 3;</code> */ public int getLeft() { return left_; } /** * <code>required int32 left = 3;</code> */ public Builder setLeft(int value) { bitField0_ |= 0x00000004; left_ = value; onChanged(); return this; } /** * <code>required int32 left = 3;</code> */ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000004); left_ = 0; onChanged(); return this; } // required int32 right = 4; private int right_ ; /** * <code>required int32 right = 4;</code> */ public boolean hasRight() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required int32 right = 4;</code> */ public int getRight() { return right_; } /** * <code>required int32 right = 4;</code> */ public Builder setRight(int value) { bitField0_ |= 0x00000008; right_ = value; onChanged(); return this; } /** * <code>required int32 right = 4;</code> */ public Builder clearRight() { bitField0_ = (bitField0_ & ~0x00000008); right_ = 0; onChanged(); return this; } // required int32 top = 5; private int top_ ; /** * <code>required int32 top = 5;</code> */ public boolean hasTop() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>required int32 top = 5;</code> */ public int getTop() { return top_; } /** * <code>required int32 top = 5;</code> */ public Builder setTop(int value) { bitField0_ |= 0x00000010; top_ = value; onChanged(); return this; } /** * <code>required int32 top = 5;</code> */ public Builder clearTop() { bitField0_ = (bitField0_ & ~0x00000010); top_ = 0; onChanged(); return this; } // required int32 bottom = 6; private int bottom_ ; /** * <code>required int32 bottom = 6;</code> */ public boolean hasBottom() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>required int32 bottom = 6;</code> */ public int getBottom() { return bottom_; } /** * <code>required int32 bottom = 6;</code> */ public Builder setBottom(int value) { bitField0_ |= 0x00000020; bottom_ = value; onChanged(); return this; } /** * <code>required int32 bottom = 6;</code> */ public Builder clearBottom() { bitField0_ = (bitField0_ & ~0x00000020); bottom_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> boxes_ = java.util.Collections.emptyList(); private void ensureBoxesIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { boxes_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> getBoxesList() { if (boxesBuilder_ == null) { return java.util.Collections.unmodifiableList(boxes_); } else { return boxesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public int getBoxesCount() { if (boxesBuilder_ == null) { return boxes_.size(); } else { return boxesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public Builder addAllBoxes( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> values) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); super.addAll(values, boxes_); onChanged(); } else { boxesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public Builder clearBoxes() { if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { boxesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public Builder removeBoxes(int index) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.remove(index); onChanged(); } else { boxesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder getBoxesBuilder( int index) { return getBoxesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder( int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> getBoxesOrBuilderList() { if (boxesBuilder_ != null) { return boxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(boxes_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder() { return getBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder( int index) { return getBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder> 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<net.osmand.binary.OsmandOdb.MapDataBlock> blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { blocks_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.MapDataBlock>(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_; /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.MapDataBlock> getBlocksList() { if (blocksBuilder_ == null) { return java.util.Collections.unmodifiableList(blocks_); } else { return blocksBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public int getBlocksCount() { if (blocksBuilder_ == null) { return blocks_.size(); } else { return blocksBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public net.osmand.binary.OsmandOdb.MapDataBlock getBlocks(int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public Builder addAllBlocks( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.MapDataBlock> values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); super.addAll(values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public Builder clearBlocks() { if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { blocksBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public Builder removeBlocks(int index) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.remove(index); onChanged(); } else { blocksBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public net.osmand.binary.OsmandOdb.MapDataBlock.Builder getBlocksBuilder( int index) { return getBlocksFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder getBlocksOrBuilder( int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.MapDataBlockOrBuilder> getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(blocks_); } } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public net.osmand.binary.OsmandOdb.MapDataBlock.Builder addBlocksBuilder() { return getBlocksFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.MapDataBlock.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public net.osmand.binary.OsmandOdb.MapDataBlock.Builder addBlocksBuilder( int index) { return getBlocksFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.MapDataBlock.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.MapDataBlock blocks = 15;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.MapDataBlock.Builder> 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; /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded * </pre> */ boolean hasLeft(); /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded * </pre> */ int getLeft(); // required sint32 right = 2; /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ boolean hasRight(); /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ int getRight(); // required sint32 top = 3; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ boolean hasTop(); /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ int getTop(); // required sint32 bottom = 4; /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ boolean hasBottom(); /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ int getBottom(); // optional fixed32 shiftToMapData = 5; /** * <code>optional fixed32 shiftToMapData = 5;</code> * * <pre> *shift from mapdatabox start to message MapDataBlock * </pre> */ boolean hasShiftToMapData(); /** * <code>optional fixed32 shiftToMapData = 5;</code> * * <pre> *shift from mapdatabox start to message MapDataBlock * </pre> */ int getShiftToMapData(); // optional bool ocean = 6; /** * <code>optional bool ocean = 6;</code> * * <pre> * true (byte = 1) - full ocean, false (byte = 0) - full land * </pre> */ boolean hasOcean(); /** * <code>optional bool ocean = 6;</code> * * <pre> * true (byte = 1) - full ocean, false (byte = 0) - full land * </pre> */ boolean getOcean(); // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> getBoxesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ int getBoxesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> getBoxesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox>(); 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<MapDataBox> PARSER = new com.google.protobuf.AbstractParser<MapDataBox>() { 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<MapDataBox> getParserForType() { return PARSER; } private int bitField0_; // required sint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; private int left_; /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded * </pre> */ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded * </pre> */ public int getLeft() { return left_; } // required sint32 right = 2; public static final int RIGHT_FIELD_NUMBER = 2; private int right_; /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public int getRight() { return right_; } // required sint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; private int top_; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public int getTop() { return top_; } // required sint32 bottom = 4; public static final int BOTTOM_FIELD_NUMBER = 4; private int bottom_; /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public int getBottom() { return bottom_; } // optional fixed32 shiftToMapData = 5; public static final int SHIFTTOMAPDATA_FIELD_NUMBER = 5; private int shiftToMapData_; /** * <code>optional fixed32 shiftToMapData = 5;</code> * * <pre> *shift from mapdatabox start to message MapDataBlock * </pre> */ public boolean hasShiftToMapData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional fixed32 shiftToMapData = 5;</code> * * <pre> *shift from mapdatabox start to message MapDataBlock * </pre> */ public int getShiftToMapData() { return shiftToMapData_; } // optional bool ocean = 6; public static final int OCEAN_FIELD_NUMBER = 6; private boolean ocean_; /** * <code>optional bool ocean = 6;</code> * * <pre> * true (byte = 1) - full ocean, false (byte = 0) - full land * </pre> */ public boolean hasOcean() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool ocean = 6;</code> * * <pre> * true (byte = 1) - full ocean, false (byte = 0) - full land * </pre> */ public boolean getOcean() { return ocean_; } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; public static final int BOXES_FIELD_NUMBER = 7; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> boxes_; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> getBoxesList() { return boxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> getBoxesOrBuilderList() { return boxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public int getBoxesCount() { return boxes_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) { return boxes_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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<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_ ; /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded * </pre> */ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded * </pre> */ public int getLeft() { return left_; } /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded * </pre> */ public Builder setLeft(int value) { bitField0_ |= 0x00000001; left_ = value; onChanged(); return this; } /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded * </pre> */ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000001); left_ = 0; onChanged(); return this; } // required sint32 right = 2; private int right_ ; /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public int getRight() { return right_; } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public Builder setRight(int value) { bitField0_ |= 0x00000002; right_ = value; onChanged(); return this; } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public Builder clearRight() { bitField0_ = (bitField0_ & ~0x00000002); right_ = 0; onChanged(); return this; } // required sint32 top = 3; private int top_ ; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public int getTop() { return top_; } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public Builder setTop(int value) { bitField0_ |= 0x00000004; top_ = value; onChanged(); return this; } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public Builder clearTop() { bitField0_ = (bitField0_ & ~0x00000004); top_ = 0; onChanged(); return this; } // required sint32 bottom = 4; private int bottom_ ; /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public int getBottom() { return bottom_; } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public Builder setBottom(int value) { bitField0_ |= 0x00000008; bottom_ = value; onChanged(); return this; } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public Builder clearBottom() { bitField0_ = (bitField0_ & ~0x00000008); bottom_ = 0; onChanged(); return this; } // optional fixed32 shiftToMapData = 5; private int shiftToMapData_ ; /** * <code>optional fixed32 shiftToMapData = 5;</code> * * <pre> *shift from mapdatabox start to message MapDataBlock * </pre> */ public boolean hasShiftToMapData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional fixed32 shiftToMapData = 5;</code> * * <pre> *shift from mapdatabox start to message MapDataBlock * </pre> */ public int getShiftToMapData() { return shiftToMapData_; } /** * <code>optional fixed32 shiftToMapData = 5;</code> * * <pre> *shift from mapdatabox start to message MapDataBlock * </pre> */ public Builder setShiftToMapData(int value) { bitField0_ |= 0x00000010; shiftToMapData_ = value; onChanged(); return this; } /** * <code>optional fixed32 shiftToMapData = 5;</code> * * <pre> *shift from mapdatabox start to message MapDataBlock * </pre> */ public Builder clearShiftToMapData() { bitField0_ = (bitField0_ & ~0x00000010); shiftToMapData_ = 0; onChanged(); return this; } // optional bool ocean = 6; private boolean ocean_ ; /** * <code>optional bool ocean = 6;</code> * * <pre> * true (byte = 1) - full ocean, false (byte = 0) - full land * </pre> */ public boolean hasOcean() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool ocean = 6;</code> * * <pre> * true (byte = 1) - full ocean, false (byte = 0) - full land * </pre> */ public boolean getOcean() { return ocean_; } /** * <code>optional bool ocean = 6;</code> * * <pre> * true (byte = 1) - full ocean, false (byte = 0) - full land * </pre> */ public Builder setOcean(boolean value) { bitField0_ |= 0x00000020; ocean_ = value; onChanged(); return this; } /** * <code>optional bool ocean = 6;</code> * * <pre> * true (byte = 1) - full ocean, false (byte = 0) - full land * </pre> */ public Builder clearOcean() { bitField0_ = (bitField0_ & ~0x00000020); ocean_ = false; onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> boxes_ = java.util.Collections.emptyList(); private void ensureBoxesIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { boxes_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> getBoxesList() { if (boxesBuilder_ == null) { return java.util.Collections.unmodifiableList(boxes_); } else { return boxesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public int getBoxesCount() { if (boxesBuilder_ == null) { return boxes_.size(); } else { return boxesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox getBoxes(int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public Builder addAllBoxes( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox> values) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); super.addAll(values, boxes_); onChanged(); } else { boxesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public Builder clearBoxes() { if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { boxesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public Builder removeBoxes(int index) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.remove(index); onChanged(); } else { boxesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder getBoxesBuilder( int index) { return getBoxesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder getBoxesOrBuilder( int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBoxOrBuilder> getBoxesOrBuilderList() { if (boxesBuilder_ != null) { return boxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(boxes_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder() { return getBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder addBoxesBuilder( int index) { return getBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapDataBox boxes = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapDataBox.Builder> 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_; /** * <code>required string name = 2;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 2;</code> */ 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; } } /** * <code>required string name = 2;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule> rules_; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule> getRulesList() { return rules_; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder> getRulesOrBuilderList() { return rules_; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public int getRulesCount() { return rules_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule getRules(int index) { return rules_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel> levels_; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel> getLevelsList() { return levels_; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder> getLevelsOrBuilderList() { return levels_; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getLevelsCount() { return levels_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel getLevels(int index) { return levels_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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} * * <pre> *///////////////////// * // Map messages //// * ///////////////////// * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<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_ = ""; /** * <code>required string name = 2;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 2;</code> */ 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; } } /** * <code>required string name = 2;</code> */ 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; } } /** * <code>required string name = 2;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>required string name = 2;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>required string name = 2;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule> rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { rules_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule> getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public Builder addAllRules( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule> values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); super.addAll(values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRuleOrBuilder> getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapEncodingRule rules = 4;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapEncodingRule.Builder> 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<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel> levels_ = java.util.Collections.emptyList(); private void ensureLevelsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { levels_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel> getLevelsList() { if (levelsBuilder_ == null) { return java.util.Collections.unmodifiableList(levels_); } else { return levelsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getLevelsCount() { if (levelsBuilder_ == null) { return levels_.size(); } else { return levelsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel getLevels(int index) { if (levelsBuilder_ == null) { return levels_.get(index); } else { return levelsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder addAllLevels( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel> values) { if (levelsBuilder_ == null) { ensureLevelsIsMutable(); super.addAll(values, levels_); onChanged(); } else { levelsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearLevels() { if (levelsBuilder_ == null) { levels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { levelsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder removeLevels(int index) { if (levelsBuilder_ == null) { ensureLevelsIsMutable(); levels_.remove(index); onChanged(); } else { levelsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder getLevelsBuilder( int index) { return getLevelsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder getLevelsOrBuilder( int index) { if (levelsBuilder_ == null) { return levels_.get(index); } else { return levelsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevelOrBuilder> getLevelsOrBuilderList() { if (levelsBuilder_ != null) { return levelsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(levels_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder addLevelsBuilder() { return getLevelsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder addLevelsBuilder( int index) { return getLevelsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndMapIndex.MapRootLevel levels = 5;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndMapIndex.MapRootLevel.Builder> 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; /** * <code>optional uint64 baseId = 10;</code> */ boolean hasBaseId(); /** * <code>optional uint64 baseId = 10;</code> */ long getBaseId(); // repeated .OsmAnd.OBF.MapData dataObjects = 12; /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.MapData> getDataObjectsList(); /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ net.osmand.binary.OsmandOdb.MapData getDataObjects(int index); /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ int getDataObjectsCount(); /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.MapDataOrBuilder> getDataObjectsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ net.osmand.binary.OsmandOdb.MapDataOrBuilder getDataObjectsOrBuilder( int index); // optional .OsmAnd.OBF.StringTable stringTable = 15; /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ boolean hasStringTable(); /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ net.osmand.binary.OsmandOdb.StringTable getStringTable(); /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder(); } /** * Protobuf type {@code OsmAnd.OBF.MapDataBlock} * * <pre> * 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 * </pre> */ 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<net.osmand.binary.OsmandOdb.MapData>(); 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<MapDataBlock> PARSER = new com.google.protobuf.AbstractParser<MapDataBlock>() { 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<MapDataBlock> getParserForType() { return PARSER; } private int bitField0_; // optional uint64 baseId = 10; public static final int BASEID_FIELD_NUMBER = 10; private long baseId_; /** * <code>optional uint64 baseId = 10;</code> */ public boolean hasBaseId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint64 baseId = 10;</code> */ public long getBaseId() { return baseId_; } // repeated .OsmAnd.OBF.MapData dataObjects = 12; public static final int DATAOBJECTS_FIELD_NUMBER = 12; private java.util.List<net.osmand.binary.OsmandOdb.MapData> dataObjects_; /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.MapData> getDataObjectsList() { return dataObjects_; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.MapDataOrBuilder> getDataObjectsOrBuilderList() { return dataObjects_; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public int getDataObjectsCount() { return dataObjects_.size(); } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public net.osmand.binary.OsmandOdb.MapData getDataObjects(int index) { return dataObjects_.get(index); } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ 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_; /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ public boolean hasStringTable() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ public net.osmand.binary.OsmandOdb.StringTable getStringTable() { return stringTable_; } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ 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} * * <pre> * 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 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<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_ ; /** * <code>optional uint64 baseId = 10;</code> */ public boolean hasBaseId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint64 baseId = 10;</code> */ public long getBaseId() { return baseId_; } /** * <code>optional uint64 baseId = 10;</code> */ public Builder setBaseId(long value) { bitField0_ |= 0x00000001; baseId_ = value; onChanged(); return this; } /** * <code>optional uint64 baseId = 10;</code> */ public Builder clearBaseId() { bitField0_ = (bitField0_ & ~0x00000001); baseId_ = 0L; onChanged(); return this; } // repeated .OsmAnd.OBF.MapData dataObjects = 12; private java.util.List<net.osmand.binary.OsmandOdb.MapData> dataObjects_ = java.util.Collections.emptyList(); private void ensureDataObjectsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { dataObjects_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.MapData>(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_; /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.MapData> getDataObjectsList() { if (dataObjectsBuilder_ == null) { return java.util.Collections.unmodifiableList(dataObjects_); } else { return dataObjectsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public int getDataObjectsCount() { if (dataObjectsBuilder_ == null) { return dataObjects_.size(); } else { return dataObjectsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public net.osmand.binary.OsmandOdb.MapData getDataObjects(int index) { if (dataObjectsBuilder_ == null) { return dataObjects_.get(index); } else { return dataObjectsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public Builder addAllDataObjects( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.MapData> values) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); super.addAll(values, dataObjects_); onChanged(); } else { dataObjectsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public Builder clearDataObjects() { if (dataObjectsBuilder_ == null) { dataObjects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataObjectsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public Builder removeDataObjects(int index) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); dataObjects_.remove(index); onChanged(); } else { dataObjectsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public net.osmand.binary.OsmandOdb.MapData.Builder getDataObjectsBuilder( int index) { return getDataObjectsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public net.osmand.binary.OsmandOdb.MapDataOrBuilder getDataObjectsOrBuilder( int index) { if (dataObjectsBuilder_ == null) { return dataObjects_.get(index); } else { return dataObjectsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.MapDataOrBuilder> getDataObjectsOrBuilderList() { if (dataObjectsBuilder_ != null) { return dataObjectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dataObjects_); } } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public net.osmand.binary.OsmandOdb.MapData.Builder addDataObjectsBuilder() { return getDataObjectsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.MapData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public net.osmand.binary.OsmandOdb.MapData.Builder addDataObjectsBuilder( int index) { return getDataObjectsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.MapData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.MapData dataObjects = 12;</code> * * <pre> * in future here can be optional raster tile * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.MapData.Builder> 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_; /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ public boolean hasStringTable() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ public net.osmand.binary.OsmandOdb.StringTable getStringTable() { if (stringTableBuilder_ == null) { return stringTable_; } else { return stringTableBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ public Builder clearStringTable() { if (stringTableBuilder_ == null) { stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); onChanged(); } else { stringTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ public net.osmand.binary.OsmandOdb.StringTable.Builder getStringTableBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStringTableFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { if (stringTableBuilder_ != null) { return stringTableBuilder_.getMessageOrBuilder(); } else { return stringTable_; } } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 15;</code> */ 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; /** * <code>optional bytes coordinates = 1;</code> * * <pre> * 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 * </pre> */ boolean hasCoordinates(); /** * <code>optional bytes coordinates = 1;</code> * * <pre> * 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 * </pre> */ com.google.protobuf.ByteString getCoordinates(); // optional bytes areaCoordinates = 2; /** * <code>optional bytes areaCoordinates = 2;</code> */ boolean hasAreaCoordinates(); /** * <code>optional bytes areaCoordinates = 2;</code> */ com.google.protobuf.ByteString getAreaCoordinates(); // repeated bytes polygonInnerCoordinates = 4; /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ java.util.List<com.google.protobuf.ByteString> getPolygonInnerCoordinatesList(); /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ int getPolygonInnerCoordinatesCount(); /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ com.google.protobuf.ByteString getPolygonInnerCoordinates(int index); // optional bytes additionalTypes = 6; /** * <code>optional bytes additionalTypes = 6;</code> * * <pre> * array of raw var int types * </pre> */ boolean hasAdditionalTypes(); /** * <code>optional bytes additionalTypes = 6;</code> * * <pre> * array of raw var int types * </pre> */ com.google.protobuf.ByteString getAdditionalTypes(); // required bytes types = 7; /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ boolean hasTypes(); /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ com.google.protobuf.ByteString getTypes(); // optional bytes stringNames = 10; /** * <code>optional bytes stringNames = 10;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ boolean hasStringNames(); /** * <code>optional bytes stringNames = 10;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ com.google.protobuf.ByteString getStringNames(); // required sint64 id = 12; /** * <code>required sint64 id = 12;</code> * * <pre> * delta encoded * </pre> */ boolean hasId(); /** * <code>required sint64 id = 12;</code> * * <pre> * delta encoded * </pre> */ long getId(); // optional bytes rasterBytes = 15; /** * <code>optional bytes rasterBytes = 15;</code> */ boolean hasRasterBytes(); /** * <code>optional bytes rasterBytes = 15;</code> */ 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<com.google.protobuf.ByteString>(); 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 82: { bitField0_ |= 0x00000010; stringNames_ = input.readBytes(); break; } case 96: { bitField0_ |= 0x00000020; id_ = input.readSInt64(); break; } case 122: { bitField0_ |= 0x00000040; 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<MapData> PARSER = new com.google.protobuf.AbstractParser<MapData>() { 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<MapData> getParserForType() { return PARSER; } private int bitField0_; // optional bytes coordinates = 1; public static final int COORDINATES_FIELD_NUMBER = 1; private com.google.protobuf.ByteString coordinates_; /** * <code>optional bytes coordinates = 1;</code> * * <pre> * 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 * </pre> */ public boolean hasCoordinates() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bytes coordinates = 1;</code> * * <pre> * 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 * </pre> */ 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_; /** * <code>optional bytes areaCoordinates = 2;</code> */ public boolean hasAreaCoordinates() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes areaCoordinates = 2;</code> */ public com.google.protobuf.ByteString getAreaCoordinates() { return areaCoordinates_; } // repeated bytes polygonInnerCoordinates = 4; public static final int POLYGONINNERCOORDINATES_FIELD_NUMBER = 4; private java.util.List<com.google.protobuf.ByteString> polygonInnerCoordinates_; /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ public java.util.List<com.google.protobuf.ByteString> getPolygonInnerCoordinatesList() { return polygonInnerCoordinates_; } /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ public int getPolygonInnerCoordinatesCount() { return polygonInnerCoordinates_.size(); } /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ 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_; /** * <code>optional bytes additionalTypes = 6;</code> * * <pre> * array of raw var int types * </pre> */ public boolean hasAdditionalTypes() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bytes additionalTypes = 6;</code> * * <pre> * array of raw var int types * </pre> */ 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_; /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public boolean hasTypes() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public com.google.protobuf.ByteString getTypes() { return types_; } // optional bytes stringNames = 10; public static final int STRINGNAMES_FIELD_NUMBER = 10; private com.google.protobuf.ByteString stringNames_; /** * <code>optional bytes stringNames = 10;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ public boolean hasStringNames() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bytes stringNames = 10;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ public com.google.protobuf.ByteString getStringNames() { return stringNames_; } // required sint64 id = 12; public static final int ID_FIELD_NUMBER = 12; private long id_; /** * <code>required sint64 id = 12;</code> * * <pre> * delta encoded * </pre> */ public boolean hasId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>required sint64 id = 12;</code> * * <pre> * delta encoded * </pre> */ public long getId() { return id_; } // optional bytes rasterBytes = 15; public static final int RASTERBYTES_FIELD_NUMBER = 15; private com.google.protobuf.ByteString rasterBytes_; /** * <code>optional bytes rasterBytes = 15;</code> */ public boolean hasRasterBytes() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bytes rasterBytes = 15;</code> */ public com.google.protobuf.ByteString getRasterBytes() { return rasterBytes_; } private void initFields() { coordinates_ = com.google.protobuf.ByteString.EMPTY; areaCoordinates_ = com.google.protobuf.ByteString.EMPTY; polygonInnerCoordinates_ = java.util.Collections.emptyList(); additionalTypes_ = com.google.protobuf.ByteString.EMPTY; types_ = com.google.protobuf.ByteString.EMPTY; stringNames_ = com.google.protobuf.ByteString.EMPTY; id_ = 0L; rasterBytes_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTypes()) { memoizedIsInitialized = 0; return false; } if (!hasId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, coordinates_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, areaCoordinates_); } for (int i = 0; i < polygonInnerCoordinates_.size(); i++) { output.writeBytes(4, polygonInnerCoordinates_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(6, additionalTypes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(7, types_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(10, stringNames_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeSInt64(12, id_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(15, rasterBytes_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, coordinates_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, areaCoordinates_); } { int dataSize = 0; for (int i = 0; i < polygonInnerCoordinates_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(polygonInnerCoordinates_.get(i)); } size += dataSize; size += 1 * getPolygonInnerCoordinatesList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, additionalTypes_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, types_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, stringNames_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(12, id_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, rasterBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static net.osmand.binary.OsmandOdb.MapData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.MapData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.MapData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static net.osmand.binary.OsmandOdb.MapData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static net.osmand.binary.OsmandOdb.MapData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.MapData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.MapData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static net.osmand.binary.OsmandOdb.MapData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static net.osmand.binary.OsmandOdb.MapData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static net.osmand.binary.OsmandOdb.MapData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(net.osmand.binary.OsmandOdb.MapData prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code OsmAnd.OBF.MapData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<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); stringNames_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); rasterBytes_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(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.stringNames_ = stringNames_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.id_ = id_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.rasterBytes_ = rasterBytes_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { 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.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; /** * <code>optional bytes coordinates = 1;</code> * * <pre> * 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 * </pre> */ public boolean hasCoordinates() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bytes coordinates = 1;</code> * * <pre> * 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 * </pre> */ public com.google.protobuf.ByteString getCoordinates() { return coordinates_; } /** * <code>optional bytes coordinates = 1;</code> * * <pre> * 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 * </pre> */ public Builder setCoordinates(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; coordinates_ = value; onChanged(); return this; } /** * <code>optional bytes coordinates = 1;</code> * * <pre> * 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 * </pre> */ 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; /** * <code>optional bytes areaCoordinates = 2;</code> */ public boolean hasAreaCoordinates() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes areaCoordinates = 2;</code> */ public com.google.protobuf.ByteString getAreaCoordinates() { return areaCoordinates_; } /** * <code>optional bytes areaCoordinates = 2;</code> */ public Builder setAreaCoordinates(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; areaCoordinates_ = value; onChanged(); return this; } /** * <code>optional bytes areaCoordinates = 2;</code> */ public Builder clearAreaCoordinates() { bitField0_ = (bitField0_ & ~0x00000002); areaCoordinates_ = getDefaultInstance().getAreaCoordinates(); onChanged(); return this; } // repeated bytes polygonInnerCoordinates = 4; private java.util.List<com.google.protobuf.ByteString> polygonInnerCoordinates_ = java.util.Collections.emptyList(); private void ensurePolygonInnerCoordinatesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { polygonInnerCoordinates_ = new java.util.ArrayList<com.google.protobuf.ByteString>(polygonInnerCoordinates_); bitField0_ |= 0x00000004; } } /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ public java.util.List<com.google.protobuf.ByteString> getPolygonInnerCoordinatesList() { return java.util.Collections.unmodifiableList(polygonInnerCoordinates_); } /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ public int getPolygonInnerCoordinatesCount() { return polygonInnerCoordinates_.size(); } /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ public com.google.protobuf.ByteString getPolygonInnerCoordinates(int index) { return polygonInnerCoordinates_.get(index); } /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ public Builder setPolygonInnerCoordinates( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePolygonInnerCoordinatesIsMutable(); polygonInnerCoordinates_.set(index, value); onChanged(); return this; } /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ public Builder addPolygonInnerCoordinates(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePolygonInnerCoordinatesIsMutable(); polygonInnerCoordinates_.add(value); onChanged(); return this; } /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ public Builder addAllPolygonInnerCoordinates( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { ensurePolygonInnerCoordinatesIsMutable(); super.addAll(values, polygonInnerCoordinates_); onChanged(); return this; } /** * <code>repeated bytes polygonInnerCoordinates = 4;</code> */ 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; /** * <code>optional bytes additionalTypes = 6;</code> * * <pre> * array of raw var int types * </pre> */ public boolean hasAdditionalTypes() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bytes additionalTypes = 6;</code> * * <pre> * array of raw var int types * </pre> */ public com.google.protobuf.ByteString getAdditionalTypes() { return additionalTypes_; } /** * <code>optional bytes additionalTypes = 6;</code> * * <pre> * array of raw var int types * </pre> */ public Builder setAdditionalTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; additionalTypes_ = value; onChanged(); return this; } /** * <code>optional bytes additionalTypes = 6;</code> * * <pre> * array of raw var int types * </pre> */ 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; /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public boolean hasTypes() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public com.google.protobuf.ByteString getTypes() { return types_; } /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public Builder setTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; types_ = value; onChanged(); return this; } /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public Builder clearTypes() { bitField0_ = (bitField0_ & ~0x00000010); types_ = getDefaultInstance().getTypes(); onChanged(); return this; } // optional bytes stringNames = 10; private com.google.protobuf.ByteString stringNames_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes stringNames = 10;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ public boolean hasStringNames() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bytes stringNames = 10;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ public com.google.protobuf.ByteString getStringNames() { return stringNames_; } /** * <code>optional bytes stringNames = 10;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ public Builder setStringNames(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; stringNames_ = value; onChanged(); return this; } /** * <code>optional bytes stringNames = 10;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ public Builder clearStringNames() { bitField0_ = (bitField0_ & ~0x00000020); stringNames_ = getDefaultInstance().getStringNames(); onChanged(); return this; } // required sint64 id = 12; private long id_ ; /** * <code>required sint64 id = 12;</code> * * <pre> * delta encoded * </pre> */ public boolean hasId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>required sint64 id = 12;</code> * * <pre> * delta encoded * </pre> */ public long getId() { return id_; } /** * <code>required sint64 id = 12;</code> * * <pre> * delta encoded * </pre> */ public Builder setId(long value) { bitField0_ |= 0x00000040; id_ = value; onChanged(); return this; } /** * <code>required sint64 id = 12;</code> * * <pre> * delta encoded * </pre> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000040); id_ = 0L; onChanged(); return this; } // optional bytes rasterBytes = 15; private com.google.protobuf.ByteString rasterBytes_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes rasterBytes = 15;</code> */ public boolean hasRasterBytes() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional bytes rasterBytes = 15;</code> */ public com.google.protobuf.ByteString getRasterBytes() { return rasterBytes_; } /** * <code>optional bytes rasterBytes = 15;</code> */ public Builder setRasterBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; rasterBytes_ = value; onChanged(); return this; } /** * <code>optional bytes rasterBytes = 15;</code> */ public Builder clearRasterBytes() { bitField0_ = (bitField0_ & ~0x00000080); rasterBytes_ = getDefaultInstance().getRasterBytes(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OsmAnd.OBF.MapData) } static { defaultInstance = new MapData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:OsmAnd.OBF.MapData) } public interface OsmAndAddressIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string name = 1; /** * <code>required string name = 1;</code> */ boolean hasName(); /** * <code>required string name = 1;</code> */ java.lang.String getName(); /** * <code>required string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional string name_en = 2; /** * <code>optional string name_en = 2;</code> */ boolean hasNameEn(); /** * <code>optional string name_en = 2;</code> */ java.lang.String getNameEn(); /** * <code>optional string name_en = 2;</code> */ com.google.protobuf.ByteString getNameEnBytes(); // optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3; /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ boolean hasBoundaries(); /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries(); /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder(); // optional .OsmAnd.OBF.StringTable attributeTagsTable = 4; /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ boolean hasAttributeTagsTable(); /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ net.osmand.binary.OsmandOdb.StringTable getAttributeTagsTable(); /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ net.osmand.binary.OsmandOdb.StringTableOrBuilder getAttributeTagsTableOrBuilder(); // repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6; /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex> getCitiesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex getCities(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ int getCitiesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder> getCitiesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder getCitiesOrBuilder( int index); // optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7; /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ boolean hasNameIndex(); /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getNameIndex(); /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex>(); 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<OsmAndAddressIndex> PARSER = new com.google.protobuf.AbstractParser<OsmAndAddressIndex>() { 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<OsmAndAddressIndex> getParserForType() { return PARSER; } public interface CitiesIndexOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2; /** * <code>required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;</code> */ boolean hasType(); /** * <code>required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;</code> */ net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType getType(); // repeated .OsmAnd.OBF.CityIndex cities = 5; /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.CityIndex> getCitiesList(); /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ net.osmand.binary.OsmandOdb.CityIndex getCities(int index); /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ int getCitiesCount(); /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.CityIndexOrBuilder> getCitiesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ net.osmand.binary.OsmandOdb.CityIndexOrBuilder getCitiesOrBuilder( int index); // repeated .OsmAnd.OBF.CityBlockIndex blocks = 7; /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ java.util.List<net.osmand.binary.OsmandOdb.CityBlockIndex> getBlocksList(); /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ net.osmand.binary.OsmandOdb.CityBlockIndex getBlocks(int index); /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ int getBlocksCount(); /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder> getBlocksOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ 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<net.osmand.binary.OsmandOdb.CityIndex>(); 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<net.osmand.binary.OsmandOdb.CityBlockIndex>(); 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<CitiesIndex> PARSER = new com.google.protobuf.AbstractParser<CitiesIndex>() { 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<CitiesIndex> getParserForType() { return PARSER; } /** * Protobuf enum {@code OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType} */ public enum CitiesType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>CitiesOrTowns = 1;</code> */ CitiesOrTowns(0, 1), /** * <code>Postcodes = 2;</code> */ Postcodes(1, 2), /** * <code>Villages = 3;</code> */ Villages(2, 3), ; /** * <code>CitiesOrTowns = 1;</code> */ public static final int CitiesOrTowns_VALUE = 1; /** * <code>Postcodes = 2;</code> */ public static final int Postcodes_VALUE = 2; /** * <code>Villages = 3;</code> */ 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<CitiesType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<CitiesType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<CitiesType>() { 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_; /** * <code>required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;</code> */ 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<net.osmand.binary.OsmandOdb.CityIndex> cities_; /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.CityIndex> getCitiesList() { return cities_; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.CityIndexOrBuilder> getCitiesOrBuilderList() { return cities_; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public int getCitiesCount() { return cities_.size(); } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public net.osmand.binary.OsmandOdb.CityIndex getCities(int index) { return cities_.get(index); } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ 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<net.osmand.binary.OsmandOdb.CityBlockIndex> blocks_; /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.CityBlockIndex> getBlocksList() { return blocks_; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder> getBlocksOrBuilderList() { return blocks_; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public int getBlocksCount() { return blocks_.size(); } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public net.osmand.binary.OsmandOdb.CityBlockIndex getBlocks(int index) { return blocks_.get(index); } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ 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<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; /** * <code>required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType getType() { return type_; } /** * <code>required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;</code> */ public Builder setType(net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.CitiesType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * <code>required .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex.CitiesType type = 2;</code> */ 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<net.osmand.binary.OsmandOdb.CityIndex> cities_ = java.util.Collections.emptyList(); private void ensureCitiesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { cities_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.CityIndex>(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_; /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.CityIndex> getCitiesList() { if (citiesBuilder_ == null) { return java.util.Collections.unmodifiableList(cities_); } else { return citiesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public int getCitiesCount() { if (citiesBuilder_ == null) { return cities_.size(); } else { return citiesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public net.osmand.binary.OsmandOdb.CityIndex getCities(int index) { if (citiesBuilder_ == null) { return cities_.get(index); } else { return citiesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public Builder addAllCities( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.CityIndex> values) { if (citiesBuilder_ == null) { ensureCitiesIsMutable(); super.addAll(values, cities_); onChanged(); } else { citiesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public Builder clearCities() { if (citiesBuilder_ == null) { cities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { citiesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public Builder removeCities(int index) { if (citiesBuilder_ == null) { ensureCitiesIsMutable(); cities_.remove(index); onChanged(); } else { citiesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public net.osmand.binary.OsmandOdb.CityIndex.Builder getCitiesBuilder( int index) { return getCitiesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public net.osmand.binary.OsmandOdb.CityIndexOrBuilder getCitiesOrBuilder( int index) { if (citiesBuilder_ == null) { return cities_.get(index); } else { return citiesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.CityIndexOrBuilder> getCitiesOrBuilderList() { if (citiesBuilder_ != null) { return citiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(cities_); } } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public net.osmand.binary.OsmandOdb.CityIndex.Builder addCitiesBuilder() { return getCitiesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.CityIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public net.osmand.binary.OsmandOdb.CityIndex.Builder addCitiesBuilder( int index) { return getCitiesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.CityIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.CityIndex cities = 5;</code> * * <pre> * not mixed * the list of the cities and the blocks are synchronized by the order (so even empty block will be written) * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.CityIndex.Builder> 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<net.osmand.binary.OsmandOdb.CityBlockIndex> blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { blocks_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.CityBlockIndex>(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_; /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.CityBlockIndex> getBlocksList() { if (blocksBuilder_ == null) { return java.util.Collections.unmodifiableList(blocks_); } else { return blocksBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public int getBlocksCount() { if (blocksBuilder_ == null) { return blocks_.size(); } else { return blocksBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public net.osmand.binary.OsmandOdb.CityBlockIndex getBlocks(int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public Builder addAllBlocks( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.CityBlockIndex> values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); super.addAll(values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public Builder clearBlocks() { if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { blocksBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public Builder removeBlocks(int index) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.remove(index); onChanged(); } else { blocksBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public net.osmand.binary.OsmandOdb.CityBlockIndex.Builder getBlocksBuilder( int index) { return getBlocksFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder getBlocksOrBuilder( int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.CityBlockIndexOrBuilder> getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(blocks_); } } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public net.osmand.binary.OsmandOdb.CityBlockIndex.Builder addBlocksBuilder() { return getBlocksFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.CityBlockIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public net.osmand.binary.OsmandOdb.CityBlockIndex.Builder addBlocksBuilder( int index) { return getBlocksFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.CityBlockIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.CityBlockIndex blocks = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.CityBlockIndex.Builder> 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_; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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_; /** * <code>optional string name_en = 2;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string name_en = 2;</code> */ 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; } } /** * <code>optional string name_en = 2;</code> */ 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_; /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ public boolean hasBoundaries() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { return boundaries_; } /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ 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_; /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ public boolean hasAttributeTagsTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ public net.osmand.binary.OsmandOdb.StringTable getAttributeTagsTable() { return attributeTagsTable_; } /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex> cities_; /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex> getCitiesList() { return cities_; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder> getCitiesOrBuilderList() { return cities_; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public int getCitiesCount() { return cities_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex getCities(int index) { return cities_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ 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_; /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public boolean hasNameIndex() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getNameIndex() { return nameIndex_; } /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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<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_ = ""; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>required string name = 1;</code> */ 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_ = ""; /** * <code>optional string name_en = 2;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string name_en = 2;</code> */ 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; } } /** * <code>optional string name_en = 2;</code> */ 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; } } /** * <code>optional string name_en = 2;</code> */ public Builder setNameEn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nameEn_ = value; onChanged(); return this; } /** * <code>optional string name_en = 2;</code> */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000002); nameEn_ = getDefaultInstance().getNameEn(); onChanged(); return this; } /** * <code>optional string name_en = 2;</code> */ 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_; /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ public boolean hasBoundaries() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { if (boundariesBuilder_ == null) { return boundaries_; } else { return boundariesBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ public Builder clearBoundaries() { if (boundariesBuilder_ == null) { boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); onChanged(); } else { boundariesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ public net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder getBoundariesBuilder() { bitField0_ |= 0x00000004; onChanged(); return getBoundariesFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ public net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder() { if (boundariesBuilder_ != null) { return boundariesBuilder_.getMessageOrBuilder(); } else { return boundaries_; } } /** * <code>optional .OsmAnd.OBF.OsmAndTileBox boundaries = 3;</code> */ 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_; /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ public boolean hasAttributeTagsTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ public net.osmand.binary.OsmandOdb.StringTable getAttributeTagsTable() { if (attributeTagsTableBuilder_ == null) { return attributeTagsTable_; } else { return attributeTagsTableBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ public Builder clearAttributeTagsTable() { if (attributeTagsTableBuilder_ == null) { attributeTagsTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); onChanged(); } else { attributeTagsTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ public net.osmand.binary.OsmandOdb.StringTable.Builder getAttributeTagsTableBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAttributeTagsTableFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ public net.osmand.binary.OsmandOdb.StringTableOrBuilder getAttributeTagsTableOrBuilder() { if (attributeTagsTableBuilder_ != null) { return attributeTagsTableBuilder_.getMessageOrBuilder(); } else { return attributeTagsTable_; } } /** * <code>optional .OsmAnd.OBF.StringTable attributeTagsTable = 4;</code> * * <pre> * before cities * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex> cities_ = java.util.Collections.emptyList(); private void ensureCitiesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { cities_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex> getCitiesList() { if (citiesBuilder_ == null) { return java.util.Collections.unmodifiableList(cities_); } else { return citiesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public int getCitiesCount() { if (citiesBuilder_ == null) { return cities_.size(); } else { return citiesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex getCities(int index) { if (citiesBuilder_ == null) { return cities_.get(index); } else { return citiesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public Builder addAllCities( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex> values) { if (citiesBuilder_ == null) { ensureCitiesIsMutable(); super.addAll(values, cities_); onChanged(); } else { citiesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public Builder clearCities() { if (citiesBuilder_ == null) { cities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { citiesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public Builder removeCities(int index) { if (citiesBuilder_ == null) { ensureCitiesIsMutable(); cities_.remove(index); onChanged(); } else { citiesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder getCitiesBuilder( int index) { return getCitiesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder getCitiesOrBuilder( int index) { if (citiesBuilder_ == null) { return cities_.get(index); } else { return citiesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndexOrBuilder> getCitiesOrBuilderList() { if (citiesBuilder_ != null) { return citiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(cities_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder addCitiesBuilder() { return getCitiesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder addCitiesBuilder( int index) { return getCitiesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressIndex.CitiesIndex cities = 6;</code> * * <pre> * encoded as fixed32 length delimited * 1) cities and towns - type 1, 2) postcodes - type 2, 3) villages - type 3 * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressIndex.CitiesIndex.Builder> 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_; /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public boolean hasNameIndex() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData getNameIndex() { if (nameIndexBuilder_ == null) { return nameIndex_; } else { return nameIndexBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearNameIndex() { if (nameIndexBuilder_ == null) { nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.getDefaultInstance(); onChanged(); } else { nameIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.Builder getNameIndexBuilder() { bitField0_ |= 0x00000020; onChanged(); return getNameIndexFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexDataOrBuilder getNameIndexOrBuilder() { if (nameIndexBuilder_ != null) { return nameIndexBuilder_.getMessageOrBuilder(); } else { return nameIndex_; } } /** * <code>optional .OsmAnd.OBF.OsmAndAddressNameIndexData nameIndex = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ boolean hasTable(); /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.IndexedStringTable getTable(); /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder(); // repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7; /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData> getAtomList(); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData getAtom(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ int getAtomCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder> getAtomOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData>(); 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<OsmAndAddressNameIndexData> PARSER = new com.google.protobuf.AbstractParser<OsmAndAddressNameIndexData>() { 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<OsmAndAddressNameIndexData> getParserForType() { return PARSER; } public interface AddressNameIndexDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom> getAtomList(); /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom getAtom(int index); /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ int getAtomCount(); /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder> getAtomOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ 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<net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom>(); 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<AddressNameIndexData> PARSER = new com.google.protobuf.AbstractParser<AddressNameIndexData>() { 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<AddressNameIndexData> getParserForType() { return PARSER; } // repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4; public static final int ATOM_FIELD_NUMBER = 4; private java.util.List<net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom> atom_; /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom> getAtomList() { return atom_; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder> getAtomOrBuilderList() { return atom_; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public int getAtomCount() { return atom_.size(); } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom getAtom(int index) { return atom_.get(index); } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ 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<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<net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom> atom_ = java.util.Collections.emptyList(); private void ensureAtomIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { atom_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom>(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_; /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom> getAtomList() { if (atomBuilder_ == null) { return java.util.Collections.unmodifiableList(atom_); } else { return atomBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public int getAtomCount() { if (atomBuilder_ == null) { return atom_.size(); } else { return atomBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom getAtom(int index) { if (atomBuilder_ == null) { return atom_.get(index); } else { return atomBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public Builder addAllAtom( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom> values) { if (atomBuilder_ == null) { ensureAtomIsMutable(); super.addAll(values, atom_); onChanged(); } else { atomBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public Builder clearAtom() { if (atomBuilder_ == null) { atom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { atomBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public Builder removeAtom(int index) { if (atomBuilder_ == null) { ensureAtomIsMutable(); atom_.remove(index); onChanged(); } else { atomBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder getAtomBuilder( int index) { return getAtomFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder getAtomOrBuilder( int index) { if (atomBuilder_ == null) { return atom_.get(index); } else { return atomBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.AddressNameIndexDataAtomOrBuilder> getAtomOrBuilderList() { if (atomBuilder_ != null) { return atomBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(atom_); } } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder addAtomBuilder() { return getAtomFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder addAtomBuilder( int index) { return getAtomFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.AddressNameIndexDataAtom atom = 4;</code> * * <pre> * shift is measured from start (before length) * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.AddressNameIndexDataAtom.Builder> 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_; /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ public boolean hasTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { return table_; } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData> atom_; /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData> getAtomList() { return atom_; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder> getAtomOrBuilderList() { return atom_; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public int getAtomCount() { return atom_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData getAtom(int index) { return atom_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ 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<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_; /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ public boolean hasTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { if (tableBuilder_ == null) { return table_; } else { return tableBuilder_.getMessage(); } } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ public Builder clearTable() { if (tableBuilder_ == null) { table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); onChanged(); } else { tableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder getTableBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTableFieldBuilder().getBuilder(); } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder() { if (tableBuilder_ != null) { return tableBuilder_.getMessageOrBuilder(); } else { return table_; } } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 4;</code> * * <pre> * shift to AddressNameIndexData starting from first OsmAndAddressNameIndexData message * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData> atom_ = java.util.Collections.emptyList(); private void ensureAtomIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { atom_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData> getAtomList() { if (atomBuilder_ == null) { return java.util.Collections.unmodifiableList(atom_); } else { return atomBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public int getAtomCount() { if (atomBuilder_ == null) { return atom_.size(); } else { return atomBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData getAtom(int index) { if (atomBuilder_ == null) { return atom_.get(index); } else { return atomBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public Builder addAllAtom( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData> values) { if (atomBuilder_ == null) { ensureAtomIsMutable(); super.addAll(values, atom_); onChanged(); } else { atomBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public Builder clearAtom() { if (atomBuilder_ == null) { atom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { atomBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public Builder removeAtom(int index) { if (atomBuilder_ == null) { ensureAtomIsMutable(); atom_.remove(index); onChanged(); } else { atomBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder getAtomBuilder( int index) { return getAtomFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder getAtomOrBuilder( int index) { if (atomBuilder_ == null) { return atom_.get(index); } else { return atomBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexDataOrBuilder> getAtomOrBuilderList() { if (atomBuilder_ != null) { return atomBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(atom_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder addAtomBuilder() { return getAtomFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder addAtomBuilder( int index) { return getAtomFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndAddressNameIndexData.AddressNameIndexData atom = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndAddressNameIndexData.AddressNameIndexData.Builder> 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; /** * <code>optional string name = 1;</code> */ boolean hasName(); /** * <code>optional string name = 1;</code> */ java.lang.String getName(); /** * <code>optional string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional string nameEn = 2; /** * <code>optional string nameEn = 2;</code> */ boolean hasNameEn(); /** * <code>optional string nameEn = 2;</code> */ java.lang.String getNameEn(); /** * <code>optional string nameEn = 2;</code> */ com.google.protobuf.ByteString getNameEnBytes(); // required uint32 type = 3; /** * <code>required uint32 type = 3;</code> * * <pre> * 1 - city, 2 - postcode, 3 - village, 4 - street * </pre> */ boolean hasType(); /** * <code>required uint32 type = 3;</code> * * <pre> * 1 - city, 2 - postcode, 3 - village, 4 - street * </pre> */ int getType(); // repeated int32 shiftToIndex = 5; /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ java.util.List<java.lang.Integer> getShiftToIndexList(); /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ int getShiftToIndexCount(); /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ int getShiftToIndex(int index); // repeated int32 shiftToCityIndex = 6; /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ java.util.List<java.lang.Integer> getShiftToCityIndexList(); /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ int getShiftToCityIndexCount(); /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ int getShiftToCityIndex(int index); // repeated uint32 xy16 = 7; /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ java.util.List<java.lang.Integer> getXy16List(); /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ int getXy16Count(); /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<AddressNameIndexDataAtom> PARSER = new com.google.protobuf.AbstractParser<AddressNameIndexDataAtom>() { 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<AddressNameIndexDataAtom> getParserForType() { return PARSER; } private int bitField0_; // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * <code>optional string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string name = 1;</code> */ 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; } } /** * <code>optional string name = 1;</code> */ 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_; /** * <code>optional string nameEn = 2;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string nameEn = 2;</code> */ 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; } } /** * <code>optional string nameEn = 2;</code> */ 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_; /** * <code>required uint32 type = 3;</code> * * <pre> * 1 - city, 2 - postcode, 3 - village, 4 - street * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required uint32 type = 3;</code> * * <pre> * 1 - city, 2 - postcode, 3 - village, 4 - street * </pre> */ public int getType() { return type_; } // repeated int32 shiftToIndex = 5; public static final int SHIFTTOINDEX_FIELD_NUMBER = 5; private java.util.List<java.lang.Integer> shiftToIndex_; /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ public java.util.List<java.lang.Integer> getShiftToIndexList() { return shiftToIndex_; } /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ public int getShiftToIndexCount() { return shiftToIndex_.size(); } /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ 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<java.lang.Integer> shiftToCityIndex_; /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ public java.util.List<java.lang.Integer> getShiftToCityIndexList() { return shiftToCityIndex_; } /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ public int getShiftToCityIndexCount() { return shiftToCityIndex_.size(); } /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ 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<java.lang.Integer> xy16_; /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ public java.util.List<java.lang.Integer> getXy16List() { return xy16_; } /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ public int getXy16Count() { return xy16_.size(); } /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ 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<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_ = ""; /** * <code>optional string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string name = 1;</code> */ 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; } } /** * <code>optional string name = 1;</code> */ 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; } } /** * <code>optional string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>optional string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>optional string name = 1;</code> */ 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_ = ""; /** * <code>optional string nameEn = 2;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string nameEn = 2;</code> */ 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; } } /** * <code>optional string nameEn = 2;</code> */ 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; } } /** * <code>optional string nameEn = 2;</code> */ public Builder setNameEn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nameEn_ = value; onChanged(); return this; } /** * <code>optional string nameEn = 2;</code> */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000002); nameEn_ = getDefaultInstance().getNameEn(); onChanged(); return this; } /** * <code>optional string nameEn = 2;</code> */ 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_ ; /** * <code>required uint32 type = 3;</code> * * <pre> * 1 - city, 2 - postcode, 3 - village, 4 - street * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required uint32 type = 3;</code> * * <pre> * 1 - city, 2 - postcode, 3 - village, 4 - street * </pre> */ public int getType() { return type_; } /** * <code>required uint32 type = 3;</code> * * <pre> * 1 - city, 2 - postcode, 3 - village, 4 - street * </pre> */ public Builder setType(int value) { bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * <code>required uint32 type = 3;</code> * * <pre> * 1 - city, 2 - postcode, 3 - village, 4 - street * </pre> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = 0; onChanged(); return this; } // repeated int32 shiftToIndex = 5; private java.util.List<java.lang.Integer> shiftToIndex_ = java.util.Collections.emptyList(); private void ensureShiftToIndexIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { shiftToIndex_ = new java.util.ArrayList<java.lang.Integer>(shiftToIndex_); bitField0_ |= 0x00000008; } } /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ public java.util.List<java.lang.Integer> getShiftToIndexList() { return java.util.Collections.unmodifiableList(shiftToIndex_); } /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ public int getShiftToIndexCount() { return shiftToIndex_.size(); } /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ public int getShiftToIndex(int index) { return shiftToIndex_.get(index); } /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ public Builder setShiftToIndex( int index, int value) { ensureShiftToIndexIsMutable(); shiftToIndex_.set(index, value); onChanged(); return this; } /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ public Builder addShiftToIndex(int value) { ensureShiftToIndexIsMutable(); shiftToIndex_.add(value); onChanged(); return this; } /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ public Builder addAllShiftToIndex( java.lang.Iterable<? extends java.lang.Integer> values) { ensureShiftToIndexIsMutable(); super.addAll(values, shiftToIndex_); onChanged(); return this; } /** * <code>repeated int32 shiftToIndex = 5;</code> * * <pre> * start mixed * shift from start AddressNameIndexData (!) to ...Index * </pre> */ public Builder clearShiftToIndex() { shiftToIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // repeated int32 shiftToCityIndex = 6; private java.util.List<java.lang.Integer> shiftToCityIndex_ = java.util.Collections.emptyList(); private void ensureShiftToCityIndexIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { shiftToCityIndex_ = new java.util.ArrayList<java.lang.Integer>(shiftToCityIndex_); bitField0_ |= 0x00000010; } } /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ public java.util.List<java.lang.Integer> getShiftToCityIndexList() { return java.util.Collections.unmodifiableList(shiftToCityIndex_); } /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ public int getShiftToCityIndexCount() { return shiftToCityIndex_.size(); } /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ public int getShiftToCityIndex(int index) { return shiftToCityIndex_.get(index); } /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ public Builder setShiftToCityIndex( int index, int value) { ensureShiftToCityIndexIsMutable(); shiftToCityIndex_.set(index, value); onChanged(); return this; } /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ public Builder addShiftToCityIndex(int value) { ensureShiftToCityIndexIsMutable(); shiftToCityIndex_.add(value); onChanged(); return this; } /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ public Builder addAllShiftToCityIndex( java.lang.Iterable<? extends java.lang.Integer> values) { ensureShiftToCityIndexIsMutable(); super.addAll(values, shiftToCityIndex_); onChanged(); return this; } /** * <code>repeated int32 shiftToCityIndex = 6;</code> * * <pre> * optional used in case of type=street * </pre> */ public Builder clearShiftToCityIndex() { shiftToCityIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } // repeated uint32 xy16 = 7; private java.util.List<java.lang.Integer> xy16_ = java.util.Collections.emptyList(); private void ensureXy16IsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { xy16_ = new java.util.ArrayList<java.lang.Integer>(xy16_); bitField0_ |= 0x00000020; } } /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ public java.util.List<java.lang.Integer> getXy16List() { return java.util.Collections.unmodifiableList(xy16_); } /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ public int getXy16Count() { return xy16_.size(); } /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ public int getXy16(int index) { return xy16_.get(index); } /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ public Builder setXy16( int index, int value) { ensureXy16IsMutable(); xy16_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ public Builder addXy16(int value) { ensureXy16IsMutable(); xy16_.add(value); onChanged(); return this; } /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ public Builder addAllXy16( java.lang.Iterable<? extends java.lang.Integer> values) { ensureXy16IsMutable(); super.addAll(values, xy16_); onChanged(); return this; } /** * <code>repeated uint32 xy16 = 7;</code> * * <pre> * coordinates v2.3 * </pre> */ 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; /** * <code>optional uint32 city_type = 1;</code> * * <pre> * should be written the first (for city), for postcode is optional * </pre> */ boolean hasCityType(); /** * <code>optional uint32 city_type = 1;</code> * * <pre> * should be written the first (for city), for postcode is optional * </pre> */ int getCityType(); // required string name = 2; /** * <code>required string name = 2;</code> */ boolean hasName(); /** * <code>required string name = 2;</code> */ java.lang.String getName(); /** * <code>required string name = 2;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional string name_en = 3; /** * <code>optional string name_en = 3;</code> */ boolean hasNameEn(); /** * <code>optional string name_en = 3;</code> */ java.lang.String getNameEn(); /** * <code>optional string name_en = 3;</code> */ com.google.protobuf.ByteString getNameEnBytes(); // optional uint64 id = 4; /** * <code>optional uint64 id = 4;</code> */ boolean hasId(); /** * <code>optional uint64 id = 4;</code> */ long getId(); // required uint32 x = 5; /** * <code>required uint32 x = 5;</code> * * <pre> * x tile of 31 zoom * </pre> */ boolean hasX(); /** * <code>required uint32 x = 5;</code> * * <pre> * x tile of 31 zoom * </pre> */ int getX(); // required uint32 y = 6; /** * <code>required uint32 y = 6;</code> * * <pre> * y tile of 31 zoom * </pre> */ boolean hasY(); /** * <code>required uint32 y = 6;</code> * * <pre> * y tile of 31 zoom * </pre> */ int getY(); // repeated uint32 attributeTagIds = 7; /** * <code>repeated uint32 attributeTagIds = 7;</code> */ java.util.List<java.lang.Integer> getAttributeTagIdsList(); /** * <code>repeated uint32 attributeTagIds = 7;</code> */ int getAttributeTagIdsCount(); /** * <code>repeated uint32 attributeTagIds = 7;</code> */ int getAttributeTagIds(int index); // repeated string attributeValues = 8; /** * <code>repeated string attributeValues = 8;</code> */ java.util.List<java.lang.String> getAttributeValuesList(); /** * <code>repeated string attributeValues = 8;</code> */ int getAttributeValuesCount(); /** * <code>repeated string attributeValues = 8;</code> */ java.lang.String getAttributeValues(int index); /** * <code>repeated string attributeValues = 8;</code> */ com.google.protobuf.ByteString getAttributeValuesBytes(int index); // optional fixed32 shiftToCityBlockIndex = 10; /** * <code>optional fixed32 shiftToCityBlockIndex = 10;</code> * * <pre> * shift from start CityIndex (without length) to cityBlockIndex * </pre> */ boolean hasShiftToCityBlockIndex(); /** * <code>optional fixed32 shiftToCityBlockIndex = 10;</code> * * <pre> * shift from start CityIndex (without length) to cityBlockIndex * </pre> */ 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<CityIndex> PARSER = new com.google.protobuf.AbstractParser<CityIndex>() { 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<CityIndex> getParserForType() { return PARSER; } private int bitField0_; // optional uint32 city_type = 1; public static final int CITY_TYPE_FIELD_NUMBER = 1; private int cityType_; /** * <code>optional uint32 city_type = 1;</code> * * <pre> * should be written the first (for city), for postcode is optional * </pre> */ public boolean hasCityType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 city_type = 1;</code> * * <pre> * should be written the first (for city), for postcode is optional * </pre> */ public int getCityType() { return cityType_; } // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** * <code>required string name = 2;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string name = 2;</code> */ 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; } } /** * <code>required string name = 2;</code> */ 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_; /** * <code>optional string name_en = 3;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string name_en = 3;</code> */ 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; } } /** * <code>optional string name_en = 3;</code> */ 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_; /** * <code>optional uint64 id = 4;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint64 id = 4;</code> */ public long getId() { return id_; } // required uint32 x = 5; public static final int X_FIELD_NUMBER = 5; private int x_; /** * <code>required uint32 x = 5;</code> * * <pre> * x tile of 31 zoom * </pre> */ public boolean hasX() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>required uint32 x = 5;</code> * * <pre> * x tile of 31 zoom * </pre> */ public int getX() { return x_; } // required uint32 y = 6; public static final int Y_FIELD_NUMBER = 6; private int y_; /** * <code>required uint32 y = 6;</code> * * <pre> * y tile of 31 zoom * </pre> */ public boolean hasY() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>required uint32 y = 6;</code> * * <pre> * y tile of 31 zoom * </pre> */ public int getY() { return y_; } // repeated uint32 attributeTagIds = 7; public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 7; private java.util.List<java.lang.Integer> attributeTagIds_; /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public java.util.List<java.lang.Integer> getAttributeTagIdsList() { return attributeTagIds_; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ 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_; /** * <code>repeated string attributeValues = 8;</code> */ public java.util.List<java.lang.String> getAttributeValuesList() { return attributeValues_; } /** * <code>repeated string attributeValues = 8;</code> */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * <code>repeated string attributeValues = 8;</code> */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * <code>repeated string attributeValues = 8;</code> */ 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_; /** * <code>optional fixed32 shiftToCityBlockIndex = 10;</code> * * <pre> * shift from start CityIndex (without length) to cityBlockIndex * </pre> */ public boolean hasShiftToCityBlockIndex() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional fixed32 shiftToCityBlockIndex = 10;</code> * * <pre> * shift from start CityIndex (without length) to cityBlockIndex * </pre> */ 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<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_ ; /** * <code>optional uint32 city_type = 1;</code> * * <pre> * should be written the first (for city), for postcode is optional * </pre> */ public boolean hasCityType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 city_type = 1;</code> * * <pre> * should be written the first (for city), for postcode is optional * </pre> */ public int getCityType() { return cityType_; } /** * <code>optional uint32 city_type = 1;</code> * * <pre> * should be written the first (for city), for postcode is optional * </pre> */ public Builder setCityType(int value) { bitField0_ |= 0x00000001; cityType_ = value; onChanged(); return this; } /** * <code>optional uint32 city_type = 1;</code> * * <pre> * should be written the first (for city), for postcode is optional * </pre> */ public Builder clearCityType() { bitField0_ = (bitField0_ & ~0x00000001); cityType_ = 0; onChanged(); return this; } // required string name = 2; private java.lang.Object name_ = ""; /** * <code>required string name = 2;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string name = 2;</code> */ 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; } } /** * <code>required string name = 2;</code> */ 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; } } /** * <code>required string name = 2;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * <code>required string name = 2;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>required string name = 2;</code> */ 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_ = ""; /** * <code>optional string name_en = 3;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string name_en = 3;</code> */ 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; } } /** * <code>optional string name_en = 3;</code> */ 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; } } /** * <code>optional string name_en = 3;</code> */ public Builder setNameEn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; nameEn_ = value; onChanged(); return this; } /** * <code>optional string name_en = 3;</code> */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000004); nameEn_ = getDefaultInstance().getNameEn(); onChanged(); return this; } /** * <code>optional string name_en = 3;</code> */ 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_ ; /** * <code>optional uint64 id = 4;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint64 id = 4;</code> */ public long getId() { return id_; } /** * <code>optional uint64 id = 4;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000008; id_ = value; onChanged(); return this; } /** * <code>optional uint64 id = 4;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000008); id_ = 0L; onChanged(); return this; } // required uint32 x = 5; private int x_ ; /** * <code>required uint32 x = 5;</code> * * <pre> * x tile of 31 zoom * </pre> */ public boolean hasX() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>required uint32 x = 5;</code> * * <pre> * x tile of 31 zoom * </pre> */ public int getX() { return x_; } /** * <code>required uint32 x = 5;</code> * * <pre> * x tile of 31 zoom * </pre> */ public Builder setX(int value) { bitField0_ |= 0x00000010; x_ = value; onChanged(); return this; } /** * <code>required uint32 x = 5;</code> * * <pre> * x tile of 31 zoom * </pre> */ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000010); x_ = 0; onChanged(); return this; } // required uint32 y = 6; private int y_ ; /** * <code>required uint32 y = 6;</code> * * <pre> * y tile of 31 zoom * </pre> */ public boolean hasY() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>required uint32 y = 6;</code> * * <pre> * y tile of 31 zoom * </pre> */ public int getY() { return y_; } /** * <code>required uint32 y = 6;</code> * * <pre> * y tile of 31 zoom * </pre> */ public Builder setY(int value) { bitField0_ |= 0x00000020; y_ = value; onChanged(); return this; } /** * <code>required uint32 y = 6;</code> * * <pre> * y tile of 31 zoom * </pre> */ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000020); y_ = 0; onChanged(); return this; } // repeated uint32 attributeTagIds = 7; private java.util.List<java.lang.Integer> attributeTagIds_ = java.util.Collections.emptyList(); private void ensureAttributeTagIdsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { attributeTagIds_ = new java.util.ArrayList<java.lang.Integer>(attributeTagIds_); bitField0_ |= 0x00000040; } } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public java.util.List<java.lang.Integer> getAttributeTagIdsList() { return java.util.Collections.unmodifiableList(attributeTagIds_); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public Builder setAttributeTagIds( int index, int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public Builder addAttributeTagIds(int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.add(value); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public Builder addAllAttributeTagIds( java.lang.Iterable<? extends java.lang.Integer> values) { ensureAttributeTagIdsIsMutable(); super.addAll(values, attributeTagIds_); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ 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; } } /** * <code>repeated string attributeValues = 8;</code> */ public java.util.List<java.lang.String> getAttributeValuesList() { return java.util.Collections.unmodifiableList(attributeValues_); } /** * <code>repeated string attributeValues = 8;</code> */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * <code>repeated string attributeValues = 8;</code> */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * <code>repeated string attributeValues = 8;</code> */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } /** * <code>repeated string attributeValues = 8;</code> */ public Builder setAttributeValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.set(index, value); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ public Builder addAttributeValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ public Builder addAllAttributeValues( java.lang.Iterable<java.lang.String> values) { ensureAttributeValuesIsMutable(); super.addAll(values, attributeValues_); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ public Builder clearAttributeValues() { attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ 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_ ; /** * <code>optional fixed32 shiftToCityBlockIndex = 10;</code> * * <pre> * shift from start CityIndex (without length) to cityBlockIndex * </pre> */ public boolean hasShiftToCityBlockIndex() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional fixed32 shiftToCityBlockIndex = 10;</code> * * <pre> * shift from start CityIndex (without length) to cityBlockIndex * </pre> */ public int getShiftToCityBlockIndex() { return shiftToCityBlockIndex_; } /** * <code>optional fixed32 shiftToCityBlockIndex = 10;</code> * * <pre> * shift from start CityIndex (without length) to cityBlockIndex * </pre> */ public Builder setShiftToCityBlockIndex(int value) { bitField0_ |= 0x00000100; shiftToCityBlockIndex_ = value; onChanged(); return this; } /** * <code>optional fixed32 shiftToCityBlockIndex = 10;</code> * * <pre> * shift from start CityIndex (without length) to cityBlockIndex * </pre> */ 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; /** * <code>optional fixed32 shiftToCityIndex = 4;</code> * * <pre> * shift from start cityBlockIndex to CityIndex * </pre> */ boolean hasShiftToCityIndex(); /** * <code>optional fixed32 shiftToCityIndex = 4;</code> * * <pre> * shift from start cityBlockIndex to CityIndex * </pre> */ int getShiftToCityIndex(); // repeated .OsmAnd.OBF.BuildingIndex buildings = 10; /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.BuildingIndex> getBuildingsList(); /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index); /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ int getBuildingsCount(); /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> getBuildingsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( int index); // repeated .OsmAnd.OBF.StreetIndex streets = 12; /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ java.util.List<net.osmand.binary.OsmandOdb.StreetIndex> getStreetsList(); /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ net.osmand.binary.OsmandOdb.StreetIndex getStreets(int index); /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ int getStreetsCount(); /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.StreetIndexOrBuilder> getStreetsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ 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<net.osmand.binary.OsmandOdb.BuildingIndex>(); 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<net.osmand.binary.OsmandOdb.StreetIndex>(); 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<CityBlockIndex> PARSER = new com.google.protobuf.AbstractParser<CityBlockIndex>() { 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<CityBlockIndex> getParserForType() { return PARSER; } private int bitField0_; // optional fixed32 shiftToCityIndex = 4; public static final int SHIFTTOCITYINDEX_FIELD_NUMBER = 4; private int shiftToCityIndex_; /** * <code>optional fixed32 shiftToCityIndex = 4;</code> * * <pre> * shift from start cityBlockIndex to CityIndex * </pre> */ public boolean hasShiftToCityIndex() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional fixed32 shiftToCityIndex = 4;</code> * * <pre> * shift from start cityBlockIndex to CityIndex * </pre> */ public int getShiftToCityIndex() { return shiftToCityIndex_; } // repeated .OsmAnd.OBF.BuildingIndex buildings = 10; public static final int BUILDINGS_FIELD_NUMBER = 10; private java.util.List<net.osmand.binary.OsmandOdb.BuildingIndex> buildings_; /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.BuildingIndex> getBuildingsList() { return buildings_; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> getBuildingsOrBuilderList() { return buildings_; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public int getBuildingsCount() { return buildings_.size(); } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { return buildings_.get(index); } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ 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<net.osmand.binary.OsmandOdb.StreetIndex> streets_; /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.StreetIndex> getStreetsList() { return streets_; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.StreetIndexOrBuilder> getStreetsOrBuilderList() { return streets_; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public int getStreetsCount() { return streets_.size(); } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public net.osmand.binary.OsmandOdb.StreetIndex getStreets(int index) { return streets_.get(index); } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ 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<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_ ; /** * <code>optional fixed32 shiftToCityIndex = 4;</code> * * <pre> * shift from start cityBlockIndex to CityIndex * </pre> */ public boolean hasShiftToCityIndex() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional fixed32 shiftToCityIndex = 4;</code> * * <pre> * shift from start cityBlockIndex to CityIndex * </pre> */ public int getShiftToCityIndex() { return shiftToCityIndex_; } /** * <code>optional fixed32 shiftToCityIndex = 4;</code> * * <pre> * shift from start cityBlockIndex to CityIndex * </pre> */ public Builder setShiftToCityIndex(int value) { bitField0_ |= 0x00000001; shiftToCityIndex_ = value; onChanged(); return this; } /** * <code>optional fixed32 shiftToCityIndex = 4;</code> * * <pre> * shift from start cityBlockIndex to CityIndex * </pre> */ public Builder clearShiftToCityIndex() { bitField0_ = (bitField0_ & ~0x00000001); shiftToCityIndex_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.BuildingIndex buildings = 10; private java.util.List<net.osmand.binary.OsmandOdb.BuildingIndex> buildings_ = java.util.Collections.emptyList(); private void ensureBuildingsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { buildings_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.BuildingIndex>(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_; /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.BuildingIndex> getBuildingsList() { if (buildingsBuilder_ == null) { return java.util.Collections.unmodifiableList(buildings_); } else { return buildingsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public int getBuildingsCount() { if (buildingsBuilder_ == null) { return buildings_.size(); } else { return buildingsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { if (buildingsBuilder_ == null) { return buildings_.get(index); } else { return buildingsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public Builder addAllBuildings( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.BuildingIndex> values) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); super.addAll(values, buildings_); onChanged(); } else { buildingsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public Builder clearBuildings() { if (buildingsBuilder_ == null) { buildings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { buildingsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public Builder removeBuildings(int index) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); buildings_.remove(index); onChanged(); } else { buildingsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder getBuildingsBuilder( int index) { return getBuildingsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( int index) { if (buildingsBuilder_ == null) { return buildings_.get(index); } else { return buildingsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> getBuildingsOrBuilderList() { if (buildingsBuilder_ != null) { return buildingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(buildings_); } } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder() { return getBuildingsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder( int index) { return getBuildingsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 10;</code> * * <pre> * buildings that doesn't belong to the street * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.BuildingIndex.Builder> 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<net.osmand.binary.OsmandOdb.StreetIndex> streets_ = java.util.Collections.emptyList(); private void ensureStreetsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { streets_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.StreetIndex>(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_; /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.StreetIndex> getStreetsList() { if (streetsBuilder_ == null) { return java.util.Collections.unmodifiableList(streets_); } else { return streetsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public int getStreetsCount() { if (streetsBuilder_ == null) { return streets_.size(); } else { return streetsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public net.osmand.binary.OsmandOdb.StreetIndex getStreets(int index) { if (streetsBuilder_ == null) { return streets_.get(index); } else { return streetsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public Builder addAllStreets( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.StreetIndex> values) { if (streetsBuilder_ == null) { ensureStreetsIsMutable(); super.addAll(values, streets_); onChanged(); } else { streetsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public Builder clearStreets() { if (streetsBuilder_ == null) { streets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { streetsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public Builder removeStreets(int index) { if (streetsBuilder_ == null) { ensureStreetsIsMutable(); streets_.remove(index); onChanged(); } else { streetsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public net.osmand.binary.OsmandOdb.StreetIndex.Builder getStreetsBuilder( int index) { return getStreetsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public net.osmand.binary.OsmandOdb.StreetIndexOrBuilder getStreetsOrBuilder( int index) { if (streetsBuilder_ == null) { return streets_.get(index); } else { return streetsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.StreetIndexOrBuilder> getStreetsOrBuilderList() { if (streetsBuilder_ != null) { return streetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(streets_); } } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public net.osmand.binary.OsmandOdb.StreetIndex.Builder addStreetsBuilder() { return getStreetsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.StreetIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public net.osmand.binary.OsmandOdb.StreetIndex.Builder addStreetsBuilder( int index) { return getStreetsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.StreetIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.StreetIndex streets = 12;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.StreetIndex.Builder> 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; /** * <code>required string name = 1;</code> */ boolean hasName(); /** * <code>required string name = 1;</code> */ java.lang.String getName(); /** * <code>required string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional string name_en = 2; /** * <code>optional string name_en = 2;</code> */ boolean hasNameEn(); /** * <code>optional string name_en = 2;</code> */ java.lang.String getNameEn(); /** * <code>optional string name_en = 2;</code> */ com.google.protobuf.ByteString getNameEnBytes(); // required sint32 x = 3; /** * <code>required sint32 x = 3;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ boolean hasX(); /** * <code>required sint32 x = 3;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ int getX(); // required sint32 y = 4; /** * <code>required sint32 y = 4;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ boolean hasY(); /** * <code>required sint32 y = 4;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ int getY(); // repeated .OsmAnd.OBF.StreetIntersection intersections = 5; /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ java.util.List<net.osmand.binary.OsmandOdb.StreetIntersection> getIntersectionsList(); /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ net.osmand.binary.OsmandOdb.StreetIntersection getIntersections(int index); /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ int getIntersectionsCount(); /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder> getIntersectionsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder getIntersectionsOrBuilder( int index); // optional uint64 id = 6; /** * <code>optional uint64 id = 6;</code> */ boolean hasId(); /** * <code>optional uint64 id = 6;</code> */ long getId(); // repeated uint32 attributeTagIds = 7; /** * <code>repeated uint32 attributeTagIds = 7;</code> */ java.util.List<java.lang.Integer> getAttributeTagIdsList(); /** * <code>repeated uint32 attributeTagIds = 7;</code> */ int getAttributeTagIdsCount(); /** * <code>repeated uint32 attributeTagIds = 7;</code> */ int getAttributeTagIds(int index); // repeated string attributeValues = 8; /** * <code>repeated string attributeValues = 8;</code> */ java.util.List<java.lang.String> getAttributeValuesList(); /** * <code>repeated string attributeValues = 8;</code> */ int getAttributeValuesCount(); /** * <code>repeated string attributeValues = 8;</code> */ java.lang.String getAttributeValues(int index); /** * <code>repeated string attributeValues = 8;</code> */ com.google.protobuf.ByteString getAttributeValuesBytes(int index); // repeated .OsmAnd.OBF.BuildingIndex buildings = 12; /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ java.util.List<net.osmand.binary.OsmandOdb.BuildingIndex> getBuildingsList(); /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index); /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ int getBuildingsCount(); /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> getBuildingsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ 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<net.osmand.binary.OsmandOdb.StreetIntersection>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<net.osmand.binary.OsmandOdb.BuildingIndex>(); 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<StreetIndex> PARSER = new com.google.protobuf.AbstractParser<StreetIndex>() { 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<StreetIndex> getParserForType() { return PARSER; } private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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_; /** * <code>optional string name_en = 2;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string name_en = 2;</code> */ 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; } } /** * <code>optional string name_en = 2;</code> */ 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_; /** * <code>required sint32 x = 3;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public boolean hasX() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 x = 3;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public int getX() { return x_; } // required sint32 y = 4; public static final int Y_FIELD_NUMBER = 4; private int y_; /** * <code>required sint32 y = 4;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public boolean hasY() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required sint32 y = 4;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public int getY() { return y_; } // repeated .OsmAnd.OBF.StreetIntersection intersections = 5; public static final int INTERSECTIONS_FIELD_NUMBER = 5; private java.util.List<net.osmand.binary.OsmandOdb.StreetIntersection> intersections_; /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.StreetIntersection> getIntersectionsList() { return intersections_; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder> getIntersectionsOrBuilderList() { return intersections_; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public int getIntersectionsCount() { return intersections_.size(); } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public net.osmand.binary.OsmandOdb.StreetIntersection getIntersections(int index) { return intersections_.get(index); } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ 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_; /** * <code>optional uint64 id = 6;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint64 id = 6;</code> */ public long getId() { return id_; } // repeated uint32 attributeTagIds = 7; public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 7; private java.util.List<java.lang.Integer> attributeTagIds_; /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public java.util.List<java.lang.Integer> getAttributeTagIdsList() { return attributeTagIds_; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ 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_; /** * <code>repeated string attributeValues = 8;</code> */ public java.util.List<java.lang.String> getAttributeValuesList() { return attributeValues_; } /** * <code>repeated string attributeValues = 8;</code> */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * <code>repeated string attributeValues = 8;</code> */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * <code>repeated string attributeValues = 8;</code> */ 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<net.osmand.binary.OsmandOdb.BuildingIndex> buildings_; /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.BuildingIndex> getBuildingsList() { return buildings_; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> getBuildingsOrBuilderList() { return buildings_; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public int getBuildingsCount() { return buildings_.size(); } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { return buildings_.get(index); } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ 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<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_ = ""; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>required string name = 1;</code> */ 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_ = ""; /** * <code>optional string name_en = 2;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string name_en = 2;</code> */ 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; } } /** * <code>optional string name_en = 2;</code> */ 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; } } /** * <code>optional string name_en = 2;</code> */ public Builder setNameEn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nameEn_ = value; onChanged(); return this; } /** * <code>optional string name_en = 2;</code> */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000002); nameEn_ = getDefaultInstance().getNameEn(); onChanged(); return this; } /** * <code>optional string name_en = 2;</code> */ 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_ ; /** * <code>required sint32 x = 3;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public boolean hasX() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 x = 3;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public int getX() { return x_; } /** * <code>required sint32 x = 3;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public Builder setX(int value) { bitField0_ |= 0x00000004; x_ = value; onChanged(); return this; } /** * <code>required sint32 x = 3;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000004); x_ = 0; onChanged(); return this; } // required sint32 y = 4; private int y_ ; /** * <code>required sint32 y = 4;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public boolean hasY() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required sint32 y = 4;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public int getY() { return y_; } /** * <code>required sint32 y = 4;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public Builder setY(int value) { bitField0_ |= 0x00000008; y_ = value; onChanged(); return this; } /** * <code>required sint32 y = 4;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000008); y_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.StreetIntersection intersections = 5; private java.util.List<net.osmand.binary.OsmandOdb.StreetIntersection> intersections_ = java.util.Collections.emptyList(); private void ensureIntersectionsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { intersections_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.StreetIntersection>(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_; /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.StreetIntersection> getIntersectionsList() { if (intersectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(intersections_); } else { return intersectionsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public int getIntersectionsCount() { if (intersectionsBuilder_ == null) { return intersections_.size(); } else { return intersectionsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public net.osmand.binary.OsmandOdb.StreetIntersection getIntersections(int index) { if (intersectionsBuilder_ == null) { return intersections_.get(index); } else { return intersectionsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public Builder addAllIntersections( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.StreetIntersection> values) { if (intersectionsBuilder_ == null) { ensureIntersectionsIsMutable(); super.addAll(values, intersections_); onChanged(); } else { intersectionsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public Builder clearIntersections() { if (intersectionsBuilder_ == null) { intersections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { intersectionsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public Builder removeIntersections(int index) { if (intersectionsBuilder_ == null) { ensureIntersectionsIsMutable(); intersections_.remove(index); onChanged(); } else { intersectionsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public net.osmand.binary.OsmandOdb.StreetIntersection.Builder getIntersectionsBuilder( int index) { return getIntersectionsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder getIntersectionsOrBuilder( int index) { if (intersectionsBuilder_ == null) { return intersections_.get(index); } else { return intersectionsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.StreetIntersectionOrBuilder> getIntersectionsOrBuilderList() { if (intersectionsBuilder_ != null) { return intersectionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(intersections_); } } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public net.osmand.binary.OsmandOdb.StreetIntersection.Builder addIntersectionsBuilder() { return getIntersectionsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.StreetIntersection.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public net.osmand.binary.OsmandOdb.StreetIntersection.Builder addIntersectionsBuilder( int index) { return getIntersectionsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.StreetIntersection.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.StreetIntersection intersections = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.StreetIntersection.Builder> 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_ ; /** * <code>optional uint64 id = 6;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional uint64 id = 6;</code> */ public long getId() { return id_; } /** * <code>optional uint64 id = 6;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000020; id_ = value; onChanged(); return this; } /** * <code>optional uint64 id = 6;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000020); id_ = 0L; onChanged(); return this; } // repeated uint32 attributeTagIds = 7; private java.util.List<java.lang.Integer> attributeTagIds_ = java.util.Collections.emptyList(); private void ensureAttributeTagIdsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { attributeTagIds_ = new java.util.ArrayList<java.lang.Integer>(attributeTagIds_); bitField0_ |= 0x00000040; } } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public java.util.List<java.lang.Integer> getAttributeTagIdsList() { return java.util.Collections.unmodifiableList(attributeTagIds_); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public Builder setAttributeTagIds( int index, int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public Builder addAttributeTagIds(int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.add(value); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public Builder addAllAttributeTagIds( java.lang.Iterable<? extends java.lang.Integer> values) { ensureAttributeTagIdsIsMutable(); super.addAll(values, attributeTagIds_); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ 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; } } /** * <code>repeated string attributeValues = 8;</code> */ public java.util.List<java.lang.String> getAttributeValuesList() { return java.util.Collections.unmodifiableList(attributeValues_); } /** * <code>repeated string attributeValues = 8;</code> */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * <code>repeated string attributeValues = 8;</code> */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * <code>repeated string attributeValues = 8;</code> */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } /** * <code>repeated string attributeValues = 8;</code> */ public Builder setAttributeValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.set(index, value); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ public Builder addAttributeValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ public Builder addAllAttributeValues( java.lang.Iterable<java.lang.String> values) { ensureAttributeValuesIsMutable(); super.addAll(values, attributeValues_); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ public Builder clearAttributeValues() { attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ 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<net.osmand.binary.OsmandOdb.BuildingIndex> buildings_ = java.util.Collections.emptyList(); private void ensureBuildingsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { buildings_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.BuildingIndex>(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_; /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.BuildingIndex> getBuildingsList() { if (buildingsBuilder_ == null) { return java.util.Collections.unmodifiableList(buildings_); } else { return buildingsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public int getBuildingsCount() { if (buildingsBuilder_ == null) { return buildings_.size(); } else { return buildingsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public net.osmand.binary.OsmandOdb.BuildingIndex getBuildings(int index) { if (buildingsBuilder_ == null) { return buildings_.get(index); } else { return buildingsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public Builder addAllBuildings( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.BuildingIndex> values) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); super.addAll(values, buildings_); onChanged(); } else { buildingsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public Builder clearBuildings() { if (buildingsBuilder_ == null) { buildings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { buildingsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public Builder removeBuildings(int index) { if (buildingsBuilder_ == null) { ensureBuildingsIsMutable(); buildings_.remove(index); onChanged(); } else { buildingsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder getBuildingsBuilder( int index) { return getBuildingsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder getBuildingsOrBuilder( int index) { if (buildingsBuilder_ == null) { return buildings_.get(index); } else { return buildingsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.BuildingIndexOrBuilder> getBuildingsOrBuilderList() { if (buildingsBuilder_ != null) { return buildingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(buildings_); } } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder() { return getBuildingsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public net.osmand.binary.OsmandOdb.BuildingIndex.Builder addBuildingsBuilder( int index) { return getBuildingsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.BuildingIndex.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.BuildingIndex buildings = 12;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.BuildingIndex.Builder> 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; /** * <code>required string name = 2;</code> */ boolean hasName(); /** * <code>required string name = 2;</code> */ java.lang.String getName(); /** * <code>required string name = 2;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional string name_en = 3; /** * <code>optional string name_en = 3;</code> */ boolean hasNameEn(); /** * <code>optional string name_en = 3;</code> */ java.lang.String getNameEn(); /** * <code>optional string name_en = 3;</code> */ com.google.protobuf.ByteString getNameEnBytes(); // required sint32 intersectedX = 4; /** * <code>required sint32 intersectedX = 4;</code> * * <pre> * delta encoded to parent street x 24 zoom * </pre> */ boolean hasIntersectedX(); /** * <code>required sint32 intersectedX = 4;</code> * * <pre> * delta encoded to parent street x 24 zoom * </pre> */ int getIntersectedX(); // required sint32 intersectedY = 5; /** * <code>required sint32 intersectedY = 5;</code> * * <pre> * delta encoded to parent street y 24 zoom * </pre> */ boolean hasIntersectedY(); /** * <code>required sint32 intersectedY = 5;</code> * * <pre> * delta encoded to parent street y 24 zoom * </pre> */ int getIntersectedY(); // repeated uint32 attributeTagIds = 7; /** * <code>repeated uint32 attributeTagIds = 7;</code> */ java.util.List<java.lang.Integer> getAttributeTagIdsList(); /** * <code>repeated uint32 attributeTagIds = 7;</code> */ int getAttributeTagIdsCount(); /** * <code>repeated uint32 attributeTagIds = 7;</code> */ int getAttributeTagIds(int index); // repeated string attributeValues = 8; /** * <code>repeated string attributeValues = 8;</code> */ java.util.List<java.lang.String> getAttributeValuesList(); /** * <code>repeated string attributeValues = 8;</code> */ int getAttributeValuesCount(); /** * <code>repeated string attributeValues = 8;</code> */ java.lang.String getAttributeValues(int index); /** * <code>repeated string attributeValues = 8;</code> */ 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<StreetIntersection> PARSER = new com.google.protobuf.AbstractParser<StreetIntersection>() { 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<StreetIntersection> getParserForType() { return PARSER; } private int bitField0_; // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** * <code>required string name = 2;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 2;</code> */ 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; } } /** * <code>required string name = 2;</code> */ 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_; /** * <code>optional string name_en = 3;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string name_en = 3;</code> */ 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; } } /** * <code>optional string name_en = 3;</code> */ 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_; /** * <code>required sint32 intersectedX = 4;</code> * * <pre> * delta encoded to parent street x 24 zoom * </pre> */ public boolean hasIntersectedX() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 intersectedX = 4;</code> * * <pre> * delta encoded to parent street x 24 zoom * </pre> */ public int getIntersectedX() { return intersectedX_; } // required sint32 intersectedY = 5; public static final int INTERSECTEDY_FIELD_NUMBER = 5; private int intersectedY_; /** * <code>required sint32 intersectedY = 5;</code> * * <pre> * delta encoded to parent street y 24 zoom * </pre> */ public boolean hasIntersectedY() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required sint32 intersectedY = 5;</code> * * <pre> * delta encoded to parent street y 24 zoom * </pre> */ public int getIntersectedY() { return intersectedY_; } // repeated uint32 attributeTagIds = 7; public static final int ATTRIBUTETAGIDS_FIELD_NUMBER = 7; private java.util.List<java.lang.Integer> attributeTagIds_; /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public java.util.List<java.lang.Integer> getAttributeTagIdsList() { return attributeTagIds_; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ 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_; /** * <code>repeated string attributeValues = 8;</code> */ public java.util.List<java.lang.String> getAttributeValuesList() { return attributeValues_; } /** * <code>repeated string attributeValues = 8;</code> */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * <code>repeated string attributeValues = 8;</code> */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * <code>repeated string attributeValues = 8;</code> */ 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<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_ = ""; /** * <code>required string name = 2;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 2;</code> */ 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; } } /** * <code>required string name = 2;</code> */ 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; } } /** * <code>required string name = 2;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>required string name = 2;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>required string name = 2;</code> */ 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_ = ""; /** * <code>optional string name_en = 3;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string name_en = 3;</code> */ 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; } } /** * <code>optional string name_en = 3;</code> */ 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; } } /** * <code>optional string name_en = 3;</code> */ public Builder setNameEn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nameEn_ = value; onChanged(); return this; } /** * <code>optional string name_en = 3;</code> */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000002); nameEn_ = getDefaultInstance().getNameEn(); onChanged(); return this; } /** * <code>optional string name_en = 3;</code> */ 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_ ; /** * <code>required sint32 intersectedX = 4;</code> * * <pre> * delta encoded to parent street x 24 zoom * </pre> */ public boolean hasIntersectedX() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 intersectedX = 4;</code> * * <pre> * delta encoded to parent street x 24 zoom * </pre> */ public int getIntersectedX() { return intersectedX_; } /** * <code>required sint32 intersectedX = 4;</code> * * <pre> * delta encoded to parent street x 24 zoom * </pre> */ public Builder setIntersectedX(int value) { bitField0_ |= 0x00000004; intersectedX_ = value; onChanged(); return this; } /** * <code>required sint32 intersectedX = 4;</code> * * <pre> * delta encoded to parent street x 24 zoom * </pre> */ public Builder clearIntersectedX() { bitField0_ = (bitField0_ & ~0x00000004); intersectedX_ = 0; onChanged(); return this; } // required sint32 intersectedY = 5; private int intersectedY_ ; /** * <code>required sint32 intersectedY = 5;</code> * * <pre> * delta encoded to parent street y 24 zoom * </pre> */ public boolean hasIntersectedY() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required sint32 intersectedY = 5;</code> * * <pre> * delta encoded to parent street y 24 zoom * </pre> */ public int getIntersectedY() { return intersectedY_; } /** * <code>required sint32 intersectedY = 5;</code> * * <pre> * delta encoded to parent street y 24 zoom * </pre> */ public Builder setIntersectedY(int value) { bitField0_ |= 0x00000008; intersectedY_ = value; onChanged(); return this; } /** * <code>required sint32 intersectedY = 5;</code> * * <pre> * delta encoded to parent street y 24 zoom * </pre> */ public Builder clearIntersectedY() { bitField0_ = (bitField0_ & ~0x00000008); intersectedY_ = 0; onChanged(); return this; } // repeated uint32 attributeTagIds = 7; private java.util.List<java.lang.Integer> attributeTagIds_ = java.util.Collections.emptyList(); private void ensureAttributeTagIdsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { attributeTagIds_ = new java.util.ArrayList<java.lang.Integer>(attributeTagIds_); bitField0_ |= 0x00000010; } } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public java.util.List<java.lang.Integer> getAttributeTagIdsList() { return java.util.Collections.unmodifiableList(attributeTagIds_); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public Builder setAttributeTagIds( int index, int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public Builder addAttributeTagIds(int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.add(value); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ public Builder addAllAttributeTagIds( java.lang.Iterable<? extends java.lang.Integer> values) { ensureAttributeTagIdsIsMutable(); super.addAll(values, attributeTagIds_); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 7;</code> */ 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; } } /** * <code>repeated string attributeValues = 8;</code> */ public java.util.List<java.lang.String> getAttributeValuesList() { return java.util.Collections.unmodifiableList(attributeValues_); } /** * <code>repeated string attributeValues = 8;</code> */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * <code>repeated string attributeValues = 8;</code> */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * <code>repeated string attributeValues = 8;</code> */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } /** * <code>repeated string attributeValues = 8;</code> */ public Builder setAttributeValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.set(index, value); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ public Builder addAttributeValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ public Builder addAllAttributeValues( java.lang.Iterable<java.lang.String> values) { ensureAttributeValuesIsMutable(); super.addAll(values, attributeValues_); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ public Builder clearAttributeValues() { attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * <code>repeated string attributeValues = 8;</code> */ 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; /** * <code>required string name = 1;</code> */ boolean hasName(); /** * <code>required string name = 1;</code> */ java.lang.String getName(); /** * <code>required string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional string name_en = 2; /** * <code>optional string name_en = 2;</code> */ boolean hasNameEn(); /** * <code>optional string name_en = 2;</code> */ java.lang.String getNameEn(); /** * <code>optional string name_en = 2;</code> */ com.google.protobuf.ByteString getNameEnBytes(); // optional string name2 = 3; /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ boolean hasName2(); /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ java.lang.String getName2(); /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ com.google.protobuf.ByteString getName2Bytes(); // optional string name_en2 = 4; /** * <code>optional string name_en2 = 4;</code> */ boolean hasNameEn2(); /** * <code>optional string name_en2 = 4;</code> */ java.lang.String getNameEn2(); /** * <code>optional string name_en2 = 4;</code> */ com.google.protobuf.ByteString getNameEn2Bytes(); // optional sint32 interpolation = 5; /** * <code>optional sint32 interpolation = 5;</code> * * <pre> * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic * positive - just positive interpolation * </pre> */ boolean hasInterpolation(); /** * <code>optional sint32 interpolation = 5;</code> * * <pre> * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic * positive - just positive interpolation * </pre> */ int getInterpolation(); // required sint32 x = 7; /** * <code>required sint32 x = 7;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ boolean hasX(); /** * <code>required sint32 x = 7;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ int getX(); // required sint32 y = 8; /** * <code>required sint32 y = 8;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ boolean hasY(); /** * <code>required sint32 y = 8;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ int getY(); // optional sint32 x2 = 9; /** * <code>optional sint32 x2 = 9;</code> * * <pre> * used for interpolation * </pre> */ boolean hasX2(); /** * <code>optional sint32 x2 = 9;</code> * * <pre> * used for interpolation * </pre> */ int getX2(); // optional sint32 y2 = 10; /** * <code>optional sint32 y2 = 10;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ boolean hasY2(); /** * <code>optional sint32 y2 = 10;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ int getY2(); // optional uint64 id = 13; /** * <code>optional uint64 id = 13;</code> */ boolean hasId(); /** * <code>optional uint64 id = 13;</code> */ long getId(); // optional string postcode = 14; /** * <code>optional string postcode = 14;</code> */ boolean hasPostcode(); /** * <code>optional string postcode = 14;</code> */ java.lang.String getPostcode(); /** * <code>optional string postcode = 14;</code> */ com.google.protobuf.ByteString getPostcodeBytes(); // repeated uint32 attributeTagIds = 15; /** * <code>repeated uint32 attributeTagIds = 15;</code> */ java.util.List<java.lang.Integer> getAttributeTagIdsList(); /** * <code>repeated uint32 attributeTagIds = 15;</code> */ int getAttributeTagIdsCount(); /** * <code>repeated uint32 attributeTagIds = 15;</code> */ int getAttributeTagIds(int index); // repeated string attributeValues = 16; /** * <code>repeated string attributeValues = 16;</code> */ java.util.List<java.lang.String> getAttributeValuesList(); /** * <code>repeated string attributeValues = 16;</code> */ int getAttributeValuesCount(); /** * <code>repeated string attributeValues = 16;</code> */ java.lang.String getAttributeValues(int index); /** * <code>repeated string attributeValues = 16;</code> */ com.google.protobuf.ByteString getAttributeValuesBytes(int index); // repeated uint32 attributeTagIds2 = 17; /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ java.util.List<java.lang.Integer> getAttributeTagIds2List(); /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ int getAttributeTagIds2Count(); /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ int getAttributeTagIds2(int index); // repeated string attributeValues2 = 18; /** * <code>repeated string attributeValues2 = 18;</code> */ java.util.List<java.lang.String> getAttributeValues2List(); /** * <code>repeated string attributeValues2 = 18;</code> */ int getAttributeValues2Count(); /** * <code>repeated string attributeValues2 = 18;</code> */ java.lang.String getAttributeValues2(int index); /** * <code>repeated string attributeValues2 = 18;</code> */ 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<BuildingIndex> PARSER = new com.google.protobuf.AbstractParser<BuildingIndex>() { 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<BuildingIndex> getParserForType() { return PARSER; } private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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_; /** * <code>optional string name_en = 2;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string name_en = 2;</code> */ 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; } } /** * <code>optional string name_en = 2;</code> */ 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_; /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ public boolean hasName2() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ 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; } } /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ 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_; /** * <code>optional string name_en2 = 4;</code> */ public boolean hasNameEn2() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string name_en2 = 4;</code> */ 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; } } /** * <code>optional string name_en2 = 4;</code> */ 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_; /** * <code>optional sint32 interpolation = 5;</code> * * <pre> * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic * positive - just positive interpolation * </pre> */ public boolean hasInterpolation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional sint32 interpolation = 5;</code> * * <pre> * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic * positive - just positive interpolation * </pre> */ public int getInterpolation() { return interpolation_; } // required sint32 x = 7; public static final int X_FIELD_NUMBER = 7; private int x_; /** * <code>required sint32 x = 7;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public boolean hasX() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>required sint32 x = 7;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public int getX() { return x_; } // required sint32 y = 8; public static final int Y_FIELD_NUMBER = 8; private int y_; /** * <code>required sint32 y = 8;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public boolean hasY() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>required sint32 y = 8;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public int getY() { return y_; } // optional sint32 x2 = 9; public static final int X2_FIELD_NUMBER = 9; private int x2_; /** * <code>optional sint32 x2 = 9;</code> * * <pre> * used for interpolation * </pre> */ public boolean hasX2() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional sint32 x2 = 9;</code> * * <pre> * used for interpolation * </pre> */ public int getX2() { return x2_; } // optional sint32 y2 = 10; public static final int Y2_FIELD_NUMBER = 10; private int y2_; /** * <code>optional sint32 y2 = 10;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public boolean hasY2() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional sint32 y2 = 10;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public int getY2() { return y2_; } // optional uint64 id = 13; public static final int ID_FIELD_NUMBER = 13; private long id_; /** * <code>optional uint64 id = 13;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional uint64 id = 13;</code> */ public long getId() { return id_; } // optional string postcode = 14; public static final int POSTCODE_FIELD_NUMBER = 14; private java.lang.Object postcode_; /** * <code>optional string postcode = 14;</code> */ public boolean hasPostcode() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional string postcode = 14;</code> */ 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; } } /** * <code>optional string postcode = 14;</code> */ 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<java.lang.Integer> attributeTagIds_; /** * <code>repeated uint32 attributeTagIds = 15;</code> */ public java.util.List<java.lang.Integer> getAttributeTagIdsList() { return attributeTagIds_; } /** * <code>repeated uint32 attributeTagIds = 15;</code> */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * <code>repeated uint32 attributeTagIds = 15;</code> */ 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_; /** * <code>repeated string attributeValues = 16;</code> */ public java.util.List<java.lang.String> getAttributeValuesList() { return attributeValues_; } /** * <code>repeated string attributeValues = 16;</code> */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * <code>repeated string attributeValues = 16;</code> */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * <code>repeated string attributeValues = 16;</code> */ 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<java.lang.Integer> attributeTagIds2_; /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ public java.util.List<java.lang.Integer> getAttributeTagIds2List() { return attributeTagIds2_; } /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ public int getAttributeTagIds2Count() { return attributeTagIds2_.size(); } /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ 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_; /** * <code>repeated string attributeValues2 = 18;</code> */ public java.util.List<java.lang.String> getAttributeValues2List() { return attributeValues2_; } /** * <code>repeated string attributeValues2 = 18;</code> */ public int getAttributeValues2Count() { return attributeValues2_.size(); } /** * <code>repeated string attributeValues2 = 18;</code> */ public java.lang.String getAttributeValues2(int index) { return attributeValues2_.get(index); } /** * <code>repeated string attributeValues2 = 18;</code> */ 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<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_ = ""; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>required string name = 1;</code> */ 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_ = ""; /** * <code>optional string name_en = 2;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string name_en = 2;</code> */ 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; } } /** * <code>optional string name_en = 2;</code> */ 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; } } /** * <code>optional string name_en = 2;</code> */ public Builder setNameEn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; nameEn_ = value; onChanged(); return this; } /** * <code>optional string name_en = 2;</code> */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000002); nameEn_ = getDefaultInstance().getNameEn(); onChanged(); return this; } /** * <code>optional string name_en = 2;</code> */ 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_ = ""; /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ public boolean hasName2() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ 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; } } /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ 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; } } /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ public Builder setName2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name2_ = value; onChanged(); return this; } /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ public Builder clearName2() { bitField0_ = (bitField0_ & ~0x00000004); name2_ = getDefaultInstance().getName2(); onChanged(); return this; } /** * <code>optional string name2 = 3;</code> * * <pre> * used for interpolation * </pre> */ 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_ = ""; /** * <code>optional string name_en2 = 4;</code> */ public boolean hasNameEn2() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string name_en2 = 4;</code> */ 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; } } /** * <code>optional string name_en2 = 4;</code> */ 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; } } /** * <code>optional string name_en2 = 4;</code> */ public Builder setNameEn2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; nameEn2_ = value; onChanged(); return this; } /** * <code>optional string name_en2 = 4;</code> */ public Builder clearNameEn2() { bitField0_ = (bitField0_ & ~0x00000008); nameEn2_ = getDefaultInstance().getNameEn2(); onChanged(); return this; } /** * <code>optional string name_en2 = 4;</code> */ 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_ ; /** * <code>optional sint32 interpolation = 5;</code> * * <pre> * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic * positive - just positive interpolation * </pre> */ public boolean hasInterpolation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional sint32 interpolation = 5;</code> * * <pre> * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic * positive - just positive interpolation * </pre> */ public int getInterpolation() { return interpolation_; } /** * <code>optional sint32 interpolation = 5;</code> * * <pre> * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic * positive - just positive interpolation * </pre> */ public Builder setInterpolation(int value) { bitField0_ |= 0x00000010; interpolation_ = value; onChanged(); return this; } /** * <code>optional sint32 interpolation = 5;</code> * * <pre> * special values 0 means - nothing, -1 - all, -2 - even, -3 - odd, -4, alphabetic * positive - just positive interpolation * </pre> */ public Builder clearInterpolation() { bitField0_ = (bitField0_ & ~0x00000010); interpolation_ = 0; onChanged(); return this; } // required sint32 x = 7; private int x_ ; /** * <code>required sint32 x = 7;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public boolean hasX() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>required sint32 x = 7;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public int getX() { return x_; } /** * <code>required sint32 x = 7;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public Builder setX(int value) { bitField0_ |= 0x00000020; x_ = value; onChanged(); return this; } /** * <code>required sint32 x = 7;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000020); x_ = 0; onChanged(); return this; } // required sint32 y = 8; private int y_ ; /** * <code>required sint32 y = 8;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public boolean hasY() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>required sint32 y = 8;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public int getY() { return y_; } /** * <code>required sint32 y = 8;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public Builder setY(int value) { bitField0_ |= 0x00000040; y_ = value; onChanged(); return this; } /** * <code>required sint32 y = 8;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000040); y_ = 0; onChanged(); return this; } // optional sint32 x2 = 9; private int x2_ ; /** * <code>optional sint32 x2 = 9;</code> * * <pre> * used for interpolation * </pre> */ public boolean hasX2() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional sint32 x2 = 9;</code> * * <pre> * used for interpolation * </pre> */ public int getX2() { return x2_; } /** * <code>optional sint32 x2 = 9;</code> * * <pre> * used for interpolation * </pre> */ public Builder setX2(int value) { bitField0_ |= 0x00000080; x2_ = value; onChanged(); return this; } /** * <code>optional sint32 x2 = 9;</code> * * <pre> * used for interpolation * </pre> */ public Builder clearX2() { bitField0_ = (bitField0_ & ~0x00000080); x2_ = 0; onChanged(); return this; } // optional sint32 y2 = 10; private int y2_ ; /** * <code>optional sint32 y2 = 10;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public boolean hasY2() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional sint32 y2 = 10;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public int getY2() { return y2_; } /** * <code>optional sint32 y2 = 10;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public Builder setY2(int value) { bitField0_ |= 0x00000100; y2_ = value; onChanged(); return this; } /** * <code>optional sint32 y2 = 10;</code> * * <pre> * delta encoded to parent 24 zoom * </pre> */ public Builder clearY2() { bitField0_ = (bitField0_ & ~0x00000100); y2_ = 0; onChanged(); return this; } // optional uint64 id = 13; private long id_ ; /** * <code>optional uint64 id = 13;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional uint64 id = 13;</code> */ public long getId() { return id_; } /** * <code>optional uint64 id = 13;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000200; id_ = value; onChanged(); return this; } /** * <code>optional uint64 id = 13;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000200); id_ = 0L; onChanged(); return this; } // optional string postcode = 14; private java.lang.Object postcode_ = ""; /** * <code>optional string postcode = 14;</code> */ public boolean hasPostcode() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional string postcode = 14;</code> */ 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; } } /** * <code>optional string postcode = 14;</code> */ 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; } } /** * <code>optional string postcode = 14;</code> */ public Builder setPostcode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; postcode_ = value; onChanged(); return this; } /** * <code>optional string postcode = 14;</code> */ public Builder clearPostcode() { bitField0_ = (bitField0_ & ~0x00000400); postcode_ = getDefaultInstance().getPostcode(); onChanged(); return this; } /** * <code>optional string postcode = 14;</code> */ 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<java.lang.Integer> attributeTagIds_ = java.util.Collections.emptyList(); private void ensureAttributeTagIdsIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { attributeTagIds_ = new java.util.ArrayList<java.lang.Integer>(attributeTagIds_); bitField0_ |= 0x00000800; } } /** * <code>repeated uint32 attributeTagIds = 15;</code> */ public java.util.List<java.lang.Integer> getAttributeTagIdsList() { return java.util.Collections.unmodifiableList(attributeTagIds_); } /** * <code>repeated uint32 attributeTagIds = 15;</code> */ public int getAttributeTagIdsCount() { return attributeTagIds_.size(); } /** * <code>repeated uint32 attributeTagIds = 15;</code> */ public int getAttributeTagIds(int index) { return attributeTagIds_.get(index); } /** * <code>repeated uint32 attributeTagIds = 15;</code> */ public Builder setAttributeTagIds( int index, int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 15;</code> */ public Builder addAttributeTagIds(int value) { ensureAttributeTagIdsIsMutable(); attributeTagIds_.add(value); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 15;</code> */ public Builder addAllAttributeTagIds( java.lang.Iterable<? extends java.lang.Integer> values) { ensureAttributeTagIdsIsMutable(); super.addAll(values, attributeTagIds_); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds = 15;</code> */ 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; } } /** * <code>repeated string attributeValues = 16;</code> */ public java.util.List<java.lang.String> getAttributeValuesList() { return java.util.Collections.unmodifiableList(attributeValues_); } /** * <code>repeated string attributeValues = 16;</code> */ public int getAttributeValuesCount() { return attributeValues_.size(); } /** * <code>repeated string attributeValues = 16;</code> */ public java.lang.String getAttributeValues(int index) { return attributeValues_.get(index); } /** * <code>repeated string attributeValues = 16;</code> */ public com.google.protobuf.ByteString getAttributeValuesBytes(int index) { return attributeValues_.getByteString(index); } /** * <code>repeated string attributeValues = 16;</code> */ public Builder setAttributeValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.set(index, value); onChanged(); return this; } /** * <code>repeated string attributeValues = 16;</code> */ public Builder addAttributeValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValuesIsMutable(); attributeValues_.add(value); onChanged(); return this; } /** * <code>repeated string attributeValues = 16;</code> */ public Builder addAllAttributeValues( java.lang.Iterable<java.lang.String> values) { ensureAttributeValuesIsMutable(); super.addAll(values, attributeValues_); onChanged(); return this; } /** * <code>repeated string attributeValues = 16;</code> */ public Builder clearAttributeValues() { attributeValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * <code>repeated string attributeValues = 16;</code> */ 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<java.lang.Integer> attributeTagIds2_ = java.util.Collections.emptyList(); private void ensureAttributeTagIds2IsMutable() { if (!((bitField0_ & 0x00002000) == 0x00002000)) { attributeTagIds2_ = new java.util.ArrayList<java.lang.Integer>(attributeTagIds2_); bitField0_ |= 0x00002000; } } /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ public java.util.List<java.lang.Integer> getAttributeTagIds2List() { return java.util.Collections.unmodifiableList(attributeTagIds2_); } /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ public int getAttributeTagIds2Count() { return attributeTagIds2_.size(); } /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ public int getAttributeTagIds2(int index) { return attributeTagIds2_.get(index); } /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ public Builder setAttributeTagIds2( int index, int value) { ensureAttributeTagIds2IsMutable(); attributeTagIds2_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ public Builder addAttributeTagIds2(int value) { ensureAttributeTagIds2IsMutable(); attributeTagIds2_.add(value); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ public Builder addAllAttributeTagIds2( java.lang.Iterable<? extends java.lang.Integer> values) { ensureAttributeTagIds2IsMutable(); super.addAll(values, attributeTagIds2_); onChanged(); return this; } /** * <code>repeated uint32 attributeTagIds2 = 17;</code> */ 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; } } /** * <code>repeated string attributeValues2 = 18;</code> */ public java.util.List<java.lang.String> getAttributeValues2List() { return java.util.Collections.unmodifiableList(attributeValues2_); } /** * <code>repeated string attributeValues2 = 18;</code> */ public int getAttributeValues2Count() { return attributeValues2_.size(); } /** * <code>repeated string attributeValues2 = 18;</code> */ public java.lang.String getAttributeValues2(int index) { return attributeValues2_.get(index); } /** * <code>repeated string attributeValues2 = 18;</code> */ public com.google.protobuf.ByteString getAttributeValues2Bytes(int index) { return attributeValues2_.getByteString(index); } /** * <code>repeated string attributeValues2 = 18;</code> */ public Builder setAttributeValues2( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValues2IsMutable(); attributeValues2_.set(index, value); onChanged(); return this; } /** * <code>repeated string attributeValues2 = 18;</code> */ public Builder addAttributeValues2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeValues2IsMutable(); attributeValues2_.add(value); onChanged(); return this; } /** * <code>repeated string attributeValues2 = 18;</code> */ public Builder addAllAttributeValues2( java.lang.Iterable<java.lang.String> values) { ensureAttributeValues2IsMutable(); super.addAll(values, attributeValues2_); onChanged(); return this; } /** * <code>repeated string attributeValues2 = 18;</code> */ public Builder clearAttributeValues2() { attributeValues2_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** * <code>repeated string attributeValues2 = 18;</code> */ 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; /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ java.util.List<net.osmand.binary.OsmandOdb.TransportRoute> getRoutesList(); /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ net.osmand.binary.OsmandOdb.TransportRoute getRoutes(int index); /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ int getRoutesCount(); /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.TransportRouteOrBuilder> getRoutesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ 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<net.osmand.binary.OsmandOdb.TransportRoute>(); 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<TransportRoutes> PARSER = new com.google.protobuf.AbstractParser<TransportRoutes>() { 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<TransportRoutes> getParserForType() { return PARSER; } // repeated .OsmAnd.OBF.TransportRoute routes = 6; public static final int ROUTES_FIELD_NUMBER = 6; private java.util.List<net.osmand.binary.OsmandOdb.TransportRoute> routes_; /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportRoute> getRoutesList() { return routes_; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.TransportRouteOrBuilder> getRoutesOrBuilderList() { return routes_; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public int getRoutesCount() { return routes_.size(); } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public net.osmand.binary.OsmandOdb.TransportRoute getRoutes(int index) { return routes_.get(index); } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ 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<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<net.osmand.binary.OsmandOdb.TransportRoute> routes_ = java.util.Collections.emptyList(); private void ensureRoutesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { routes_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.TransportRoute>(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_; /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportRoute> getRoutesList() { if (routesBuilder_ == null) { return java.util.Collections.unmodifiableList(routes_); } else { return routesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public int getRoutesCount() { if (routesBuilder_ == null) { return routes_.size(); } else { return routesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public net.osmand.binary.OsmandOdb.TransportRoute getRoutes(int index) { if (routesBuilder_ == null) { return routes_.get(index); } else { return routesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public Builder addAllRoutes( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.TransportRoute> values) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); super.addAll(values, routes_); onChanged(); } else { routesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public Builder clearRoutes() { if (routesBuilder_ == null) { routes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { routesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public Builder removeRoutes(int index) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.remove(index); onChanged(); } else { routesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public net.osmand.binary.OsmandOdb.TransportRoute.Builder getRoutesBuilder( int index) { return getRoutesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public net.osmand.binary.OsmandOdb.TransportRouteOrBuilder getRoutesOrBuilder( int index) { if (routesBuilder_ == null) { return routes_.get(index); } else { return routesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.TransportRouteOrBuilder> getRoutesOrBuilderList() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(routes_); } } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public net.osmand.binary.OsmandOdb.TransportRoute.Builder addRoutesBuilder() { return getRoutesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportRoute.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public net.osmand.binary.OsmandOdb.TransportRoute.Builder addRoutesBuilder( int index) { return getRoutesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportRoute.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.TransportRoute routes = 6;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportRoute.Builder> 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; /** * <code>required uint64 id = 1;</code> */ boolean hasId(); /** * <code>required uint64 id = 1;</code> */ long getId(); // optional uint32 type = 3; /** * <code>optional uint32 type = 3;</code> * * <pre> * reference in string table * </pre> */ boolean hasType(); /** * <code>optional uint32 type = 3;</code> * * <pre> * reference in string table * </pre> */ int getType(); // optional uint32 operator = 4; /** * <code>optional uint32 operator = 4;</code> * * <pre> * reference in string table * </pre> */ boolean hasOperator(); /** * <code>optional uint32 operator = 4;</code> * * <pre> * reference in string table * </pre> */ int getOperator(); // optional string ref = 5; /** * <code>optional string ref = 5;</code> */ boolean hasRef(); /** * <code>optional string ref = 5;</code> */ java.lang.String getRef(); /** * <code>optional string ref = 5;</code> */ com.google.protobuf.ByteString getRefBytes(); // optional uint32 name = 6; /** * <code>optional uint32 name = 6;</code> * * <pre> * reference in string table * </pre> */ boolean hasName(); /** * <code>optional uint32 name = 6;</code> * * <pre> * reference in string table * </pre> */ int getName(); // optional uint32 name_en = 7; /** * <code>optional uint32 name_en = 7;</code> * * <pre> * reference in string table * </pre> */ boolean hasNameEn(); /** * <code>optional uint32 name_en = 7;</code> * * <pre> * reference in string table * </pre> */ int getNameEn(); // optional uint32 distance = 8; /** * <code>optional uint32 distance = 8;</code> * * <pre> * distance in meters * </pre> */ boolean hasDistance(); /** * <code>optional uint32 distance = 8;</code> * * <pre> * distance in meters * </pre> */ int getDistance(); // repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop> getDirectStopsList(); /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ net.osmand.binary.OsmandOdb.TransportRouteStop getDirectStops(int index); /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ int getDirectStopsCount(); /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> getDirectStopsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getDirectStopsOrBuilder( int index); // repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop> getReverseStopsList(); /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ net.osmand.binary.OsmandOdb.TransportRouteStop getReverseStops(int index); /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ int getReverseStopsCount(); /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> getReverseStopsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getReverseStopsOrBuilder( int index); // optional bytes geometry = 17; /** * <code>optional bytes geometry = 17;</code> * * <pre> * 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) * </pre> */ boolean hasGeometry(); /** * <code>optional bytes geometry = 17;</code> * * <pre> * 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) * </pre> */ com.google.protobuf.ByteString getGeometry(); } /** * 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 122: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { directStops_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.TransportRouteStop>(); mutable_bitField0_ |= 0x00000080; } directStops_.add(input.readMessage(net.osmand.binary.OsmandOdb.TransportRouteStop.PARSER, extensionRegistry)); break; } case 130: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { reverseStops_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.TransportRouteStop>(); mutable_bitField0_ |= 0x00000100; } reverseStops_.add(input.readMessage(net.osmand.binary.OsmandOdb.TransportRouteStop.PARSER, extensionRegistry)); break; } case 138: { bitField0_ |= 0x00000080; geometry_ = 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_ & 0x00000080) == 0x00000080)) { directStops_ = java.util.Collections.unmodifiableList(directStops_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { reverseStops_ = java.util.Collections.unmodifiableList(reverseStops_); } 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<TransportRoute> PARSER = new com.google.protobuf.AbstractParser<TransportRoute>() { 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<TransportRoute> getParserForType() { return PARSER; } private int bitField0_; // required uint64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>required uint64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required uint64 id = 1;</code> */ public long getId() { return id_; } // optional uint32 type = 3; public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** * <code>optional uint32 type = 3;</code> * * <pre> * reference in string table * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 type = 3;</code> * * <pre> * reference in string table * </pre> */ public int getType() { return type_; } // optional uint32 operator = 4; public static final int OPERATOR_FIELD_NUMBER = 4; private int operator_; /** * <code>optional uint32 operator = 4;</code> * * <pre> * reference in string table * </pre> */ public boolean hasOperator() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 operator = 4;</code> * * <pre> * reference in string table * </pre> */ public int getOperator() { return operator_; } // optional string ref = 5; public static final int REF_FIELD_NUMBER = 5; private java.lang.Object ref_; /** * <code>optional string ref = 5;</code> */ public boolean hasRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string ref = 5;</code> */ 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; } } /** * <code>optional string ref = 5;</code> */ 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_; /** * <code>optional uint32 name = 6;</code> * * <pre> * reference in string table * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 name = 6;</code> * * <pre> * reference in string table * </pre> */ public int getName() { return name_; } // optional uint32 name_en = 7; public static final int NAME_EN_FIELD_NUMBER = 7; private int nameEn_; /** * <code>optional uint32 name_en = 7;</code> * * <pre> * reference in string table * </pre> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * reference in string table * </pre> */ public int getNameEn() { return nameEn_; } // optional uint32 distance = 8; public static final int DISTANCE_FIELD_NUMBER = 8; private int distance_; /** * <code>optional uint32 distance = 8;</code> * * <pre> * distance in meters * </pre> */ public boolean hasDistance() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional uint32 distance = 8;</code> * * <pre> * distance in meters * </pre> */ public int getDistance() { return distance_; } // repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; public static final int DIRECTSTOPS_FIELD_NUMBER = 15; private java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop> directStops_; /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop> getDirectStopsList() { return directStops_; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> getDirectStopsOrBuilderList() { return directStops_; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public int getDirectStopsCount() { return directStops_.size(); } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public net.osmand.binary.OsmandOdb.TransportRouteStop getDirectStops(int index) { return directStops_.get(index); } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ 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<net.osmand.binary.OsmandOdb.TransportRouteStop> reverseStops_; /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop> getReverseStopsList() { return reverseStops_; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> getReverseStopsOrBuilderList() { return reverseStops_; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public int getReverseStopsCount() { return reverseStops_.size(); } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public net.osmand.binary.OsmandOdb.TransportRouteStop getReverseStops(int index) { return reverseStops_.get(index); } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ 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_; /** * <code>optional bytes geometry = 17;</code> * * <pre> * 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) * </pre> */ public boolean hasGeometry() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional bytes geometry = 17;</code> * * <pre> * 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) * </pre> */ public com.google.protobuf.ByteString getGeometry() { return geometry_; } private void initFields() { id_ = 0L; type_ = 0; operator_ = 0; ref_ = ""; name_ = 0; nameEn_ = 0; distance_ = 0; directStops_ = java.util.Collections.emptyList(); reverseStops_ = java.util.Collections.emptyList(); geometry_ = com.google.protobuf.ByteString.EMPTY; } 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_); } 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_ & 0x00000080) == 0x00000080)) { output.writeBytes(17, geometry_); } 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_); } 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_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(17, geometry_); } 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<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(); } } 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); if (directStopsBuilder_ == null) { directStops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { directStopsBuilder_.clear(); } if (reverseStopsBuilder_ == null) { reverseStops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { reverseStopsBuilder_.clear(); } geometry_ = com.google.protobuf.ByteString.EMPTY; 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_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 (directStopsBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { directStops_ = java.util.Collections.unmodifiableList(directStops_); bitField0_ = (bitField0_ & ~0x00000080); } result.directStops_ = directStops_; } else { result.directStops_ = directStopsBuilder_.build(); } if (reverseStopsBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { reverseStops_ = java.util.Collections.unmodifiableList(reverseStops_); bitField0_ = (bitField0_ & ~0x00000100); } result.reverseStops_ = reverseStops_; } else { result.reverseStops_ = reverseStopsBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000080; } result.geometry_ = geometry_; 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 (directStopsBuilder_ == null) { if (!other.directStops_.isEmpty()) { if (directStops_.isEmpty()) { directStops_ = other.directStops_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureDirectStopsIsMutable(); directStops_.addAll(other.directStops_); } onChanged(); } } else { if (!other.directStops_.isEmpty()) { if (directStopsBuilder_.isEmpty()) { directStopsBuilder_.dispose(); directStopsBuilder_ = null; directStops_ = other.directStops_; bitField0_ = (bitField0_ & ~0x00000080); directStopsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDirectStopsFieldBuilder() : null; } else { directStopsBuilder_.addAllMessages(other.directStops_); } } } if (reverseStopsBuilder_ == null) { if (!other.reverseStops_.isEmpty()) { if (reverseStops_.isEmpty()) { reverseStops_ = other.reverseStops_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureReverseStopsIsMutable(); reverseStops_.addAll(other.reverseStops_); } onChanged(); } } else { if (!other.reverseStops_.isEmpty()) { if (reverseStopsBuilder_.isEmpty()) { reverseStopsBuilder_.dispose(); reverseStopsBuilder_ = null; reverseStops_ = other.reverseStops_; bitField0_ = (bitField0_ & ~0x00000100); reverseStopsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getReverseStopsFieldBuilder() : null; } else { reverseStopsBuilder_.addAllMessages(other.reverseStops_); } } } if (other.hasGeometry()) { setGeometry(other.getGeometry()); } 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_ ; /** * <code>required uint64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required uint64 id = 1;</code> */ public long getId() { return id_; } /** * <code>required uint64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>required uint64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional uint32 type = 3; private int type_ ; /** * <code>optional uint32 type = 3;</code> * * <pre> * reference in string table * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 type = 3;</code> * * <pre> * reference in string table * </pre> */ public int getType() { return type_; } /** * <code>optional uint32 type = 3;</code> * * <pre> * reference in string table * </pre> */ public Builder setType(int value) { bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * <code>optional uint32 type = 3;</code> * * <pre> * reference in string table * </pre> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } // optional uint32 operator = 4; private int operator_ ; /** * <code>optional uint32 operator = 4;</code> * * <pre> * reference in string table * </pre> */ public boolean hasOperator() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 operator = 4;</code> * * <pre> * reference in string table * </pre> */ public int getOperator() { return operator_; } /** * <code>optional uint32 operator = 4;</code> * * <pre> * reference in string table * </pre> */ public Builder setOperator(int value) { bitField0_ |= 0x00000004; operator_ = value; onChanged(); return this; } /** * <code>optional uint32 operator = 4;</code> * * <pre> * reference in string table * </pre> */ public Builder clearOperator() { bitField0_ = (bitField0_ & ~0x00000004); operator_ = 0; onChanged(); return this; } // optional string ref = 5; private java.lang.Object ref_ = ""; /** * <code>optional string ref = 5;</code> */ public boolean hasRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string ref = 5;</code> */ 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; } } /** * <code>optional string ref = 5;</code> */ 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; } } /** * <code>optional string ref = 5;</code> */ public Builder setRef( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; ref_ = value; onChanged(); return this; } /** * <code>optional string ref = 5;</code> */ public Builder clearRef() { bitField0_ = (bitField0_ & ~0x00000008); ref_ = getDefaultInstance().getRef(); onChanged(); return this; } /** * <code>optional string ref = 5;</code> */ 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_ ; /** * <code>optional uint32 name = 6;</code> * * <pre> * reference in string table * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 name = 6;</code> * * <pre> * reference in string table * </pre> */ public int getName() { return name_; } /** * <code>optional uint32 name = 6;</code> * * <pre> * reference in string table * </pre> */ public Builder setName(int value) { bitField0_ |= 0x00000010; name_ = value; onChanged(); return this; } /** * <code>optional uint32 name = 6;</code> * * <pre> * reference in string table * </pre> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000010); name_ = 0; onChanged(); return this; } // optional uint32 name_en = 7; private int nameEn_ ; /** * <code>optional uint32 name_en = 7;</code> * * <pre> * reference in string table * </pre> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * reference in string table * </pre> */ public int getNameEn() { return nameEn_; } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * reference in string table * </pre> */ public Builder setNameEn(int value) { bitField0_ |= 0x00000020; nameEn_ = value; onChanged(); return this; } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * reference in string table * </pre> */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000020); nameEn_ = 0; onChanged(); return this; } // optional uint32 distance = 8; private int distance_ ; /** * <code>optional uint32 distance = 8;</code> * * <pre> * distance in meters * </pre> */ public boolean hasDistance() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional uint32 distance = 8;</code> * * <pre> * distance in meters * </pre> */ public int getDistance() { return distance_; } /** * <code>optional uint32 distance = 8;</code> * * <pre> * distance in meters * </pre> */ public Builder setDistance(int value) { bitField0_ |= 0x00000040; distance_ = value; onChanged(); return this; } /** * <code>optional uint32 distance = 8;</code> * * <pre> * distance in meters * </pre> */ public Builder clearDistance() { bitField0_ = (bitField0_ & ~0x00000040); distance_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.TransportRouteStop directStops = 15; private java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop> directStops_ = java.util.Collections.emptyList(); private void ensureDirectStopsIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { directStops_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.TransportRouteStop>(directStops_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> directStopsBuilder_; /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop> getDirectStopsList() { if (directStopsBuilder_ == null) { return java.util.Collections.unmodifiableList(directStops_); } else { return directStopsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public int getDirectStopsCount() { if (directStopsBuilder_ == null) { return directStops_.size(); } else { return directStopsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public net.osmand.binary.OsmandOdb.TransportRouteStop getDirectStops(int index) { if (directStopsBuilder_ == null) { return directStops_.get(index); } else { return directStopsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public Builder addAllDirectStops( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.TransportRouteStop> values) { if (directStopsBuilder_ == null) { ensureDirectStopsIsMutable(); super.addAll(values, directStops_); onChanged(); } else { directStopsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public Builder clearDirectStops() { if (directStopsBuilder_ == null) { directStops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { directStopsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public Builder removeDirectStops(int index) { if (directStopsBuilder_ == null) { ensureDirectStopsIsMutable(); directStops_.remove(index); onChanged(); } else { directStopsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder getDirectStopsBuilder( int index) { return getDirectStopsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getDirectStopsOrBuilder( int index) { if (directStopsBuilder_ == null) { return directStops_.get(index); } else { return directStopsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> getDirectStopsOrBuilderList() { if (directStopsBuilder_ != null) { return directStopsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(directStops_); } } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addDirectStopsBuilder() { return getDirectStopsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addDirectStopsBuilder( int index) { return getDirectStopsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop directStops = 15;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop.Builder> getDirectStopsBuilderList() { return getDirectStopsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> getDirectStopsFieldBuilder() { if (directStopsBuilder_ == null) { directStopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder>( directStops_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); directStops_ = null; } return directStopsBuilder_; } // repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16; private java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop> reverseStops_ = java.util.Collections.emptyList(); private void ensureReverseStopsIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { reverseStops_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.TransportRouteStop>(reverseStops_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> reverseStopsBuilder_; /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop> getReverseStopsList() { if (reverseStopsBuilder_ == null) { return java.util.Collections.unmodifiableList(reverseStops_); } else { return reverseStopsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public int getReverseStopsCount() { if (reverseStopsBuilder_ == null) { return reverseStops_.size(); } else { return reverseStopsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public net.osmand.binary.OsmandOdb.TransportRouteStop getReverseStops(int index) { if (reverseStopsBuilder_ == null) { return reverseStops_.get(index); } else { return reverseStopsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public Builder addAllReverseStops( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.TransportRouteStop> values) { if (reverseStopsBuilder_ == null) { ensureReverseStopsIsMutable(); super.addAll(values, reverseStops_); onChanged(); } else { reverseStopsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public Builder clearReverseStops() { if (reverseStopsBuilder_ == null) { reverseStops_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { reverseStopsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public Builder removeReverseStops(int index) { if (reverseStopsBuilder_ == null) { ensureReverseStopsIsMutable(); reverseStops_.remove(index); onChanged(); } else { reverseStopsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder getReverseStopsBuilder( int index) { return getReverseStopsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder getReverseStopsOrBuilder( int index) { if (reverseStopsBuilder_ == null) { return reverseStops_.get(index); } else { return reverseStopsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> getReverseStopsOrBuilderList() { if (reverseStopsBuilder_ != null) { return reverseStopsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(reverseStops_); } } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addReverseStopsBuilder() { return getReverseStopsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public net.osmand.binary.OsmandOdb.TransportRouteStop.Builder addReverseStopsBuilder( int index) { return getReverseStopsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportRouteStop.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.TransportRouteStop reverseStops = 16;</code> * * <pre> * deprecated (not used any more) * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportRouteStop.Builder> getReverseStopsBuilderList() { return getReverseStopsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder> getReverseStopsFieldBuilder() { if (reverseStopsBuilder_ == null) { reverseStopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< net.osmand.binary.OsmandOdb.TransportRouteStop, net.osmand.binary.OsmandOdb.TransportRouteStop.Builder, net.osmand.binary.OsmandOdb.TransportRouteStopOrBuilder>( reverseStops_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); reverseStops_ = null; } return reverseStopsBuilder_; } // optional bytes geometry = 17; private com.google.protobuf.ByteString geometry_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes geometry = 17;</code> * * <pre> * 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) * </pre> */ public boolean hasGeometry() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional bytes geometry = 17;</code> * * <pre> * 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) * </pre> */ public com.google.protobuf.ByteString getGeometry() { return geometry_; } /** * <code>optional bytes geometry = 17;</code> * * <pre> * 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) * </pre> */ public Builder setGeometry(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; geometry_ = value; onChanged(); return this; } /** * <code>optional bytes geometry = 17;</code> * * <pre> * 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) * </pre> */ public Builder clearGeometry() { bitField0_ = (bitField0_ & ~0x00000200); geometry_ = getDefaultInstance().getGeometry(); onChanged(); return this; } // @@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 TransportRouteStopOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint64 id = 1; /** * <code>required sint64 id = 1;</code> * * <pre> * delta encoded to previous stop (first stop is delta to 0) * </pre> */ boolean hasId(); /** * <code>required sint64 id = 1;</code> * * <pre> * delta encoded to previous stop (first stop is delta to 0) * </pre> */ long getId(); // required sint32 dx = 2; /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ boolean hasDx(); /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ int getDx(); // required sint32 dy = 3; /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ boolean hasDy(); /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ int getDy(); // required uint32 name = 6; /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ boolean hasName(); /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ int getName(); // optional uint32 name_en = 7; /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ boolean hasNameEn(); /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ 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<TransportRouteStop> PARSER = new com.google.protobuf.AbstractParser<TransportRouteStop>() { 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<TransportRouteStop> getParserForType() { return PARSER; } private int bitField0_; // required sint64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>required sint64 id = 1;</code> * * <pre> * delta encoded to previous stop (first stop is delta to 0) * </pre> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint64 id = 1;</code> * * <pre> * delta encoded to previous stop (first stop is delta to 0) * </pre> */ public long getId() { return id_; } // required sint32 dx = 2; public static final int DX_FIELD_NUMBER = 2; private int dx_; /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public boolean hasDx() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public int getDx() { return dx_; } // required sint32 dy = 3; public static final int DY_FIELD_NUMBER = 3; private int dy_; /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public boolean hasDy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public int getDy() { return dy_; } // required uint32 name = 6; public static final int NAME_FIELD_NUMBER = 6; private int name_; /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public int getName() { return name_; } // optional uint32 name_en = 7; public static final int NAME_EN_FIELD_NUMBER = 7; private int nameEn_; /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ 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<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_ ; /** * <code>required sint64 id = 1;</code> * * <pre> * delta encoded to previous stop (first stop is delta to 0) * </pre> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint64 id = 1;</code> * * <pre> * delta encoded to previous stop (first stop is delta to 0) * </pre> */ public long getId() { return id_; } /** * <code>required sint64 id = 1;</code> * * <pre> * delta encoded to previous stop (first stop is delta to 0) * </pre> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>required sint64 id = 1;</code> * * <pre> * delta encoded to previous stop (first stop is delta to 0) * </pre> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // required sint32 dx = 2; private int dx_ ; /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public boolean hasDx() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public int getDx() { return dx_; } /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public Builder setDx(int value) { bitField0_ |= 0x00000002; dx_ = value; onChanged(); return this; } /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public Builder clearDx() { bitField0_ = (bitField0_ & ~0x00000002); dx_ = 0; onChanged(); return this; } // required sint32 dy = 3; private int dy_ ; /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public boolean hasDy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public int getDy() { return dy_; } /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public Builder setDy(int value) { bitField0_ |= 0x00000004; dy_ = value; onChanged(); return this; } /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to previous stop (24 zoom) * </pre> */ public Builder clearDy() { bitField0_ = (bitField0_ & ~0x00000004); dy_ = 0; onChanged(); return this; } // required uint32 name = 6; private int name_ ; /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public int getName() { return name_; } /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public Builder setName(int value) { bitField0_ |= 0x00000008; name_ = value; onChanged(); return this; } /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000008); name_ = 0; onChanged(); return this; } // optional uint32 name_en = 7; private int nameEn_ ; /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ public int getNameEn() { return nameEn_; } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ public Builder setNameEn(int value) { bitField0_ |= 0x00000010; nameEn_ = value; onChanged(); return this; } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ 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; /** * <code>required sint32 dx = 1;</code> * * <pre> * delta encoded to parent (24 zoom) to left * </pre> */ boolean hasDx(); /** * <code>required sint32 dx = 1;</code> * * <pre> * delta encoded to parent (24 zoom) to left * </pre> */ int getDx(); // required sint32 dy = 2; /** * <code>required sint32 dy = 2;</code> * * <pre> * delta encoded to parent (24 zoom) to top * </pre> */ boolean hasDy(); /** * <code>required sint32 dy = 2;</code> * * <pre> * delta encoded to parent (24 zoom) to top * </pre> */ int getDy(); // required sint64 id = 5; /** * <code>required sint64 id = 5;</code> * * <pre> * delta encoded to parent base id * </pre> */ boolean hasId(); /** * <code>required sint64 id = 5;</code> * * <pre> * delta encoded to parent base id * </pre> */ long getId(); // required uint32 name = 6; /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ boolean hasName(); /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ int getName(); // optional uint32 name_en = 7; /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ boolean hasNameEn(); /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ int getNameEn(); // repeated uint32 routes = 16; /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ java.util.List<java.lang.Integer> getRoutesList(); /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ int getRoutesCount(); /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ int getRoutes(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 128: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { routes_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000020; } routes_.add(input.readUInt32()); break; } case 130: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { routes_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { routes_.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_ & 0x00000020) == 0x00000020)) { 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_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<TransportStop> PARSER = new com.google.protobuf.AbstractParser<TransportStop>() { 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<TransportStop> getParserForType() { return PARSER; } private int bitField0_; // required sint32 dx = 1; public static final int DX_FIELD_NUMBER = 1; private int dx_; /** * <code>required sint32 dx = 1;</code> * * <pre> * delta encoded to parent (24 zoom) to left * </pre> */ public boolean hasDx() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 dx = 1;</code> * * <pre> * delta encoded to parent (24 zoom) to left * </pre> */ public int getDx() { return dx_; } // required sint32 dy = 2; public static final int DY_FIELD_NUMBER = 2; private int dy_; /** * <code>required sint32 dy = 2;</code> * * <pre> * delta encoded to parent (24 zoom) to top * </pre> */ public boolean hasDy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 dy = 2;</code> * * <pre> * delta encoded to parent (24 zoom) to top * </pre> */ public int getDy() { return dy_; } // required sint64 id = 5; public static final int ID_FIELD_NUMBER = 5; private long id_; /** * <code>required sint64 id = 5;</code> * * <pre> * delta encoded to parent base id * </pre> */ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint64 id = 5;</code> * * <pre> * delta encoded to parent base id * </pre> */ public long getId() { return id_; } // required uint32 name = 6; public static final int NAME_FIELD_NUMBER = 6; private int name_; /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public int getName() { return name_; } // optional uint32 name_en = 7; public static final int NAME_EN_FIELD_NUMBER = 7; private int nameEn_; /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ public int getNameEn() { return nameEn_; } // repeated uint32 routes = 16; public static final int ROUTES_FIELD_NUMBER = 16; private java.util.List<java.lang.Integer> routes_; /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ public java.util.List<java.lang.Integer> getRoutesList() { return routes_; } /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ public int getRoutesCount() { return routes_.size(); } /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ public int getRoutes(int index) { return routes_.get(index); } private void initFields() { dx_ = 0; dy_ = 0; id_ = 0L; name_ = 0; nameEn_ = 0; routes_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasDx()) { memoizedIsInitialized = 0; return false; } if (!hasDy()) { memoizedIsInitialized = 0; return false; } if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasName()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((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_); } for (int i = 0; i < routes_.size(); i++) { output.writeUInt32(16, routes_.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_); } { 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(); } 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<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) { } } 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); routes_ = 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_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 (((bitField0_ & 0x00000020) == 0x00000020)) { routes_ = java.util.Collections.unmodifiableList(routes_); bitField0_ = (bitField0_ & ~0x00000020); } result.routes_ = routes_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { 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.routes_.isEmpty()) { if (routes_.isEmpty()) { routes_ = other.routes_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureRoutesIsMutable(); routes_.addAll(other.routes_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasDx()) { return false; } if (!hasDy()) { return false; } if (!hasId()) { return false; } if (!hasName()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 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_ ; /** * <code>required sint32 dx = 1;</code> * * <pre> * delta encoded to parent (24 zoom) to left * </pre> */ public boolean hasDx() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 dx = 1;</code> * * <pre> * delta encoded to parent (24 zoom) to left * </pre> */ public int getDx() { return dx_; } /** * <code>required sint32 dx = 1;</code> * * <pre> * delta encoded to parent (24 zoom) to left * </pre> */ public Builder setDx(int value) { bitField0_ |= 0x00000001; dx_ = value; onChanged(); return this; } /** * <code>required sint32 dx = 1;</code> * * <pre> * delta encoded to parent (24 zoom) to left * </pre> */ public Builder clearDx() { bitField0_ = (bitField0_ & ~0x00000001); dx_ = 0; onChanged(); return this; } // required sint32 dy = 2; private int dy_ ; /** * <code>required sint32 dy = 2;</code> * * <pre> * delta encoded to parent (24 zoom) to top * </pre> */ public boolean hasDy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 dy = 2;</code> * * <pre> * delta encoded to parent (24 zoom) to top * </pre> */ public int getDy() { return dy_; } /** * <code>required sint32 dy = 2;</code> * * <pre> * delta encoded to parent (24 zoom) to top * </pre> */ public Builder setDy(int value) { bitField0_ |= 0x00000002; dy_ = value; onChanged(); return this; } /** * <code>required sint32 dy = 2;</code> * * <pre> * delta encoded to parent (24 zoom) to top * </pre> */ public Builder clearDy() { bitField0_ = (bitField0_ & ~0x00000002); dy_ = 0; onChanged(); return this; } // required sint64 id = 5; private long id_ ; /** * <code>required sint64 id = 5;</code> * * <pre> * delta encoded to parent base id * </pre> */ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint64 id = 5;</code> * * <pre> * delta encoded to parent base id * </pre> */ public long getId() { return id_; } /** * <code>required sint64 id = 5;</code> * * <pre> * delta encoded to parent base id * </pre> */ public Builder setId(long value) { bitField0_ |= 0x00000004; id_ = value; onChanged(); return this; } /** * <code>required sint64 id = 5;</code> * * <pre> * delta encoded to parent base id * </pre> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000004); id_ = 0L; onChanged(); return this; } // required uint32 name = 6; private int name_ ; /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public int getName() { return name_; } /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public Builder setName(int value) { bitField0_ |= 0x00000008; name_ = value; onChanged(); return this; } /** * <code>required uint32 name = 6;</code> * * <pre> * index in message table * </pre> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000008); name_ = 0; onChanged(); return this; } // optional uint32 name_en = 7; private int nameEn_ ; /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ public int getNameEn() { return nameEn_; } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ public Builder setNameEn(int value) { bitField0_ |= 0x00000010; nameEn_ = value; onChanged(); return this; } /** * <code>optional uint32 name_en = 7;</code> * * <pre> * index in message table * </pre> */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000010); nameEn_ = 0; onChanged(); return this; } // repeated uint32 routes = 16; private java.util.List<java.lang.Integer> routes_ = java.util.Collections.emptyList(); private void ensureRoutesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { routes_ = new java.util.ArrayList<java.lang.Integer>(routes_); bitField0_ |= 0x00000020; } } /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ public java.util.List<java.lang.Integer> getRoutesList() { return java.util.Collections.unmodifiableList(routes_); } /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ public int getRoutesCount() { return routes_.size(); } /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ public int getRoutes(int index) { return routes_.get(index); } /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ public Builder setRoutes( int index, int value) { ensureRoutesIsMutable(); routes_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ public Builder addRoutes(int value) { ensureRoutesIsMutable(); routes_.add(value); onChanged(); return this; } /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ public Builder addAllRoutes( java.lang.Iterable<? extends java.lang.Integer> values) { ensureRoutesIsMutable(); super.addAll(values, routes_); onChanged(); return this; } /** * <code>repeated uint32 routes = 16;</code> * * <pre> * -shift to transport route containing that stop * </pre> */ public Builder clearRoutes() { routes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); 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 TransportStopsTreeOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint32 left = 1; /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ boolean hasLeft(); /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ int getLeft(); // required sint32 right = 2; /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ boolean hasRight(); /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ int getRight(); // required sint32 top = 3; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ boolean hasTop(); /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ int getTop(); // required sint32 bottom = 4; /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ boolean hasBottom(); /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ int getBottom(); // repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.TransportStopsTree> getSubtreesList(); /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.TransportStopsTree getSubtrees(int index); /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ int getSubtreesCount(); /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> getSubtreesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getSubtreesOrBuilder( int index); // repeated .OsmAnd.OBF.TransportStop leafs = 8; /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ java.util.List<net.osmand.binary.OsmandOdb.TransportStop> getLeafsList(); /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ net.osmand.binary.OsmandOdb.TransportStop getLeafs(int index); /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ int getLeafsCount(); /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.TransportStopOrBuilder> getLeafsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ net.osmand.binary.OsmandOdb.TransportStopOrBuilder getLeafsOrBuilder( int index); // optional uint64 baseId = 16; /** * <code>optional uint64 baseId = 16;</code> * * <pre> * written as last * </pre> */ boolean hasBaseId(); /** * <code>optional uint64 baseId = 16;</code> * * <pre> * written as last * </pre> */ 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<net.osmand.binary.OsmandOdb.TransportStopsTree>(); 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<net.osmand.binary.OsmandOdb.TransportStop>(); 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<TransportStopsTree> PARSER = new com.google.protobuf.AbstractParser<TransportStopsTree>() { 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<TransportStopsTree> getParserForType() { return PARSER; } private int bitField0_; // required sint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; private int left_; /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public int getLeft() { return left_; } // required sint32 right = 2; public static final int RIGHT_FIELD_NUMBER = 2; private int right_; /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public int getRight() { return right_; } // required sint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; private int top_; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public int getTop() { return top_; } // required sint32 bottom = 4; public static final int BOTTOM_FIELD_NUMBER = 4; private int bottom_; /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public int getBottom() { return bottom_; } // repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; public static final int SUBTREES_FIELD_NUMBER = 7; private java.util.List<net.osmand.binary.OsmandOdb.TransportStopsTree> subtrees_; /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportStopsTree> getSubtreesList() { return subtrees_; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> getSubtreesOrBuilderList() { return subtrees_; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getSubtreesCount() { return subtrees_.size(); } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportStopsTree getSubtrees(int index) { return subtrees_.get(index); } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.TransportStop> leafs_; /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportStop> getLeafsList() { return leafs_; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.TransportStopOrBuilder> getLeafsOrBuilderList() { return leafs_; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public int getLeafsCount() { return leafs_.size(); } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public net.osmand.binary.OsmandOdb.TransportStop getLeafs(int index) { return leafs_.get(index); } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ 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_; /** * <code>optional uint64 baseId = 16;</code> * * <pre> * written as last * </pre> */ public boolean hasBaseId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint64 baseId = 16;</code> * * <pre> * written as last * </pre> */ 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<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_ ; /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public int getLeft() { return left_; } /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public Builder setLeft(int value) { bitField0_ |= 0x00000001; left_ = value; onChanged(); return this; } /** * <code>required sint32 left = 1;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000001); left_ = 0; onChanged(); return this; } // required sint32 right = 2; private int right_ ; /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public int getRight() { return right_; } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public Builder setRight(int value) { bitField0_ |= 0x00000002; right_ = value; onChanged(); return this; } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public Builder clearRight() { bitField0_ = (bitField0_ & ~0x00000002); right_ = 0; onChanged(); return this; } // required sint32 top = 3; private int top_ ; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public int getTop() { return top_; } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public Builder setTop(int value) { bitField0_ |= 0x00000004; top_ = value; onChanged(); return this; } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public Builder clearTop() { bitField0_ = (bitField0_ & ~0x00000004); top_ = 0; onChanged(); return this; } // required sint32 bottom = 4; private int bottom_ ; /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public int getBottom() { return bottom_; } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public Builder setBottom(int value) { bitField0_ |= 0x00000008; bottom_ = value; onChanged(); return this; } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded (24 zoom) * </pre> */ public Builder clearBottom() { bitField0_ = (bitField0_ & ~0x00000008); bottom_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7; private java.util.List<net.osmand.binary.OsmandOdb.TransportStopsTree> subtrees_ = java.util.Collections.emptyList(); private void ensureSubtreesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { subtrees_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.TransportStopsTree>(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_; /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportStopsTree> getSubtreesList() { if (subtreesBuilder_ == null) { return java.util.Collections.unmodifiableList(subtrees_); } else { return subtreesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getSubtreesCount() { if (subtreesBuilder_ == null) { return subtrees_.size(); } else { return subtreesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportStopsTree getSubtrees(int index) { if (subtreesBuilder_ == null) { return subtrees_.get(index); } else { return subtreesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder addAllSubtrees( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.TransportStopsTree> values) { if (subtreesBuilder_ == null) { ensureSubtreesIsMutable(); super.addAll(values, subtrees_); onChanged(); } else { subtreesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearSubtrees() { if (subtreesBuilder_ == null) { subtrees_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { subtreesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder removeSubtrees(int index) { if (subtreesBuilder_ == null) { ensureSubtreesIsMutable(); subtrees_.remove(index); onChanged(); } else { subtreesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder getSubtreesBuilder( int index) { return getSubtreesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getSubtreesOrBuilder( int index) { if (subtreesBuilder_ == null) { return subtrees_.get(index); } else { return subtreesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder> getSubtreesOrBuilderList() { if (subtreesBuilder_ != null) { return subtreesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subtrees_); } } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder addSubtreesBuilder() { return getSubtreesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder addSubtreesBuilder( int index) { return getSubtreesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.TransportStopsTree subtrees = 7;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportStopsTree.Builder> 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<net.osmand.binary.OsmandOdb.TransportStop> leafs_ = java.util.Collections.emptyList(); private void ensureLeafsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { leafs_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.TransportStop>(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_; /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportStop> getLeafsList() { if (leafsBuilder_ == null) { return java.util.Collections.unmodifiableList(leafs_); } else { return leafsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public int getLeafsCount() { if (leafsBuilder_ == null) { return leafs_.size(); } else { return leafsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public net.osmand.binary.OsmandOdb.TransportStop getLeafs(int index) { if (leafsBuilder_ == null) { return leafs_.get(index); } else { return leafsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public Builder addAllLeafs( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.TransportStop> values) { if (leafsBuilder_ == null) { ensureLeafsIsMutable(); super.addAll(values, leafs_); onChanged(); } else { leafsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public Builder clearLeafs() { if (leafsBuilder_ == null) { leafs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { leafsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public Builder removeLeafs(int index) { if (leafsBuilder_ == null) { ensureLeafsIsMutable(); leafs_.remove(index); onChanged(); } else { leafsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public net.osmand.binary.OsmandOdb.TransportStop.Builder getLeafsBuilder( int index) { return getLeafsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public net.osmand.binary.OsmandOdb.TransportStopOrBuilder getLeafsOrBuilder( int index) { if (leafsBuilder_ == null) { return leafs_.get(index); } else { return leafsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.TransportStopOrBuilder> getLeafsOrBuilderList() { if (leafsBuilder_ != null) { return leafsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(leafs_); } } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public net.osmand.binary.OsmandOdb.TransportStop.Builder addLeafsBuilder() { return getLeafsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.TransportStop.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public net.osmand.binary.OsmandOdb.TransportStop.Builder addLeafsBuilder( int index) { return getLeafsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.TransportStop.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.TransportStop leafs = 8;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.TransportStop.Builder> 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_ ; /** * <code>optional uint64 baseId = 16;</code> * * <pre> * written as last * </pre> */ public boolean hasBaseId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional uint64 baseId = 16;</code> * * <pre> * written as last * </pre> */ public long getBaseId() { return baseId_; } /** * <code>optional uint64 baseId = 16;</code> * * <pre> * written as last * </pre> */ public Builder setBaseId(long value) { bitField0_ |= 0x00000040; baseId_ = value; onChanged(); return this; } /** * <code>optional uint64 baseId = 16;</code> * * <pre> * written as last * </pre> */ 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; /** * <code>optional string name = 1;</code> */ boolean hasName(); /** * <code>optional string name = 1;</code> */ java.lang.String getName(); /** * <code>optional string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional .OsmAnd.OBF.TransportRoutes routes = 3; /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ boolean hasRoutes(); /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.TransportRoutes getRoutes(); /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder getRoutesOrBuilder(); // optional .OsmAnd.OBF.TransportStopsTree stops = 6; /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ boolean hasStops(); /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.TransportStopsTree getStops(); /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getStopsOrBuilder(); // required .OsmAnd.OBF.StringTable stringTable = 9; /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ boolean hasStringTable(); /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ net.osmand.binary.OsmandOdb.StringTable getStringTable(); /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ 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<OsmAndTransportIndex> PARSER = new com.google.protobuf.AbstractParser<OsmAndTransportIndex>() { 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<OsmAndTransportIndex> getParserForType() { return PARSER; } private int bitField0_; // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * <code>optional string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string name = 1;</code> */ 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; } } /** * <code>optional string name = 1;</code> */ 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_; /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public boolean hasRoutes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportRoutes getRoutes() { return routes_; } /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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_; /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public boolean hasStops() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportStopsTree getStops() { return stops_; } /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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_; /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ public boolean hasStringTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ public net.osmand.binary.OsmandOdb.StringTable getStringTable() { return stringTable_; } /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ 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<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_ = ""; /** * <code>optional string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string name = 1;</code> */ 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; } } /** * <code>optional string name = 1;</code> */ 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; } } /** * <code>optional string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>optional string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>optional string name = 1;</code> */ 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_; /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public boolean hasRoutes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportRoutes getRoutes() { if (routesBuilder_ == null) { return routes_; } else { return routesBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearRoutes() { if (routesBuilder_ == null) { routes_ = net.osmand.binary.OsmandOdb.TransportRoutes.getDefaultInstance(); onChanged(); } else { routesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportRoutes.Builder getRoutesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRoutesFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportRoutesOrBuilder getRoutesOrBuilder() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilder(); } else { return routes_; } } /** * <code>optional .OsmAnd.OBF.TransportRoutes routes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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_; /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public boolean hasStops() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportStopsTree getStops() { if (stopsBuilder_ == null) { return stops_; } else { return stopsBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearStops() { if (stopsBuilder_ == null) { stops_ = net.osmand.binary.OsmandOdb.TransportStopsTree.getDefaultInstance(); onChanged(); } else { stopsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportStopsTree.Builder getStopsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStopsFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.TransportStopsTreeOrBuilder getStopsOrBuilder() { if (stopsBuilder_ != null) { return stopsBuilder_.getMessageOrBuilder(); } else { return stops_; } } /** * <code>optional .OsmAnd.OBF.TransportStopsTree stops = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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_; /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ public boolean hasStringTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ public net.osmand.binary.OsmandOdb.StringTable getStringTable() { if (stringTableBuilder_ == null) { return stringTable_; } else { return stringTableBuilder_.getMessage(); } } /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ 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; } /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ 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; } /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ 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; } /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ public Builder clearStringTable() { if (stringTableBuilder_ == null) { stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); onChanged(); } else { stringTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ public net.osmand.binary.OsmandOdb.StringTable.Builder getStringTableBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStringTableFieldBuilder().getBuilder(); } /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { if (stringTableBuilder_ != null) { return stringTableBuilder_.getMessageOrBuilder(); } else { return stringTable_; } } /** * <code>required .OsmAnd.OBF.StringTable stringTable = 9;</code> */ 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; /** * <code>required string name = 1;</code> */ boolean hasName(); /** * <code>required string name = 1;</code> */ java.lang.String getName(); /** * <code>required string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); // required .OsmAnd.OBF.OsmAndTileBox boundaries = 2; /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ boolean hasBoundaries(); /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries(); /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder(); // repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3; /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndCategoryTable> getCategoriesTableList(); /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ net.osmand.binary.OsmandOdb.OsmAndCategoryTable getCategoriesTable(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ int getCategoriesTableCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder> getCategoriesTableOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder getCategoriesTableOrBuilder( int index); // optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4; /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ boolean hasNameIndex(); /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getNameIndex(); /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder getNameIndexOrBuilder(); // optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5; /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ boolean hasSubtypesTable(); /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getSubtypesTable(); /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder getSubtypesTableOrBuilder(); // repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBox> getBoxesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiBox getBoxes(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ int getBoxesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> getBoxesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getBoxesOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBoxData> getPoiDataList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiBoxData getPoiData(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ int getPoiDataCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder> getPoiDataOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndCategoryTable>(); 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<net.osmand.binary.OsmandOdb.OsmAndPoiBox>(); 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<net.osmand.binary.OsmandOdb.OsmAndPoiBoxData>(); 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<OsmAndPoiIndex> PARSER = new com.google.protobuf.AbstractParser<OsmAndPoiIndex>() { 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<OsmAndPoiIndex> getParserForType() { return PARSER; } private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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_; /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ public boolean hasBoundaries() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { return boundaries_; } /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndCategoryTable> categoriesTable_; /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndCategoryTable> getCategoriesTableList() { return categoriesTable_; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder> getCategoriesTableOrBuilderList() { return categoriesTable_; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public int getCategoriesTableCount() { return categoriesTable_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTable getCategoriesTable(int index) { return categoriesTable_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ 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_; /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public boolean hasNameIndex() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getNameIndex() { return nameIndex_; } /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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_; /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ public boolean hasSubtypesTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getSubtypesTable() { return subtypesTable_; } /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiBox> boxes_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBox> getBoxesList() { return boxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> getBoxesOrBuilderList() { return boxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getBoxesCount() { return boxes_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBox getBoxes(int index) { return boxes_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiBoxData> poiData_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBoxData> getPoiDataList() { return poiData_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder> getPoiDataOrBuilderList() { return poiData_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getPoiDataCount() { return poiData_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData getPoiData(int index) { return poiData_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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<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_ = ""; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>required string name = 1;</code> */ 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_; /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ public boolean hasBoundaries() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndTileBox getBoundaries() { if (boundariesBuilder_ == null) { return boundaries_; } else { return boundariesBuilder_.getMessage(); } } /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ 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; } /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ 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; } /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ 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; } /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ public Builder clearBoundaries() { if (boundariesBuilder_ == null) { boundaries_ = net.osmand.binary.OsmandOdb.OsmAndTileBox.getDefaultInstance(); onChanged(); } else { boundariesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndTileBox.Builder getBoundariesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getBoundariesFieldBuilder().getBuilder(); } /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndTileBoxOrBuilder getBoundariesOrBuilder() { if (boundariesBuilder_ != null) { return boundariesBuilder_.getMessageOrBuilder(); } else { return boundaries_; } } /** * <code>required .OsmAnd.OBF.OsmAndTileBox boundaries = 2;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndCategoryTable> categoriesTable_ = java.util.Collections.emptyList(); private void ensureCategoriesTableIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { categoriesTable_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndCategoryTable>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndCategoryTable> getCategoriesTableList() { if (categoriesTableBuilder_ == null) { return java.util.Collections.unmodifiableList(categoriesTable_); } else { return categoriesTableBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public int getCategoriesTableCount() { if (categoriesTableBuilder_ == null) { return categoriesTable_.size(); } else { return categoriesTableBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTable getCategoriesTable(int index) { if (categoriesTableBuilder_ == null) { return categoriesTable_.get(index); } else { return categoriesTableBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public Builder addAllCategoriesTable( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndCategoryTable> values) { if (categoriesTableBuilder_ == null) { ensureCategoriesTableIsMutable(); super.addAll(values, categoriesTable_); onChanged(); } else { categoriesTableBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public Builder clearCategoriesTable() { if (categoriesTableBuilder_ == null) { categoriesTable_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { categoriesTableBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public Builder removeCategoriesTable(int index) { if (categoriesTableBuilder_ == null) { ensureCategoriesTableIsMutable(); categoriesTable_.remove(index); onChanged(); } else { categoriesTableBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder getCategoriesTableBuilder( int index) { return getCategoriesTableFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder getCategoriesTableOrBuilder( int index) { if (categoriesTableBuilder_ == null) { return categoriesTable_.get(index); } else { return categoriesTableBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndCategoryTableOrBuilder> getCategoriesTableOrBuilderList() { if (categoriesTableBuilder_ != null) { return categoriesTableBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(categoriesTable_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder addCategoriesTableBuilder() { return getCategoriesTableFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndCategoryTable.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder addCategoriesTableBuilder( int index) { return getCategoriesTableFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndCategoryTable.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndCategoryTable categoriesTable = 3;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndCategoryTable.Builder> 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_; /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public boolean hasNameIndex() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex getNameIndex() { if (nameIndexBuilder_ == null) { return nameIndex_; } else { return nameIndexBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearNameIndex() { if (nameIndexBuilder_ == null) { nameIndex_ = net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.getDefaultInstance(); onChanged(); } else { nameIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.Builder getNameIndexBuilder() { bitField0_ |= 0x00000008; onChanged(); return getNameIndexFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexOrBuilder getNameIndexOrBuilder() { if (nameIndexBuilder_ != null) { return nameIndexBuilder_.getMessageOrBuilder(); } else { return nameIndex_; } } /** * <code>optional .OsmAnd.OBF.OsmAndPoiNameIndex nameIndex = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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_; /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ public boolean hasSubtypesTable() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable getSubtypesTable() { if (subtypesTableBuilder_ == null) { return subtypesTable_; } else { return subtypesTableBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ public Builder clearSubtypesTable() { if (subtypesTableBuilder_ == null) { subtypesTable_ = net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.getDefaultInstance(); onChanged(); } else { subtypesTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndSubtypesTable.Builder getSubtypesTableBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSubtypesTableFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndSubtypesTableOrBuilder getSubtypesTableOrBuilder() { if (subtypesTableBuilder_ != null) { return subtypesTableBuilder_.getMessageOrBuilder(); } else { return subtypesTable_; } } /** * <code>optional .OsmAnd.OBF.OsmAndSubtypesTable subtypesTable = 5;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiBox> boxes_ = java.util.Collections.emptyList(); private void ensureBoxesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { boxes_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndPoiBox>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBox> getBoxesList() { if (boxesBuilder_ == null) { return java.util.Collections.unmodifiableList(boxes_); } else { return boxesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getBoxesCount() { if (boxesBuilder_ == null) { return boxes_.size(); } else { return boxesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBox getBoxes(int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder addAllBoxes( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBox> values) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); super.addAll(values, boxes_); onChanged(); } else { boxesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearBoxes() { if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { boxesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder removeBoxes(int index) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.remove(index); onChanged(); } else { boxesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder getBoxesBuilder( int index) { return getBoxesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getBoxesOrBuilder( int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> getBoxesOrBuilderList() { if (boxesBuilder_ != null) { return boxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(boxes_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addBoxesBuilder() { return getBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addBoxesBuilder( int index) { return getBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox boxes = 6;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder> 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<net.osmand.binary.OsmandOdb.OsmAndPoiBoxData> poiData_ = java.util.Collections.emptyList(); private void ensurePoiDataIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { poiData_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndPoiBoxData>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBoxData> getPoiDataList() { if (poiDataBuilder_ == null) { return java.util.Collections.unmodifiableList(poiData_); } else { return poiDataBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getPoiDataCount() { if (poiDataBuilder_ == null) { return poiData_.size(); } else { return poiDataBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData getPoiData(int index) { if (poiDataBuilder_ == null) { return poiData_.get(index); } else { return poiDataBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder addAllPoiData( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxData> values) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); super.addAll(values, poiData_); onChanged(); } else { poiDataBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearPoiData() { if (poiDataBuilder_ == null) { poiData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { poiDataBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder removePoiData(int index) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); poiData_.remove(index); onChanged(); } else { poiDataBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder getPoiDataBuilder( int index) { return getPoiDataFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder getPoiDataOrBuilder( int index) { if (poiDataBuilder_ == null) { return poiData_.get(index); } else { return poiDataBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataOrBuilder> getPoiDataOrBuilderList() { if (poiDataBuilder_ != null) { return poiDataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(poiData_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder addPoiDataBuilder() { return getPoiDataFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder addPoiDataBuilder( int index) { return getPoiDataFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxData poiData = 9;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBoxData.Builder> 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; /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ boolean hasTable(); /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.IndexedStringTable getTable(); /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder(); // repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData> getDataList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData getData(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ int getDataCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder> getDataOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData>(); 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<OsmAndPoiNameIndex> PARSER = new com.google.protobuf.AbstractParser<OsmAndPoiNameIndex>() { 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<OsmAndPoiNameIndex> getParserForType() { return PARSER; } public interface OsmAndPoiNameIndexDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom> getAtomsList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom getAtoms(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ int getAtomsCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder> getAtomsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom>(); 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<OsmAndPoiNameIndexData> PARSER = new com.google.protobuf.AbstractParser<OsmAndPoiNameIndexData>() { 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<OsmAndPoiNameIndexData> getParserForType() { return PARSER; } // repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3; public static final int ATOMS_FIELD_NUMBER = 3; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom> atoms_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom> getAtomsList() { return atoms_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder> getAtomsOrBuilderList() { return atoms_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public int getAtomsCount() { return atoms_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom getAtoms(int index) { return atoms_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ 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<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<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom> atoms_ = java.util.Collections.emptyList(); private void ensureAtomsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { atoms_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom> getAtomsList() { if (atomsBuilder_ == null) { return java.util.Collections.unmodifiableList(atoms_); } else { return atomsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public int getAtomsCount() { if (atomsBuilder_ == null) { return atoms_.size(); } else { return atomsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom getAtoms(int index) { if (atomsBuilder_ == null) { return atoms_.get(index); } else { return atomsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public Builder addAllAtoms( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom> values) { if (atomsBuilder_ == null) { ensureAtomsIsMutable(); super.addAll(values, atoms_); onChanged(); } else { atomsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public Builder clearAtoms() { if (atomsBuilder_ == null) { atoms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { atomsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public Builder removeAtoms(int index) { if (atomsBuilder_ == null) { ensureAtomsIsMutable(); atoms_.remove(index); onChanged(); } else { atomsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder getAtomsBuilder( int index) { return getAtomsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder getAtomsOrBuilder( int index) { if (atomsBuilder_ == null) { return atoms_.get(index); } else { return atomsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtomOrBuilder> getAtomsOrBuilderList() { if (atomsBuilder_ != null) { return atomsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(atoms_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder addAtomsBuilder() { return getAtomsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder addAtomsBuilder( int index) { return getAtomsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndexDataAtom atoms = 3;</code> * * <pre> * can contain multiple data offsets * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndexDataAtom.Builder> 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_; /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ public boolean hasTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { return table_; } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData> data_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData> getDataList() { return data_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder> getDataOrBuilderList() { return data_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public int getDataCount() { return data_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData getData(int index) { return data_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ 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<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_; /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ public boolean hasTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable getTable() { if (tableBuilder_ == null) { return table_; } else { return tableBuilder_.getMessage(); } } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ public Builder clearTable() { if (tableBuilder_ == null) { table_ = net.osmand.binary.OsmandOdb.IndexedStringTable.getDefaultInstance(); onChanged(); } else { tableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTable.Builder getTableBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTableFieldBuilder().getBuilder(); } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.IndexedStringTableOrBuilder getTableOrBuilder() { if (tableBuilder_ != null) { return tableBuilder_.getMessageOrBuilder(); } else { return table_; } } /** * <code>required .OsmAnd.OBF.IndexedStringTable table = 3;</code> * * <pre> * shift to OsmAndPoiNameIndexData starting from OsmAndPoiIndex message * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData> data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { data_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData> getDataList() { if (dataBuilder_ == null) { return java.util.Collections.unmodifiableList(data_); } else { return dataBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public int getDataCount() { if (dataBuilder_ == null) { return data_.size(); } else { return dataBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public Builder addAllData( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData> values) { if (dataBuilder_ == null) { ensureDataIsMutable(); super.addAll(values, data_); onChanged(); } else { dataBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public Builder removeData(int index) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.remove(index); onChanged(); } else { dataBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder getDataBuilder( int index) { return getDataFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder getDataOrBuilder( int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexDataOrBuilder> getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder addDataBuilder() { return getDataFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder addDataBuilder( int index) { return getDataFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiNameIndex.OsmAndPoiNameIndexData data = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiNameIndex.OsmAndPoiNameIndexData.Builder> 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; /** * <code>optional uint32 zoom = 2;</code> * * <pre> * fields do not preserve order define, they are repeating * </pre> */ boolean hasZoom(); /** * <code>optional uint32 zoom = 2;</code> * * <pre> * fields do not preserve order define, they are repeating * </pre> */ int getZoom(); // optional uint32 x = 3; /** * <code>optional uint32 x = 3;</code> */ boolean hasX(); /** * <code>optional uint32 x = 3;</code> */ int getX(); // optional uint32 y = 4; /** * <code>optional uint32 y = 4;</code> */ boolean hasY(); /** * <code>optional uint32 y = 4;</code> */ int getY(); // optional fixed32 shiftTo = 14; /** * <code>optional fixed32 shiftTo = 14;</code> * * <pre> * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start * message is started when body is started * </pre> */ boolean hasShiftTo(); /** * <code>optional fixed32 shiftTo = 14;</code> * * <pre> * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start * message is started when body is started * </pre> */ 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<OsmAndPoiNameIndexDataAtom> PARSER = new com.google.protobuf.AbstractParser<OsmAndPoiNameIndexDataAtom>() { 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<OsmAndPoiNameIndexDataAtom> getParserForType() { return PARSER; } private int bitField0_; // optional uint32 zoom = 2; public static final int ZOOM_FIELD_NUMBER = 2; private int zoom_; /** * <code>optional uint32 zoom = 2;</code> * * <pre> * fields do not preserve order define, they are repeating * </pre> */ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 zoom = 2;</code> * * <pre> * fields do not preserve order define, they are repeating * </pre> */ public int getZoom() { return zoom_; } // optional uint32 x = 3; public static final int X_FIELD_NUMBER = 3; private int x_; /** * <code>optional uint32 x = 3;</code> */ public boolean hasX() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 x = 3;</code> */ public int getX() { return x_; } // optional uint32 y = 4; public static final int Y_FIELD_NUMBER = 4; private int y_; /** * <code>optional uint32 y = 4;</code> */ public boolean hasY() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 y = 4;</code> */ public int getY() { return y_; } // optional fixed32 shiftTo = 14; public static final int SHIFTTO_FIELD_NUMBER = 14; private int shiftTo_; /** * <code>optional fixed32 shiftTo = 14;</code> * * <pre> * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start * message is started when body is started * </pre> */ public boolean hasShiftTo() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional fixed32 shiftTo = 14;</code> * * <pre> * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start * message is started when body is started * </pre> */ 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<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_ ; /** * <code>optional uint32 zoom = 2;</code> * * <pre> * fields do not preserve order define, they are repeating * </pre> */ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 zoom = 2;</code> * * <pre> * fields do not preserve order define, they are repeating * </pre> */ public int getZoom() { return zoom_; } /** * <code>optional uint32 zoom = 2;</code> * * <pre> * fields do not preserve order define, they are repeating * </pre> */ public Builder setZoom(int value) { bitField0_ |= 0x00000001; zoom_ = value; onChanged(); return this; } /** * <code>optional uint32 zoom = 2;</code> * * <pre> * fields do not preserve order define, they are repeating * </pre> */ public Builder clearZoom() { bitField0_ = (bitField0_ & ~0x00000001); zoom_ = 0; onChanged(); return this; } // optional uint32 x = 3; private int x_ ; /** * <code>optional uint32 x = 3;</code> */ public boolean hasX() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 x = 3;</code> */ public int getX() { return x_; } /** * <code>optional uint32 x = 3;</code> */ public Builder setX(int value) { bitField0_ |= 0x00000002; x_ = value; onChanged(); return this; } /** * <code>optional uint32 x = 3;</code> */ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000002); x_ = 0; onChanged(); return this; } // optional uint32 y = 4; private int y_ ; /** * <code>optional uint32 y = 4;</code> */ public boolean hasY() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 y = 4;</code> */ public int getY() { return y_; } /** * <code>optional uint32 y = 4;</code> */ public Builder setY(int value) { bitField0_ |= 0x00000004; y_ = value; onChanged(); return this; } /** * <code>optional uint32 y = 4;</code> */ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000004); y_ = 0; onChanged(); return this; } // optional fixed32 shiftTo = 14; private int shiftTo_ ; /** * <code>optional fixed32 shiftTo = 14;</code> * * <pre> * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start * message is started when body is started * </pre> */ public boolean hasShiftTo() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional fixed32 shiftTo = 14;</code> * * <pre> * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start * message is started when body is started * </pre> */ public int getShiftTo() { return shiftTo_; } /** * <code>optional fixed32 shiftTo = 14;</code> * * <pre> * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start * message is started when body is started * </pre> */ public Builder setShiftTo(int value) { bitField0_ |= 0x00000008; shiftTo_ = value; onChanged(); return this; } /** * <code>optional fixed32 shiftTo = 14;</code> * * <pre> * shift to OsmAndPoiBoxData message from OsmAndPoiIndex.start * message is started when body is started * </pre> */ 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; /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ boolean hasCategory(); /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ java.lang.String getCategory(); /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ com.google.protobuf.ByteString getCategoryBytes(); // repeated string subcategories = 3; /** * <code>repeated string subcategories = 3;</code> */ java.util.List<java.lang.String> getSubcategoriesList(); /** * <code>repeated string subcategories = 3;</code> */ int getSubcategoriesCount(); /** * <code>repeated string subcategories = 3;</code> */ java.lang.String getSubcategories(int index); /** * <code>repeated string subcategories = 3;</code> */ 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<OsmAndCategoryTable> PARSER = new com.google.protobuf.AbstractParser<OsmAndCategoryTable>() { 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<OsmAndCategoryTable> getParserForType() { return PARSER; } private int bitField0_; // required string category = 1; public static final int CATEGORY_FIELD_NUMBER = 1; private java.lang.Object category_; /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ public boolean hasCategory() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ 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; } } /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ 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_; /** * <code>repeated string subcategories = 3;</code> */ public java.util.List<java.lang.String> getSubcategoriesList() { return subcategories_; } /** * <code>repeated string subcategories = 3;</code> */ public int getSubcategoriesCount() { return subcategories_.size(); } /** * <code>repeated string subcategories = 3;</code> */ public java.lang.String getSubcategories(int index) { return subcategories_.get(index); } /** * <code>repeated string subcategories = 3;</code> */ 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<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_ = ""; /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ public boolean hasCategory() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ 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; } } /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ 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; } } /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ public Builder setCategory( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; category_ = value; onChanged(); return this; } /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ public Builder clearCategory() { bitField0_ = (bitField0_ & ~0x00000001); category_ = getDefaultInstance().getCategory(); onChanged(); return this; } /** * <code>required string category = 1;</code> * * <pre> * general id of poi type is calculated ((subcategory_order << 7) | category_order) * </pre> */ 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; } } /** * <code>repeated string subcategories = 3;</code> */ public java.util.List<java.lang.String> getSubcategoriesList() { return java.util.Collections.unmodifiableList(subcategories_); } /** * <code>repeated string subcategories = 3;</code> */ public int getSubcategoriesCount() { return subcategories_.size(); } /** * <code>repeated string subcategories = 3;</code> */ public java.lang.String getSubcategories(int index) { return subcategories_.get(index); } /** * <code>repeated string subcategories = 3;</code> */ public com.google.protobuf.ByteString getSubcategoriesBytes(int index) { return subcategories_.getByteString(index); } /** * <code>repeated string subcategories = 3;</code> */ public Builder setSubcategories( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubcategoriesIsMutable(); subcategories_.set(index, value); onChanged(); return this; } /** * <code>repeated string subcategories = 3;</code> */ public Builder addSubcategories( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubcategoriesIsMutable(); subcategories_.add(value); onChanged(); return this; } /** * <code>repeated string subcategories = 3;</code> */ public Builder addAllSubcategories( java.lang.Iterable<java.lang.String> values) { ensureSubcategoriesIsMutable(); super.addAll(values, subcategories_); onChanged(); return this; } /** * <code>repeated string subcategories = 3;</code> */ public Builder clearSubcategories() { subcategories_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * <code>repeated string subcategories = 3;</code> */ 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; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiSubtype> getSubtypesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiSubtype getSubtypes(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ int getSubtypesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder> getSubtypesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiSubtype>(); 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<OsmAndSubtypesTable> PARSER = new com.google.protobuf.AbstractParser<OsmAndSubtypesTable>() { 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<OsmAndSubtypesTable> getParserForType() { return PARSER; } // repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4; public static final int SUBTYPES_FIELD_NUMBER = 4; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiSubtype> subtypes_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiSubtype> getSubtypesList() { return subtypes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder> getSubtypesOrBuilderList() { return subtypes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public int getSubtypesCount() { return subtypes_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype getSubtypes(int index) { return subtypes_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ 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<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<net.osmand.binary.OsmandOdb.OsmAndPoiSubtype> subtypes_ = java.util.Collections.emptyList(); private void ensureSubtypesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { subtypes_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndPoiSubtype>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiSubtype> getSubtypesList() { if (subtypesBuilder_ == null) { return java.util.Collections.unmodifiableList(subtypes_); } else { return subtypesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public int getSubtypesCount() { if (subtypesBuilder_ == null) { return subtypes_.size(); } else { return subtypesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype getSubtypes(int index) { if (subtypesBuilder_ == null) { return subtypes_.get(index); } else { return subtypesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public Builder addAllSubtypes( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndPoiSubtype> values) { if (subtypesBuilder_ == null) { ensureSubtypesIsMutable(); super.addAll(values, subtypes_); onChanged(); } else { subtypesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public Builder clearSubtypes() { if (subtypesBuilder_ == null) { subtypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { subtypesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public Builder removeSubtypes(int index) { if (subtypesBuilder_ == null) { ensureSubtypesIsMutable(); subtypes_.remove(index); onChanged(); } else { subtypesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder getSubtypesBuilder( int index) { return getSubtypesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder getSubtypesOrBuilder( int index) { if (subtypesBuilder_ == null) { return subtypes_.get(index); } else { return subtypesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiSubtypeOrBuilder> getSubtypesOrBuilderList() { if (subtypesBuilder_ != null) { return subtypesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subtypes_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder addSubtypesBuilder() { return getSubtypesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder addSubtypesBuilder( int index) { return getSubtypesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiSubtype subtypes = 4;</code> * * <pre> * id calculated * 1. if subtypes_order <= 31 : ( (subtypeValue << 5) | subtypes_order) << 1 * 2. if subtypes_order > 31 : ( (subtypeValue << 16) | subtypes_order) << 1 + 1 * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiSubtype.Builder> 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; /** * <code>required string name = 1;</code> */ boolean hasName(); /** * <code>required string name = 1;</code> */ java.lang.String getName(); /** * <code>required string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional string tagname = 2; /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ boolean hasTagname(); /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ java.lang.String getTagname(); /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ com.google.protobuf.ByteString getTagnameBytes(); // required bool isText = 3; /** * <code>required bool isText = 3;</code> */ boolean hasIsText(); /** * <code>required bool isText = 3;</code> */ boolean getIsText(); // optional uint32 frequency = 5; /** * <code>optional uint32 frequency = 5;</code> */ boolean hasFrequency(); /** * <code>optional uint32 frequency = 5;</code> */ int getFrequency(); // optional uint32 subtypeValuesSize = 6; /** * <code>optional uint32 subtypeValuesSize = 6;</code> */ boolean hasSubtypeValuesSize(); /** * <code>optional uint32 subtypeValuesSize = 6;</code> */ int getSubtypeValuesSize(); // repeated string subtypeValue = 8; /** * <code>repeated string subtypeValue = 8;</code> */ java.util.List<java.lang.String> getSubtypeValueList(); /** * <code>repeated string subtypeValue = 8;</code> */ int getSubtypeValueCount(); /** * <code>repeated string subtypeValue = 8;</code> */ java.lang.String getSubtypeValue(int index); /** * <code>repeated string subtypeValue = 8;</code> */ 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<OsmAndPoiSubtype> PARSER = new com.google.protobuf.AbstractParser<OsmAndPoiSubtype>() { 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<OsmAndPoiSubtype> getParserForType() { return PARSER; } private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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_; /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ public boolean hasTagname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ 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; } } /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ 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_; /** * <code>required bool isText = 3;</code> */ public boolean hasIsText() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required bool isText = 3;</code> */ public boolean getIsText() { return isText_; } // optional uint32 frequency = 5; public static final int FREQUENCY_FIELD_NUMBER = 5; private int frequency_; /** * <code>optional uint32 frequency = 5;</code> */ public boolean hasFrequency() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 frequency = 5;</code> */ public int getFrequency() { return frequency_; } // optional uint32 subtypeValuesSize = 6; public static final int SUBTYPEVALUESSIZE_FIELD_NUMBER = 6; private int subtypeValuesSize_; /** * <code>optional uint32 subtypeValuesSize = 6;</code> */ public boolean hasSubtypeValuesSize() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 subtypeValuesSize = 6;</code> */ public int getSubtypeValuesSize() { return subtypeValuesSize_; } // repeated string subtypeValue = 8; public static final int SUBTYPEVALUE_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList subtypeValue_; /** * <code>repeated string subtypeValue = 8;</code> */ public java.util.List<java.lang.String> getSubtypeValueList() { return subtypeValue_; } /** * <code>repeated string subtypeValue = 8;</code> */ public int getSubtypeValueCount() { return subtypeValue_.size(); } /** * <code>repeated string subtypeValue = 8;</code> */ public java.lang.String getSubtypeValue(int index) { return subtypeValue_.get(index); } /** * <code>repeated string subtypeValue = 8;</code> */ 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<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_ = ""; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>required string name = 1;</code> */ 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_ = ""; /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ public boolean hasTagname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ 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; } } /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ 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; } } /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ public Builder setTagname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; tagname_ = value; onChanged(); return this; } /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ public Builder clearTagname() { bitField0_ = (bitField0_ & ~0x00000002); tagname_ = getDefaultInstance().getTagname(); onChanged(); return this; } /** * <code>optional string tagname = 2;</code> * * <pre> * same to name if not present * </pre> */ 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_ ; /** * <code>required bool isText = 3;</code> */ public boolean hasIsText() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required bool isText = 3;</code> */ public boolean getIsText() { return isText_; } /** * <code>required bool isText = 3;</code> */ public Builder setIsText(boolean value) { bitField0_ |= 0x00000004; isText_ = value; onChanged(); return this; } /** * <code>required bool isText = 3;</code> */ public Builder clearIsText() { bitField0_ = (bitField0_ & ~0x00000004); isText_ = false; onChanged(); return this; } // optional uint32 frequency = 5; private int frequency_ ; /** * <code>optional uint32 frequency = 5;</code> */ public boolean hasFrequency() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 frequency = 5;</code> */ public int getFrequency() { return frequency_; } /** * <code>optional uint32 frequency = 5;</code> */ public Builder setFrequency(int value) { bitField0_ |= 0x00000008; frequency_ = value; onChanged(); return this; } /** * <code>optional uint32 frequency = 5;</code> */ public Builder clearFrequency() { bitField0_ = (bitField0_ & ~0x00000008); frequency_ = 0; onChanged(); return this; } // optional uint32 subtypeValuesSize = 6; private int subtypeValuesSize_ ; /** * <code>optional uint32 subtypeValuesSize = 6;</code> */ public boolean hasSubtypeValuesSize() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 subtypeValuesSize = 6;</code> */ public int getSubtypeValuesSize() { return subtypeValuesSize_; } /** * <code>optional uint32 subtypeValuesSize = 6;</code> */ public Builder setSubtypeValuesSize(int value) { bitField0_ |= 0x00000010; subtypeValuesSize_ = value; onChanged(); return this; } /** * <code>optional uint32 subtypeValuesSize = 6;</code> */ 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; } } /** * <code>repeated string subtypeValue = 8;</code> */ public java.util.List<java.lang.String> getSubtypeValueList() { return java.util.Collections.unmodifiableList(subtypeValue_); } /** * <code>repeated string subtypeValue = 8;</code> */ public int getSubtypeValueCount() { return subtypeValue_.size(); } /** * <code>repeated string subtypeValue = 8;</code> */ public java.lang.String getSubtypeValue(int index) { return subtypeValue_.get(index); } /** * <code>repeated string subtypeValue = 8;</code> */ public com.google.protobuf.ByteString getSubtypeValueBytes(int index) { return subtypeValue_.getByteString(index); } /** * <code>repeated string subtypeValue = 8;</code> */ public Builder setSubtypeValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubtypeValueIsMutable(); subtypeValue_.set(index, value); onChanged(); return this; } /** * <code>repeated string subtypeValue = 8;</code> */ public Builder addSubtypeValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubtypeValueIsMutable(); subtypeValue_.add(value); onChanged(); return this; } /** * <code>repeated string subtypeValue = 8;</code> */ public Builder addAllSubtypeValue( java.lang.Iterable<java.lang.String> values) { ensureSubtypeValueIsMutable(); super.addAll(values, subtypeValue_); onChanged(); return this; } /** * <code>repeated string subtypeValue = 8;</code> */ public Builder clearSubtypeValue() { subtypeValue_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * <code>repeated string subtypeValue = 8;</code> */ 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; /** * <code>required uint32 zoom = 1;</code> * * <pre> * delta encoded to parent * </pre> */ boolean hasZoom(); /** * <code>required uint32 zoom = 1;</code> * * <pre> * delta encoded to parent * </pre> */ int getZoom(); // required sint32 left = 2; /** * <code>required sint32 left = 2;</code> * * <pre> * size is one tile * </pre> */ boolean hasLeft(); /** * <code>required sint32 left = 2;</code> * * <pre> * size is one tile * </pre> */ int getLeft(); // required sint32 top = 3; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (zoom) * </pre> */ boolean hasTop(); /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (zoom) * </pre> */ int getTop(); // optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4; /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ boolean hasCategories(); /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ net.osmand.binary.OsmandOdb.OsmAndPoiCategories getCategories(); /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder getCategoriesOrBuilder(); // repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBox> getSubBoxesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiBox getSubBoxes(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ int getSubBoxesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> getSubBoxesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getSubBoxesOrBuilder( int index); // optional fixed32 shiftToData = 14; /** * <code>optional fixed32 shiftToData = 14;</code> * * <pre> * must be the last * </pre> */ boolean hasShiftToData(); /** * <code>optional fixed32 shiftToData = 14;</code> * * <pre> * must be the last * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiBox>(); 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<OsmAndPoiBox> PARSER = new com.google.protobuf.AbstractParser<OsmAndPoiBox>() { 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<OsmAndPoiBox> getParserForType() { return PARSER; } private int bitField0_; // required uint32 zoom = 1; public static final int ZOOM_FIELD_NUMBER = 1; private int zoom_; /** * <code>required uint32 zoom = 1;</code> * * <pre> * delta encoded to parent * </pre> */ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required uint32 zoom = 1;</code> * * <pre> * delta encoded to parent * </pre> */ public int getZoom() { return zoom_; } // required sint32 left = 2; public static final int LEFT_FIELD_NUMBER = 2; private int left_; /** * <code>required sint32 left = 2;</code> * * <pre> * size is one tile * </pre> */ public boolean hasLeft() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 left = 2;</code> * * <pre> * size is one tile * </pre> */ public int getLeft() { return left_; } // required sint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; private int top_; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (zoom) * </pre> */ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (zoom) * </pre> */ 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_; /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ public boolean hasCategories() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiCategories getCategories() { return categories_; } /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiBox> subBoxes_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBox> getSubBoxesList() { return subBoxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> getSubBoxesOrBuilderList() { return subBoxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getSubBoxesCount() { return subBoxes_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBox getSubBoxes(int index) { return subBoxes_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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_; /** * <code>optional fixed32 shiftToData = 14;</code> * * <pre> * must be the last * </pre> */ public boolean hasShiftToData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional fixed32 shiftToData = 14;</code> * * <pre> * must be the last * </pre> */ 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<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_ ; /** * <code>required uint32 zoom = 1;</code> * * <pre> * delta encoded to parent * </pre> */ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required uint32 zoom = 1;</code> * * <pre> * delta encoded to parent * </pre> */ public int getZoom() { return zoom_; } /** * <code>required uint32 zoom = 1;</code> * * <pre> * delta encoded to parent * </pre> */ public Builder setZoom(int value) { bitField0_ |= 0x00000001; zoom_ = value; onChanged(); return this; } /** * <code>required uint32 zoom = 1;</code> * * <pre> * delta encoded to parent * </pre> */ public Builder clearZoom() { bitField0_ = (bitField0_ & ~0x00000001); zoom_ = 0; onChanged(); return this; } // required sint32 left = 2; private int left_ ; /** * <code>required sint32 left = 2;</code> * * <pre> * size is one tile * </pre> */ public boolean hasLeft() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 left = 2;</code> * * <pre> * size is one tile * </pre> */ public int getLeft() { return left_; } /** * <code>required sint32 left = 2;</code> * * <pre> * size is one tile * </pre> */ public Builder setLeft(int value) { bitField0_ |= 0x00000002; left_ = value; onChanged(); return this; } /** * <code>required sint32 left = 2;</code> * * <pre> * size is one tile * </pre> */ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000002); left_ = 0; onChanged(); return this; } // required sint32 top = 3; private int top_ ; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (zoom) * </pre> */ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (zoom) * </pre> */ public int getTop() { return top_; } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (zoom) * </pre> */ public Builder setTop(int value) { bitField0_ |= 0x00000004; top_ = value; onChanged(); return this; } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded (zoom) * </pre> */ 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_; /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ public boolean hasCategories() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiCategories getCategories() { if (categoriesBuilder_ == null) { return categories_; } else { return categoriesBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ public Builder clearCategories() { if (categoriesBuilder_ == null) { categories_ = net.osmand.binary.OsmandOdb.OsmAndPoiCategories.getDefaultInstance(); onChanged(); } else { categoriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiCategories.Builder getCategoriesBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCategoriesFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiCategoriesOrBuilder getCategoriesOrBuilder() { if (categoriesBuilder_ != null) { return categoriesBuilder_.getMessageOrBuilder(); } else { return categories_; } } /** * <code>optional .OsmAnd.OBF.OsmAndPoiCategories categories = 4;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiBox> subBoxes_ = java.util.Collections.emptyList(); private void ensureSubBoxesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { subBoxes_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndPoiBox>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBox> getSubBoxesList() { if (subBoxesBuilder_ == null) { return java.util.Collections.unmodifiableList(subBoxes_); } else { return subBoxesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getSubBoxesCount() { if (subBoxesBuilder_ == null) { return subBoxes_.size(); } else { return subBoxesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBox getSubBoxes(int index) { if (subBoxesBuilder_ == null) { return subBoxes_.get(index); } else { return subBoxesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder addAllSubBoxes( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBox> values) { if (subBoxesBuilder_ == null) { ensureSubBoxesIsMutable(); super.addAll(values, subBoxes_); onChanged(); } else { subBoxesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearSubBoxes() { if (subBoxesBuilder_ == null) { subBoxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { subBoxesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder removeSubBoxes(int index) { if (subBoxesBuilder_ == null) { ensureSubBoxesIsMutable(); subBoxes_.remove(index); onChanged(); } else { subBoxesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder getSubBoxesBuilder( int index) { return getSubBoxesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder getSubBoxesOrBuilder( int index) { if (subBoxesBuilder_ == null) { return subBoxes_.get(index); } else { return subBoxesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxOrBuilder> getSubBoxesOrBuilderList() { if (subBoxesBuilder_ != null) { return subBoxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subBoxes_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addSubBoxesBuilder() { return getSubBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder addSubBoxesBuilder( int index) { return getSubBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBox subBoxes = 10;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBox.Builder> 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_ ; /** * <code>optional fixed32 shiftToData = 14;</code> * * <pre> * must be the last * </pre> */ public boolean hasShiftToData() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional fixed32 shiftToData = 14;</code> * * <pre> * must be the last * </pre> */ public int getShiftToData() { return shiftToData_; } /** * <code>optional fixed32 shiftToData = 14;</code> * * <pre> * must be the last * </pre> */ public Builder setShiftToData(int value) { bitField0_ |= 0x00000020; shiftToData_ = value; onChanged(); return this; } /** * <code>optional fixed32 shiftToData = 14;</code> * * <pre> * must be the last * </pre> */ 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; /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ java.util.List<java.lang.Integer> getCategoriesList(); /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ int getCategoriesCount(); /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ int getCategories(int index); // repeated uint32 subcategories = 5; /** * <code>repeated uint32 subcategories = 5;</code> */ java.util.List<java.lang.Integer> getSubcategoriesList(); /** * <code>repeated uint32 subcategories = 5;</code> */ int getSubcategoriesCount(); /** * <code>repeated uint32 subcategories = 5;</code> */ 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<OsmAndPoiCategories> PARSER = new com.google.protobuf.AbstractParser<OsmAndPoiCategories>() { 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<OsmAndPoiCategories> getParserForType() { return PARSER; } // repeated uint32 categories = 3; public static final int CATEGORIES_FIELD_NUMBER = 3; private java.util.List<java.lang.Integer> categories_; /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ public java.util.List<java.lang.Integer> getCategoriesList() { return categories_; } /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ public int getCategoriesCount() { return categories_.size(); } /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ 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<java.lang.Integer> subcategories_; /** * <code>repeated uint32 subcategories = 5;</code> */ public java.util.List<java.lang.Integer> getSubcategoriesList() { return subcategories_; } /** * <code>repeated uint32 subcategories = 5;</code> */ public int getSubcategoriesCount() { return subcategories_.size(); } /** * <code>repeated uint32 subcategories = 5;</code> */ 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<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<java.lang.Integer> categories_ = java.util.Collections.emptyList(); private void ensureCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { categories_ = new java.util.ArrayList<java.lang.Integer>(categories_); bitField0_ |= 0x00000001; } } /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ public java.util.List<java.lang.Integer> getCategoriesList() { return java.util.Collections.unmodifiableList(categories_); } /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ public int getCategoriesCount() { return categories_.size(); } /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ public int getCategories(int index) { return categories_.get(index); } /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ public Builder setCategories( int index, int value) { ensureCategoriesIsMutable(); categories_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ public Builder addCategories(int value) { ensureCategoriesIsMutable(); categories_.add(value); onChanged(); return this; } /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ public Builder addAllCategories( java.lang.Iterable<? extends java.lang.Integer> values) { ensureCategoriesIsMutable(); super.addAll(values, categories_); onChanged(); return this; } /** * <code>repeated uint32 categories = 3;</code> * * <pre> * sorted categories * </pre> */ public Builder clearCategories() { categories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // repeated uint32 subcategories = 5; private java.util.List<java.lang.Integer> subcategories_ = java.util.Collections.emptyList(); private void ensureSubcategoriesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { subcategories_ = new java.util.ArrayList<java.lang.Integer>(subcategories_); bitField0_ |= 0x00000002; } } /** * <code>repeated uint32 subcategories = 5;</code> */ public java.util.List<java.lang.Integer> getSubcategoriesList() { return java.util.Collections.unmodifiableList(subcategories_); } /** * <code>repeated uint32 subcategories = 5;</code> */ public int getSubcategoriesCount() { return subcategories_.size(); } /** * <code>repeated uint32 subcategories = 5;</code> */ public int getSubcategories(int index) { return subcategories_.get(index); } /** * <code>repeated uint32 subcategories = 5;</code> */ public Builder setSubcategories( int index, int value) { ensureSubcategoriesIsMutable(); subcategories_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 subcategories = 5;</code> */ public Builder addSubcategories(int value) { ensureSubcategoriesIsMutable(); subcategories_.add(value); onChanged(); return this; } /** * <code>repeated uint32 subcategories = 5;</code> */ public Builder addAllSubcategories( java.lang.Iterable<? extends java.lang.Integer> values) { ensureSubcategoriesIsMutable(); super.addAll(values, subcategories_); onChanged(); return this; } /** * <code>repeated uint32 subcategories = 5;</code> */ 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; /** * <code>optional uint32 zoom = 1;</code> * * <pre> * zoom level * </pre> */ boolean hasZoom(); /** * <code>optional uint32 zoom = 1;</code> * * <pre> * zoom level * </pre> */ int getZoom(); // optional uint32 x = 2; /** * <code>optional uint32 x = 2;</code> * * <pre> * x tile * </pre> */ boolean hasX(); /** * <code>optional uint32 x = 2;</code> * * <pre> * x tile * </pre> */ int getX(); // optional uint32 y = 3; /** * <code>optional uint32 y = 3;</code> * * <pre> * y tile * </pre> */ boolean hasY(); /** * <code>optional uint32 y = 3;</code> * * <pre> * y tile * </pre> */ int getY(); // repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom> getPoiDataList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom getPoiData(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ int getPoiDataCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder> getPoiDataOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom>(); 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<OsmAndPoiBoxData> PARSER = new com.google.protobuf.AbstractParser<OsmAndPoiBoxData>() { 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<OsmAndPoiBoxData> getParserForType() { return PARSER; } private int bitField0_; // optional uint32 zoom = 1; public static final int ZOOM_FIELD_NUMBER = 1; private int zoom_; /** * <code>optional uint32 zoom = 1;</code> * * <pre> * zoom level * </pre> */ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 zoom = 1;</code> * * <pre> * zoom level * </pre> */ public int getZoom() { return zoom_; } // optional uint32 x = 2; public static final int X_FIELD_NUMBER = 2; private int x_; /** * <code>optional uint32 x = 2;</code> * * <pre> * x tile * </pre> */ public boolean hasX() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 x = 2;</code> * * <pre> * x tile * </pre> */ public int getX() { return x_; } // optional uint32 y = 3; public static final int Y_FIELD_NUMBER = 3; private int y_; /** * <code>optional uint32 y = 3;</code> * * <pre> * y tile * </pre> */ public boolean hasY() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 y = 3;</code> * * <pre> * y tile * </pre> */ public int getY() { return y_; } // repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; public static final int POIDATA_FIELD_NUMBER = 5; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom> poiData_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom> getPoiDataList() { return poiData_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder> getPoiDataOrBuilderList() { return poiData_; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public int getPoiDataCount() { return poiData_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom getPoiData(int index) { return poiData_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ 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<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_ ; /** * <code>optional uint32 zoom = 1;</code> * * <pre> * zoom level * </pre> */ public boolean hasZoom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 zoom = 1;</code> * * <pre> * zoom level * </pre> */ public int getZoom() { return zoom_; } /** * <code>optional uint32 zoom = 1;</code> * * <pre> * zoom level * </pre> */ public Builder setZoom(int value) { bitField0_ |= 0x00000001; zoom_ = value; onChanged(); return this; } /** * <code>optional uint32 zoom = 1;</code> * * <pre> * zoom level * </pre> */ public Builder clearZoom() { bitField0_ = (bitField0_ & ~0x00000001); zoom_ = 0; onChanged(); return this; } // optional uint32 x = 2; private int x_ ; /** * <code>optional uint32 x = 2;</code> * * <pre> * x tile * </pre> */ public boolean hasX() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 x = 2;</code> * * <pre> * x tile * </pre> */ public int getX() { return x_; } /** * <code>optional uint32 x = 2;</code> * * <pre> * x tile * </pre> */ public Builder setX(int value) { bitField0_ |= 0x00000002; x_ = value; onChanged(); return this; } /** * <code>optional uint32 x = 2;</code> * * <pre> * x tile * </pre> */ public Builder clearX() { bitField0_ = (bitField0_ & ~0x00000002); x_ = 0; onChanged(); return this; } // optional uint32 y = 3; private int y_ ; /** * <code>optional uint32 y = 3;</code> * * <pre> * y tile * </pre> */ public boolean hasY() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 y = 3;</code> * * <pre> * y tile * </pre> */ public int getY() { return y_; } /** * <code>optional uint32 y = 3;</code> * * <pre> * y tile * </pre> */ public Builder setY(int value) { bitField0_ |= 0x00000004; y_ = value; onChanged(); return this; } /** * <code>optional uint32 y = 3;</code> * * <pre> * y tile * </pre> */ public Builder clearY() { bitField0_ = (bitField0_ & ~0x00000004); y_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom> poiData_ = java.util.Collections.emptyList(); private void ensurePoiDataIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { poiData_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom> getPoiDataList() { if (poiDataBuilder_ == null) { return java.util.Collections.unmodifiableList(poiData_); } else { return poiDataBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public int getPoiDataCount() { if (poiDataBuilder_ == null) { return poiData_.size(); } else { return poiDataBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom getPoiData(int index) { if (poiDataBuilder_ == null) { return poiData_.get(index); } else { return poiDataBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public Builder addAllPoiData( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom> values) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); super.addAll(values, poiData_); onChanged(); } else { poiDataBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public Builder clearPoiData() { if (poiDataBuilder_ == null) { poiData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { poiDataBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public Builder removePoiData(int index) { if (poiDataBuilder_ == null) { ensurePoiDataIsMutable(); poiData_.remove(index); onChanged(); } else { poiDataBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder getPoiDataBuilder( int index) { return getPoiDataFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder getPoiDataOrBuilder( int index) { if (poiDataBuilder_ == null) { return poiData_.get(index); } else { return poiDataBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtomOrBuilder> getPoiDataOrBuilderList() { if (poiDataBuilder_ != null) { return poiDataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(poiData_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder addPoiDataBuilder() { return getPoiDataFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder addPoiDataBuilder( int index) { return getPoiDataFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndPoiBoxDataAtom poiData = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndPoiBoxDataAtom.Builder> 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; /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ boolean hasDx(); /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ int getDx(); // required sint32 dy = 3; /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ boolean hasDy(); /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ int getDy(); // repeated uint32 categories = 4; /** * <code>repeated uint32 categories = 4;</code> */ java.util.List<java.lang.Integer> getCategoriesList(); /** * <code>repeated uint32 categories = 4;</code> */ int getCategoriesCount(); /** * <code>repeated uint32 categories = 4;</code> */ int getCategories(int index); // repeated uint32 subcategories = 5; /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ java.util.List<java.lang.Integer> getSubcategoriesList(); /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ int getSubcategoriesCount(); /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ int getSubcategories(int index); // optional string name = 6; /** * <code>optional string name = 6;</code> */ boolean hasName(); /** * <code>optional string name = 6;</code> */ java.lang.String getName(); /** * <code>optional string name = 6;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional string nameEn = 7; /** * <code>optional string nameEn = 7;</code> */ boolean hasNameEn(); /** * <code>optional string nameEn = 7;</code> */ java.lang.String getNameEn(); /** * <code>optional string nameEn = 7;</code> */ com.google.protobuf.ByteString getNameEnBytes(); // optional uint64 id = 8; /** * <code>optional uint64 id = 8;</code> */ boolean hasId(); /** * <code>optional uint64 id = 8;</code> */ long getId(); // optional string openingHours = 10; /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ boolean hasOpeningHours(); /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ java.lang.String getOpeningHours(); /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ com.google.protobuf.ByteString getOpeningHoursBytes(); // optional string site = 11; /** * <code>optional string site = 11;</code> */ boolean hasSite(); /** * <code>optional string site = 11;</code> */ java.lang.String getSite(); /** * <code>optional string site = 11;</code> */ com.google.protobuf.ByteString getSiteBytes(); // optional string phone = 12; /** * <code>optional string phone = 12;</code> */ boolean hasPhone(); /** * <code>optional string phone = 12;</code> */ java.lang.String getPhone(); /** * <code>optional string phone = 12;</code> */ com.google.protobuf.ByteString getPhoneBytes(); // optional string note = 13; /** * <code>optional string note = 13;</code> */ boolean hasNote(); /** * <code>optional string note = 13;</code> */ java.lang.String getNote(); /** * <code>optional string note = 13;</code> */ com.google.protobuf.ByteString getNoteBytes(); // repeated uint32 textCategories = 14; /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ java.util.List<java.lang.Integer> getTextCategoriesList(); /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ int getTextCategoriesCount(); /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ int getTextCategories(int index); // repeated string textValues = 15; /** * <code>repeated string textValues = 15;</code> */ java.util.List<java.lang.String> getTextValuesList(); /** * <code>repeated string textValues = 15;</code> */ int getTextValuesCount(); /** * <code>repeated string textValues = 15;</code> */ java.lang.String getTextValues(int index); /** * <code>repeated string textValues = 15;</code> */ 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<java.lang.Integer>(); 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<OsmAndPoiBoxDataAtom> PARSER = new com.google.protobuf.AbstractParser<OsmAndPoiBoxDataAtom>() { 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<OsmAndPoiBoxDataAtom> getParserForType() { return PARSER; } private int bitField0_; // required sint32 dx = 2; public static final int DX_FIELD_NUMBER = 2; private int dx_; /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public boolean hasDx() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public int getDx() { return dx_; } // required sint32 dy = 3; public static final int DY_FIELD_NUMBER = 3; private int dy_; /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public boolean hasDy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public int getDy() { return dy_; } // repeated uint32 categories = 4; public static final int CATEGORIES_FIELD_NUMBER = 4; private java.util.List<java.lang.Integer> categories_; /** * <code>repeated uint32 categories = 4;</code> */ public java.util.List<java.lang.Integer> getCategoriesList() { return categories_; } /** * <code>repeated uint32 categories = 4;</code> */ public int getCategoriesCount() { return categories_.size(); } /** * <code>repeated uint32 categories = 4;</code> */ 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<java.lang.Integer> subcategories_; /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ public java.util.List<java.lang.Integer> getSubcategoriesList() { return subcategories_; } /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ public int getSubcategoriesCount() { return subcategories_.size(); } /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ 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_; /** * <code>optional string name = 6;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string name = 6;</code> */ 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; } } /** * <code>optional string name = 6;</code> */ 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_; /** * <code>optional string nameEn = 7;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string nameEn = 7;</code> */ 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; } } /** * <code>optional string nameEn = 7;</code> */ 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_; /** * <code>optional uint64 id = 8;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint64 id = 8;</code> */ public long getId() { return id_; } // optional string openingHours = 10; public static final int OPENINGHOURS_FIELD_NUMBER = 10; private java.lang.Object openingHours_; /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ public boolean hasOpeningHours() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ 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; } } /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ 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_; /** * <code>optional string site = 11;</code> */ public boolean hasSite() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional string site = 11;</code> */ 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; } } /** * <code>optional string site = 11;</code> */ 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_; /** * <code>optional string phone = 12;</code> */ public boolean hasPhone() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional string phone = 12;</code> */ 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; } } /** * <code>optional string phone = 12;</code> */ 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_; /** * <code>optional string note = 13;</code> */ public boolean hasNote() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional string note = 13;</code> */ 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; } } /** * <code>optional string note = 13;</code> */ 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<java.lang.Integer> textCategories_; /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ public java.util.List<java.lang.Integer> getTextCategoriesList() { return textCategories_; } /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ public int getTextCategoriesCount() { return textCategories_.size(); } /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ 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_; /** * <code>repeated string textValues = 15;</code> */ public java.util.List<java.lang.String> getTextValuesList() { return textValues_; } /** * <code>repeated string textValues = 15;</code> */ public int getTextValuesCount() { return textValues_.size(); } /** * <code>repeated string textValues = 15;</code> */ public java.lang.String getTextValues(int index) { return textValues_.get(index); } /** * <code>repeated string textValues = 15;</code> */ 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<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_ ; /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public boolean hasDx() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public int getDx() { return dx_; } /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public Builder setDx(int value) { bitField0_ |= 0x00000001; dx_ = value; onChanged(); return this; } /** * <code>required sint32 dx = 2;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public Builder clearDx() { bitField0_ = (bitField0_ & ~0x00000001); dx_ = 0; onChanged(); return this; } // required sint32 dy = 3; private int dy_ ; /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public boolean hasDy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public int getDy() { return dy_; } /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public Builder setDy(int value) { bitField0_ |= 0x00000002; dy_ = value; onChanged(); return this; } /** * <code>required sint32 dy = 3;</code> * * <pre> * delta encoded to OsmAndPoiBox on 24 zoom * </pre> */ public Builder clearDy() { bitField0_ = (bitField0_ & ~0x00000002); dy_ = 0; onChanged(); return this; } // repeated uint32 categories = 4; private java.util.List<java.lang.Integer> categories_ = java.util.Collections.emptyList(); private void ensureCategoriesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { categories_ = new java.util.ArrayList<java.lang.Integer>(categories_); bitField0_ |= 0x00000004; } } /** * <code>repeated uint32 categories = 4;</code> */ public java.util.List<java.lang.Integer> getCategoriesList() { return java.util.Collections.unmodifiableList(categories_); } /** * <code>repeated uint32 categories = 4;</code> */ public int getCategoriesCount() { return categories_.size(); } /** * <code>repeated uint32 categories = 4;</code> */ public int getCategories(int index) { return categories_.get(index); } /** * <code>repeated uint32 categories = 4;</code> */ public Builder setCategories( int index, int value) { ensureCategoriesIsMutable(); categories_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 categories = 4;</code> */ public Builder addCategories(int value) { ensureCategoriesIsMutable(); categories_.add(value); onChanged(); return this; } /** * <code>repeated uint32 categories = 4;</code> */ public Builder addAllCategories( java.lang.Iterable<? extends java.lang.Integer> values) { ensureCategoriesIsMutable(); super.addAll(values, categories_); onChanged(); return this; } /** * <code>repeated uint32 categories = 4;</code> */ public Builder clearCategories() { categories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // repeated uint32 subcategories = 5; private java.util.List<java.lang.Integer> subcategories_ = java.util.Collections.emptyList(); private void ensureSubcategoriesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { subcategories_ = new java.util.ArrayList<java.lang.Integer>(subcategories_); bitField0_ |= 0x00000008; } } /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ public java.util.List<java.lang.Integer> getSubcategoriesList() { return java.util.Collections.unmodifiableList(subcategories_); } /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ public int getSubcategoriesCount() { return subcategories_.size(); } /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ public int getSubcategories(int index) { return subcategories_.get(index); } /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ public Builder setSubcategories( int index, int value) { ensureSubcategoriesIsMutable(); subcategories_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ public Builder addSubcategories(int value) { ensureSubcategoriesIsMutable(); subcategories_.add(value); onChanged(); return this; } /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ public Builder addAllSubcategories( java.lang.Iterable<? extends java.lang.Integer> values) { ensureSubcategoriesIsMutable(); super.addAll(values, subcategories_); onChanged(); return this; } /** * <code>repeated uint32 subcategories = 5;</code> * * <pre> * v1.7 * </pre> */ public Builder clearSubcategories() { subcategories_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // optional string name = 6; private java.lang.Object name_ = ""; /** * <code>optional string name = 6;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string name = 6;</code> */ 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; } } /** * <code>optional string name = 6;</code> */ 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; } } /** * <code>optional string name = 6;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; name_ = value; onChanged(); return this; } /** * <code>optional string name = 6;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000010); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>optional string name = 6;</code> */ 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_ = ""; /** * <code>optional string nameEn = 7;</code> */ public boolean hasNameEn() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string nameEn = 7;</code> */ 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; } } /** * <code>optional string nameEn = 7;</code> */ 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; } } /** * <code>optional string nameEn = 7;</code> */ public Builder setNameEn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; nameEn_ = value; onChanged(); return this; } /** * <code>optional string nameEn = 7;</code> */ public Builder clearNameEn() { bitField0_ = (bitField0_ & ~0x00000020); nameEn_ = getDefaultInstance().getNameEn(); onChanged(); return this; } /** * <code>optional string nameEn = 7;</code> */ 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_ ; /** * <code>optional uint64 id = 8;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional uint64 id = 8;</code> */ public long getId() { return id_; } /** * <code>optional uint64 id = 8;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000040; id_ = value; onChanged(); return this; } /** * <code>optional uint64 id = 8;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000040); id_ = 0L; onChanged(); return this; } // optional string openingHours = 10; private java.lang.Object openingHours_ = ""; /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ public boolean hasOpeningHours() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ 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; } } /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ 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; } } /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ public Builder setOpeningHours( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; openingHours_ = value; onChanged(); return this; } /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ public Builder clearOpeningHours() { bitField0_ = (bitField0_ & ~0x00000080); openingHours_ = getDefaultInstance().getOpeningHours(); onChanged(); return this; } /** * <code>optional string openingHours = 10;</code> * * <pre> * deprecated from v1.7 * </pre> */ 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_ = ""; /** * <code>optional string site = 11;</code> */ public boolean hasSite() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional string site = 11;</code> */ 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; } } /** * <code>optional string site = 11;</code> */ 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; } } /** * <code>optional string site = 11;</code> */ public Builder setSite( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; site_ = value; onChanged(); return this; } /** * <code>optional string site = 11;</code> */ public Builder clearSite() { bitField0_ = (bitField0_ & ~0x00000100); site_ = getDefaultInstance().getSite(); onChanged(); return this; } /** * <code>optional string site = 11;</code> */ 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_ = ""; /** * <code>optional string phone = 12;</code> */ public boolean hasPhone() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional string phone = 12;</code> */ 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; } } /** * <code>optional string phone = 12;</code> */ 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; } } /** * <code>optional string phone = 12;</code> */ public Builder setPhone( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; phone_ = value; onChanged(); return this; } /** * <code>optional string phone = 12;</code> */ public Builder clearPhone() { bitField0_ = (bitField0_ & ~0x00000200); phone_ = getDefaultInstance().getPhone(); onChanged(); return this; } /** * <code>optional string phone = 12;</code> */ 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_ = ""; /** * <code>optional string note = 13;</code> */ public boolean hasNote() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional string note = 13;</code> */ 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; } } /** * <code>optional string note = 13;</code> */ 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; } } /** * <code>optional string note = 13;</code> */ public Builder setNote( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; note_ = value; onChanged(); return this; } /** * <code>optional string note = 13;</code> */ public Builder clearNote() { bitField0_ = (bitField0_ & ~0x00000400); note_ = getDefaultInstance().getNote(); onChanged(); return this; } /** * <code>optional string note = 13;</code> */ 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<java.lang.Integer> textCategories_ = java.util.Collections.emptyList(); private void ensureTextCategoriesIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { textCategories_ = new java.util.ArrayList<java.lang.Integer>(textCategories_); bitField0_ |= 0x00000800; } } /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ public java.util.List<java.lang.Integer> getTextCategoriesList() { return java.util.Collections.unmodifiableList(textCategories_); } /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ public int getTextCategoriesCount() { return textCategories_.size(); } /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ public int getTextCategories(int index) { return textCategories_.get(index); } /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ public Builder setTextCategories( int index, int value) { ensureTextCategoriesIsMutable(); textCategories_.set(index, value); onChanged(); return this; } /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ public Builder addTextCategories(int value) { ensureTextCategoriesIsMutable(); textCategories_.add(value); onChanged(); return this; } /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ public Builder addAllTextCategories( java.lang.Iterable<? extends java.lang.Integer> values) { ensureTextCategoriesIsMutable(); super.addAll(values, textCategories_); onChanged(); return this; } /** * <code>repeated uint32 textCategories = 14;</code> * * <pre> * v1.7 * </pre> */ 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; } } /** * <code>repeated string textValues = 15;</code> */ public java.util.List<java.lang.String> getTextValuesList() { return java.util.Collections.unmodifiableList(textValues_); } /** * <code>repeated string textValues = 15;</code> */ public int getTextValuesCount() { return textValues_.size(); } /** * <code>repeated string textValues = 15;</code> */ public java.lang.String getTextValues(int index) { return textValues_.get(index); } /** * <code>repeated string textValues = 15;</code> */ public com.google.protobuf.ByteString getTextValuesBytes(int index) { return textValues_.getByteString(index); } /** * <code>repeated string textValues = 15;</code> */ public Builder setTextValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTextValuesIsMutable(); textValues_.set(index, value); onChanged(); return this; } /** * <code>repeated string textValues = 15;</code> */ public Builder addTextValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTextValuesIsMutable(); textValues_.add(value); onChanged(); return this; } /** * <code>repeated string textValues = 15;</code> */ public Builder addAllTextValues( java.lang.Iterable<java.lang.String> values) { ensureTextValuesIsMutable(); super.addAll(values, textValues_); onChanged(); return this; } /** * <code>repeated string textValues = 15;</code> */ public Builder clearTextValues() { textValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** * <code>repeated string textValues = 15;</code> */ 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; /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ java.util.List<java.lang.Long> getRouteIdList(); /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ int getRouteIdCount(); /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ long getRouteId(int index); } /** * Protobuf type {@code OsmAnd.OBF.IdTable} * * <pre> ** * Id table 1-based. Map of sequential ids to real ids * [1,2,3....n] -> [a1, ... an] * a1,.. an - (ideally sorted) set of longs * </pre> */ 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<java.lang.Long>(); 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<java.lang.Long>(); 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<IdTable> PARSER = new com.google.protobuf.AbstractParser<IdTable>() { 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<IdTable> getParserForType() { return PARSER; } // repeated sint64 routeId = 1; public static final int ROUTEID_FIELD_NUMBER = 1; private java.util.List<java.lang.Long> routeId_; /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ public java.util.List<java.lang.Long> getRouteIdList() { return routeId_; } /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ public int getRouteIdCount() { return routeId_.size(); } /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ 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} * * <pre> ** * Id table 1-based. Map of sequential ids to real ids * [1,2,3....n] -> [a1, ... an] * a1,.. an - (ideally sorted) set of longs * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<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<java.lang.Long> routeId_ = java.util.Collections.emptyList(); private void ensureRouteIdIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { routeId_ = new java.util.ArrayList<java.lang.Long>(routeId_); bitField0_ |= 0x00000001; } } /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ public java.util.List<java.lang.Long> getRouteIdList() { return java.util.Collections.unmodifiableList(routeId_); } /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ public int getRouteIdCount() { return routeId_.size(); } /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ public long getRouteId(int index) { return routeId_.get(index); } /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ public Builder setRouteId( int index, long value) { ensureRouteIdIsMutable(); routeId_.set(index, value); onChanged(); return this; } /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ public Builder addRouteId(long value) { ensureRouteIdIsMutable(); routeId_.add(value); onChanged(); return this; } /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ public Builder addAllRouteId( java.lang.Iterable<? extends java.lang.Long> values) { ensureRouteIdIsMutable(); super.addAll(values, routeId_); onChanged(); return this; } /** * <code>repeated sint64 routeId = 1;</code> * * <pre> * diff between 2 ids * </pre> */ 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; /** * <code>required int32 type = 1;</code> */ boolean hasType(); /** * <code>required int32 type = 1;</code> */ int getType(); // required int32 from = 2; /** * <code>required int32 from = 2;</code> */ boolean hasFrom(); /** * <code>required int32 from = 2;</code> */ int getFrom(); // required int32 to = 3; /** * <code>required int32 to = 3;</code> */ boolean hasTo(); /** * <code>required int32 to = 3;</code> */ int getTo(); // optional int32 via = 4; /** * <code>optional int32 via = 4;</code> */ boolean hasVia(); /** * <code>optional int32 via = 4;</code> */ 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<RestrictionData> PARSER = new com.google.protobuf.AbstractParser<RestrictionData>() { 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<RestrictionData> getParserForType() { return PARSER; } private int bitField0_; // required int32 type = 1; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * <code>required int32 type = 1;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int32 type = 1;</code> */ public int getType() { return type_; } // required int32 from = 2; public static final int FROM_FIELD_NUMBER = 2; private int from_; /** * <code>required int32 from = 2;</code> */ public boolean hasFrom() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required int32 from = 2;</code> */ public int getFrom() { return from_; } // required int32 to = 3; public static final int TO_FIELD_NUMBER = 3; private int to_; /** * <code>required int32 to = 3;</code> */ public boolean hasTo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required int32 to = 3;</code> */ public int getTo() { return to_; } // optional int32 via = 4; public static final int VIA_FIELD_NUMBER = 4; private int via_; /** * <code>optional int32 via = 4;</code> */ public boolean hasVia() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 via = 4;</code> */ 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<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_ ; /** * <code>required int32 type = 1;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required int32 type = 1;</code> */ public int getType() { return type_; } /** * <code>required int32 type = 1;</code> */ public Builder setType(int value) { bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * <code>required int32 type = 1;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } // required int32 from = 2; private int from_ ; /** * <code>required int32 from = 2;</code> */ public boolean hasFrom() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required int32 from = 2;</code> */ public int getFrom() { return from_; } /** * <code>required int32 from = 2;</code> */ public Builder setFrom(int value) { bitField0_ |= 0x00000002; from_ = value; onChanged(); return this; } /** * <code>required int32 from = 2;</code> */ public Builder clearFrom() { bitField0_ = (bitField0_ & ~0x00000002); from_ = 0; onChanged(); return this; } // required int32 to = 3; private int to_ ; /** * <code>required int32 to = 3;</code> */ public boolean hasTo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required int32 to = 3;</code> */ public int getTo() { return to_; } /** * <code>required int32 to = 3;</code> */ public Builder setTo(int value) { bitField0_ |= 0x00000004; to_ = value; onChanged(); return this; } /** * <code>required int32 to = 3;</code> */ public Builder clearTo() { bitField0_ = (bitField0_ & ~0x00000004); to_ = 0; onChanged(); return this; } // optional int32 via = 4; private int via_ ; /** * <code>optional int32 via = 4;</code> */ public boolean hasVia() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int32 via = 4;</code> */ public int getVia() { return via_; } /** * <code>optional int32 via = 4;</code> */ public Builder setVia(int value) { bitField0_ |= 0x00000008; via_ = value; onChanged(); return this; } /** * <code>optional int32 via = 4;</code> */ 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; /** * <code>required bytes points = 1;</code> * * <pre> * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * </pre> */ boolean hasPoints(); /** * <code>required bytes points = 1;</code> * * <pre> * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * </pre> */ com.google.protobuf.ByteString getPoints(); // optional bytes pointTypes = 4; /** * <code>optional bytes pointTypes = 4;</code> * * <pre> * continuous array of pairs * [pointIndex - int32, pointTypes - bytes] * bytes - array of raw var int types * </pre> */ boolean hasPointTypes(); /** * <code>optional bytes pointTypes = 4;</code> * * <pre> * continuous array of pairs * [pointIndex - int32, pointTypes - bytes] * bytes - array of raw var int types * </pre> */ com.google.protobuf.ByteString getPointTypes(); // optional bytes pointNames = 5; /** * <code>optional bytes pointNames = 5;</code> * * <pre> * continuous array of triples * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int] * </pre> */ boolean hasPointNames(); /** * <code>optional bytes pointNames = 5;</code> * * <pre> * continuous array of triples * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int] * </pre> */ com.google.protobuf.ByteString getPointNames(); // required bytes types = 7; /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ boolean hasTypes(); /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ com.google.protobuf.ByteString getTypes(); // required int32 routeId = 12; /** * <code>required int32 routeId = 12;</code> * * <pre> * id internal * </pre> */ boolean hasRouteId(); /** * <code>required int32 routeId = 12;</code> * * <pre> * id internal * </pre> */ int getRouteId(); // optional bytes stringNames = 14; /** * <code>optional bytes stringNames = 14;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ boolean hasStringNames(); /** * <code>optional bytes stringNames = 14;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ 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<RouteData> PARSER = new com.google.protobuf.AbstractParser<RouteData>() { 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<RouteData> getParserForType() { return PARSER; } private int bitField0_; // required bytes points = 1; public static final int POINTS_FIELD_NUMBER = 1; private com.google.protobuf.ByteString points_; /** * <code>required bytes points = 1;</code> * * <pre> * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * </pre> */ public boolean hasPoints() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes points = 1;</code> * * <pre> * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * </pre> */ 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_; /** * <code>optional bytes pointTypes = 4;</code> * * <pre> * continuous array of pairs * [pointIndex - int32, pointTypes - bytes] * bytes - array of raw var int types * </pre> */ public boolean hasPointTypes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes pointTypes = 4;</code> * * <pre> * continuous array of pairs * [pointIndex - int32, pointTypes - bytes] * bytes - array of raw var int types * </pre> */ 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_; /** * <code>optional bytes pointNames = 5;</code> * * <pre> * continuous array of triples * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int] * </pre> */ public boolean hasPointNames() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bytes pointNames = 5;</code> * * <pre> * continuous array of triples * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int] * </pre> */ 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_; /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public boolean hasTypes() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public com.google.protobuf.ByteString getTypes() { return types_; } // required int32 routeId = 12; public static final int ROUTEID_FIELD_NUMBER = 12; private int routeId_; /** * <code>required int32 routeId = 12;</code> * * <pre> * id internal * </pre> */ public boolean hasRouteId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>required int32 routeId = 12;</code> * * <pre> * id internal * </pre> */ public int getRouteId() { return routeId_; } // optional bytes stringNames = 14; public static final int STRINGNAMES_FIELD_NUMBER = 14; private com.google.protobuf.ByteString stringNames_; /** * <code>optional bytes stringNames = 14;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ public boolean hasStringNames() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bytes stringNames = 14;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ 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<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; /** * <code>required bytes points = 1;</code> * * <pre> * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * </pre> */ public boolean hasPoints() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes points = 1;</code> * * <pre> * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * </pre> */ public com.google.protobuf.ByteString getPoints() { return points_; } /** * <code>required bytes points = 1;</code> * * <pre> * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * </pre> */ public Builder setPoints(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; points_ = value; onChanged(); return this; } /** * <code>required bytes points = 1;</code> * * <pre> * array of delta x,y sint32 (CodedIinputStream) >> 5 * first x delta to Tree.left, y to delta Tree.top (next delta to previous) * </pre> */ 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; /** * <code>optional bytes pointTypes = 4;</code> * * <pre> * continuous array of pairs * [pointIndex - int32, pointTypes - bytes] * bytes - array of raw var int types * </pre> */ public boolean hasPointTypes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes pointTypes = 4;</code> * * <pre> * continuous array of pairs * [pointIndex - int32, pointTypes - bytes] * bytes - array of raw var int types * </pre> */ public com.google.protobuf.ByteString getPointTypes() { return pointTypes_; } /** * <code>optional bytes pointTypes = 4;</code> * * <pre> * continuous array of pairs * [pointIndex - int32, pointTypes - bytes] * bytes - array of raw var int types * </pre> */ public Builder setPointTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; pointTypes_ = value; onChanged(); return this; } /** * <code>optional bytes pointTypes = 4;</code> * * <pre> * continuous array of pairs * [pointIndex - int32, pointTypes - bytes] * bytes - array of raw var int types * </pre> */ 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; /** * <code>optional bytes pointNames = 5;</code> * * <pre> * continuous array of triples * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int] * </pre> */ public boolean hasPointNames() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bytes pointNames = 5;</code> * * <pre> * continuous array of triples * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int] * </pre> */ public com.google.protobuf.ByteString getPointNames() { return pointNames_; } /** * <code>optional bytes pointNames = 5;</code> * * <pre> * continuous array of triples * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int] * </pre> */ public Builder setPointNames(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; pointNames_ = value; onChanged(); return this; } /** * <code>optional bytes pointNames = 5;</code> * * <pre> * continuous array of triples * [pointIndex - int32, tagId - raw_var_int, indexOfStringInParent : raw_var_int] * </pre> */ 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; /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public boolean hasTypes() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public com.google.protobuf.ByteString getTypes() { return types_; } /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public Builder setTypes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; types_ = value; onChanged(); return this; } /** * <code>required bytes types = 7;</code> * * <pre> * array of raw var int types * </pre> */ public Builder clearTypes() { bitField0_ = (bitField0_ & ~0x00000008); types_ = getDefaultInstance().getTypes(); onChanged(); return this; } // required int32 routeId = 12; private int routeId_ ; /** * <code>required int32 routeId = 12;</code> * * <pre> * id internal * </pre> */ public boolean hasRouteId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>required int32 routeId = 12;</code> * * <pre> * id internal * </pre> */ public int getRouteId() { return routeId_; } /** * <code>required int32 routeId = 12;</code> * * <pre> * id internal * </pre> */ public Builder setRouteId(int value) { bitField0_ |= 0x00000010; routeId_ = value; onChanged(); return this; } /** * <code>required int32 routeId = 12;</code> * * <pre> * id internal * </pre> */ 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; /** * <code>optional bytes stringNames = 14;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ public boolean hasStringNames() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bytes stringNames = 14;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ public com.google.protobuf.ByteString getStringNames() { return stringNames_; } /** * <code>optional bytes stringNames = 14;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ public Builder setStringNames(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; stringNames_ = value; onChanged(); return this; } /** * <code>optional bytes stringNames = 14;</code> * * <pre> * repeated array<pair<tagId : raw_var_int, indexOfStringInParent : raw_var_int> > * </pre> */ 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; /** * <code>required string name = 1;</code> */ boolean hasName(); /** * <code>required string name = 1;</code> */ java.lang.String getName(); /** * <code>required string name = 1;</code> */ com.google.protobuf.ByteString getNameBytes(); // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule> getRulesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule getRules(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ int getRulesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder> getRulesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder getRulesOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> getRootBoxesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getRootBoxes(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ int getRootBoxesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getRootBoxesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getRootBoxesOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> getBasemapBoxesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBasemapBoxes(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ int getBasemapBoxesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getBasemapBoxesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBasemapBoxesOrBuilder( int index); // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock> getBlocksList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock getBlocks(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ int getBlocksCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder> getBlocksOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule>(); 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox>(); 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox>(); 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock>(); 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<OsmAndRoutingIndex> PARSER = new com.google.protobuf.AbstractParser<OsmAndRoutingIndex>() { 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<OsmAndRoutingIndex> getParserForType() { return PARSER; } public interface RouteEncodingRuleOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string tag = 3; /** * <code>required string tag = 3;</code> */ boolean hasTag(); /** * <code>required string tag = 3;</code> */ java.lang.String getTag(); /** * <code>required string tag = 3;</code> */ com.google.protobuf.ByteString getTagBytes(); // required string value = 5; /** * <code>required string value = 5;</code> */ boolean hasValue(); /** * <code>required string value = 5;</code> */ java.lang.String getValue(); /** * <code>required string value = 5;</code> */ com.google.protobuf.ByteString getValueBytes(); // optional uint32 id = 7; /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ boolean hasId(); /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ 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<RouteEncodingRule> PARSER = new com.google.protobuf.AbstractParser<RouteEncodingRule>() { 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<RouteEncodingRule> getParserForType() { return PARSER; } private int bitField0_; // required string tag = 3; public static final int TAG_FIELD_NUMBER = 3; private java.lang.Object tag_; /** * <code>required string tag = 3;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string tag = 3;</code> */ 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; } } /** * <code>required string tag = 3;</code> */ 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_; /** * <code>required string value = 5;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string value = 5;</code> */ 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; } } /** * <code>required string value = 5;</code> */ 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_; /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ 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<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_ = ""; /** * <code>required string tag = 3;</code> */ public boolean hasTag() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string tag = 3;</code> */ 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; } } /** * <code>required string tag = 3;</code> */ 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; } } /** * <code>required string tag = 3;</code> */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; tag_ = value; onChanged(); return this; } /** * <code>required string tag = 3;</code> */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000001); tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** * <code>required string tag = 3;</code> */ 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_ = ""; /** * <code>required string value = 5;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string value = 5;</code> */ 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; } } /** * <code>required string value = 5;</code> */ 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; } } /** * <code>required string value = 5;</code> */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * <code>required string value = 5;</code> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * <code>required string value = 5;</code> */ 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_ ; /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ public boolean hasId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ public int getId() { return id_; } /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ public Builder setId(int value) { bitField0_ |= 0x00000004; id_ = value; onChanged(); return this; } /** * <code>optional uint32 id = 7;</code> * * <pre> * it is optional because natural order in block of rules * is the same as id (id is 1-based and order) * </pre> */ 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; /** * <code>required sint32 left = 1;</code> * * <pre> * for root box is absolute coordinates * </pre> */ boolean hasLeft(); /** * <code>required sint32 left = 1;</code> * * <pre> * for root box is absolute coordinates * </pre> */ int getLeft(); // required sint32 right = 2; /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ boolean hasRight(); /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ int getRight(); // required sint32 top = 3; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ boolean hasTop(); /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ int getTop(); // required sint32 bottom = 4; /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ boolean hasBottom(); /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ int getBottom(); // optional fixed32 shiftToData = 5; /** * <code>optional fixed32 shiftToData = 5;</code> * * <pre> *shift from routeDataBox start to message RouteDataBlock * </pre> */ boolean hasShiftToData(); /** * <code>optional fixed32 shiftToData = 5;</code> * * <pre> *shift from routeDataBox start to message RouteDataBlock * </pre> */ int getShiftToData(); // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> getBoxesList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBoxes(int index); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ int getBoxesCount(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getBoxesOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox>(); 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<RouteDataBox> PARSER = new com.google.protobuf.AbstractParser<RouteDataBox>() { 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<RouteDataBox> getParserForType() { return PARSER; } private int bitField0_; // required sint32 left = 1; public static final int LEFT_FIELD_NUMBER = 1; private int left_; /** * <code>required sint32 left = 1;</code> * * <pre> * for root box is absolute coordinates * </pre> */ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 left = 1;</code> * * <pre> * for root box is absolute coordinates * </pre> */ public int getLeft() { return left_; } // required sint32 right = 2; public static final int RIGHT_FIELD_NUMBER = 2; private int right_; /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public int getRight() { return right_; } // required sint32 top = 3; public static final int TOP_FIELD_NUMBER = 3; private int top_; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public int getTop() { return top_; } // required sint32 bottom = 4; public static final int BOTTOM_FIELD_NUMBER = 4; private int bottom_; /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public int getBottom() { return bottom_; } // optional fixed32 shiftToData = 5; public static final int SHIFTTODATA_FIELD_NUMBER = 5; private int shiftToData_; /** * <code>optional fixed32 shiftToData = 5;</code> * * <pre> *shift from routeDataBox start to message RouteDataBlock * </pre> */ public boolean hasShiftToData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional fixed32 shiftToData = 5;</code> * * <pre> *shift from routeDataBox start to message RouteDataBlock * </pre> */ public int getShiftToData() { return shiftToData_; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; public static final int BOXES_FIELD_NUMBER = 7; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> boxes_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> getBoxesList() { return boxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getBoxesOrBuilderList() { return boxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public int getBoxesCount() { return boxes_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBoxes(int index) { return boxes_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ 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<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_ ; /** * <code>required sint32 left = 1;</code> * * <pre> * for root box is absolute coordinates * </pre> */ public boolean hasLeft() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required sint32 left = 1;</code> * * <pre> * for root box is absolute coordinates * </pre> */ public int getLeft() { return left_; } /** * <code>required sint32 left = 1;</code> * * <pre> * for root box is absolute coordinates * </pre> */ public Builder setLeft(int value) { bitField0_ |= 0x00000001; left_ = value; onChanged(); return this; } /** * <code>required sint32 left = 1;</code> * * <pre> * for root box is absolute coordinates * </pre> */ public Builder clearLeft() { bitField0_ = (bitField0_ & ~0x00000001); left_ = 0; onChanged(); return this; } // required sint32 right = 2; private int right_ ; /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public boolean hasRight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public int getRight() { return right_; } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public Builder setRight(int value) { bitField0_ |= 0x00000002; right_ = value; onChanged(); return this; } /** * <code>required sint32 right = 2;</code> * * <pre> * delta encoded * </pre> */ public Builder clearRight() { bitField0_ = (bitField0_ & ~0x00000002); right_ = 0; onChanged(); return this; } // required sint32 top = 3; private int top_ ; /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public boolean hasTop() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public int getTop() { return top_; } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public Builder setTop(int value) { bitField0_ |= 0x00000004; top_ = value; onChanged(); return this; } /** * <code>required sint32 top = 3;</code> * * <pre> * delta encoded * </pre> */ public Builder clearTop() { bitField0_ = (bitField0_ & ~0x00000004); top_ = 0; onChanged(); return this; } // required sint32 bottom = 4; private int bottom_ ; /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public boolean hasBottom() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public int getBottom() { return bottom_; } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public Builder setBottom(int value) { bitField0_ |= 0x00000008; bottom_ = value; onChanged(); return this; } /** * <code>required sint32 bottom = 4;</code> * * <pre> * delta encoded * </pre> */ public Builder clearBottom() { bitField0_ = (bitField0_ & ~0x00000008); bottom_ = 0; onChanged(); return this; } // optional fixed32 shiftToData = 5; private int shiftToData_ ; /** * <code>optional fixed32 shiftToData = 5;</code> * * <pre> *shift from routeDataBox start to message RouteDataBlock * </pre> */ public boolean hasShiftToData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional fixed32 shiftToData = 5;</code> * * <pre> *shift from routeDataBox start to message RouteDataBlock * </pre> */ public int getShiftToData() { return shiftToData_; } /** * <code>optional fixed32 shiftToData = 5;</code> * * <pre> *shift from routeDataBox start to message RouteDataBlock * </pre> */ public Builder setShiftToData(int value) { bitField0_ |= 0x00000010; shiftToData_ = value; onChanged(); return this; } /** * <code>optional fixed32 shiftToData = 5;</code> * * <pre> *shift from routeDataBox start to message RouteDataBlock * </pre> */ public Builder clearShiftToData() { bitField0_ = (bitField0_ & ~0x00000010); shiftToData_ = 0; onChanged(); return this; } // repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7; private java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> boxes_ = java.util.Collections.emptyList(); private void ensureBoxesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { boxes_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> getBoxesList() { if (boxesBuilder_ == null) { return java.util.Collections.unmodifiableList(boxes_); } else { return boxesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public int getBoxesCount() { if (boxesBuilder_ == null) { return boxes_.size(); } else { return boxesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBoxes(int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public Builder addAllBoxes( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> values) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); super.addAll(values, boxes_); onChanged(); } else { boxesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public Builder clearBoxes() { if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { boxesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public Builder removeBoxes(int index) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.remove(index); onChanged(); } else { boxesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder getBoxesBuilder( int index) { return getBoxesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBoxesOrBuilder( int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getBoxesOrBuilderList() { if (boxesBuilder_ != null) { return boxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(boxes_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBoxesBuilder() { return getBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBoxesBuilder( int index) { return getBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox boxes = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder> 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; /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ boolean hasIdTable(); /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ net.osmand.binary.OsmandOdb.IdTable getIdTable(); /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ net.osmand.binary.OsmandOdb.IdTableOrBuilder getIdTableOrBuilder(); // repeated .OsmAnd.OBF.RouteData dataObjects = 6; /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ java.util.List<net.osmand.binary.OsmandOdb.RouteData> getDataObjectsList(); /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ net.osmand.binary.OsmandOdb.RouteData getDataObjects(int index); /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ int getDataObjectsCount(); /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.RouteDataOrBuilder> getDataObjectsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ net.osmand.binary.OsmandOdb.RouteDataOrBuilder getDataObjectsOrBuilder( int index); // repeated .OsmAnd.OBF.RestrictionData restrictions = 7; /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ java.util.List<net.osmand.binary.OsmandOdb.RestrictionData> getRestrictionsList(); /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ net.osmand.binary.OsmandOdb.RestrictionData getRestrictions(int index); /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ int getRestrictionsCount(); /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ java.util.List<? extends net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder> getRestrictionsOrBuilderList(); /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder getRestrictionsOrBuilder( int index); // optional .OsmAnd.OBF.StringTable stringTable = 8; /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ boolean hasStringTable(); /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ net.osmand.binary.OsmandOdb.StringTable getStringTable(); /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ 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<net.osmand.binary.OsmandOdb.RouteData>(); 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<net.osmand.binary.OsmandOdb.RestrictionData>(); 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<RouteDataBlock> PARSER = new com.google.protobuf.AbstractParser<RouteDataBlock>() { 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<RouteDataBlock> 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_; /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ public boolean hasIdTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ public net.osmand.binary.OsmandOdb.IdTable getIdTable() { return idTable_; } /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ 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<net.osmand.binary.OsmandOdb.RouteData> dataObjects_; /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.RouteData> getDataObjectsList() { return dataObjects_; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.RouteDataOrBuilder> getDataObjectsOrBuilderList() { return dataObjects_; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public int getDataObjectsCount() { return dataObjects_.size(); } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public net.osmand.binary.OsmandOdb.RouteData getDataObjects(int index) { return dataObjects_.get(index); } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ 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<net.osmand.binary.OsmandOdb.RestrictionData> restrictions_; /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.RestrictionData> getRestrictionsList() { return restrictions_; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder> getRestrictionsOrBuilderList() { return restrictions_; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public int getRestrictionsCount() { return restrictions_.size(); } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public net.osmand.binary.OsmandOdb.RestrictionData getRestrictions(int index) { return restrictions_.get(index); } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ 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_; /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ public boolean hasStringTable() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ public net.osmand.binary.OsmandOdb.StringTable getStringTable() { return stringTable_; } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ 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<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_; /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ public boolean hasIdTable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ public net.osmand.binary.OsmandOdb.IdTable getIdTable() { if (idTableBuilder_ == null) { return idTable_; } else { return idTableBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ 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; } /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ public Builder clearIdTable() { if (idTableBuilder_ == null) { idTable_ = net.osmand.binary.OsmandOdb.IdTable.getDefaultInstance(); onChanged(); } else { idTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ public net.osmand.binary.OsmandOdb.IdTable.Builder getIdTableBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIdTableFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ public net.osmand.binary.OsmandOdb.IdTableOrBuilder getIdTableOrBuilder() { if (idTableBuilder_ != null) { return idTableBuilder_.getMessageOrBuilder(); } else { return idTable_; } } /** * <code>optional .OsmAnd.OBF.IdTable idTable = 5;</code> * * <pre> * 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 * </pre> */ 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<net.osmand.binary.OsmandOdb.RouteData> dataObjects_ = java.util.Collections.emptyList(); private void ensureDataObjectsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { dataObjects_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.RouteData>(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_; /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.RouteData> getDataObjectsList() { if (dataObjectsBuilder_ == null) { return java.util.Collections.unmodifiableList(dataObjects_); } else { return dataObjectsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public int getDataObjectsCount() { if (dataObjectsBuilder_ == null) { return dataObjects_.size(); } else { return dataObjectsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public net.osmand.binary.OsmandOdb.RouteData getDataObjects(int index) { if (dataObjectsBuilder_ == null) { return dataObjects_.get(index); } else { return dataObjectsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public Builder addAllDataObjects( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.RouteData> values) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); super.addAll(values, dataObjects_); onChanged(); } else { dataObjectsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public Builder clearDataObjects() { if (dataObjectsBuilder_ == null) { dataObjects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataObjectsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public Builder removeDataObjects(int index) { if (dataObjectsBuilder_ == null) { ensureDataObjectsIsMutable(); dataObjects_.remove(index); onChanged(); } else { dataObjectsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public net.osmand.binary.OsmandOdb.RouteData.Builder getDataObjectsBuilder( int index) { return getDataObjectsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public net.osmand.binary.OsmandOdb.RouteDataOrBuilder getDataObjectsOrBuilder( int index) { if (dataObjectsBuilder_ == null) { return dataObjects_.get(index); } else { return dataObjectsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.RouteDataOrBuilder> getDataObjectsOrBuilderList() { if (dataObjectsBuilder_ != null) { return dataObjectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dataObjects_); } } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public net.osmand.binary.OsmandOdb.RouteData.Builder addDataObjectsBuilder() { return getDataObjectsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.RouteData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public net.osmand.binary.OsmandOdb.RouteData.Builder addDataObjectsBuilder( int index) { return getDataObjectsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.RouteData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.RouteData dataObjects = 6;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.RouteData.Builder> 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<net.osmand.binary.OsmandOdb.RestrictionData> restrictions_ = java.util.Collections.emptyList(); private void ensureRestrictionsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { restrictions_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.RestrictionData>(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_; /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.RestrictionData> getRestrictionsList() { if (restrictionsBuilder_ == null) { return java.util.Collections.unmodifiableList(restrictions_); } else { return restrictionsBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public int getRestrictionsCount() { if (restrictionsBuilder_ == null) { return restrictions_.size(); } else { return restrictionsBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public net.osmand.binary.OsmandOdb.RestrictionData getRestrictions(int index) { if (restrictionsBuilder_ == null) { return restrictions_.get(index); } else { return restrictionsBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public Builder addAllRestrictions( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.RestrictionData> values) { if (restrictionsBuilder_ == null) { ensureRestrictionsIsMutable(); super.addAll(values, restrictions_); onChanged(); } else { restrictionsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public Builder clearRestrictions() { if (restrictionsBuilder_ == null) { restrictions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { restrictionsBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public Builder removeRestrictions(int index) { if (restrictionsBuilder_ == null) { ensureRestrictionsIsMutable(); restrictions_.remove(index); onChanged(); } else { restrictionsBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public net.osmand.binary.OsmandOdb.RestrictionData.Builder getRestrictionsBuilder( int index) { return getRestrictionsFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder getRestrictionsOrBuilder( int index) { if (restrictionsBuilder_ == null) { return restrictions_.get(index); } else { return restrictionsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.RestrictionDataOrBuilder> getRestrictionsOrBuilderList() { if (restrictionsBuilder_ != null) { return restrictionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(restrictions_); } } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public net.osmand.binary.OsmandOdb.RestrictionData.Builder addRestrictionsBuilder() { return getRestrictionsFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.RestrictionData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public net.osmand.binary.OsmandOdb.RestrictionData.Builder addRestrictionsBuilder( int index) { return getRestrictionsFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.RestrictionData.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.RestrictionData restrictions = 7;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.RestrictionData.Builder> 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_; /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ public boolean hasStringTable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ public net.osmand.binary.OsmandOdb.StringTable getStringTable() { if (stringTableBuilder_ == null) { return stringTable_; } else { return stringTableBuilder_.getMessage(); } } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ 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; } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ public Builder clearStringTable() { if (stringTableBuilder_ == null) { stringTable_ = net.osmand.binary.OsmandOdb.StringTable.getDefaultInstance(); onChanged(); } else { stringTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ public net.osmand.binary.OsmandOdb.StringTable.Builder getStringTableBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStringTableFieldBuilder().getBuilder(); } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ public net.osmand.binary.OsmandOdb.StringTableOrBuilder getStringTableOrBuilder() { if (stringTableBuilder_ != null) { return stringTableBuilder_.getMessageOrBuilder(); } else { return stringTable_; } } /** * <code>optional .OsmAnd.OBF.StringTable stringTable = 8;</code> */ 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_; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule> rules_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule> getRulesList() { return rules_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder> getRulesOrBuilderList() { return rules_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public int getRulesCount() { return rules_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule getRules(int index) { return rules_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> rootBoxes_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> getRootBoxesList() { return rootBoxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getRootBoxesOrBuilderList() { return rootBoxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getRootBoxesCount() { return rootBoxes_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getRootBoxes(int index) { return rootBoxes_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> basemapBoxes_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> getBasemapBoxesList() { return basemapBoxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getBasemapBoxesOrBuilderList() { return basemapBoxes_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getBasemapBoxesCount() { return basemapBoxes_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBasemapBoxes(int index) { return basemapBoxes_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock> blocks_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock> getBlocksList() { return blocks_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder> getBlocksOrBuilderList() { return blocks_; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public int getBlocksCount() { return blocks_.size(); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock getBlocks(int index) { return blocks_.get(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ 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<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_ = ""; /** * <code>required string name = 1;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ 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; } } /** * <code>required string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>required string name = 1;</code> */ 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule> rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { rules_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule> getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public Builder addAllRules( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule> values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); super.addAll(values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRuleOrBuilder> getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteEncodingRule rules = 2;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteEncodingRule.Builder> 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> rootBoxes_ = java.util.Collections.emptyList(); private void ensureRootBoxesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { rootBoxes_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> getRootBoxesList() { if (rootBoxesBuilder_ == null) { return java.util.Collections.unmodifiableList(rootBoxes_); } else { return rootBoxesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getRootBoxesCount() { if (rootBoxesBuilder_ == null) { return rootBoxes_.size(); } else { return rootBoxesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getRootBoxes(int index) { if (rootBoxesBuilder_ == null) { return rootBoxes_.get(index); } else { return rootBoxesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder addAllRootBoxes( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> values) { if (rootBoxesBuilder_ == null) { ensureRootBoxesIsMutable(); super.addAll(values, rootBoxes_); onChanged(); } else { rootBoxesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearRootBoxes() { if (rootBoxesBuilder_ == null) { rootBoxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { rootBoxesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder removeRootBoxes(int index) { if (rootBoxesBuilder_ == null) { ensureRootBoxesIsMutable(); rootBoxes_.remove(index); onChanged(); } else { rootBoxesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder getRootBoxesBuilder( int index) { return getRootBoxesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getRootBoxesOrBuilder( int index) { if (rootBoxesBuilder_ == null) { return rootBoxes_.get(index); } else { return rootBoxesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getRootBoxesOrBuilderList() { if (rootBoxesBuilder_ != null) { return rootBoxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rootBoxes_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addRootBoxesBuilder() { return getRootBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addRootBoxesBuilder( int index) { return getRootBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox rootBoxes = 3;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder> 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> basemapBoxes_ = java.util.Collections.emptyList(); private void ensureBasemapBoxesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { basemapBoxes_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> getBasemapBoxesList() { if (basemapBoxesBuilder_ == null) { return java.util.Collections.unmodifiableList(basemapBoxes_); } else { return basemapBoxesBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public int getBasemapBoxesCount() { if (basemapBoxesBuilder_ == null) { return basemapBoxes_.size(); } else { return basemapBoxesBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox getBasemapBoxes(int index) { if (basemapBoxesBuilder_ == null) { return basemapBoxes_.get(index); } else { return basemapBoxesBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder addAllBasemapBoxes( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox> values) { if (basemapBoxesBuilder_ == null) { ensureBasemapBoxesIsMutable(); super.addAll(values, basemapBoxes_); onChanged(); } else { basemapBoxesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder clearBasemapBoxes() { if (basemapBoxesBuilder_ == null) { basemapBoxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { basemapBoxesBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public Builder removeBasemapBoxes(int index) { if (basemapBoxesBuilder_ == null) { ensureBasemapBoxesIsMutable(); basemapBoxes_.remove(index); onChanged(); } else { basemapBoxesBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder getBasemapBoxesBuilder( int index) { return getBasemapBoxesFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder getBasemapBoxesOrBuilder( int index) { if (basemapBoxesBuilder_ == null) { return basemapBoxes_.get(index); } else { return basemapBoxesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBoxOrBuilder> getBasemapBoxesOrBuilderList() { if (basemapBoxesBuilder_ != null) { return basemapBoxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(basemapBoxes_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBasemapBoxesBuilder() { return getBasemapBoxesFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder addBasemapBoxesBuilder( int index) { return getBasemapBoxesFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBox basemapBoxes = 4;</code> * * <pre> * encoded as fixed32 length delimited * </pre> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBox.Builder> 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<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock> blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { blocks_ = new java.util.ArrayList<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock>(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_; /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock> getBlocksList() { if (blocksBuilder_ == null) { return java.util.Collections.unmodifiableList(blocks_); } else { return blocksBuilder_.getMessageList(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public int getBlocksCount() { if (blocksBuilder_ == null) { return blocks_.size(); } else { return blocksBuilder_.getCount(); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock getBlocks(int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessage(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ 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; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public Builder addAllBlocks( java.lang.Iterable<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock> values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); super.addAll(values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public Builder clearBlocks() { if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { blocksBuilder_.clear(); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public Builder removeBlocks(int index) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.remove(index); onChanged(); } else { blocksBuilder_.remove(index); } return this; } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder getBlocksBuilder( int index) { return getBlocksFieldBuilder().getBuilder(index); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder getBlocksOrBuilder( int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public java.util.List<? extends net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlockOrBuilder> getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(blocks_); } } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder addBlocksBuilder() { return getBlocksFieldBuilder().addBuilder( net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder addBlocksBuilder( int index) { return getBlocksFieldBuilder().addBuilder( index, net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.getDefaultInstance()); } /** * <code>repeated .OsmAnd.OBF.OsmAndRoutingIndex.RouteDataBlock blocks = 5;</code> */ public java.util.List<net.osmand.binary.OsmandOdb.OsmAndRoutingIndex.RouteDataBlock.Builder> 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_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_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\"\266\001\n\007MapDat" + "a\022\023\n\013coordinates\030\001 \001(\014\022\027\n\017areaCoordinate" + "s\030\002 \001(\014\022\037\n\027polygonInnerCoordinates\030\004 \003(\014" + "\022\027\n\017additionalTypes\030\006 \001(\014\022\r\n\005types\030\007 \002(\014" + "\022\023\n\013stringNames\030\n \001(\014\022\n\n\002id\030\014 \002(\022\022\023\n\013ras" + "terBytes\030\017 \001(\014\"\364\003\n\022OsmAndAddressIndex\022\014\n" + "\004name\030\001 \002(\t\022\017\n\007name_en\030\002 \001(\t\022-\n\nboundari" + "es\030\003 \001(\0132\031.OsmAnd.OBF.OsmAndTileBox\0223\n\022a", "ttributeTagsTable\030\004 \001(\0132\027.OsmAnd.OBF.Str" + "ingTable\022:\n\006cities\030\006 \003(\0132*.OsmAnd.OBF.Os" + "mAndAddressIndex.CitiesIndex\0229\n\tnameInde" + "x\030\007 \001(\0132&.OsmAnd.OBF.OsmAndAddressNameIn" + "dexData\032\343\001\n\013CitiesIndex\022C\n\004type\030\002 \002(\01625." + "OsmAnd.OBF.OsmAndAddressIndex.CitiesInde" + "x.CitiesType\022%\n\006cities\030\005 \003(\0132\025.OsmAnd.OB" + "F.CityIndex\022*\n\006blocks\030\007 \003(\0132\032.OsmAnd.OBF" + ".CityBlockIndex\"<\n\nCitiesType\022\021\n\rCitiesO" + "rTowns\020\001\022\r\n\tPostcodes\020\002\022\014\n\010Villages\020\003\"\342\001", "\n\032OsmAndAddressNameIndexData\022-\n\005table\030\004 " + "\002(\0132\036.OsmAnd.OBF.IndexedStringTable\022I\n\004a" + "tom\030\007 \003(\0132;.OsmAnd.OBF.OsmAndAddressName" + "IndexData.AddressNameIndexData\032J\n\024Addres" + "sNameIndexData\0222\n\004atom\030\004 \003(\0132$.OsmAnd.OB" + "F.AddressNameIndexDataAtom\"\204\001\n\030AddressNa" + "meIndexDataAtom\022\014\n\004name\030\001 \001(\t\022\016\n\006nameEn\030" + "\002 \001(\t\022\014\n\004type\030\003 \002(\r\022\024\n\014shiftToIndex\030\005 \003(" + "\005\022\030\n\020shiftToCityIndex\030\006 \003(\005\022\014\n\004xy16\030\007 \003(" + "\r\"\260\001\n\tCityIndex\022\021\n\tcity_type\030\001 \001(\r\022\014\n\004na", "me\030\002 \002(\t\022\017\n\007name_en\030\003 \001(\t\022\n\n\002id\030\004 \001(\004\022\t\n" + "\001x\030\005 \002(\r\022\t\n\001y\030\006 \002(\r\022\027\n\017attributeTagIds\030\007" + " \003(\r\022\027\n\017attributeValues\030\010 \003(\t\022\035\n\025shiftTo" + "CityBlockIndex\030\n \001(\007\"\202\001\n\016CityBlockIndex\022" + "\030\n\020shiftToCityIndex\030\004 \001(\007\022,\n\tbuildings\030\n" + " \003(\0132\031.OsmAnd.OBF.BuildingIndex\022(\n\007stree" + "ts\030\014 \003(\0132\027.OsmAnd.OBF.StreetIndex\"\345\001\n\013St" + "reetIndex\022\014\n\004name\030\001 \002(\t\022\017\n\007name_en\030\002 \001(\t" + "\022\t\n\001x\030\003 \002(\021\022\t\n\001y\030\004 \002(\021\0225\n\rintersections\030" + "\005 \003(\0132\036.OsmAnd.OBF.StreetIntersection\022\n\n", "\002id\030\006 \001(\004\022\027\n\017attributeTagIds\030\007 \003(\r\022\027\n\017at" + "tributeValues\030\010 \003(\t\022,\n\tbuildings\030\014 \003(\0132\031" + ".OsmAnd.OBF.BuildingIndex\"\221\001\n\022StreetInte" + "rsection\022\014\n\004name\030\002 \002(\t\022\017\n\007name_en\030\003 \001(\t\022" + "\024\n\014intersectedX\030\004 \002(\021\022\024\n\014intersectedY\030\005 " + "\002(\021\022\027\n\017attributeTagIds\030\007 \003(\r\022\027\n\017attribut" + "eValues\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\017at" + "tributeTagIds\030\017 \003(\r\022\027\n\017attributeValues\030\020" + " \003(\t\022\030\n\020attributeTagIds2\030\021 \003(\r\022\030\n\020attrib" + "uteValues2\030\022 \003(\t\"=\n\017TransportRoutes\022*\n\006r" + "outes\030\006 \003(\0132\032.OsmAnd.OBF.TransportRoute\"" + "\367\001\n\016TransportRoute\022\n\n\002id\030\001 \002(\004\022\014\n\004type\030\003" + " \001(\r\022\020\n\010operator\030\004 \001(\r\022\013\n\003ref\030\005 \001(\t\022\014\n\004n" + "ame\030\006 \001(\r\022\017\n\007name_en\030\007 \001(\r\022\020\n\010distance\030\010" + " \001(\r\0223\n\013directStops\030\017 \003(\0132\036.OsmAnd.OBF.T" + "ransportRouteStop\0224\n\014reverseStops\030\020 \003(\0132", "\036.OsmAnd.OBF.TransportRouteStop\022\020\n\010geome" + "try\030\021 \001(\014\"W\n\022TransportRouteStop\022\n\n\002id\030\001 " + "\002(\022\022\n\n\002dx\030\002 \002(\021\022\n\n\002dy\030\003 \002(\021\022\014\n\004name\030\006 \002(" + "\r\022\017\n\007name_en\030\007 \001(\r\"b\n\rTransportStop\022\n\n\002d" + "x\030\001 \002(\021\022\n\n\002dy\030\002 \002(\021\022\n\n\002id\030\005 \002(\022\022\014\n\004name\030" + "\006 \002(\r\022\017\n\007name_en\030\007 \001(\r\022\016\n\006routes\030\020 \003(\r\"\272" + "\001\n\022TransportStopsTree\022\014\n\004left\030\001 \002(\021\022\r\n\005r" + "ight\030\002 \002(\021\022\013\n\003top\030\003 \002(\021\022\016\n\006bottom\030\004 \002(\021\022" + "0\n\010subtrees\030\007 \003(\0132\036.OsmAnd.OBF.Transport" + "StopsTree\022(\n\005leafs\030\010 \003(\0132\031.OsmAnd.OBF.Tr", "ansportStop\022\016\n\006baseId\030\020 \001(\004\"\256\001\n\024OsmAndTr" + "ansportIndex\022\014\n\004name\030\001 \001(\t\022+\n\006routes\030\003 \001" + "(\0132\033.OsmAnd.OBF.TransportRoutes\022-\n\005stops" + "\030\006 \001(\0132\036.OsmAnd.OBF.TransportStopsTree\022," + "\n\013stringTable\030\t \002(\0132\027.OsmAnd.OBF.StringT" + "able\"\312\002\n\016OsmAndPoiIndex\022\014\n\004name\030\001 \002(\t\022-\n" + "\nboundaries\030\002 \002(\0132\031.OsmAnd.OBF.OsmAndTil" + "eBox\0228\n\017categoriesTable\030\003 \003(\0132\037.OsmAnd.O" + "BF.OsmAndCategoryTable\0221\n\tnameIndex\030\004 \001(" + "\0132\036.OsmAnd.OBF.OsmAndPoiNameIndex\0226\n\rsub", "typesTable\030\005 \001(\0132\037.OsmAnd.OBF.OsmAndSubt" + "ypesTable\022\'\n\005boxes\030\006 \003(\0132\030.OsmAnd.OBF.Os" + "mAndPoiBox\022-\n\007poiData\030\t \003(\0132\034.OsmAnd.OBF" + ".OsmAndPoiBoxData\"\331\001\n\022OsmAndPoiNameIndex" + "\022-\n\005table\030\003 \002(\0132\036.OsmAnd.OBF.IndexedStri" + "ngTable\022C\n\004data\030\005 \003(\01325.OsmAnd.OBF.OsmAn" + "dPoiNameIndex.OsmAndPoiNameIndexData\032O\n\026" + "OsmAndPoiNameIndexData\0225\n\005atoms\030\003 \003(\0132&." + "OsmAnd.OBF.OsmAndPoiNameIndexDataAtom\"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\007shiftTo\030\016 \001(\007" + "\">\n\023OsmAndCategoryTable\022\020\n\010category\030\001 \002(" + "\t\022\025\n\rsubcategories\030\003 \003(\t\"E\n\023OsmAndSubtyp" + "esTable\022.\n\010subtypes\030\004 \003(\0132\034.OsmAnd.OBF.O" + "smAndPoiSubtype\"\205\001\n\020OsmAndPoiSubtype\022\014\n\004" + "name\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\021subtypeValuesS" + "ize\030\006 \001(\r\022\024\n\014subtypeValue\030\010 \003(\t\"\255\001\n\014OsmA" + "ndPoiBox\022\014\n\004zoom\030\001 \002(\r\022\014\n\004left\030\002 \002(\021\022\013\n\003" + "top\030\003 \002(\021\0223\n\ncategories\030\004 \001(\0132\037.OsmAnd.O", "BF.OsmAndPoiCategories\022*\n\010subBoxes\030\n \003(\013" + "2\030.OsmAnd.OBF.OsmAndPoiBox\022\023\n\013shiftToDat" + "a\030\016 \001(\007\"@\n\023OsmAndPoiCategories\022\022\n\ncatego" + "ries\030\003 \003(\r\022\025\n\rsubcategories\030\005 \003(\r\"i\n\020Osm" + "AndPoiBoxData\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\024OsmAndPoiBoxDat" + "aAtom\022\n\n\002dx\030\002 \002(\021\022\n\n\002dy\030\003 \002(\021\022\022\n\ncategor" + "ies\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\014op", "eningHours\030\n \001(\t\022\014\n\004site\030\013 \001(\t\022\r\n\005phone\030" + "\014 \001(\t\022\014\n\004note\030\r \001(\t\022\026\n\016textCategories\030\016 " + "\003(\r\022\022\n\ntextValues\030\017 \003(\t\"\032\n\007IdTable\022\017\n\007ro" + "uteId\030\001 \003(\022\"F\n\017RestrictionData\022\014\n\004type\030\001" + " \002(\005\022\014\n\004from\030\002 \002(\005\022\n\n\002to\030\003 \002(\005\022\013\n\003via\030\004 " + "\001(\005\"x\n\tRouteData\022\016\n\006points\030\001 \002(\014\022\022\n\npoin" + "tTypes\030\004 \001(\014\022\022\n\npointNames\030\005 \001(\014\022\r\n\005type" + "s\030\007 \002(\014\022\017\n\007routeId\030\014 \002(\005\022\023\n\013stringNames\030" + "\016 \001(\014\"\304\005\n\022OsmAndRoutingIndex\022\014\n\004name\030\001 \002" + "(\t\022?\n\005rules\030\002 \003(\01320.OsmAnd.OBF.OsmAndRou", "tingIndex.RouteEncodingRule\022>\n\trootBoxes" + "\030\003 \003(\0132+.OsmAnd.OBF.OsmAndRoutingIndex.R" + "outeDataBox\022A\n\014basemapBoxes\030\004 \003(\0132+.OsmA" + "nd.OBF.OsmAndRoutingIndex.RouteDataBox\022=" + "\n\006blocks\030\005 \003(\0132-.OsmAnd.OBF.OsmAndRoutin" + "gIndex.RouteDataBlock\032;\n\021RouteEncodingRu" + "le\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\005rig" + "ht\030\002 \002(\021\022\013\n\003top\030\003 \002(\021\022\016\n\006bottom\030\004 \002(\021\022\023\n" + "\013shiftToData\030\005 \001(\007\022:\n\005boxes\030\007 \003(\0132+.OsmA", "nd.OBF.OsmAndRoutingIndex.RouteDataBox\032\303" + "\001\n\016RouteDataBlock\022$\n\007idTable\030\005 \001(\0132\023.Osm" + "And.OBF.IdTable\022*\n\013dataObjects\030\006 \003(\0132\025.O" + "smAnd.OBF.RouteData\0221\n\014restrictions\030\007 \003(" + "\0132\033.OsmAnd.OBF.RestrictionData\022,\n\013string" + "Table\030\010 \001(\0132\027.OsmAnd.OBF.StringTableB\036\n\021" + "net.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", "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", "DirectStops", "ReverseStops", "Geometry", }); internal_static_OsmAnd_OBF_TransportRouteStop_descriptor = getDescriptor().getMessageTypes().get(17); 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(18); 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", "Routes", }); internal_static_OsmAnd_OBF_TransportStopsTree_descriptor = getDescriptor().getMessageTypes().get(19); 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(20); 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(21); 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(22); 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(23); 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(24); 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(25); 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(26); 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(27); 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(28); 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(29); 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(30); 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(31); 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(32); 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(33); 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(34); 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) }