com.github.jnr
@@ -172,6 +173,14 @@
+
+
+ kr.motd.maven
+ os-maven-plugin
+ 1.7.0
+
+
+
maven-javadoc-plugin
@@ -183,6 +192,22 @@
io.github.zlika
reproducible-build-maven-plugin
+
+ org.xolstice.maven.plugins
+ protobuf-maven-plugin
+ 0.6.1
+
+
+
+ compile
+ test-compile
+
+
+
+
+ com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
+
+
diff --git a/planetiler-core/src/main/java/crosby/binary/Fileformat.java b/planetiler-core/src/main/java/crosby/binary/Fileformat.java
deleted file mode 100644
index ff662be849..0000000000
--- a/planetiler-core/src/main/java/crosby/binary/Fileformat.java
+++ /dev/null
@@ -1,2582 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: planetiler-core/src/main/resources/fileformat.proto
-
-package crosby.binary;
-
-@javax.annotation.Generated(value = "protoc", comments = "annotations:Fileformat.java.pb.meta")
-public final class Fileformat {
- private Fileformat() {}
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {}
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
-
- public interface BlobOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.Blob)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * When compressed, the uncompressed size
- *
- *
- * optional int32 raw_size = 2;
- *
- * @return Whether the rawSize field is set.
- */
- boolean hasRawSize();
-
- /**
- *
- * When compressed, the uncompressed size
- *
- *
- * optional int32 raw_size = 2;
- *
- * @return The rawSize.
- */
- int getRawSize();
-
- /**
- *
- * No compression
- *
- *
- * bytes raw = 1;
- *
- * @return Whether the raw field is set.
- */
- boolean hasRaw();
-
- /**
- *
- * No compression
- *
- *
- * bytes raw = 1;
- *
- * @return The raw.
- */
- com.google.protobuf.ByteString getRaw();
-
- /**
- *
- * Possible compressed versions of the data.
- *
- *
- * bytes zlib_data = 3;
- *
- * @return Whether the zlibData field is set.
- */
- boolean hasZlibData();
-
- /**
- *
- * Possible compressed versions of the data.
- *
- *
- * bytes zlib_data = 3;
- *
- * @return The zlibData.
- */
- com.google.protobuf.ByteString getZlibData();
-
- /**
- *
- * For LZMA compressed data (optional)
- *
- *
- * bytes lzma_data = 4;
- *
- * @return Whether the lzmaData field is set.
- */
- boolean hasLzmaData();
-
- /**
- *
- * For LZMA compressed data (optional)
- *
- *
- * bytes lzma_data = 4;
- *
- * @return The lzmaData.
- */
- com.google.protobuf.ByteString getLzmaData();
-
- /**
- *
- * Formerly used for bzip2 compressed data. Deprecated in 2010.
- *
- *
- * bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
- *
- * @return Whether the oBSOLETEBzip2Data field is set.
- */
- @java.lang.Deprecated
- boolean hasOBSOLETEBzip2Data();
-
- /**
- *
- * Formerly used for bzip2 compressed data. Deprecated in 2010.
- *
- *
- * bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
- *
- * @return The oBSOLETEBzip2Data.
- */
- @java.lang.Deprecated
- com.google.protobuf.ByteString getOBSOLETEBzip2Data();
-
- /**
- *
- * For LZ4 compressed data (optional)
- *
- *
- * bytes lz4_data = 6;
- *
- * @return Whether the lz4Data field is set.
- */
- boolean hasLz4Data();
-
- /**
- *
- * For LZ4 compressed data (optional)
- *
- *
- * bytes lz4_data = 6;
- *
- * @return The lz4Data.
- */
- com.google.protobuf.ByteString getLz4Data();
-
- /**
- *
- * For ZSTD compressed data (optional)
- *
- *
- * bytes zstd_data = 7;
- *
- * @return Whether the zstdData field is set.
- */
- boolean hasZstdData();
-
- /**
- *
- * For ZSTD compressed data (optional)
- *
- *
- * bytes zstd_data = 7;
- *
- * @return The zstdData.
- */
- com.google.protobuf.ByteString getZstdData();
-
- public crosby.binary.Fileformat.Blob.DataCase getDataCase();
- }
- /**
- * Protobuf type {@code OSMPBF.Blob}
- */
- public static final class Blob extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.Blob)
- BlobOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use Blob.newBuilder() to construct.
- private Blob(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private Blob() {}
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Blob();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private Blob(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 10: {
- dataCase_ = 1;
- data_ = input.readBytes();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000001;
- rawSize_ = input.readInt32();
- break;
- }
- case 26: {
- dataCase_ = 3;
- data_ = input.readBytes();
- break;
- }
- case 34: {
- dataCase_ = 4;
- data_ = input.readBytes();
- break;
- }
- case 42: {
- dataCase_ = 5;
- data_ = input.readBytes();
- break;
- }
- case 50: {
- dataCase_ = 6;
- data_ = input.readBytes();
- break;
- }
- case 58: {
- dataCase_ = 7;
- data_ = input.readBytes();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Fileformat.internal_static_OSMPBF_Blob_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Fileformat.internal_static_OSMPBF_Blob_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Fileformat.Blob.class, crosby.binary.Fileformat.Blob.Builder.class);
- }
-
- private int bitField0_;
- private int dataCase_ = 0;
- private java.lang.Object data_;
-
- public enum DataCase
- implements com.google.protobuf.Internal.EnumLite,
- com.google.protobuf.AbstractMessage.InternalOneOfEnum {
- RAW(1),
- ZLIB_DATA(3),
- LZMA_DATA(4),
- @java.lang.Deprecated
- OBSOLETE_BZIP2_DATA(5),
- LZ4_DATA(6),
- ZSTD_DATA(7),
- DATA_NOT_SET(0);
-
- private final int value;
-
- private DataCase(int value) {
- this.value = value;
- }
-
- /**
- * @param value The number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static DataCase valueOf(int value) {
- return forNumber(value);
- }
-
- public static DataCase forNumber(int value) {
- switch (value) {
- case 1:
- return RAW;
- case 3:
- return ZLIB_DATA;
- case 4:
- return LZMA_DATA;
- case 5:
- return OBSOLETE_BZIP2_DATA;
- case 6:
- return LZ4_DATA;
- case 7:
- return ZSTD_DATA;
- case 0:
- return DATA_NOT_SET;
- default:
- return null;
- }
- }
-
- public int getNumber() {
- return this.value;
- }
- };
-
- public DataCase getDataCase() {
- return DataCase.forNumber(
- dataCase_);
- }
-
- public static final int RAW_SIZE_FIELD_NUMBER = 2;
- private int rawSize_;
-
- /**
- *
- * When compressed, the uncompressed size
- *
- *
- * optional int32 raw_size = 2;
- *
- * @return Whether the rawSize field is set.
- */
- @java.lang.Override
- public boolean hasRawSize() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- *
- * When compressed, the uncompressed size
- *
- *
- * optional int32 raw_size = 2;
- *
- * @return The rawSize.
- */
- @java.lang.Override
- public int getRawSize() {
- return rawSize_;
- }
-
- public static final int RAW_FIELD_NUMBER = 1;
-
- /**
- *
- * No compression
- *
- *
- * bytes raw = 1;
- *
- * @return Whether the raw field is set.
- */
- @java.lang.Override
- public boolean hasRaw() {
- return dataCase_ == 1;
- }
-
- /**
- *
- * No compression
- *
- *
- * bytes raw = 1;
- *
- * @return The raw.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getRaw() {
- if (dataCase_ == 1) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- public static final int ZLIB_DATA_FIELD_NUMBER = 3;
-
- /**
- *
- * Possible compressed versions of the data.
- *
- *
- * bytes zlib_data = 3;
- *
- * @return Whether the zlibData field is set.
- */
- @java.lang.Override
- public boolean hasZlibData() {
- return dataCase_ == 3;
- }
-
- /**
- *
- * Possible compressed versions of the data.
- *
- *
- * bytes zlib_data = 3;
- *
- * @return The zlibData.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getZlibData() {
- if (dataCase_ == 3) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- public static final int LZMA_DATA_FIELD_NUMBER = 4;
-
- /**
- *
- * For LZMA compressed data (optional)
- *
- *
- * bytes lzma_data = 4;
- *
- * @return Whether the lzmaData field is set.
- */
- @java.lang.Override
- public boolean hasLzmaData() {
- return dataCase_ == 4;
- }
-
- /**
- *
- * For LZMA compressed data (optional)
- *
- *
- * bytes lzma_data = 4;
- *
- * @return The lzmaData.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getLzmaData() {
- if (dataCase_ == 4) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- public static final int OBSOLETE_BZIP2_DATA_FIELD_NUMBER = 5;
-
- /**
- *
- * Formerly used for bzip2 compressed data. Deprecated in 2010.
- *
- *
- * bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
- *
- * @return Whether the oBSOLETEBzip2Data field is set.
- */
- @java.lang.Override
- @java.lang.Deprecated
- public boolean hasOBSOLETEBzip2Data() {
- return dataCase_ == 5;
- }
-
- /**
- *
- * Formerly used for bzip2 compressed data. Deprecated in 2010.
- *
- *
- * bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
- *
- * @return The oBSOLETEBzip2Data.
- */
- @java.lang.Override
- @java.lang.Deprecated
- public com.google.protobuf.ByteString getOBSOLETEBzip2Data() {
- if (dataCase_ == 5) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- public static final int LZ4_DATA_FIELD_NUMBER = 6;
-
- /**
- *
- * For LZ4 compressed data (optional)
- *
- *
- * bytes lz4_data = 6;
- *
- * @return Whether the lz4Data field is set.
- */
- @java.lang.Override
- public boolean hasLz4Data() {
- return dataCase_ == 6;
- }
-
- /**
- *
- * For LZ4 compressed data (optional)
- *
- *
- * bytes lz4_data = 6;
- *
- * @return The lz4Data.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getLz4Data() {
- if (dataCase_ == 6) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- public static final int ZSTD_DATA_FIELD_NUMBER = 7;
-
- /**
- *
- * For ZSTD compressed data (optional)
- *
- *
- * bytes zstd_data = 7;
- *
- * @return Whether the zstdData field is set.
- */
- @java.lang.Override
- public boolean hasZstdData() {
- return dataCase_ == 7;
- }
-
- /**
- *
- * For ZSTD compressed data (optional)
- *
- *
- * bytes zstd_data = 7;
- *
- * @return The zstdData.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getZstdData() {
- if (dataCase_ == 7) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (dataCase_ == 1) {
- output.writeBytes(
- 1, (com.google.protobuf.ByteString) data_);
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeInt32(2, rawSize_);
- }
- if (dataCase_ == 3) {
- output.writeBytes(
- 3, (com.google.protobuf.ByteString) data_);
- }
- if (dataCase_ == 4) {
- output.writeBytes(
- 4, (com.google.protobuf.ByteString) data_);
- }
- if (dataCase_ == 5) {
- output.writeBytes(
- 5, (com.google.protobuf.ByteString) data_);
- }
- if (dataCase_ == 6) {
- output.writeBytes(
- 6, (com.google.protobuf.ByteString) data_);
- }
- if (dataCase_ == 7) {
- output.writeBytes(
- 7, (com.google.protobuf.ByteString) data_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (dataCase_ == 1) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(
- 1, (com.google.protobuf.ByteString) data_);
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, rawSize_);
- }
- if (dataCase_ == 3) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(
- 3, (com.google.protobuf.ByteString) data_);
- }
- if (dataCase_ == 4) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(
- 4, (com.google.protobuf.ByteString) data_);
- }
- if (dataCase_ == 5) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(
- 5, (com.google.protobuf.ByteString) data_);
- }
- if (dataCase_ == 6) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(
- 6, (com.google.protobuf.ByteString) data_);
- }
- if (dataCase_ == 7) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(
- 7, (com.google.protobuf.ByteString) data_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Fileformat.Blob)) {
- return super.equals(obj);
- }
- crosby.binary.Fileformat.Blob other = (crosby.binary.Fileformat.Blob) obj;
-
- if (hasRawSize() != other.hasRawSize())
- return false;
- if (hasRawSize()) {
- if (getRawSize() != other.getRawSize())
- return false;
- }
- if (!getDataCase().equals(other.getDataCase()))
- return false;
- switch (dataCase_) {
- case 1:
- if (!getRaw()
- .equals(other.getRaw()))
- return false;
- break;
- case 3:
- if (!getZlibData()
- .equals(other.getZlibData()))
- return false;
- break;
- case 4:
- if (!getLzmaData()
- .equals(other.getLzmaData()))
- return false;
- break;
- case 5:
- if (!getOBSOLETEBzip2Data()
- .equals(other.getOBSOLETEBzip2Data()))
- return false;
- break;
- case 6:
- if (!getLz4Data()
- .equals(other.getLz4Data()))
- return false;
- break;
- case 7:
- if (!getZstdData()
- .equals(other.getZstdData()))
- return false;
- break;
- case 0:
- default:
- }
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasRawSize()) {
- hash = (37 * hash) + RAW_SIZE_FIELD_NUMBER;
- hash = (53 * hash) + getRawSize();
- }
- switch (dataCase_) {
- case 1:
- hash = (37 * hash) + RAW_FIELD_NUMBER;
- hash = (53 * hash) + getRaw().hashCode();
- break;
- case 3:
- hash = (37 * hash) + ZLIB_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getZlibData().hashCode();
- break;
- case 4:
- hash = (37 * hash) + LZMA_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getLzmaData().hashCode();
- break;
- case 5:
- hash = (37 * hash) + OBSOLETE_BZIP2_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getOBSOLETEBzip2Data().hashCode();
- break;
- case 6:
- hash = (37 * hash) + LZ4_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getLz4Data().hashCode();
- break;
- case 7:
- hash = (37 * hash) + ZSTD_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getZstdData().hashCode();
- break;
- case 0:
- default:
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Fileformat.Blob parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Fileformat.Blob parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Fileformat.Blob parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Fileformat.Blob parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Fileformat.Blob parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Fileformat.Blob parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Fileformat.Blob parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Fileformat.Blob parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Fileformat.Blob parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Fileformat.Blob parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Fileformat.Blob parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Fileformat.Blob parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Fileformat.Blob prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code OSMPBF.Blob}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.Blob)
- crosby.binary.Fileformat.BlobOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Fileformat.internal_static_OSMPBF_Blob_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Fileformat.internal_static_OSMPBF_Blob_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Fileformat.Blob.class, crosby.binary.Fileformat.Blob.Builder.class);
- }
-
- // Construct using crosby.binary.Fileformat.Blob.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- rawSize_ = 0;
- bitField0_ = (bitField0_ & ~0x00000001);
- dataCase_ = 0;
- data_ = null;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Fileformat.internal_static_OSMPBF_Blob_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Fileformat.Blob getDefaultInstanceForType() {
- return crosby.binary.Fileformat.Blob.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Fileformat.Blob build() {
- crosby.binary.Fileformat.Blob result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Fileformat.Blob buildPartial() {
- crosby.binary.Fileformat.Blob result = new crosby.binary.Fileformat.Blob(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.rawSize_ = rawSize_;
- to_bitField0_ |= 0x00000001;
- }
- if (dataCase_ == 1) {
- result.data_ = data_;
- }
- if (dataCase_ == 3) {
- result.data_ = data_;
- }
- if (dataCase_ == 4) {
- result.data_ = data_;
- }
- if (dataCase_ == 5) {
- result.data_ = data_;
- }
- if (dataCase_ == 6) {
- result.data_ = data_;
- }
- if (dataCase_ == 7) {
- result.data_ = data_;
- }
- result.bitField0_ = to_bitField0_;
- result.dataCase_ = dataCase_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Fileformat.Blob) {
- return mergeFrom((crosby.binary.Fileformat.Blob) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Fileformat.Blob other) {
- if (other == crosby.binary.Fileformat.Blob.getDefaultInstance())
- return this;
- if (other.hasRawSize()) {
- setRawSize(other.getRawSize());
- }
- switch (other.getDataCase()) {
- case RAW: {
- setRaw(other.getRaw());
- break;
- }
- case ZLIB_DATA: {
- setZlibData(other.getZlibData());
- break;
- }
- case LZMA_DATA: {
- setLzmaData(other.getLzmaData());
- break;
- }
- case OBSOLETE_BZIP2_DATA: {
- setOBSOLETEBzip2Data(other.getOBSOLETEBzip2Data());
- break;
- }
- case LZ4_DATA: {
- setLz4Data(other.getLz4Data());
- break;
- }
- case ZSTD_DATA: {
- setZstdData(other.getZstdData());
- break;
- }
- case DATA_NOT_SET: {
- break;
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Fileformat.Blob parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Fileformat.Blob) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int dataCase_ = 0;
- private java.lang.Object data_;
-
- public DataCase getDataCase() {
- return DataCase.forNumber(
- dataCase_);
- }
-
- public Builder clearData() {
- dataCase_ = 0;
- data_ = null;
- onChanged();
- return this;
- }
-
- private int bitField0_;
-
- private int rawSize_;
-
- /**
- *
- * When compressed, the uncompressed size
- *
- *
- * optional int32 raw_size = 2;
- *
- * @return Whether the rawSize field is set.
- */
- @java.lang.Override
- public boolean hasRawSize() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- *
- * When compressed, the uncompressed size
- *
- *
- * optional int32 raw_size = 2;
- *
- * @return The rawSize.
- */
- @java.lang.Override
- public int getRawSize() {
- return rawSize_;
- }
-
- /**
- *
- * When compressed, the uncompressed size
- *
- *
- * optional int32 raw_size = 2;
- *
- * @param value The rawSize to set.
- * @return This builder for chaining.
- */
- public Builder setRawSize(int value) {
- bitField0_ |= 0x00000001;
- rawSize_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * When compressed, the uncompressed size
- *
- *
- * optional int32 raw_size = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearRawSize() {
- bitField0_ = (bitField0_ & ~0x00000001);
- rawSize_ = 0;
- onChanged();
- return this;
- }
-
- /**
- *
- * No compression
- *
- *
- * bytes raw = 1;
- *
- * @return Whether the raw field is set.
- */
- public boolean hasRaw() {
- return dataCase_ == 1;
- }
-
- /**
- *
- * No compression
- *
- *
- * bytes raw = 1;
- *
- * @return The raw.
- */
- public com.google.protobuf.ByteString getRaw() {
- if (dataCase_ == 1) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- /**
- *
- * No compression
- *
- *
- * bytes raw = 1;
- *
- * @param value The raw to set.
- * @return This builder for chaining.
- */
- public Builder setRaw(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataCase_ = 1;
- data_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * No compression
- *
- *
- * bytes raw = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearRaw() {
- if (dataCase_ == 1) {
- dataCase_ = 0;
- data_ = null;
- onChanged();
- }
- return this;
- }
-
- /**
- *
- * Possible compressed versions of the data.
- *
- *
- * bytes zlib_data = 3;
- *
- * @return Whether the zlibData field is set.
- */
- public boolean hasZlibData() {
- return dataCase_ == 3;
- }
-
- /**
- *
- * Possible compressed versions of the data.
- *
- *
- * bytes zlib_data = 3;
- *
- * @return The zlibData.
- */
- public com.google.protobuf.ByteString getZlibData() {
- if (dataCase_ == 3) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- /**
- *
- * Possible compressed versions of the data.
- *
- *
- * bytes zlib_data = 3;
- *
- * @param value The zlibData to set.
- * @return This builder for chaining.
- */
- public Builder setZlibData(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataCase_ = 3;
- data_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * Possible compressed versions of the data.
- *
- *
- * bytes zlib_data = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearZlibData() {
- if (dataCase_ == 3) {
- dataCase_ = 0;
- data_ = null;
- onChanged();
- }
- return this;
- }
-
- /**
- *
- * For LZMA compressed data (optional)
- *
- *
- * bytes lzma_data = 4;
- *
- * @return Whether the lzmaData field is set.
- */
- public boolean hasLzmaData() {
- return dataCase_ == 4;
- }
-
- /**
- *
- * For LZMA compressed data (optional)
- *
- *
- * bytes lzma_data = 4;
- *
- * @return The lzmaData.
- */
- public com.google.protobuf.ByteString getLzmaData() {
- if (dataCase_ == 4) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- /**
- *
- * For LZMA compressed data (optional)
- *
- *
- * bytes lzma_data = 4;
- *
- * @param value The lzmaData to set.
- * @return This builder for chaining.
- */
- public Builder setLzmaData(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataCase_ = 4;
- data_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * For LZMA compressed data (optional)
- *
- *
- * bytes lzma_data = 4;
- *
- * @return This builder for chaining.
- */
- public Builder clearLzmaData() {
- if (dataCase_ == 4) {
- dataCase_ = 0;
- data_ = null;
- onChanged();
- }
- return this;
- }
-
- /**
- *
- * Formerly used for bzip2 compressed data. Deprecated in 2010.
- *
- *
- * bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
- *
- * @return Whether the oBSOLETEBzip2Data field is set.
- */
- @java.lang.Deprecated
- public boolean hasOBSOLETEBzip2Data() {
- return dataCase_ == 5;
- }
-
- /**
- *
- * Formerly used for bzip2 compressed data. Deprecated in 2010.
- *
- *
- * bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
- *
- * @return The oBSOLETEBzip2Data.
- */
- @java.lang.Deprecated
- public com.google.protobuf.ByteString getOBSOLETEBzip2Data() {
- if (dataCase_ == 5) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- /**
- *
- * Formerly used for bzip2 compressed data. Deprecated in 2010.
- *
- *
- * bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
- *
- * @param value The oBSOLETEBzip2Data to set.
- * @return This builder for chaining.
- */
- @java.lang.Deprecated
- public Builder setOBSOLETEBzip2Data(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataCase_ = 5;
- data_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * Formerly used for bzip2 compressed data. Deprecated in 2010.
- *
- *
- * bytes OBSOLETE_bzip2_data = 5 [deprecated = true];
- *
- * @return This builder for chaining.
- */
- @java.lang.Deprecated
- public Builder clearOBSOLETEBzip2Data() {
- if (dataCase_ == 5) {
- dataCase_ = 0;
- data_ = null;
- onChanged();
- }
- return this;
- }
-
- /**
- *
- * For LZ4 compressed data (optional)
- *
- *
- * bytes lz4_data = 6;
- *
- * @return Whether the lz4Data field is set.
- */
- public boolean hasLz4Data() {
- return dataCase_ == 6;
- }
-
- /**
- *
- * For LZ4 compressed data (optional)
- *
- *
- * bytes lz4_data = 6;
- *
- * @return The lz4Data.
- */
- public com.google.protobuf.ByteString getLz4Data() {
- if (dataCase_ == 6) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- /**
- *
- * For LZ4 compressed data (optional)
- *
- *
- * bytes lz4_data = 6;
- *
- * @param value The lz4Data to set.
- * @return This builder for chaining.
- */
- public Builder setLz4Data(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataCase_ = 6;
- data_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * For LZ4 compressed data (optional)
- *
- *
- * bytes lz4_data = 6;
- *
- * @return This builder for chaining.
- */
- public Builder clearLz4Data() {
- if (dataCase_ == 6) {
- dataCase_ = 0;
- data_ = null;
- onChanged();
- }
- return this;
- }
-
- /**
- *
- * For ZSTD compressed data (optional)
- *
- *
- * bytes zstd_data = 7;
- *
- * @return Whether the zstdData field is set.
- */
- public boolean hasZstdData() {
- return dataCase_ == 7;
- }
-
- /**
- *
- * For ZSTD compressed data (optional)
- *
- *
- * bytes zstd_data = 7;
- *
- * @return The zstdData.
- */
- public com.google.protobuf.ByteString getZstdData() {
- if (dataCase_ == 7) {
- return (com.google.protobuf.ByteString) data_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- /**
- *
- * For ZSTD compressed data (optional)
- *
- *
- * bytes zstd_data = 7;
- *
- * @param value The zstdData to set.
- * @return This builder for chaining.
- */
- public Builder setZstdData(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataCase_ = 7;
- data_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * For ZSTD compressed data (optional)
- *
- *
- * bytes zstd_data = 7;
- *
- * @return This builder for chaining.
- */
- public Builder clearZstdData() {
- if (dataCase_ == 7) {
- dataCase_ = 0;
- data_ = null;
- onChanged();
- }
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.Blob)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.Blob)
- private static final crosby.binary.Fileformat.Blob DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Fileformat.Blob();
- }
-
- public static crosby.binary.Fileformat.Blob getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public Blob parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Blob(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Fileformat.Blob getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface BlobHeaderOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.BlobHeader)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required string type = 1;
- *
- * @return Whether the type field is set.
- */
- boolean hasType();
-
- /**
- * required string type = 1;
- *
- * @return The type.
- */
- java.lang.String getType();
-
- /**
- * required string type = 1;
- *
- * @return The bytes for type.
- */
- com.google.protobuf.ByteString getTypeBytes();
-
- /**
- * optional bytes indexdata = 2;
- *
- * @return Whether the indexdata field is set.
- */
- boolean hasIndexdata();
-
- /**
- * optional bytes indexdata = 2;
- *
- * @return The indexdata.
- */
- com.google.protobuf.ByteString getIndexdata();
-
- /**
- * required int32 datasize = 3;
- *
- * @return Whether the datasize field is set.
- */
- boolean hasDatasize();
-
- /**
- * required int32 datasize = 3;
- *
- * @return The datasize.
- */
- int getDatasize();
- }
- /**
- * Protobuf type {@code OSMPBF.BlobHeader}
- */
- public static final class BlobHeader extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.BlobHeader)
- BlobHeaderOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use BlobHeader.newBuilder() to construct.
- private BlobHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private BlobHeader() {
- type_ = "";
- indexdata_ = com.google.protobuf.ByteString.EMPTY;
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new BlobHeader();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private BlobHeader(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- type_ = bs;
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- indexdata_ = input.readBytes();
- break;
- }
- case 24: {
- bitField0_ |= 0x00000004;
- datasize_ = input.readInt32();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Fileformat.internal_static_OSMPBF_BlobHeader_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Fileformat.internal_static_OSMPBF_BlobHeader_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Fileformat.BlobHeader.class, crosby.binary.Fileformat.BlobHeader.Builder.class);
- }
-
- private int bitField0_;
- public static final int TYPE_FIELD_NUMBER = 1;
- private volatile java.lang.Object type_;
-
- /**
- * required string type = 1;
- *
- * @return Whether the type field is set.
- */
- @java.lang.Override
- public boolean hasType() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required string type = 1;
- *
- * @return The type.
- */
- @java.lang.Override
- public java.lang.String getType() {
- java.lang.Object ref = type_;
- 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()) {
- type_ = s;
- }
- return s;
- }
- }
-
- /**
- * required string type = 1;
- *
- * @return The bytes for type.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getTypeBytes() {
- java.lang.Object ref = type_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- type_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int INDEXDATA_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString indexdata_;
-
- /**
- * optional bytes indexdata = 2;
- *
- * @return Whether the indexdata field is set.
- */
- @java.lang.Override
- public boolean hasIndexdata() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * optional bytes indexdata = 2;
- *
- * @return The indexdata.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getIndexdata() {
- return indexdata_;
- }
-
- public static final int DATASIZE_FIELD_NUMBER = 3;
- private int datasize_;
-
- /**
- * required int32 datasize = 3;
- *
- * @return Whether the datasize field is set.
- */
- @java.lang.Override
- public boolean hasDatasize() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- * required int32 datasize = 3;
- *
- * @return The datasize.
- */
- @java.lang.Override
- public int getDatasize() {
- return datasize_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- if (!hasType()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasDatasize()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeBytes(2, indexdata_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeInt32(3, datasize_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, indexdata_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, datasize_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Fileformat.BlobHeader)) {
- return super.equals(obj);
- }
- crosby.binary.Fileformat.BlobHeader other = (crosby.binary.Fileformat.BlobHeader) obj;
-
- if (hasType() != other.hasType())
- return false;
- if (hasType()) {
- if (!getType()
- .equals(other.getType()))
- return false;
- }
- if (hasIndexdata() != other.hasIndexdata())
- return false;
- if (hasIndexdata()) {
- if (!getIndexdata()
- .equals(other.getIndexdata()))
- return false;
- }
- if (hasDatasize() != other.hasDatasize())
- return false;
- if (hasDatasize()) {
- if (getDatasize() != other.getDatasize())
- return false;
- }
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasType()) {
- hash = (37 * hash) + TYPE_FIELD_NUMBER;
- hash = (53 * hash) + getType().hashCode();
- }
- if (hasIndexdata()) {
- hash = (37 * hash) + INDEXDATA_FIELD_NUMBER;
- hash = (53 * hash) + getIndexdata().hashCode();
- }
- if (hasDatasize()) {
- hash = (37 * hash) + DATASIZE_FIELD_NUMBER;
- hash = (53 * hash) + getDatasize();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Fileformat.BlobHeader parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Fileformat.BlobHeader prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code OSMPBF.BlobHeader}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.BlobHeader)
- crosby.binary.Fileformat.BlobHeaderOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Fileformat.internal_static_OSMPBF_BlobHeader_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Fileformat.internal_static_OSMPBF_BlobHeader_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Fileformat.BlobHeader.class, crosby.binary.Fileformat.BlobHeader.Builder.class);
- }
-
- // Construct using crosby.binary.Fileformat.BlobHeader.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- type_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- indexdata_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- datasize_ = 0;
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Fileformat.internal_static_OSMPBF_BlobHeader_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Fileformat.BlobHeader getDefaultInstanceForType() {
- return crosby.binary.Fileformat.BlobHeader.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Fileformat.BlobHeader build() {
- crosby.binary.Fileformat.BlobHeader result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Fileformat.BlobHeader buildPartial() {
- crosby.binary.Fileformat.BlobHeader result = new crosby.binary.Fileformat.BlobHeader(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- to_bitField0_ |= 0x00000001;
- }
- result.type_ = type_;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- to_bitField0_ |= 0x00000002;
- }
- result.indexdata_ = indexdata_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.datasize_ = datasize_;
- to_bitField0_ |= 0x00000004;
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Fileformat.BlobHeader) {
- return mergeFrom((crosby.binary.Fileformat.BlobHeader) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Fileformat.BlobHeader other) {
- if (other == crosby.binary.Fileformat.BlobHeader.getDefaultInstance())
- return this;
- if (other.hasType()) {
- bitField0_ |= 0x00000001;
- type_ = other.type_;
- onChanged();
- }
- if (other.hasIndexdata()) {
- setIndexdata(other.getIndexdata());
- }
- if (other.hasDatasize()) {
- setDatasize(other.getDatasize());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasType()) {
- return false;
- }
- if (!hasDatasize()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Fileformat.BlobHeader parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Fileformat.BlobHeader) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private java.lang.Object type_ = "";
-
- /**
- * required string type = 1;
- *
- * @return Whether the type field is set.
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required string type = 1;
- *
- * @return The type.
- */
- public java.lang.String getType() {
- java.lang.Object ref = type_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- type_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- * required string type = 1;
- *
- * @return The bytes for type.
- */
- public com.google.protobuf.ByteString getTypeBytes() {
- java.lang.Object ref = type_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- type_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- * required string type = 1;
- *
- * @param value The type to set.
- * @return This builder for chaining.
- */
- public Builder setType(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- type_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required string type = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000001);
- type_ = getDefaultInstance().getType();
- onChanged();
- return this;
- }
-
- /**
- * required string type = 1;
- *
- * @param value The bytes for type to set.
- * @return This builder for chaining.
- */
- public Builder setTypeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- type_ = value;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.ByteString indexdata_ = com.google.protobuf.ByteString.EMPTY;
-
- /**
- * optional bytes indexdata = 2;
- *
- * @return Whether the indexdata field is set.
- */
- @java.lang.Override
- public boolean hasIndexdata() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * optional bytes indexdata = 2;
- *
- * @return The indexdata.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getIndexdata() {
- return indexdata_;
- }
-
- /**
- * optional bytes indexdata = 2;
- *
- * @param value The indexdata to set.
- * @return This builder for chaining.
- */
- public Builder setIndexdata(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- indexdata_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional bytes indexdata = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearIndexdata() {
- bitField0_ = (bitField0_ & ~0x00000002);
- indexdata_ = getDefaultInstance().getIndexdata();
- onChanged();
- return this;
- }
-
- private int datasize_;
-
- /**
- * required int32 datasize = 3;
- *
- * @return Whether the datasize field is set.
- */
- @java.lang.Override
- public boolean hasDatasize() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- * required int32 datasize = 3;
- *
- * @return The datasize.
- */
- @java.lang.Override
- public int getDatasize() {
- return datasize_;
- }
-
- /**
- * required int32 datasize = 3;
- *
- * @param value The datasize to set.
- * @return This builder for chaining.
- */
- public Builder setDatasize(int value) {
- bitField0_ |= 0x00000004;
- datasize_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required int32 datasize = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearDatasize() {
- bitField0_ = (bitField0_ & ~0x00000004);
- datasize_ = 0;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.BlobHeader)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.BlobHeader)
- private static final crosby.binary.Fileformat.BlobHeader DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Fileformat.BlobHeader();
- }
-
- public static crosby.binary.Fileformat.BlobHeader getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public BlobHeader parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BlobHeader(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Fileformat.BlobHeader getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_Blob_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_Blob_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_BlobHeader_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_BlobHeader_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
- return descriptor;
- }
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n3planetiler-core/src/main/resources/fil" +
- "eformat.proto\022\006OSMPBF\"\245\001\n\004Blob\022\020\n\010raw_si" +
- "ze\030\002 \001(\005\022\r\n\003raw\030\001 \001(\014H\000\022\023\n\tzlib_data\030\003 \001" +
- "(\014H\000\022\023\n\tlzma_data\030\004 \001(\014H\000\022!\n\023OBSOLETE_bz" +
- "ip2_data\030\005 \001(\014B\002\030\001H\000\022\022\n\010lz4_data\030\006 \001(\014H\000" +
- "\022\023\n\tzstd_data\030\007 \001(\014H\000B\006\n\004data\"?\n\nBlobHea" +
- "der\022\014\n\004type\030\001 \002(\t\022\021\n\tindexdata\030\002 \001(\014\022\020\n\010" +
- "datasize\030\003 \002(\005B\017\n\rcrosby.binary"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[]{
- });
- internal_static_OSMPBF_Blob_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_OSMPBF_Blob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_Blob_descriptor,
- new java.lang.String[]{"RawSize", "Raw", "ZlibData", "LzmaData", "OBSOLETEBzip2Data", "Lz4Data", "ZstdData",
- "Data",});
- internal_static_OSMPBF_BlobHeader_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_OSMPBF_BlobHeader_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_BlobHeader_descriptor,
- new java.lang.String[]{"Type", "Indexdata", "Datasize",});
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/planetiler-core/src/main/java/crosby/binary/Fileformat.java.pb.meta b/planetiler-core/src/main/java/crosby/binary/Fileformat.java.pb.meta
deleted file mode 100644
index 5fb49539e2..0000000000
Binary files a/planetiler-core/src/main/java/crosby/binary/Fileformat.java.pb.meta and /dev/null differ
diff --git a/planetiler-core/src/main/java/crosby/binary/Osmformat.java b/planetiler-core/src/main/java/crosby/binary/Osmformat.java
deleted file mode 100644
index 3cdad2fb8d..0000000000
--- a/planetiler-core/src/main/java/crosby/binary/Osmformat.java
+++ /dev/null
@@ -1,19651 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: planetiler-core/src/main/resources/osmformat.proto
-
-package crosby.binary;
-
-@javax.annotation.Generated(value = "protoc", comments = "annotations:Osmformat.java.pb.meta")
-public final class Osmformat {
- private Osmformat() {}
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {}
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
-
- public interface HeaderBlockOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.HeaderBlock)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- *
- * @return Whether the bbox field is set.
- */
- boolean hasBbox();
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- *
- * @return The bbox.
- */
- crosby.binary.Osmformat.HeaderBBox getBbox();
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- */
- crosby.binary.Osmformat.HeaderBBoxOrBuilder getBboxOrBuilder();
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @return A list containing the requiredFeatures.
- */
- java.util.List getRequiredFeaturesList();
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @return The count of requiredFeatures.
- */
- int getRequiredFeaturesCount();
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @param index The index of the element to return.
- * @return The requiredFeatures at the given index.
- */
- java.lang.String getRequiredFeatures(int index);
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @param index The index of the value to return.
- * @return The bytes of the requiredFeatures at the given index.
- */
- com.google.protobuf.ByteString getRequiredFeaturesBytes(int index);
-
- /**
- * repeated string optional_features = 5;
- *
- * @return A list containing the optionalFeatures.
- */
- java.util.List getOptionalFeaturesList();
-
- /**
- * repeated string optional_features = 5;
- *
- * @return The count of optionalFeatures.
- */
- int getOptionalFeaturesCount();
-
- /**
- * repeated string optional_features = 5;
- *
- * @param index The index of the element to return.
- * @return The optionalFeatures at the given index.
- */
- java.lang.String getOptionalFeatures(int index);
-
- /**
- * repeated string optional_features = 5;
- *
- * @param index The index of the value to return.
- * @return The bytes of the optionalFeatures at the given index.
- */
- com.google.protobuf.ByteString getOptionalFeaturesBytes(int index);
-
- /**
- * optional string writingprogram = 16;
- *
- * @return Whether the writingprogram field is set.
- */
- boolean hasWritingprogram();
-
- /**
- * optional string writingprogram = 16;
- *
- * @return The writingprogram.
- */
- java.lang.String getWritingprogram();
-
- /**
- * optional string writingprogram = 16;
- *
- * @return The bytes for writingprogram.
- */
- com.google.protobuf.ByteString getWritingprogramBytes();
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @return Whether the source field is set.
- */
- boolean hasSource();
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @return The source.
- */
- java.lang.String getSource();
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @return The bytes for source.
- */
- com.google.protobuf.ByteString getSourceBytes();
-
- /**
- *
- * Replication timestamp, expressed in seconds since the epoch,
- * otherwise the same value as in the "timestamp=..." field
- * in the state.txt file used by Osmosis.
- *
- *
- * optional int64 osmosis_replication_timestamp = 32;
- *
- * @return Whether the osmosisReplicationTimestamp field is set.
- */
- boolean hasOsmosisReplicationTimestamp();
-
- /**
- *
- * Replication timestamp, expressed in seconds since the epoch,
- * otherwise the same value as in the "timestamp=..." field
- * in the state.txt file used by Osmosis.
- *
- *
- * optional int64 osmosis_replication_timestamp = 32;
- *
- * @return The osmosisReplicationTimestamp.
- */
- long getOsmosisReplicationTimestamp();
-
- /**
- *
- * Replication sequence number (sequenceNumber in state.txt).
- *
- *
- * optional int64 osmosis_replication_sequence_number = 33;
- *
- * @return Whether the osmosisReplicationSequenceNumber field is set.
- */
- boolean hasOsmosisReplicationSequenceNumber();
-
- /**
- *
- * Replication sequence number (sequenceNumber in state.txt).
- *
- *
- * optional int64 osmosis_replication_sequence_number = 33;
- *
- * @return The osmosisReplicationSequenceNumber.
- */
- long getOsmosisReplicationSequenceNumber();
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @return Whether the osmosisReplicationBaseUrl field is set.
- */
- boolean hasOsmosisReplicationBaseUrl();
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @return The osmosisReplicationBaseUrl.
- */
- java.lang.String getOsmosisReplicationBaseUrl();
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @return The bytes for osmosisReplicationBaseUrl.
- */
- com.google.protobuf.ByteString getOsmosisReplicationBaseUrlBytes();
- }
- /**
- * Protobuf type {@code OSMPBF.HeaderBlock}
- */
- public static final class HeaderBlock extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.HeaderBlock)
- HeaderBlockOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use HeaderBlock.newBuilder() to construct.
- private HeaderBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private HeaderBlock() {
- requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- writingprogram_ = "";
- source_ = "";
- osmosisReplicationBaseUrl_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new HeaderBlock();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private HeaderBlock(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 10: {
- crosby.binary.Osmformat.HeaderBBox.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) != 0)) {
- subBuilder = bbox_.toBuilder();
- }
- bbox_ = input.readMessage(crosby.binary.Osmformat.HeaderBBox.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(bbox_);
- bbox_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- requiredFeatures_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000002;
- }
- requiredFeatures_.add(bs);
- break;
- }
- case 42: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- optionalFeatures_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- optionalFeatures_.add(bs);
- break;
- }
- case 130: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- writingprogram_ = bs;
- break;
- }
- case 138: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- source_ = bs;
- break;
- }
- case 256: {
- bitField0_ |= 0x00000008;
- osmosisReplicationTimestamp_ = input.readInt64();
- break;
- }
- case 264: {
- bitField0_ |= 0x00000010;
- osmosisReplicationSequenceNumber_ = input.readInt64();
- break;
- }
- case 274: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000020;
- osmosisReplicationBaseUrl_ = bs;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- requiredFeatures_ = requiredFeatures_.getUnmodifiableView();
- }
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- optionalFeatures_ = optionalFeatures_.getUnmodifiableView();
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_HeaderBlock_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_HeaderBlock_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.HeaderBlock.class, crosby.binary.Osmformat.HeaderBlock.Builder.class);
- }
-
- private int bitField0_;
- public static final int BBOX_FIELD_NUMBER = 1;
- private crosby.binary.Osmformat.HeaderBBox bbox_;
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- *
- * @return Whether the bbox field is set.
- */
- @java.lang.Override
- public boolean hasBbox() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- *
- * @return The bbox.
- */
- @java.lang.Override
- public crosby.binary.Osmformat.HeaderBBox getBbox() {
- return bbox_ == null ? crosby.binary.Osmformat.HeaderBBox.getDefaultInstance() : bbox_;
- }
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.HeaderBBoxOrBuilder getBboxOrBuilder() {
- return bbox_ == null ? crosby.binary.Osmformat.HeaderBBox.getDefaultInstance() : bbox_;
- }
-
- public static final int REQUIRED_FEATURES_FIELD_NUMBER = 4;
- private com.google.protobuf.LazyStringList requiredFeatures_;
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @return A list containing the requiredFeatures.
- */
- public com.google.protobuf.ProtocolStringList getRequiredFeaturesList() {
- return requiredFeatures_;
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @return The count of requiredFeatures.
- */
- public int getRequiredFeaturesCount() {
- return requiredFeatures_.size();
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @param index The index of the element to return.
- * @return The requiredFeatures at the given index.
- */
- public java.lang.String getRequiredFeatures(int index) {
- return requiredFeatures_.get(index);
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @param index The index of the value to return.
- * @return The bytes of the requiredFeatures at the given index.
- */
- public com.google.protobuf.ByteString getRequiredFeaturesBytes(int index) {
- return requiredFeatures_.getByteString(index);
- }
-
- public static final int OPTIONAL_FEATURES_FIELD_NUMBER = 5;
- private com.google.protobuf.LazyStringList optionalFeatures_;
-
- /**
- * repeated string optional_features = 5;
- *
- * @return A list containing the optionalFeatures.
- */
- public com.google.protobuf.ProtocolStringList getOptionalFeaturesList() {
- return optionalFeatures_;
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @return The count of optionalFeatures.
- */
- public int getOptionalFeaturesCount() {
- return optionalFeatures_.size();
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @param index The index of the element to return.
- * @return The optionalFeatures at the given index.
- */
- public java.lang.String getOptionalFeatures(int index) {
- return optionalFeatures_.get(index);
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @param index The index of the value to return.
- * @return The bytes of the optionalFeatures at the given index.
- */
- public com.google.protobuf.ByteString getOptionalFeaturesBytes(int index) {
- return optionalFeatures_.getByteString(index);
- }
-
- public static final int WRITINGPROGRAM_FIELD_NUMBER = 16;
- private volatile java.lang.Object writingprogram_;
-
- /**
- * optional string writingprogram = 16;
- *
- * @return Whether the writingprogram field is set.
- */
- @java.lang.Override
- public boolean hasWritingprogram() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * optional string writingprogram = 16;
- *
- * @return The writingprogram.
- */
- @java.lang.Override
- public java.lang.String getWritingprogram() {
- java.lang.Object ref = writingprogram_;
- 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()) {
- writingprogram_ = s;
- }
- return s;
- }
- }
-
- /**
- * optional string writingprogram = 16;
- *
- * @return The bytes for writingprogram.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getWritingprogramBytes() {
- java.lang.Object ref = writingprogram_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- writingprogram_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SOURCE_FIELD_NUMBER = 17;
- private volatile java.lang.Object source_;
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @return Whether the source field is set.
- */
- @java.lang.Override
- public boolean hasSource() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @return The source.
- */
- @java.lang.Override
- public java.lang.String getSource() {
- java.lang.Object ref = source_;
- 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()) {
- source_ = s;
- }
- return s;
- }
- }
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @return The bytes for source.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getSourceBytes() {
- java.lang.Object ref = source_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- source_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int OSMOSIS_REPLICATION_TIMESTAMP_FIELD_NUMBER = 32;
- private long osmosisReplicationTimestamp_;
-
- /**
- *
- * Replication timestamp, expressed in seconds since the epoch,
- * otherwise the same value as in the "timestamp=..." field
- * in the state.txt file used by Osmosis.
- *
- *
- * optional int64 osmosis_replication_timestamp = 32;
- *
- * @return Whether the osmosisReplicationTimestamp field is set.
- */
- @java.lang.Override
- public boolean hasOsmosisReplicationTimestamp() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- *
- * Replication timestamp, expressed in seconds since the epoch,
- * otherwise the same value as in the "timestamp=..." field
- * in the state.txt file used by Osmosis.
- *
- *
- * optional int64 osmosis_replication_timestamp = 32;
- *
- * @return The osmosisReplicationTimestamp.
- */
- @java.lang.Override
- public long getOsmosisReplicationTimestamp() {
- return osmosisReplicationTimestamp_;
- }
-
- public static final int OSMOSIS_REPLICATION_SEQUENCE_NUMBER_FIELD_NUMBER = 33;
- private long osmosisReplicationSequenceNumber_;
-
- /**
- *
- * Replication sequence number (sequenceNumber in state.txt).
- *
- *
- * optional int64 osmosis_replication_sequence_number = 33;
- *
- * @return Whether the osmosisReplicationSequenceNumber field is set.
- */
- @java.lang.Override
- public boolean hasOsmosisReplicationSequenceNumber() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- *
- * Replication sequence number (sequenceNumber in state.txt).
- *
- *
- * optional int64 osmosis_replication_sequence_number = 33;
- *
- * @return The osmosisReplicationSequenceNumber.
- */
- @java.lang.Override
- public long getOsmosisReplicationSequenceNumber() {
- return osmosisReplicationSequenceNumber_;
- }
-
- public static final int OSMOSIS_REPLICATION_BASE_URL_FIELD_NUMBER = 34;
- private volatile java.lang.Object osmosisReplicationBaseUrl_;
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @return Whether the osmosisReplicationBaseUrl field is set.
- */
- @java.lang.Override
- public boolean hasOsmosisReplicationBaseUrl() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @return The osmosisReplicationBaseUrl.
- */
- @java.lang.Override
- public java.lang.String getOsmosisReplicationBaseUrl() {
- java.lang.Object ref = osmosisReplicationBaseUrl_;
- 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()) {
- osmosisReplicationBaseUrl_ = s;
- }
- return s;
- }
- }
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @return The bytes for osmosisReplicationBaseUrl.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getOsmosisReplicationBaseUrlBytes() {
- java.lang.Object ref = osmosisReplicationBaseUrl_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- osmosisReplicationBaseUrl_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- if (hasBbox()) {
- if (!getBbox().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getBbox());
- }
- for (int i = 0; i < requiredFeatures_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requiredFeatures_.getRaw(i));
- }
- for (int i = 0; i < optionalFeatures_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, optionalFeatures_.getRaw(i));
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 16, writingprogram_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 17, source_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeInt64(32, osmosisReplicationTimestamp_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeInt64(33, osmosisReplicationSequenceNumber_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 34, osmosisReplicationBaseUrl_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getBbox());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < requiredFeatures_.size(); i++) {
- dataSize += computeStringSizeNoTag(requiredFeatures_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getRequiredFeaturesList().size();
- }
- {
- int dataSize = 0;
- for (int i = 0; i < optionalFeatures_.size(); i++) {
- dataSize += computeStringSizeNoTag(optionalFeatures_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getOptionalFeaturesList().size();
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, writingprogram_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, source_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(32, osmosisReplicationTimestamp_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(33, osmosisReplicationSequenceNumber_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, osmosisReplicationBaseUrl_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.HeaderBlock)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.HeaderBlock other = (crosby.binary.Osmformat.HeaderBlock) obj;
-
- if (hasBbox() != other.hasBbox())
- return false;
- if (hasBbox()) {
- if (!getBbox()
- .equals(other.getBbox()))
- return false;
- }
- if (!getRequiredFeaturesList()
- .equals(other.getRequiredFeaturesList()))
- return false;
- if (!getOptionalFeaturesList()
- .equals(other.getOptionalFeaturesList()))
- return false;
- if (hasWritingprogram() != other.hasWritingprogram())
- return false;
- if (hasWritingprogram()) {
- if (!getWritingprogram()
- .equals(other.getWritingprogram()))
- return false;
- }
- if (hasSource() != other.hasSource())
- return false;
- if (hasSource()) {
- if (!getSource()
- .equals(other.getSource()))
- return false;
- }
- if (hasOsmosisReplicationTimestamp() != other.hasOsmosisReplicationTimestamp())
- return false;
- if (hasOsmosisReplicationTimestamp()) {
- if (getOsmosisReplicationTimestamp() != other.getOsmosisReplicationTimestamp())
- return false;
- }
- if (hasOsmosisReplicationSequenceNumber() != other.hasOsmosisReplicationSequenceNumber())
- return false;
- if (hasOsmosisReplicationSequenceNumber()) {
- if (getOsmosisReplicationSequenceNumber() != other.getOsmosisReplicationSequenceNumber())
- return false;
- }
- if (hasOsmosisReplicationBaseUrl() != other.hasOsmosisReplicationBaseUrl())
- return false;
- if (hasOsmosisReplicationBaseUrl()) {
- if (!getOsmosisReplicationBaseUrl()
- .equals(other.getOsmosisReplicationBaseUrl()))
- return false;
- }
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasBbox()) {
- hash = (37 * hash) + BBOX_FIELD_NUMBER;
- hash = (53 * hash) + getBbox().hashCode();
- }
- if (getRequiredFeaturesCount() > 0) {
- hash = (37 * hash) + REQUIRED_FEATURES_FIELD_NUMBER;
- hash = (53 * hash) + getRequiredFeaturesList().hashCode();
- }
- if (getOptionalFeaturesCount() > 0) {
- hash = (37 * hash) + OPTIONAL_FEATURES_FIELD_NUMBER;
- hash = (53 * hash) + getOptionalFeaturesList().hashCode();
- }
- if (hasWritingprogram()) {
- hash = (37 * hash) + WRITINGPROGRAM_FIELD_NUMBER;
- hash = (53 * hash) + getWritingprogram().hashCode();
- }
- if (hasSource()) {
- hash = (37 * hash) + SOURCE_FIELD_NUMBER;
- hash = (53 * hash) + getSource().hashCode();
- }
- if (hasOsmosisReplicationTimestamp()) {
- hash = (37 * hash) + OSMOSIS_REPLICATION_TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getOsmosisReplicationTimestamp());
- }
- if (hasOsmosisReplicationSequenceNumber()) {
- hash = (37 * hash) + OSMOSIS_REPLICATION_SEQUENCE_NUMBER_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getOsmosisReplicationSequenceNumber());
- }
- if (hasOsmosisReplicationBaseUrl()) {
- hash = (37 * hash) + OSMOSIS_REPLICATION_BASE_URL_FIELD_NUMBER;
- hash = (53 * hash) + getOsmosisReplicationBaseUrl().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.HeaderBlock parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.HeaderBlock prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code OSMPBF.HeaderBlock}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.HeaderBlock)
- crosby.binary.Osmformat.HeaderBlockOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_HeaderBlock_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_HeaderBlock_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.HeaderBlock.class, crosby.binary.Osmformat.HeaderBlock.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.HeaderBlock.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getBboxFieldBuilder();
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- if (bboxBuilder_ == null) {
- bbox_ = null;
- } else {
- bboxBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- writingprogram_ = "";
- bitField0_ = (bitField0_ & ~0x00000008);
- source_ = "";
- bitField0_ = (bitField0_ & ~0x00000010);
- osmosisReplicationTimestamp_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000020);
- osmosisReplicationSequenceNumber_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000040);
- osmosisReplicationBaseUrl_ = "";
- bitField0_ = (bitField0_ & ~0x00000080);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_HeaderBlock_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.HeaderBlock getDefaultInstanceForType() {
- return crosby.binary.Osmformat.HeaderBlock.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.HeaderBlock build() {
- crosby.binary.Osmformat.HeaderBlock result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.HeaderBlock buildPartial() {
- crosby.binary.Osmformat.HeaderBlock result = new crosby.binary.Osmformat.HeaderBlock(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- if (bboxBuilder_ == null) {
- result.bbox_ = bbox_;
- } else {
- result.bbox_ = bboxBuilder_.build();
- }
- to_bitField0_ |= 0x00000001;
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- requiredFeatures_ = requiredFeatures_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.requiredFeatures_ = requiredFeatures_;
- if (((bitField0_ & 0x00000004) != 0)) {
- optionalFeatures_ = optionalFeatures_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.optionalFeatures_ = optionalFeatures_;
- if (((from_bitField0_ & 0x00000008) != 0)) {
- to_bitField0_ |= 0x00000002;
- }
- result.writingprogram_ = writingprogram_;
- if (((from_bitField0_ & 0x00000010) != 0)) {
- to_bitField0_ |= 0x00000004;
- }
- result.source_ = source_;
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.osmosisReplicationTimestamp_ = osmosisReplicationTimestamp_;
- to_bitField0_ |= 0x00000008;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.osmosisReplicationSequenceNumber_ = osmosisReplicationSequenceNumber_;
- to_bitField0_ |= 0x00000010;
- }
- if (((from_bitField0_ & 0x00000080) != 0)) {
- to_bitField0_ |= 0x00000020;
- }
- result.osmosisReplicationBaseUrl_ = osmosisReplicationBaseUrl_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.HeaderBlock) {
- return mergeFrom((crosby.binary.Osmformat.HeaderBlock) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.HeaderBlock other) {
- if (other == crosby.binary.Osmformat.HeaderBlock.getDefaultInstance())
- return this;
- if (other.hasBbox()) {
- mergeBbox(other.getBbox());
- }
- if (!other.requiredFeatures_.isEmpty()) {
- if (requiredFeatures_.isEmpty()) {
- requiredFeatures_ = other.requiredFeatures_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureRequiredFeaturesIsMutable();
- requiredFeatures_.addAll(other.requiredFeatures_);
- }
- onChanged();
- }
- if (!other.optionalFeatures_.isEmpty()) {
- if (optionalFeatures_.isEmpty()) {
- optionalFeatures_ = other.optionalFeatures_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureOptionalFeaturesIsMutable();
- optionalFeatures_.addAll(other.optionalFeatures_);
- }
- onChanged();
- }
- if (other.hasWritingprogram()) {
- bitField0_ |= 0x00000008;
- writingprogram_ = other.writingprogram_;
- onChanged();
- }
- if (other.hasSource()) {
- bitField0_ |= 0x00000010;
- source_ = other.source_;
- onChanged();
- }
- if (other.hasOsmosisReplicationTimestamp()) {
- setOsmosisReplicationTimestamp(other.getOsmosisReplicationTimestamp());
- }
- if (other.hasOsmosisReplicationSequenceNumber()) {
- setOsmosisReplicationSequenceNumber(other.getOsmosisReplicationSequenceNumber());
- }
- if (other.hasOsmosisReplicationBaseUrl()) {
- bitField0_ |= 0x00000080;
- osmosisReplicationBaseUrl_ = other.osmosisReplicationBaseUrl_;
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (hasBbox()) {
- if (!getBbox().isInitialized()) {
- return false;
- }
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.HeaderBlock parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.HeaderBlock) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private crosby.binary.Osmformat.HeaderBBox bbox_;
- private com.google.protobuf.SingleFieldBuilderV3 bboxBuilder_;
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- *
- * @return Whether the bbox field is set.
- */
- public boolean hasBbox() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- *
- * @return The bbox.
- */
- public crosby.binary.Osmformat.HeaderBBox getBbox() {
- if (bboxBuilder_ == null) {
- return bbox_ == null ? crosby.binary.Osmformat.HeaderBBox.getDefaultInstance() : bbox_;
- } else {
- return bboxBuilder_.getMessage();
- }
- }
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- */
- public Builder setBbox(crosby.binary.Osmformat.HeaderBBox value) {
- if (bboxBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- bbox_ = value;
- onChanged();
- } else {
- bboxBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- */
- public Builder setBbox(
- crosby.binary.Osmformat.HeaderBBox.Builder builderForValue) {
- if (bboxBuilder_ == null) {
- bbox_ = builderForValue.build();
- onChanged();
- } else {
- bboxBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- */
- public Builder mergeBbox(crosby.binary.Osmformat.HeaderBBox value) {
- if (bboxBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- bbox_ != null &&
- bbox_ != crosby.binary.Osmformat.HeaderBBox.getDefaultInstance()) {
- bbox_ =
- crosby.binary.Osmformat.HeaderBBox.newBuilder(bbox_).mergeFrom(value).buildPartial();
- } else {
- bbox_ = value;
- }
- onChanged();
- } else {
- bboxBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- */
- public Builder clearBbox() {
- if (bboxBuilder_ == null) {
- bbox_ = null;
- onChanged();
- } else {
- bboxBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- */
- public crosby.binary.Osmformat.HeaderBBox.Builder getBboxBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getBboxFieldBuilder().getBuilder();
- }
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- */
- public crosby.binary.Osmformat.HeaderBBoxOrBuilder getBboxOrBuilder() {
- if (bboxBuilder_ != null) {
- return bboxBuilder_.getMessageOrBuilder();
- } else {
- return bbox_ == null ?
- crosby.binary.Osmformat.HeaderBBox.getDefaultInstance() : bbox_;
- }
- }
-
- /**
- * optional .OSMPBF.HeaderBBox bbox = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3 getBboxFieldBuilder() {
- if (bboxBuilder_ == null) {
- bboxBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3(
- getBbox(),
- getParentForChildren(),
- isClean());
- bbox_ = null;
- }
- return bboxBuilder_;
- }
-
- private com.google.protobuf.LazyStringList requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-
- private void ensureRequiredFeaturesIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- requiredFeatures_ = new com.google.protobuf.LazyStringArrayList(requiredFeatures_);
- bitField0_ |= 0x00000002;
- }
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @return A list containing the requiredFeatures.
- */
- public com.google.protobuf.ProtocolStringList getRequiredFeaturesList() {
- return requiredFeatures_.getUnmodifiableView();
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @return The count of requiredFeatures.
- */
- public int getRequiredFeaturesCount() {
- return requiredFeatures_.size();
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @param index The index of the element to return.
- * @return The requiredFeatures at the given index.
- */
- public java.lang.String getRequiredFeatures(int index) {
- return requiredFeatures_.get(index);
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @param index The index of the value to return.
- * @return The bytes of the requiredFeatures at the given index.
- */
- public com.google.protobuf.ByteString getRequiredFeaturesBytes(int index) {
- return requiredFeatures_.getByteString(index);
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @param index The index to set the value at.
- * @param value The requiredFeatures to set.
- * @return This builder for chaining.
- */
- public Builder setRequiredFeatures(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRequiredFeaturesIsMutable();
- requiredFeatures_.set(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @param value The requiredFeatures to add.
- * @return This builder for chaining.
- */
- public Builder addRequiredFeatures(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRequiredFeaturesIsMutable();
- requiredFeatures_.add(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @param values The requiredFeatures to add.
- * @return This builder for chaining.
- */
- public Builder addAllRequiredFeatures(
- java.lang.Iterable values) {
- ensureRequiredFeaturesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, requiredFeatures_);
- onChanged();
- return this;
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @return This builder for chaining.
- */
- public Builder clearRequiredFeatures() {
- requiredFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
-
- /**
- *
- * Additional tags to aid in parsing this dataset
- *
- *
- * repeated string required_features = 4;
- *
- * @param value The bytes of the requiredFeatures to add.
- * @return This builder for chaining.
- */
- public Builder addRequiredFeaturesBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRequiredFeaturesIsMutable();
- requiredFeatures_.add(value);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-
- private void ensureOptionalFeaturesIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
- optionalFeatures_ = new com.google.protobuf.LazyStringArrayList(optionalFeatures_);
- bitField0_ |= 0x00000004;
- }
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @return A list containing the optionalFeatures.
- */
- public com.google.protobuf.ProtocolStringList getOptionalFeaturesList() {
- return optionalFeatures_.getUnmodifiableView();
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @return The count of optionalFeatures.
- */
- public int getOptionalFeaturesCount() {
- return optionalFeatures_.size();
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @param index The index of the element to return.
- * @return The optionalFeatures at the given index.
- */
- public java.lang.String getOptionalFeatures(int index) {
- return optionalFeatures_.get(index);
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @param index The index of the value to return.
- * @return The bytes of the optionalFeatures at the given index.
- */
- public com.google.protobuf.ByteString getOptionalFeaturesBytes(int index) {
- return optionalFeatures_.getByteString(index);
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @param index The index to set the value at.
- * @param value The optionalFeatures to set.
- * @return This builder for chaining.
- */
- public Builder setOptionalFeatures(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureOptionalFeaturesIsMutable();
- optionalFeatures_.set(index, value);
- onChanged();
- return this;
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @param value The optionalFeatures to add.
- * @return This builder for chaining.
- */
- public Builder addOptionalFeatures(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureOptionalFeaturesIsMutable();
- optionalFeatures_.add(value);
- onChanged();
- return this;
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @param values The optionalFeatures to add.
- * @return This builder for chaining.
- */
- public Builder addAllOptionalFeatures(
- java.lang.Iterable values) {
- ensureOptionalFeaturesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, optionalFeatures_);
- onChanged();
- return this;
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @return This builder for chaining.
- */
- public Builder clearOptionalFeatures() {
- optionalFeatures_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
-
- /**
- * repeated string optional_features = 5;
- *
- * @param value The bytes of the optionalFeatures to add.
- * @return This builder for chaining.
- */
- public Builder addOptionalFeaturesBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureOptionalFeaturesIsMutable();
- optionalFeatures_.add(value);
- onChanged();
- return this;
- }
-
- private java.lang.Object writingprogram_ = "";
-
- /**
- * optional string writingprogram = 16;
- *
- * @return Whether the writingprogram field is set.
- */
- public boolean hasWritingprogram() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- * optional string writingprogram = 16;
- *
- * @return The writingprogram.
- */
- public java.lang.String getWritingprogram() {
- java.lang.Object ref = writingprogram_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- writingprogram_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- * optional string writingprogram = 16;
- *
- * @return The bytes for writingprogram.
- */
- public com.google.protobuf.ByteString getWritingprogramBytes() {
- java.lang.Object ref = writingprogram_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- writingprogram_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- * optional string writingprogram = 16;
- *
- * @param value The writingprogram to set.
- * @return This builder for chaining.
- */
- public Builder setWritingprogram(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- writingprogram_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional string writingprogram = 16;
- *
- * @return This builder for chaining.
- */
- public Builder clearWritingprogram() {
- bitField0_ = (bitField0_ & ~0x00000008);
- writingprogram_ = getDefaultInstance().getWritingprogram();
- onChanged();
- return this;
- }
-
- /**
- * optional string writingprogram = 16;
- *
- * @param value The bytes for writingprogram to set.
- * @return This builder for chaining.
- */
- public Builder setWritingprogramBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- writingprogram_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object source_ = "";
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @return Whether the source field is set.
- */
- public boolean hasSource() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @return The source.
- */
- public java.lang.String getSource() {
- java.lang.Object ref = source_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- source_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @return The bytes for source.
- */
- public com.google.protobuf.ByteString getSourceBytes() {
- java.lang.Object ref = source_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- source_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @param value The source to set.
- * @return This builder for chaining.
- */
- public Builder setSource(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- source_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @return This builder for chaining.
- */
- public Builder clearSource() {
- bitField0_ = (bitField0_ & ~0x00000010);
- source_ = getDefaultInstance().getSource();
- onChanged();
- return this;
- }
-
- /**
- *
- * From the bbox field.
- *
- *
- * optional string source = 17;
- *
- * @param value The bytes for source to set.
- * @return This builder for chaining.
- */
- public Builder setSourceBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- source_ = value;
- onChanged();
- return this;
- }
-
- private long osmosisReplicationTimestamp_;
-
- /**
- *
- * Replication timestamp, expressed in seconds since the epoch,
- * otherwise the same value as in the "timestamp=..." field
- * in the state.txt file used by Osmosis.
- *
- *
- * optional int64 osmosis_replication_timestamp = 32;
- *
- * @return Whether the osmosisReplicationTimestamp field is set.
- */
- @java.lang.Override
- public boolean hasOsmosisReplicationTimestamp() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- *
- * Replication timestamp, expressed in seconds since the epoch,
- * otherwise the same value as in the "timestamp=..." field
- * in the state.txt file used by Osmosis.
- *
- *
- * optional int64 osmosis_replication_timestamp = 32;
- *
- * @return The osmosisReplicationTimestamp.
- */
- @java.lang.Override
- public long getOsmosisReplicationTimestamp() {
- return osmosisReplicationTimestamp_;
- }
-
- /**
- *
- * Replication timestamp, expressed in seconds since the epoch,
- * otherwise the same value as in the "timestamp=..." field
- * in the state.txt file used by Osmosis.
- *
- *
- * optional int64 osmosis_replication_timestamp = 32;
- *
- * @param value The osmosisReplicationTimestamp to set.
- * @return This builder for chaining.
- */
- public Builder setOsmosisReplicationTimestamp(long value) {
- bitField0_ |= 0x00000020;
- osmosisReplicationTimestamp_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * Replication timestamp, expressed in seconds since the epoch,
- * otherwise the same value as in the "timestamp=..." field
- * in the state.txt file used by Osmosis.
- *
- *
- * optional int64 osmosis_replication_timestamp = 32;
- *
- * @return This builder for chaining.
- */
- public Builder clearOsmosisReplicationTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000020);
- osmosisReplicationTimestamp_ = 0L;
- onChanged();
- return this;
- }
-
- private long osmosisReplicationSequenceNumber_;
-
- /**
- *
- * Replication sequence number (sequenceNumber in state.txt).
- *
- *
- * optional int64 osmosis_replication_sequence_number = 33;
- *
- * @return Whether the osmosisReplicationSequenceNumber field is set.
- */
- @java.lang.Override
- public boolean hasOsmosisReplicationSequenceNumber() {
- return ((bitField0_ & 0x00000040) != 0);
- }
-
- /**
- *
- * Replication sequence number (sequenceNumber in state.txt).
- *
- *
- * optional int64 osmosis_replication_sequence_number = 33;
- *
- * @return The osmosisReplicationSequenceNumber.
- */
- @java.lang.Override
- public long getOsmosisReplicationSequenceNumber() {
- return osmosisReplicationSequenceNumber_;
- }
-
- /**
- *
- * Replication sequence number (sequenceNumber in state.txt).
- *
- *
- * optional int64 osmosis_replication_sequence_number = 33;
- *
- * @param value The osmosisReplicationSequenceNumber to set.
- * @return This builder for chaining.
- */
- public Builder setOsmosisReplicationSequenceNumber(long value) {
- bitField0_ |= 0x00000040;
- osmosisReplicationSequenceNumber_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * Replication sequence number (sequenceNumber in state.txt).
- *
- *
- * optional int64 osmosis_replication_sequence_number = 33;
- *
- * @return This builder for chaining.
- */
- public Builder clearOsmosisReplicationSequenceNumber() {
- bitField0_ = (bitField0_ & ~0x00000040);
- osmosisReplicationSequenceNumber_ = 0L;
- onChanged();
- return this;
- }
-
- private java.lang.Object osmosisReplicationBaseUrl_ = "";
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @return Whether the osmosisReplicationBaseUrl field is set.
- */
- public boolean hasOsmosisReplicationBaseUrl() {
- return ((bitField0_ & 0x00000080) != 0);
- }
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @return The osmosisReplicationBaseUrl.
- */
- public java.lang.String getOsmosisReplicationBaseUrl() {
- java.lang.Object ref = osmosisReplicationBaseUrl_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- osmosisReplicationBaseUrl_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @return The bytes for osmosisReplicationBaseUrl.
- */
- public com.google.protobuf.ByteString getOsmosisReplicationBaseUrlBytes() {
- java.lang.Object ref = osmosisReplicationBaseUrl_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- osmosisReplicationBaseUrl_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @param value The osmosisReplicationBaseUrl to set.
- * @return This builder for chaining.
- */
- public Builder setOsmosisReplicationBaseUrl(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000080;
- osmosisReplicationBaseUrl_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @return This builder for chaining.
- */
- public Builder clearOsmosisReplicationBaseUrl() {
- bitField0_ = (bitField0_ & ~0x00000080);
- osmosisReplicationBaseUrl_ = getDefaultInstance().getOsmosisReplicationBaseUrl();
- onChanged();
- return this;
- }
-
- /**
- *
- * Replication base URL (from Osmosis' configuration.txt file).
- *
- *
- * optional string osmosis_replication_base_url = 34;
- *
- * @param value The bytes for osmosisReplicationBaseUrl to set.
- * @return This builder for chaining.
- */
- public Builder setOsmosisReplicationBaseUrlBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000080;
- osmosisReplicationBaseUrl_ = value;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBlock)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBlock)
- private static final crosby.binary.Osmformat.HeaderBlock DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.HeaderBlock();
- }
-
- public static crosby.binary.Osmformat.HeaderBlock getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public HeaderBlock parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new HeaderBlock(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.HeaderBlock getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface HeaderBBoxOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.HeaderBBox)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required sint64 left = 1;
- *
- * @return Whether the left field is set.
- */
- boolean hasLeft();
-
- /**
- * required sint64 left = 1;
- *
- * @return The left.
- */
- long getLeft();
-
- /**
- * required sint64 right = 2;
- *
- * @return Whether the right field is set.
- */
- boolean hasRight();
-
- /**
- * required sint64 right = 2;
- *
- * @return The right.
- */
- long getRight();
-
- /**
- * required sint64 top = 3;
- *
- * @return Whether the top field is set.
- */
- boolean hasTop();
-
- /**
- * required sint64 top = 3;
- *
- * @return The top.
- */
- long getTop();
-
- /**
- * required sint64 bottom = 4;
- *
- * @return Whether the bottom field is set.
- */
- boolean hasBottom();
-
- /**
- * required sint64 bottom = 4;
- *
- * @return The bottom.
- */
- long getBottom();
- }
- /**
- * Protobuf type {@code OSMPBF.HeaderBBox}
- */
- public static final class HeaderBBox extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.HeaderBBox)
- HeaderBBoxOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use HeaderBBox.newBuilder() to construct.
- private HeaderBBox(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private HeaderBBox() {}
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new HeaderBBox();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private HeaderBBox(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 8: {
- bitField0_ |= 0x00000001;
- left_ = input.readSInt64();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- right_ = input.readSInt64();
- break;
- }
- case 24: {
- bitField0_ |= 0x00000004;
- top_ = input.readSInt64();
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- bottom_ = input.readSInt64();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_HeaderBBox_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_HeaderBBox_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.HeaderBBox.class, crosby.binary.Osmformat.HeaderBBox.Builder.class);
- }
-
- private int bitField0_;
- public static final int LEFT_FIELD_NUMBER = 1;
- private long left_;
-
- /**
- * required sint64 left = 1;
- *
- * @return Whether the left field is set.
- */
- @java.lang.Override
- public boolean hasLeft() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required sint64 left = 1;
- *
- * @return The left.
- */
- @java.lang.Override
- public long getLeft() {
- return left_;
- }
-
- public static final int RIGHT_FIELD_NUMBER = 2;
- private long right_;
-
- /**
- * required sint64 right = 2;
- *
- * @return Whether the right field is set.
- */
- @java.lang.Override
- public boolean hasRight() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * required sint64 right = 2;
- *
- * @return The right.
- */
- @java.lang.Override
- public long getRight() {
- return right_;
- }
-
- public static final int TOP_FIELD_NUMBER = 3;
- private long top_;
-
- /**
- * required sint64 top = 3;
- *
- * @return Whether the top field is set.
- */
- @java.lang.Override
- public boolean hasTop() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- * required sint64 top = 3;
- *
- * @return The top.
- */
- @java.lang.Override
- public long getTop() {
- return top_;
- }
-
- public static final int BOTTOM_FIELD_NUMBER = 4;
- private long bottom_;
-
- /**
- * required sint64 bottom = 4;
- *
- * @return Whether the bottom field is set.
- */
- @java.lang.Override
- public boolean hasBottom() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- * required sint64 bottom = 4;
- *
- * @return The bottom.
- */
- @java.lang.Override
- public long getBottom() {
- return bottom_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 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;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeSInt64(1, left_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeSInt64(2, right_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeSInt64(3, top_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeSInt64(4, bottom_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(1, left_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(2, right_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(3, top_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(4, bottom_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.HeaderBBox)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.HeaderBBox other = (crosby.binary.Osmformat.HeaderBBox) obj;
-
- if (hasLeft() != other.hasLeft())
- return false;
- if (hasLeft()) {
- if (getLeft() != other.getLeft())
- return false;
- }
- if (hasRight() != other.hasRight())
- return false;
- if (hasRight()) {
- if (getRight() != other.getRight())
- return false;
- }
- if (hasTop() != other.hasTop())
- return false;
- if (hasTop()) {
- if (getTop() != other.getTop())
- return false;
- }
- if (hasBottom() != other.hasBottom())
- return false;
- if (hasBottom()) {
- if (getBottom() != other.getBottom())
- return false;
- }
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasLeft()) {
- hash = (37 * hash) + LEFT_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getLeft());
- }
- if (hasRight()) {
- hash = (37 * hash) + RIGHT_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getRight());
- }
- if (hasTop()) {
- hash = (37 * hash) + TOP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getTop());
- }
- if (hasBottom()) {
- hash = (37 * hash) + BOTTOM_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getBottom());
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.HeaderBBox parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.HeaderBBox prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code OSMPBF.HeaderBBox}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.HeaderBBox)
- crosby.binary.Osmformat.HeaderBBoxOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_HeaderBBox_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_HeaderBBox_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.HeaderBBox.class, crosby.binary.Osmformat.HeaderBBox.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.HeaderBBox.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- left_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- right_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000002);
- top_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000004);
- bottom_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_HeaderBBox_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.HeaderBBox getDefaultInstanceForType() {
- return crosby.binary.Osmformat.HeaderBBox.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.HeaderBBox build() {
- crosby.binary.Osmformat.HeaderBBox result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.HeaderBBox buildPartial() {
- crosby.binary.Osmformat.HeaderBBox result = new crosby.binary.Osmformat.HeaderBBox(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.left_ = left_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.right_ = right_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.top_ = top_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.bottom_ = bottom_;
- to_bitField0_ |= 0x00000008;
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.HeaderBBox) {
- return mergeFrom((crosby.binary.Osmformat.HeaderBBox) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.HeaderBBox other) {
- if (other == crosby.binary.Osmformat.HeaderBBox.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.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasLeft()) {
- return false;
- }
- if (!hasRight()) {
- return false;
- }
- if (!hasTop()) {
- return false;
- }
- if (!hasBottom()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.HeaderBBox parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.HeaderBBox) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private long left_;
-
- /**
- * required sint64 left = 1;
- *
- * @return Whether the left field is set.
- */
- @java.lang.Override
- public boolean hasLeft() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required sint64 left = 1;
- *
- * @return The left.
- */
- @java.lang.Override
- public long getLeft() {
- return left_;
- }
-
- /**
- * required sint64 left = 1;
- *
- * @param value The left to set.
- * @return This builder for chaining.
- */
- public Builder setLeft(long value) {
- bitField0_ |= 0x00000001;
- left_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required sint64 left = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearLeft() {
- bitField0_ = (bitField0_ & ~0x00000001);
- left_ = 0L;
- onChanged();
- return this;
- }
-
- private long right_;
-
- /**
- * required sint64 right = 2;
- *
- * @return Whether the right field is set.
- */
- @java.lang.Override
- public boolean hasRight() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * required sint64 right = 2;
- *
- * @return The right.
- */
- @java.lang.Override
- public long getRight() {
- return right_;
- }
-
- /**
- * required sint64 right = 2;
- *
- * @param value The right to set.
- * @return This builder for chaining.
- */
- public Builder setRight(long value) {
- bitField0_ |= 0x00000002;
- right_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required sint64 right = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearRight() {
- bitField0_ = (bitField0_ & ~0x00000002);
- right_ = 0L;
- onChanged();
- return this;
- }
-
- private long top_;
-
- /**
- * required sint64 top = 3;
- *
- * @return Whether the top field is set.
- */
- @java.lang.Override
- public boolean hasTop() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- * required sint64 top = 3;
- *
- * @return The top.
- */
- @java.lang.Override
- public long getTop() {
- return top_;
- }
-
- /**
- * required sint64 top = 3;
- *
- * @param value The top to set.
- * @return This builder for chaining.
- */
- public Builder setTop(long value) {
- bitField0_ |= 0x00000004;
- top_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required sint64 top = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearTop() {
- bitField0_ = (bitField0_ & ~0x00000004);
- top_ = 0L;
- onChanged();
- return this;
- }
-
- private long bottom_;
-
- /**
- * required sint64 bottom = 4;
- *
- * @return Whether the bottom field is set.
- */
- @java.lang.Override
- public boolean hasBottom() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- * required sint64 bottom = 4;
- *
- * @return The bottom.
- */
- @java.lang.Override
- public long getBottom() {
- return bottom_;
- }
-
- /**
- * required sint64 bottom = 4;
- *
- * @param value The bottom to set.
- * @return This builder for chaining.
- */
- public Builder setBottom(long value) {
- bitField0_ |= 0x00000008;
- bottom_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required sint64 bottom = 4;
- *
- * @return This builder for chaining.
- */
- public Builder clearBottom() {
- bitField0_ = (bitField0_ & ~0x00000008);
- bottom_ = 0L;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBBox)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBBox)
- private static final crosby.binary.Osmformat.HeaderBBox DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.HeaderBBox();
- }
-
- public static crosby.binary.Osmformat.HeaderBBox getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public HeaderBBox parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new HeaderBBox(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.HeaderBBox getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface PrimitiveBlockOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.PrimitiveBlock)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- *
- * @return Whether the stringtable field is set.
- */
- boolean hasStringtable();
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- *
- * @return The stringtable.
- */
- crosby.binary.Osmformat.StringTable getStringtable();
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- */
- crosby.binary.Osmformat.StringTableOrBuilder getStringtableOrBuilder();
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @return A list containing the primitivegroup.
- */
- java.util.List getPrimitivegroupList();
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @return The count of primitivegroup.
- */
- int getPrimitivegroupCount();
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @param index The index of the element to return.
- * @return The primitivegroup at the given index.
- */
- com.google.protobuf.ByteString getPrimitivegroup(int index);
-
- /**
- *
- * Granularity, units of nanodegrees, used to store coordinates in this block.
- *
- *
- * optional int32 granularity = 17 [default = 100];
- *
- * @return Whether the granularity field is set.
- */
- boolean hasGranularity();
-
- /**
- *
- * Granularity, units of nanodegrees, used to store coordinates in this block.
- *
- *
- * optional int32 granularity = 17 [default = 100];
- *
- * @return The granularity.
- */
- int getGranularity();
-
- /**
- *
- * Offset value between the output coordinates and the granularity grid in units of nanodegrees.
- *
- *
- * optional int64 lat_offset = 19 [default = 0];
- *
- * @return Whether the latOffset field is set.
- */
- boolean hasLatOffset();
-
- /**
- *
- * Offset value between the output coordinates and the granularity grid in units of nanodegrees.
- *
- *
- * optional int64 lat_offset = 19 [default = 0];
- *
- * @return The latOffset.
- */
- long getLatOffset();
-
- /**
- * optional int64 lon_offset = 20 [default = 0];
- *
- * @return Whether the lonOffset field is set.
- */
- boolean hasLonOffset();
-
- /**
- * optional int64 lon_offset = 20 [default = 0];
- *
- * @return The lonOffset.
- */
- long getLonOffset();
-
- /**
- *
- * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
- *
- *
- * optional int32 date_granularity = 18 [default = 1000];
- *
- * @return Whether the dateGranularity field is set.
- */
- boolean hasDateGranularity();
-
- /**
- *
- * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
- *
- *
- * optional int32 date_granularity = 18 [default = 1000];
- *
- * @return The dateGranularity.
- */
- int getDateGranularity();
- }
- /**
- * Protobuf type {@code OSMPBF.PrimitiveBlock}
- */
- public static final class PrimitiveBlock extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.PrimitiveBlock)
- PrimitiveBlockOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use PrimitiveBlock.newBuilder() to construct.
- private PrimitiveBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private PrimitiveBlock() {
- primitivegroup_ = java.util.Collections.emptyList();
- granularity_ = 100;
- dateGranularity_ = 1000;
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new PrimitiveBlock();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private PrimitiveBlock(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 10: {
- crosby.binary.Osmformat.StringTable.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) != 0)) {
- subBuilder = stringtable_.toBuilder();
- }
- stringtable_ = input.readMessage(crosby.binary.Osmformat.StringTable.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(stringtable_);
- stringtable_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 18: {
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- primitivegroup_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000002;
- }
- primitivegroup_.add(input.readBytes());
- break;
- }
- case 136: {
- bitField0_ |= 0x00000002;
- granularity_ = input.readInt32();
- break;
- }
- case 144: {
- bitField0_ |= 0x00000010;
- dateGranularity_ = input.readInt32();
- break;
- }
- case 152: {
- bitField0_ |= 0x00000004;
- latOffset_ = input.readInt64();
- break;
- }
- case 160: {
- bitField0_ |= 0x00000008;
- lonOffset_ = input.readInt64();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- primitivegroup_ = java.util.Collections.unmodifiableList(primitivegroup_); // C
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_PrimitiveBlock_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_PrimitiveBlock_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.PrimitiveBlock.class, crosby.binary.Osmformat.PrimitiveBlock.Builder.class);
- }
-
- private int bitField0_;
- public static final int STRINGTABLE_FIELD_NUMBER = 1;
- private crosby.binary.Osmformat.StringTable stringtable_;
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- *
- * @return Whether the stringtable field is set.
- */
- @java.lang.Override
- public boolean hasStringtable() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- *
- * @return The stringtable.
- */
- @java.lang.Override
- public crosby.binary.Osmformat.StringTable getStringtable() {
- return stringtable_ == null ? crosby.binary.Osmformat.StringTable.getDefaultInstance() : stringtable_;
- }
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.StringTableOrBuilder getStringtableOrBuilder() {
- return stringtable_ == null ? crosby.binary.Osmformat.StringTable.getDefaultInstance() : stringtable_;
- }
-
- public static final int PRIMITIVEGROUP_FIELD_NUMBER = 2;
- private java.util.List primitivegroup_;
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @return A list containing the primitivegroup.
- */
- @java.lang.Override
- public java.util.List getPrimitivegroupList() {
- return primitivegroup_;
- }
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @return The count of primitivegroup.
- */
- public int getPrimitivegroupCount() {
- return primitivegroup_.size();
- }
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @param index The index of the element to return.
- * @return The primitivegroup at the given index.
- */
- public com.google.protobuf.ByteString getPrimitivegroup(int index) {
- return primitivegroup_.get(index);
- }
-
- public static final int GRANULARITY_FIELD_NUMBER = 17;
- private int granularity_;
-
- /**
- *
- * Granularity, units of nanodegrees, used to store coordinates in this block.
- *
- *
- * optional int32 granularity = 17 [default = 100];
- *
- * @return Whether the granularity field is set.
- */
- @java.lang.Override
- public boolean hasGranularity() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- *
- * Granularity, units of nanodegrees, used to store coordinates in this block.
- *
- *
- * optional int32 granularity = 17 [default = 100];
- *
- * @return The granularity.
- */
- @java.lang.Override
- public int getGranularity() {
- return granularity_;
- }
-
- public static final int LAT_OFFSET_FIELD_NUMBER = 19;
- private long latOffset_;
-
- /**
- *
- * Offset value between the output coordinates and the granularity grid in units of nanodegrees.
- *
- *
- * optional int64 lat_offset = 19 [default = 0];
- *
- * @return Whether the latOffset field is set.
- */
- @java.lang.Override
- public boolean hasLatOffset() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- *
- * Offset value between the output coordinates and the granularity grid in units of nanodegrees.
- *
- *
- * optional int64 lat_offset = 19 [default = 0];
- *
- * @return The latOffset.
- */
- @java.lang.Override
- public long getLatOffset() {
- return latOffset_;
- }
-
- public static final int LON_OFFSET_FIELD_NUMBER = 20;
- private long lonOffset_;
-
- /**
- * optional int64 lon_offset = 20 [default = 0];
- *
- * @return Whether the lonOffset field is set.
- */
- @java.lang.Override
- public boolean hasLonOffset() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- * optional int64 lon_offset = 20 [default = 0];
- *
- * @return The lonOffset.
- */
- @java.lang.Override
- public long getLonOffset() {
- return lonOffset_;
- }
-
- public static final int DATE_GRANULARITY_FIELD_NUMBER = 18;
- private int dateGranularity_;
-
- /**
- *
- * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
- *
- *
- * optional int32 date_granularity = 18 [default = 1000];
- *
- * @return Whether the dateGranularity field is set.
- */
- @java.lang.Override
- public boolean hasDateGranularity() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- *
- * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
- *
- *
- * optional int32 date_granularity = 18 [default = 1000];
- *
- * @return The dateGranularity.
- */
- @java.lang.Override
- public int getDateGranularity() {
- return dateGranularity_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- if (!hasStringtable()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getStringtable());
- }
- for (int i = 0; i < primitivegroup_.size(); i++) {
- output.writeBytes(2, primitivegroup_.get(i));
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeInt32(17, granularity_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeInt32(18, dateGranularity_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeInt64(19, latOffset_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeInt64(20, lonOffset_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getStringtable());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < primitivegroup_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(primitivegroup_.get(i));
- }
- size += dataSize;
- size += 1 * getPrimitivegroupList().size();
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(17, granularity_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(18, dateGranularity_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(19, latOffset_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(20, lonOffset_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.PrimitiveBlock)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.PrimitiveBlock other = (crosby.binary.Osmformat.PrimitiveBlock) obj;
-
- if (hasStringtable() != other.hasStringtable())
- return false;
- if (hasStringtable()) {
- if (!getStringtable()
- .equals(other.getStringtable()))
- return false;
- }
- if (!getPrimitivegroupList()
- .equals(other.getPrimitivegroupList()))
- return false;
- if (hasGranularity() != other.hasGranularity())
- return false;
- if (hasGranularity()) {
- if (getGranularity() != other.getGranularity())
- return false;
- }
- if (hasLatOffset() != other.hasLatOffset())
- return false;
- if (hasLatOffset()) {
- if (getLatOffset() != other.getLatOffset())
- return false;
- }
- if (hasLonOffset() != other.hasLonOffset())
- return false;
- if (hasLonOffset()) {
- if (getLonOffset() != other.getLonOffset())
- return false;
- }
- if (hasDateGranularity() != other.hasDateGranularity())
- return false;
- if (hasDateGranularity()) {
- if (getDateGranularity() != other.getDateGranularity())
- return false;
- }
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasStringtable()) {
- hash = (37 * hash) + STRINGTABLE_FIELD_NUMBER;
- hash = (53 * hash) + getStringtable().hashCode();
- }
- if (getPrimitivegroupCount() > 0) {
- hash = (37 * hash) + PRIMITIVEGROUP_FIELD_NUMBER;
- hash = (53 * hash) + getPrimitivegroupList().hashCode();
- }
- if (hasGranularity()) {
- hash = (37 * hash) + GRANULARITY_FIELD_NUMBER;
- hash = (53 * hash) + getGranularity();
- }
- if (hasLatOffset()) {
- hash = (37 * hash) + LAT_OFFSET_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getLatOffset());
- }
- if (hasLonOffset()) {
- hash = (37 * hash) + LON_OFFSET_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getLonOffset());
- }
- if (hasDateGranularity()) {
- hash = (37 * hash) + DATE_GRANULARITY_FIELD_NUMBER;
- hash = (53 * hash) + getDateGranularity();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.PrimitiveBlock prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code OSMPBF.PrimitiveBlock}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.PrimitiveBlock)
- crosby.binary.Osmformat.PrimitiveBlockOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_PrimitiveBlock_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_PrimitiveBlock_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.PrimitiveBlock.class, crosby.binary.Osmformat.PrimitiveBlock.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.PrimitiveBlock.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getStringtableFieldBuilder();
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- if (stringtableBuilder_ == null) {
- stringtable_ = null;
- } else {
- stringtableBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- primitivegroup_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- granularity_ = 100;
- bitField0_ = (bitField0_ & ~0x00000004);
- latOffset_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- lonOffset_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
- dateGranularity_ = 1000;
- bitField0_ = (bitField0_ & ~0x00000020);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_PrimitiveBlock_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.PrimitiveBlock getDefaultInstanceForType() {
- return crosby.binary.Osmformat.PrimitiveBlock.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.PrimitiveBlock build() {
- crosby.binary.Osmformat.PrimitiveBlock result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.PrimitiveBlock buildPartial() {
- crosby.binary.Osmformat.PrimitiveBlock result = new crosby.binary.Osmformat.PrimitiveBlock(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- if (stringtableBuilder_ == null) {
- result.stringtable_ = stringtable_;
- } else {
- result.stringtable_ = stringtableBuilder_.build();
- }
- to_bitField0_ |= 0x00000001;
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- primitivegroup_ = java.util.Collections.unmodifiableList(primitivegroup_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.primitivegroup_ = primitivegroup_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
- to_bitField0_ |= 0x00000002;
- }
- result.granularity_ = granularity_;
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.latOffset_ = latOffset_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.lonOffset_ = lonOffset_;
- to_bitField0_ |= 0x00000008;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- to_bitField0_ |= 0x00000010;
- }
- result.dateGranularity_ = dateGranularity_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.PrimitiveBlock) {
- return mergeFrom((crosby.binary.Osmformat.PrimitiveBlock) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.PrimitiveBlock other) {
- if (other == crosby.binary.Osmformat.PrimitiveBlock.getDefaultInstance())
- return this;
- if (other.hasStringtable()) {
- mergeStringtable(other.getStringtable());
- }
- if (!other.primitivegroup_.isEmpty()) {
- if (primitivegroup_.isEmpty()) {
- primitivegroup_ = other.primitivegroup_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensurePrimitivegroupIsMutable();
- primitivegroup_.addAll(other.primitivegroup_);
- }
- onChanged();
- }
- if (other.hasGranularity()) {
- setGranularity(other.getGranularity());
- }
- if (other.hasLatOffset()) {
- setLatOffset(other.getLatOffset());
- }
- if (other.hasLonOffset()) {
- setLonOffset(other.getLonOffset());
- }
- if (other.hasDateGranularity()) {
- setDateGranularity(other.getDateGranularity());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasStringtable()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.PrimitiveBlock parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.PrimitiveBlock) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private crosby.binary.Osmformat.StringTable stringtable_;
- private com.google.protobuf.SingleFieldBuilderV3 stringtableBuilder_;
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- *
- * @return Whether the stringtable field is set.
- */
- public boolean hasStringtable() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- *
- * @return The stringtable.
- */
- public crosby.binary.Osmformat.StringTable getStringtable() {
- if (stringtableBuilder_ == null) {
- return stringtable_ == null ? crosby.binary.Osmformat.StringTable.getDefaultInstance() : stringtable_;
- } else {
- return stringtableBuilder_.getMessage();
- }
- }
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- */
- public Builder setStringtable(crosby.binary.Osmformat.StringTable value) {
- if (stringtableBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- stringtable_ = value;
- onChanged();
- } else {
- stringtableBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- */
- public Builder setStringtable(
- crosby.binary.Osmformat.StringTable.Builder builderForValue) {
- if (stringtableBuilder_ == null) {
- stringtable_ = builderForValue.build();
- onChanged();
- } else {
- stringtableBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- */
- public Builder mergeStringtable(crosby.binary.Osmformat.StringTable value) {
- if (stringtableBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- stringtable_ != null &&
- stringtable_ != crosby.binary.Osmformat.StringTable.getDefaultInstance()) {
- stringtable_ =
- crosby.binary.Osmformat.StringTable.newBuilder(stringtable_).mergeFrom(value).buildPartial();
- } else {
- stringtable_ = value;
- }
- onChanged();
- } else {
- stringtableBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- */
- public Builder clearStringtable() {
- if (stringtableBuilder_ == null) {
- stringtable_ = null;
- onChanged();
- } else {
- stringtableBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- */
- public crosby.binary.Osmformat.StringTable.Builder getStringtableBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getStringtableFieldBuilder().getBuilder();
- }
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- */
- public crosby.binary.Osmformat.StringTableOrBuilder getStringtableOrBuilder() {
- if (stringtableBuilder_ != null) {
- return stringtableBuilder_.getMessageOrBuilder();
- } else {
- return stringtable_ == null ?
- crosby.binary.Osmformat.StringTable.getDefaultInstance() : stringtable_;
- }
- }
-
- /**
- * required .OSMPBF.StringTable stringtable = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3 getStringtableFieldBuilder() {
- if (stringtableBuilder_ == null) {
- stringtableBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3(
- getStringtable(),
- getParentForChildren(),
- isClean());
- stringtable_ = null;
- }
- return stringtableBuilder_;
- }
-
- private java.util.List primitivegroup_ = java.util.Collections.emptyList();
-
- private void ensurePrimitivegroupIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- primitivegroup_ = new java.util.ArrayList(primitivegroup_);
- bitField0_ |= 0x00000002;
- }
- }
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @return A list containing the primitivegroup.
- */
- public java.util.List getPrimitivegroupList() {
- return ((bitField0_ & 0x00000002) != 0) ?
- java.util.Collections.unmodifiableList(primitivegroup_) : primitivegroup_;
- }
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @return The count of primitivegroup.
- */
- public int getPrimitivegroupCount() {
- return primitivegroup_.size();
- }
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @param index The index of the element to return.
- * @return The primitivegroup at the given index.
- */
- public com.google.protobuf.ByteString getPrimitivegroup(int index) {
- return primitivegroup_.get(index);
- }
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @param index The index to set the value at.
- * @param value The primitivegroup to set.
- * @return This builder for chaining.
- */
- public Builder setPrimitivegroup(
- int index, com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePrimitivegroupIsMutable();
- primitivegroup_.set(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @param value The primitivegroup to add.
- * @return This builder for chaining.
- */
- public Builder addPrimitivegroup(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePrimitivegroupIsMutable();
- primitivegroup_.add(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @param values The primitivegroup to add.
- * @return This builder for chaining.
- */
- public Builder addAllPrimitivegroup(
- java.lang.Iterable extends com.google.protobuf.ByteString> values) {
- ensurePrimitivegroupIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, primitivegroup_);
- onChanged();
- return this;
- }
-
- /**
- *
- * [PLANETILER] modified from original:
- * repeated PrimitiveGroup primitivegroup = 2;
- * so that we can lazily deserialize each primitive group to reduce memory
- * pressure when reading an input file
- *
- *
- * repeated bytes primitivegroup = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearPrimitivegroup() {
- primitivegroup_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
-
- private int granularity_ = 100;
-
- /**
- *
- * Granularity, units of nanodegrees, used to store coordinates in this block.
- *
- *
- * optional int32 granularity = 17 [default = 100];
- *
- * @return Whether the granularity field is set.
- */
- @java.lang.Override
- public boolean hasGranularity() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- *
- * Granularity, units of nanodegrees, used to store coordinates in this block.
- *
- *
- * optional int32 granularity = 17 [default = 100];
- *
- * @return The granularity.
- */
- @java.lang.Override
- public int getGranularity() {
- return granularity_;
- }
-
- /**
- *
- * Granularity, units of nanodegrees, used to store coordinates in this block.
- *
- *
- * optional int32 granularity = 17 [default = 100];
- *
- * @param value The granularity to set.
- * @return This builder for chaining.
- */
- public Builder setGranularity(int value) {
- bitField0_ |= 0x00000004;
- granularity_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * Granularity, units of nanodegrees, used to store coordinates in this block.
- *
- *
- * optional int32 granularity = 17 [default = 100];
- *
- * @return This builder for chaining.
- */
- public Builder clearGranularity() {
- bitField0_ = (bitField0_ & ~0x00000004);
- granularity_ = 100;
- onChanged();
- return this;
- }
-
- private long latOffset_;
-
- /**
- *
- * Offset value between the output coordinates and the granularity grid in units of nanodegrees.
- *
- *
- * optional int64 lat_offset = 19 [default = 0];
- *
- * @return Whether the latOffset field is set.
- */
- @java.lang.Override
- public boolean hasLatOffset() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- *
- * Offset value between the output coordinates and the granularity grid in units of nanodegrees.
- *
- *
- * optional int64 lat_offset = 19 [default = 0];
- *
- * @return The latOffset.
- */
- @java.lang.Override
- public long getLatOffset() {
- return latOffset_;
- }
-
- /**
- *
- * Offset value between the output coordinates and the granularity grid in units of nanodegrees.
- *
- *
- * optional int64 lat_offset = 19 [default = 0];
- *
- * @param value The latOffset to set.
- * @return This builder for chaining.
- */
- public Builder setLatOffset(long value) {
- bitField0_ |= 0x00000008;
- latOffset_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * Offset value between the output coordinates and the granularity grid in units of nanodegrees.
- *
- *
- * optional int64 lat_offset = 19 [default = 0];
- *
- * @return This builder for chaining.
- */
- public Builder clearLatOffset() {
- bitField0_ = (bitField0_ & ~0x00000008);
- latOffset_ = 0L;
- onChanged();
- return this;
- }
-
- private long lonOffset_;
-
- /**
- * optional int64 lon_offset = 20 [default = 0];
- *
- * @return Whether the lonOffset field is set.
- */
- @java.lang.Override
- public boolean hasLonOffset() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- * optional int64 lon_offset = 20 [default = 0];
- *
- * @return The lonOffset.
- */
- @java.lang.Override
- public long getLonOffset() {
- return lonOffset_;
- }
-
- /**
- * optional int64 lon_offset = 20 [default = 0];
- *
- * @param value The lonOffset to set.
- * @return This builder for chaining.
- */
- public Builder setLonOffset(long value) {
- bitField0_ |= 0x00000010;
- lonOffset_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int64 lon_offset = 20 [default = 0];
- *
- * @return This builder for chaining.
- */
- public Builder clearLonOffset() {
- bitField0_ = (bitField0_ & ~0x00000010);
- lonOffset_ = 0L;
- onChanged();
- return this;
- }
-
- private int dateGranularity_ = 1000;
-
- /**
- *
- * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
- *
- *
- * optional int32 date_granularity = 18 [default = 1000];
- *
- * @return Whether the dateGranularity field is set.
- */
- @java.lang.Override
- public boolean hasDateGranularity() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- *
- * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
- *
- *
- * optional int32 date_granularity = 18 [default = 1000];
- *
- * @return The dateGranularity.
- */
- @java.lang.Override
- public int getDateGranularity() {
- return dateGranularity_;
- }
-
- /**
- *
- * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
- *
- *
- * optional int32 date_granularity = 18 [default = 1000];
- *
- * @param value The dateGranularity to set.
- * @return This builder for chaining.
- */
- public Builder setDateGranularity(int value) {
- bitField0_ |= 0x00000020;
- dateGranularity_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
- *
- *
- * optional int32 date_granularity = 18 [default = 1000];
- *
- * @return This builder for chaining.
- */
- public Builder clearDateGranularity() {
- bitField0_ = (bitField0_ & ~0x00000020);
- dateGranularity_ = 1000;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.PrimitiveBlock)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveBlock)
- private static final crosby.binary.Osmformat.PrimitiveBlock DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.PrimitiveBlock();
- }
-
- public static crosby.binary.Osmformat.PrimitiveBlock getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public PrimitiveBlock parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new PrimitiveBlock(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.PrimitiveBlock getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface PrimitiveGroupOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.PrimitiveGroup)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- java.util.List getNodesList();
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- crosby.binary.Osmformat.Node getNodes(int index);
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- int getNodesCount();
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- java.util.List extends crosby.binary.Osmformat.NodeOrBuilder> getNodesOrBuilderList();
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- crosby.binary.Osmformat.NodeOrBuilder getNodesOrBuilder(
- int index);
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- *
- * @return Whether the dense field is set.
- */
- boolean hasDense();
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- *
- * @return The dense.
- */
- crosby.binary.Osmformat.DenseNodes getDense();
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- */
- crosby.binary.Osmformat.DenseNodesOrBuilder getDenseOrBuilder();
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- java.util.List getWaysList();
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- crosby.binary.Osmformat.Way getWays(int index);
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- int getWaysCount();
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- java.util.List extends crosby.binary.Osmformat.WayOrBuilder> getWaysOrBuilderList();
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- crosby.binary.Osmformat.WayOrBuilder getWaysOrBuilder(
- int index);
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- java.util.List getRelationsList();
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- crosby.binary.Osmformat.Relation getRelations(int index);
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- int getRelationsCount();
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- java.util.List extends crosby.binary.Osmformat.RelationOrBuilder> getRelationsOrBuilderList();
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- crosby.binary.Osmformat.RelationOrBuilder getRelationsOrBuilder(
- int index);
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- java.util.List getChangesetsList();
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- crosby.binary.Osmformat.ChangeSet getChangesets(int index);
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- int getChangesetsCount();
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- java.util.List extends crosby.binary.Osmformat.ChangeSetOrBuilder> getChangesetsOrBuilderList();
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- crosby.binary.Osmformat.ChangeSetOrBuilder getChangesetsOrBuilder(
- int index);
- }
- /**
- *
- * Group of OSMPrimitives. All primitives in a group must be the same type.
- *
- *
- * Protobuf type {@code OSMPBF.PrimitiveGroup}
- */
- public static final class PrimitiveGroup extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.PrimitiveGroup)
- PrimitiveGroupOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use PrimitiveGroup.newBuilder() to construct.
- private PrimitiveGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private PrimitiveGroup() {
- nodes_ = java.util.Collections.emptyList();
- ways_ = java.util.Collections.emptyList();
- relations_ = java.util.Collections.emptyList();
- changesets_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new PrimitiveGroup();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private PrimitiveGroup(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 10: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- nodes_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- nodes_.add(
- input.readMessage(crosby.binary.Osmformat.Node.PARSER, extensionRegistry));
- break;
- }
- case 18: {
- crosby.binary.Osmformat.DenseNodes.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) != 0)) {
- subBuilder = dense_.toBuilder();
- }
- dense_ = input.readMessage(crosby.binary.Osmformat.DenseNodes.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(dense_);
- dense_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 26: {
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- ways_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- ways_.add(
- input.readMessage(crosby.binary.Osmformat.Way.PARSER, extensionRegistry));
- break;
- }
- case 34: {
- if (!((mutable_bitField0_ & 0x00000008) != 0)) {
- relations_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000008;
- }
- relations_.add(
- input.readMessage(crosby.binary.Osmformat.Relation.PARSER, extensionRegistry));
- break;
- }
- case 42: {
- if (!((mutable_bitField0_ & 0x00000010) != 0)) {
- changesets_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000010;
- }
- changesets_.add(
- input.readMessage(crosby.binary.Osmformat.ChangeSet.PARSER, extensionRegistry));
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- nodes_ = java.util.Collections.unmodifiableList(nodes_);
- }
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- ways_ = java.util.Collections.unmodifiableList(ways_);
- }
- if (((mutable_bitField0_ & 0x00000008) != 0)) {
- relations_ = java.util.Collections.unmodifiableList(relations_);
- }
- if (((mutable_bitField0_ & 0x00000010) != 0)) {
- changesets_ = java.util.Collections.unmodifiableList(changesets_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_PrimitiveGroup_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_PrimitiveGroup_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.PrimitiveGroup.class, crosby.binary.Osmformat.PrimitiveGroup.Builder.class);
- }
-
- private int bitField0_;
- public static final int NODES_FIELD_NUMBER = 1;
- private java.util.List nodes_;
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- @java.lang.Override
- public java.util.List getNodesList() {
- return nodes_;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- @java.lang.Override
- public java.util.List extends crosby.binary.Osmformat.NodeOrBuilder> getNodesOrBuilderList() {
- return nodes_;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- @java.lang.Override
- public int getNodesCount() {
- return nodes_.size();
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.Node getNodes(int index) {
- return nodes_.get(index);
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.NodeOrBuilder getNodesOrBuilder(
- int index) {
- return nodes_.get(index);
- }
-
- public static final int DENSE_FIELD_NUMBER = 2;
- private crosby.binary.Osmformat.DenseNodes dense_;
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- *
- * @return Whether the dense field is set.
- */
- @java.lang.Override
- public boolean hasDense() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- *
- * @return The dense.
- */
- @java.lang.Override
- public crosby.binary.Osmformat.DenseNodes getDense() {
- return dense_ == null ? crosby.binary.Osmformat.DenseNodes.getDefaultInstance() : dense_;
- }
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.DenseNodesOrBuilder getDenseOrBuilder() {
- return dense_ == null ? crosby.binary.Osmformat.DenseNodes.getDefaultInstance() : dense_;
- }
-
- public static final int WAYS_FIELD_NUMBER = 3;
- private java.util.List ways_;
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- @java.lang.Override
- public java.util.List getWaysList() {
- return ways_;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- @java.lang.Override
- public java.util.List extends crosby.binary.Osmformat.WayOrBuilder> getWaysOrBuilderList() {
- return ways_;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- @java.lang.Override
- public int getWaysCount() {
- return ways_.size();
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.Way getWays(int index) {
- return ways_.get(index);
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.WayOrBuilder getWaysOrBuilder(
- int index) {
- return ways_.get(index);
- }
-
- public static final int RELATIONS_FIELD_NUMBER = 4;
- private java.util.List relations_;
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- @java.lang.Override
- public java.util.List getRelationsList() {
- return relations_;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- @java.lang.Override
- public java.util.List extends crosby.binary.Osmformat.RelationOrBuilder> getRelationsOrBuilderList() {
- return relations_;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- @java.lang.Override
- public int getRelationsCount() {
- return relations_.size();
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.Relation getRelations(int index) {
- return relations_.get(index);
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.RelationOrBuilder getRelationsOrBuilder(
- int index) {
- return relations_.get(index);
- }
-
- public static final int CHANGESETS_FIELD_NUMBER = 5;
- private java.util.List changesets_;
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- @java.lang.Override
- public java.util.List getChangesetsList() {
- return changesets_;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- @java.lang.Override
- public java.util.List extends crosby.binary.Osmformat.ChangeSetOrBuilder> getChangesetsOrBuilderList() {
- return changesets_;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- @java.lang.Override
- public int getChangesetsCount() {
- return changesets_.size();
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.ChangeSet getChangesets(int index) {
- return changesets_.get(index);
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.ChangeSetOrBuilder getChangesetsOrBuilder(
- int index) {
- return changesets_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- for (int i = 0; i < getNodesCount(); i++) {
- if (!getNodes(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getWaysCount(); i++) {
- if (!getWays(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getRelationsCount(); i++) {
- if (!getRelations(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getChangesetsCount(); i++) {
- if (!getChangesets(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- for (int i = 0; i < nodes_.size(); i++) {
- output.writeMessage(1, nodes_.get(i));
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(2, getDense());
- }
- for (int i = 0; i < ways_.size(); i++) {
- output.writeMessage(3, ways_.get(i));
- }
- for (int i = 0; i < relations_.size(); i++) {
- output.writeMessage(4, relations_.get(i));
- }
- for (int i = 0; i < changesets_.size(); i++) {
- output.writeMessage(5, changesets_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- for (int i = 0; i < nodes_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, nodes_.get(i));
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getDense());
- }
- for (int i = 0; i < ways_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, ways_.get(i));
- }
- for (int i = 0; i < relations_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, relations_.get(i));
- }
- for (int i = 0; i < changesets_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, changesets_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.PrimitiveGroup)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.PrimitiveGroup other = (crosby.binary.Osmformat.PrimitiveGroup) obj;
-
- if (!getNodesList()
- .equals(other.getNodesList()))
- return false;
- if (hasDense() != other.hasDense())
- return false;
- if (hasDense()) {
- if (!getDense()
- .equals(other.getDense()))
- return false;
- }
- if (!getWaysList()
- .equals(other.getWaysList()))
- return false;
- if (!getRelationsList()
- .equals(other.getRelationsList()))
- return false;
- if (!getChangesetsList()
- .equals(other.getChangesetsList()))
- return false;
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getNodesCount() > 0) {
- hash = (37 * hash) + NODES_FIELD_NUMBER;
- hash = (53 * hash) + getNodesList().hashCode();
- }
- if (hasDense()) {
- hash = (37 * hash) + DENSE_FIELD_NUMBER;
- hash = (53 * hash) + getDense().hashCode();
- }
- if (getWaysCount() > 0) {
- hash = (37 * hash) + WAYS_FIELD_NUMBER;
- hash = (53 * hash) + getWaysList().hashCode();
- }
- if (getRelationsCount() > 0) {
- hash = (37 * hash) + RELATIONS_FIELD_NUMBER;
- hash = (53 * hash) + getRelationsList().hashCode();
- }
- if (getChangesetsCount() > 0) {
- hash = (37 * hash) + CHANGESETS_FIELD_NUMBER;
- hash = (53 * hash) + getChangesetsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.PrimitiveGroup prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- *
- * Group of OSMPrimitives. All primitives in a group must be the same type.
- *
- *
- * Protobuf type {@code OSMPBF.PrimitiveGroup}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.PrimitiveGroup)
- crosby.binary.Osmformat.PrimitiveGroupOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_PrimitiveGroup_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_PrimitiveGroup_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.PrimitiveGroup.class, crosby.binary.Osmformat.PrimitiveGroup.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.PrimitiveGroup.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getNodesFieldBuilder();
- getDenseFieldBuilder();
- getWaysFieldBuilder();
- getRelationsFieldBuilder();
- getChangesetsFieldBuilder();
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- if (nodesBuilder_ == null) {
- nodes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- nodesBuilder_.clear();
- }
- if (denseBuilder_ == null) {
- dense_ = null;
- } else {
- denseBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- if (waysBuilder_ == null) {
- ways_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- waysBuilder_.clear();
- }
- if (relationsBuilder_ == null) {
- relations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- relationsBuilder_.clear();
- }
- if (changesetsBuilder_ == null) {
- changesets_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- changesetsBuilder_.clear();
- }
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_PrimitiveGroup_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.PrimitiveGroup getDefaultInstanceForType() {
- return crosby.binary.Osmformat.PrimitiveGroup.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.PrimitiveGroup build() {
- crosby.binary.Osmformat.PrimitiveGroup result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.PrimitiveGroup buildPartial() {
- crosby.binary.Osmformat.PrimitiveGroup result = new crosby.binary.Osmformat.PrimitiveGroup(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (nodesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
- nodes_ = java.util.Collections.unmodifiableList(nodes_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.nodes_ = nodes_;
- } else {
- result.nodes_ = nodesBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- if (denseBuilder_ == null) {
- result.dense_ = dense_;
- } else {
- result.dense_ = denseBuilder_.build();
- }
- to_bitField0_ |= 0x00000001;
- }
- if (waysBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
- ways_ = java.util.Collections.unmodifiableList(ways_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.ways_ = ways_;
- } else {
- result.ways_ = waysBuilder_.build();
- }
- if (relationsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)) {
- relations_ = java.util.Collections.unmodifiableList(relations_);
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.relations_ = relations_;
- } else {
- result.relations_ = relationsBuilder_.build();
- }
- if (changesetsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)) {
- changesets_ = java.util.Collections.unmodifiableList(changesets_);
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.changesets_ = changesets_;
- } else {
- result.changesets_ = changesetsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.PrimitiveGroup) {
- return mergeFrom((crosby.binary.Osmformat.PrimitiveGroup) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.PrimitiveGroup other) {
- if (other == crosby.binary.Osmformat.PrimitiveGroup.getDefaultInstance())
- return this;
- if (nodesBuilder_ == null) {
- if (!other.nodes_.isEmpty()) {
- if (nodes_.isEmpty()) {
- nodes_ = other.nodes_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureNodesIsMutable();
- nodes_.addAll(other.nodes_);
- }
- onChanged();
- }
- } else {
- if (!other.nodes_.isEmpty()) {
- if (nodesBuilder_.isEmpty()) {
- nodesBuilder_.dispose();
- nodesBuilder_ = null;
- nodes_ = other.nodes_;
- bitField0_ = (bitField0_ & ~0x00000001);
- nodesBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getNodesFieldBuilder() : null;
- } else {
- nodesBuilder_.addAllMessages(other.nodes_);
- }
- }
- }
- if (other.hasDense()) {
- mergeDense(other.getDense());
- }
- if (waysBuilder_ == null) {
- if (!other.ways_.isEmpty()) {
- if (ways_.isEmpty()) {
- ways_ = other.ways_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureWaysIsMutable();
- ways_.addAll(other.ways_);
- }
- onChanged();
- }
- } else {
- if (!other.ways_.isEmpty()) {
- if (waysBuilder_.isEmpty()) {
- waysBuilder_.dispose();
- waysBuilder_ = null;
- ways_ = other.ways_;
- bitField0_ = (bitField0_ & ~0x00000004);
- waysBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getWaysFieldBuilder() : null;
- } else {
- waysBuilder_.addAllMessages(other.ways_);
- }
- }
- }
- if (relationsBuilder_ == null) {
- if (!other.relations_.isEmpty()) {
- if (relations_.isEmpty()) {
- relations_ = other.relations_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureRelationsIsMutable();
- relations_.addAll(other.relations_);
- }
- onChanged();
- }
- } else {
- if (!other.relations_.isEmpty()) {
- if (relationsBuilder_.isEmpty()) {
- relationsBuilder_.dispose();
- relationsBuilder_ = null;
- relations_ = other.relations_;
- bitField0_ = (bitField0_ & ~0x00000008);
- relationsBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getRelationsFieldBuilder() : null;
- } else {
- relationsBuilder_.addAllMessages(other.relations_);
- }
- }
- }
- if (changesetsBuilder_ == null) {
- if (!other.changesets_.isEmpty()) {
- if (changesets_.isEmpty()) {
- changesets_ = other.changesets_;
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- ensureChangesetsIsMutable();
- changesets_.addAll(other.changesets_);
- }
- onChanged();
- }
- } else {
- if (!other.changesets_.isEmpty()) {
- if (changesetsBuilder_.isEmpty()) {
- changesetsBuilder_.dispose();
- changesetsBuilder_ = null;
- changesets_ = other.changesets_;
- bitField0_ = (bitField0_ & ~0x00000010);
- changesetsBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getChangesetsFieldBuilder() : null;
- } else {
- changesetsBuilder_.addAllMessages(other.changesets_);
- }
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- for (int i = 0; i < getNodesCount(); i++) {
- if (!getNodes(i).isInitialized()) {
- return false;
- }
- }
- for (int i = 0; i < getWaysCount(); i++) {
- if (!getWays(i).isInitialized()) {
- return false;
- }
- }
- for (int i = 0; i < getRelationsCount(); i++) {
- if (!getRelations(i).isInitialized()) {
- return false;
- }
- }
- for (int i = 0; i < getChangesetsCount(); i++) {
- if (!getChangesets(i).isInitialized()) {
- return false;
- }
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.PrimitiveGroup parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.PrimitiveGroup) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private java.util.List nodes_ =
- java.util.Collections.emptyList();
-
- private void ensureNodesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
- nodes_ = new java.util.ArrayList(nodes_);
- bitField0_ |= 0x00000001;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3 nodesBuilder_;
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public java.util.List getNodesList() {
- if (nodesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(nodes_);
- } else {
- return nodesBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public int getNodesCount() {
- if (nodesBuilder_ == null) {
- return nodes_.size();
- } else {
- return nodesBuilder_.getCount();
- }
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public crosby.binary.Osmformat.Node getNodes(int index) {
- if (nodesBuilder_ == null) {
- return nodes_.get(index);
- } else {
- return nodesBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public Builder setNodes(
- int index, crosby.binary.Osmformat.Node value) {
- if (nodesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureNodesIsMutable();
- nodes_.set(index, value);
- onChanged();
- } else {
- nodesBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public Builder setNodes(
- int index, crosby.binary.Osmformat.Node.Builder builderForValue) {
- if (nodesBuilder_ == null) {
- ensureNodesIsMutable();
- nodes_.set(index, builderForValue.build());
- onChanged();
- } else {
- nodesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public Builder addNodes(crosby.binary.Osmformat.Node value) {
- if (nodesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureNodesIsMutable();
- nodes_.add(value);
- onChanged();
- } else {
- nodesBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public Builder addNodes(
- int index, crosby.binary.Osmformat.Node value) {
- if (nodesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureNodesIsMutable();
- nodes_.add(index, value);
- onChanged();
- } else {
- nodesBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public Builder addNodes(
- crosby.binary.Osmformat.Node.Builder builderForValue) {
- if (nodesBuilder_ == null) {
- ensureNodesIsMutable();
- nodes_.add(builderForValue.build());
- onChanged();
- } else {
- nodesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public Builder addNodes(
- int index, crosby.binary.Osmformat.Node.Builder builderForValue) {
- if (nodesBuilder_ == null) {
- ensureNodesIsMutable();
- nodes_.add(index, builderForValue.build());
- onChanged();
- } else {
- nodesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public Builder addAllNodes(
- java.lang.Iterable extends crosby.binary.Osmformat.Node> values) {
- if (nodesBuilder_ == null) {
- ensureNodesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, nodes_);
- onChanged();
- } else {
- nodesBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public Builder clearNodes() {
- if (nodesBuilder_ == null) {
- nodes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- nodesBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public Builder removeNodes(int index) {
- if (nodesBuilder_ == null) {
- ensureNodesIsMutable();
- nodes_.remove(index);
- onChanged();
- } else {
- nodesBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public crosby.binary.Osmformat.Node.Builder getNodesBuilder(
- int index) {
- return getNodesFieldBuilder().getBuilder(index);
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public crosby.binary.Osmformat.NodeOrBuilder getNodesOrBuilder(
- int index) {
- if (nodesBuilder_ == null) {
- return nodes_.get(index);
- } else {
- return nodesBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public java.util.List extends crosby.binary.Osmformat.NodeOrBuilder> getNodesOrBuilderList() {
- if (nodesBuilder_ != null) {
- return nodesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(nodes_);
- }
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public crosby.binary.Osmformat.Node.Builder addNodesBuilder() {
- return getNodesFieldBuilder().addBuilder(
- crosby.binary.Osmformat.Node.getDefaultInstance());
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public crosby.binary.Osmformat.Node.Builder addNodesBuilder(
- int index) {
- return getNodesFieldBuilder().addBuilder(
- index, crosby.binary.Osmformat.Node.getDefaultInstance());
- }
-
- /**
- * repeated .OSMPBF.Node nodes = 1;
- */
- public java.util.List getNodesBuilderList() {
- return getNodesFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3 getNodesFieldBuilder() {
- if (nodesBuilder_ == null) {
- nodesBuilder_ =
- new com.google.protobuf.RepeatedFieldBuilderV3(
- nodes_,
- ((bitField0_ & 0x00000001) != 0),
- getParentForChildren(),
- isClean());
- nodes_ = null;
- }
- return nodesBuilder_;
- }
-
- private crosby.binary.Osmformat.DenseNodes dense_;
- private com.google.protobuf.SingleFieldBuilderV3 denseBuilder_;
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- *
- * @return Whether the dense field is set.
- */
- public boolean hasDense() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- *
- * @return The dense.
- */
- public crosby.binary.Osmformat.DenseNodes getDense() {
- if (denseBuilder_ == null) {
- return dense_ == null ? crosby.binary.Osmformat.DenseNodes.getDefaultInstance() : dense_;
- } else {
- return denseBuilder_.getMessage();
- }
- }
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- */
- public Builder setDense(crosby.binary.Osmformat.DenseNodes value) {
- if (denseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- dense_ = value;
- onChanged();
- } else {
- denseBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000002;
- return this;
- }
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- */
- public Builder setDense(
- crosby.binary.Osmformat.DenseNodes.Builder builderForValue) {
- if (denseBuilder_ == null) {
- dense_ = builderForValue.build();
- onChanged();
- } else {
- denseBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- return this;
- }
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- */
- public Builder mergeDense(crosby.binary.Osmformat.DenseNodes value) {
- if (denseBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- dense_ != null &&
- dense_ != crosby.binary.Osmformat.DenseNodes.getDefaultInstance()) {
- dense_ =
- crosby.binary.Osmformat.DenseNodes.newBuilder(dense_).mergeFrom(value).buildPartial();
- } else {
- dense_ = value;
- }
- onChanged();
- } else {
- denseBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000002;
- return this;
- }
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- */
- public Builder clearDense() {
- if (denseBuilder_ == null) {
- dense_ = null;
- onChanged();
- } else {
- denseBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- */
- public crosby.binary.Osmformat.DenseNodes.Builder getDenseBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getDenseFieldBuilder().getBuilder();
- }
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- */
- public crosby.binary.Osmformat.DenseNodesOrBuilder getDenseOrBuilder() {
- if (denseBuilder_ != null) {
- return denseBuilder_.getMessageOrBuilder();
- } else {
- return dense_ == null ?
- crosby.binary.Osmformat.DenseNodes.getDefaultInstance() : dense_;
- }
- }
-
- /**
- * optional .OSMPBF.DenseNodes dense = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3 getDenseFieldBuilder() {
- if (denseBuilder_ == null) {
- denseBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3(
- getDense(),
- getParentForChildren(),
- isClean());
- dense_ = null;
- }
- return denseBuilder_;
- }
-
- private java.util.List ways_ =
- java.util.Collections.emptyList();
-
- private void ensureWaysIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
- ways_ = new java.util.ArrayList(ways_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3 waysBuilder_;
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public java.util.List getWaysList() {
- if (waysBuilder_ == null) {
- return java.util.Collections.unmodifiableList(ways_);
- } else {
- return waysBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public int getWaysCount() {
- if (waysBuilder_ == null) {
- return ways_.size();
- } else {
- return waysBuilder_.getCount();
- }
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public crosby.binary.Osmformat.Way getWays(int index) {
- if (waysBuilder_ == null) {
- return ways_.get(index);
- } else {
- return waysBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public Builder setWays(
- int index, crosby.binary.Osmformat.Way value) {
- if (waysBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureWaysIsMutable();
- ways_.set(index, value);
- onChanged();
- } else {
- waysBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public Builder setWays(
- int index, crosby.binary.Osmformat.Way.Builder builderForValue) {
- if (waysBuilder_ == null) {
- ensureWaysIsMutable();
- ways_.set(index, builderForValue.build());
- onChanged();
- } else {
- waysBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public Builder addWays(crosby.binary.Osmformat.Way value) {
- if (waysBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureWaysIsMutable();
- ways_.add(value);
- onChanged();
- } else {
- waysBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public Builder addWays(
- int index, crosby.binary.Osmformat.Way value) {
- if (waysBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureWaysIsMutable();
- ways_.add(index, value);
- onChanged();
- } else {
- waysBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public Builder addWays(
- crosby.binary.Osmformat.Way.Builder builderForValue) {
- if (waysBuilder_ == null) {
- ensureWaysIsMutable();
- ways_.add(builderForValue.build());
- onChanged();
- } else {
- waysBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public Builder addWays(
- int index, crosby.binary.Osmformat.Way.Builder builderForValue) {
- if (waysBuilder_ == null) {
- ensureWaysIsMutable();
- ways_.add(index, builderForValue.build());
- onChanged();
- } else {
- waysBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public Builder addAllWays(
- java.lang.Iterable extends crosby.binary.Osmformat.Way> values) {
- if (waysBuilder_ == null) {
- ensureWaysIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, ways_);
- onChanged();
- } else {
- waysBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public Builder clearWays() {
- if (waysBuilder_ == null) {
- ways_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- waysBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public Builder removeWays(int index) {
- if (waysBuilder_ == null) {
- ensureWaysIsMutable();
- ways_.remove(index);
- onChanged();
- } else {
- waysBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public crosby.binary.Osmformat.Way.Builder getWaysBuilder(
- int index) {
- return getWaysFieldBuilder().getBuilder(index);
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public crosby.binary.Osmformat.WayOrBuilder getWaysOrBuilder(
- int index) {
- if (waysBuilder_ == null) {
- return ways_.get(index);
- } else {
- return waysBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public java.util.List extends crosby.binary.Osmformat.WayOrBuilder> getWaysOrBuilderList() {
- if (waysBuilder_ != null) {
- return waysBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(ways_);
- }
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public crosby.binary.Osmformat.Way.Builder addWaysBuilder() {
- return getWaysFieldBuilder().addBuilder(
- crosby.binary.Osmformat.Way.getDefaultInstance());
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public crosby.binary.Osmformat.Way.Builder addWaysBuilder(
- int index) {
- return getWaysFieldBuilder().addBuilder(
- index, crosby.binary.Osmformat.Way.getDefaultInstance());
- }
-
- /**
- * repeated .OSMPBF.Way ways = 3;
- */
- public java.util.List getWaysBuilderList() {
- return getWaysFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3 getWaysFieldBuilder() {
- if (waysBuilder_ == null) {
- waysBuilder_ =
- new com.google.protobuf.RepeatedFieldBuilderV3(
- ways_,
- ((bitField0_ & 0x00000004) != 0),
- getParentForChildren(),
- isClean());
- ways_ = null;
- }
- return waysBuilder_;
- }
-
- private java.util.List relations_ =
- java.util.Collections.emptyList();
-
- private void ensureRelationsIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
- relations_ = new java.util.ArrayList(relations_);
- bitField0_ |= 0x00000008;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3 relationsBuilder_;
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public java.util.List getRelationsList() {
- if (relationsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(relations_);
- } else {
- return relationsBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public int getRelationsCount() {
- if (relationsBuilder_ == null) {
- return relations_.size();
- } else {
- return relationsBuilder_.getCount();
- }
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public crosby.binary.Osmformat.Relation getRelations(int index) {
- if (relationsBuilder_ == null) {
- return relations_.get(index);
- } else {
- return relationsBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public Builder setRelations(
- int index, crosby.binary.Osmformat.Relation value) {
- if (relationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRelationsIsMutable();
- relations_.set(index, value);
- onChanged();
- } else {
- relationsBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public Builder setRelations(
- int index, crosby.binary.Osmformat.Relation.Builder builderForValue) {
- if (relationsBuilder_ == null) {
- ensureRelationsIsMutable();
- relations_.set(index, builderForValue.build());
- onChanged();
- } else {
- relationsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public Builder addRelations(crosby.binary.Osmformat.Relation value) {
- if (relationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRelationsIsMutable();
- relations_.add(value);
- onChanged();
- } else {
- relationsBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public Builder addRelations(
- int index, crosby.binary.Osmformat.Relation value) {
- if (relationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRelationsIsMutable();
- relations_.add(index, value);
- onChanged();
- } else {
- relationsBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public Builder addRelations(
- crosby.binary.Osmformat.Relation.Builder builderForValue) {
- if (relationsBuilder_ == null) {
- ensureRelationsIsMutable();
- relations_.add(builderForValue.build());
- onChanged();
- } else {
- relationsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public Builder addRelations(
- int index, crosby.binary.Osmformat.Relation.Builder builderForValue) {
- if (relationsBuilder_ == null) {
- ensureRelationsIsMutable();
- relations_.add(index, builderForValue.build());
- onChanged();
- } else {
- relationsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public Builder addAllRelations(
- java.lang.Iterable extends crosby.binary.Osmformat.Relation> values) {
- if (relationsBuilder_ == null) {
- ensureRelationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, relations_);
- onChanged();
- } else {
- relationsBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public Builder clearRelations() {
- if (relationsBuilder_ == null) {
- relations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- } else {
- relationsBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public Builder removeRelations(int index) {
- if (relationsBuilder_ == null) {
- ensureRelationsIsMutable();
- relations_.remove(index);
- onChanged();
- } else {
- relationsBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public crosby.binary.Osmformat.Relation.Builder getRelationsBuilder(
- int index) {
- return getRelationsFieldBuilder().getBuilder(index);
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public crosby.binary.Osmformat.RelationOrBuilder getRelationsOrBuilder(
- int index) {
- if (relationsBuilder_ == null) {
- return relations_.get(index);
- } else {
- return relationsBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public java.util.List extends crosby.binary.Osmformat.RelationOrBuilder> getRelationsOrBuilderList() {
- if (relationsBuilder_ != null) {
- return relationsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(relations_);
- }
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public crosby.binary.Osmformat.Relation.Builder addRelationsBuilder() {
- return getRelationsFieldBuilder().addBuilder(
- crosby.binary.Osmformat.Relation.getDefaultInstance());
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public crosby.binary.Osmformat.Relation.Builder addRelationsBuilder(
- int index) {
- return getRelationsFieldBuilder().addBuilder(
- index, crosby.binary.Osmformat.Relation.getDefaultInstance());
- }
-
- /**
- * repeated .OSMPBF.Relation relations = 4;
- */
- public java.util.List getRelationsBuilderList() {
- return getRelationsFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3 getRelationsFieldBuilder() {
- if (relationsBuilder_ == null) {
- relationsBuilder_ =
- new com.google.protobuf.RepeatedFieldBuilderV3(
- relations_,
- ((bitField0_ & 0x00000008) != 0),
- getParentForChildren(),
- isClean());
- relations_ = null;
- }
- return relationsBuilder_;
- }
-
- private java.util.List changesets_ =
- java.util.Collections.emptyList();
-
- private void ensureChangesetsIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
- changesets_ = new java.util.ArrayList(changesets_);
- bitField0_ |= 0x00000010;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3 changesetsBuilder_;
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public java.util.List getChangesetsList() {
- if (changesetsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(changesets_);
- } else {
- return changesetsBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public int getChangesetsCount() {
- if (changesetsBuilder_ == null) {
- return changesets_.size();
- } else {
- return changesetsBuilder_.getCount();
- }
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public crosby.binary.Osmformat.ChangeSet getChangesets(int index) {
- if (changesetsBuilder_ == null) {
- return changesets_.get(index);
- } else {
- return changesetsBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public Builder setChangesets(
- int index, crosby.binary.Osmformat.ChangeSet value) {
- if (changesetsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureChangesetsIsMutable();
- changesets_.set(index, value);
- onChanged();
- } else {
- changesetsBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public Builder setChangesets(
- int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) {
- if (changesetsBuilder_ == null) {
- ensureChangesetsIsMutable();
- changesets_.set(index, builderForValue.build());
- onChanged();
- } else {
- changesetsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public Builder addChangesets(crosby.binary.Osmformat.ChangeSet value) {
- if (changesetsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureChangesetsIsMutable();
- changesets_.add(value);
- onChanged();
- } else {
- changesetsBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public Builder addChangesets(
- int index, crosby.binary.Osmformat.ChangeSet value) {
- if (changesetsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureChangesetsIsMutable();
- changesets_.add(index, value);
- onChanged();
- } else {
- changesetsBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public Builder addChangesets(
- crosby.binary.Osmformat.ChangeSet.Builder builderForValue) {
- if (changesetsBuilder_ == null) {
- ensureChangesetsIsMutable();
- changesets_.add(builderForValue.build());
- onChanged();
- } else {
- changesetsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public Builder addChangesets(
- int index, crosby.binary.Osmformat.ChangeSet.Builder builderForValue) {
- if (changesetsBuilder_ == null) {
- ensureChangesetsIsMutable();
- changesets_.add(index, builderForValue.build());
- onChanged();
- } else {
- changesetsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public Builder addAllChangesets(
- java.lang.Iterable extends crosby.binary.Osmformat.ChangeSet> values) {
- if (changesetsBuilder_ == null) {
- ensureChangesetsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, changesets_);
- onChanged();
- } else {
- changesetsBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public Builder clearChangesets() {
- if (changesetsBuilder_ == null) {
- changesets_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- } else {
- changesetsBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public Builder removeChangesets(int index) {
- if (changesetsBuilder_ == null) {
- ensureChangesetsIsMutable();
- changesets_.remove(index);
- onChanged();
- } else {
- changesetsBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public crosby.binary.Osmformat.ChangeSet.Builder getChangesetsBuilder(
- int index) {
- return getChangesetsFieldBuilder().getBuilder(index);
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public crosby.binary.Osmformat.ChangeSetOrBuilder getChangesetsOrBuilder(
- int index) {
- if (changesetsBuilder_ == null) {
- return changesets_.get(index);
- } else {
- return changesetsBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public java.util.List extends crosby.binary.Osmformat.ChangeSetOrBuilder> getChangesetsOrBuilderList() {
- if (changesetsBuilder_ != null) {
- return changesetsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(changesets_);
- }
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public crosby.binary.Osmformat.ChangeSet.Builder addChangesetsBuilder() {
- return getChangesetsFieldBuilder().addBuilder(
- crosby.binary.Osmformat.ChangeSet.getDefaultInstance());
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public crosby.binary.Osmformat.ChangeSet.Builder addChangesetsBuilder(
- int index) {
- return getChangesetsFieldBuilder().addBuilder(
- index, crosby.binary.Osmformat.ChangeSet.getDefaultInstance());
- }
-
- /**
- * repeated .OSMPBF.ChangeSet changesets = 5;
- */
- public java.util.List getChangesetsBuilderList() {
- return getChangesetsFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3 getChangesetsFieldBuilder() {
- if (changesetsBuilder_ == null) {
- changesetsBuilder_ =
- new com.google.protobuf.RepeatedFieldBuilderV3(
- changesets_,
- ((bitField0_ & 0x00000010) != 0),
- getParentForChildren(),
- isClean());
- changesets_ = null;
- }
- return changesetsBuilder_;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.PrimitiveGroup)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveGroup)
- private static final crosby.binary.Osmformat.PrimitiveGroup DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.PrimitiveGroup();
- }
-
- public static crosby.binary.Osmformat.PrimitiveGroup getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public PrimitiveGroup parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new PrimitiveGroup(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.PrimitiveGroup getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface StringTableOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.StringTable)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * repeated bytes s = 1;
- *
- * @return A list containing the s.
- */
- java.util.List getSList();
-
- /**
- * repeated bytes s = 1;
- *
- * @return The count of s.
- */
- int getSCount();
-
- /**
- * repeated bytes s = 1;
- *
- * @param index The index of the element to return.
- * @return The s at the given index.
- */
- com.google.protobuf.ByteString getS(int index);
- }
- /**
- *
- ** String table, contains the common strings in each block.
- *Note that we reserve index '0' as a delimiter, so the entry at that
- *index in the table is ALWAYS blank and unused.
- *
- *
- * Protobuf type {@code OSMPBF.StringTable}
- */
- public static final class StringTable extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.StringTable)
- StringTableOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use StringTable.newBuilder() to construct.
- private StringTable(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private StringTable() {
- s_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new StringTable();
- }
-
- @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 {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 10: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- s_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- s_.add(input.readBytes());
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- s_ = java.util.Collections.unmodifiableList(s_); // C
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_StringTable_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_StringTable_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.StringTable.class, crosby.binary.Osmformat.StringTable.Builder.class);
- }
-
- public static final int S_FIELD_NUMBER = 1;
- private java.util.List s_;
-
- /**
- * repeated bytes s = 1;
- *
- * @return A list containing the s.
- */
- @java.lang.Override
- public java.util.List getSList() {
- return s_;
- }
-
- /**
- * repeated bytes s = 1;
- *
- * @return The count of s.
- */
- public int getSCount() {
- return s_.size();
- }
-
- /**
- * repeated bytes s = 1;
- *
- * @param index The index of the element to return.
- * @return The s at the given index.
- */
- public com.google.protobuf.ByteString getS(int index) {
- return s_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- for (int i = 0; i < s_.size(); i++) {
- output.writeBytes(1, s_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- 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_.get(i));
- }
- size += dataSize;
- size += 1 * getSList().size();
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.StringTable)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.StringTable other = (crosby.binary.Osmformat.StringTable) obj;
-
- if (!getSList()
- .equals(other.getSList()))
- return false;
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getSCount() > 0) {
- hash = (37 * hash) + S_FIELD_NUMBER;
- hash = (53 * hash) + getSList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.StringTable parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.StringTable parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.StringTable parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.StringTable parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.StringTable parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.StringTable parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.StringTable parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.StringTable parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.StringTable parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.StringTable parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.StringTable parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.StringTable parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.StringTable prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- *
- ** String table, contains the common strings in each block.
- *Note that we reserve index '0' as a delimiter, so the entry at that
- *index in the table is ALWAYS blank and unused.
- *
- *
- * Protobuf type {@code OSMPBF.StringTable}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.StringTable)
- crosby.binary.Osmformat.StringTableOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_StringTable_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_StringTable_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.StringTable.class, crosby.binary.Osmformat.StringTable.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.StringTable.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- s_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_StringTable_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.StringTable getDefaultInstanceForType() {
- return crosby.binary.Osmformat.StringTable.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.StringTable build() {
- crosby.binary.Osmformat.StringTable result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.StringTable buildPartial() {
- crosby.binary.Osmformat.StringTable result = new crosby.binary.Osmformat.StringTable(this);
- int from_bitField0_ = bitField0_;
- if (((bitField0_ & 0x00000001) != 0)) {
- s_ = java.util.Collections.unmodifiableList(s_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.s_ = s_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.StringTable) {
- return mergeFrom((crosby.binary.Osmformat.StringTable) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.StringTable other) {
- if (other == crosby.binary.Osmformat.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.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.StringTable parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.StringTable) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private java.util.List s_ = java.util.Collections.emptyList();
-
- private void ensureSIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
- s_ = new java.util.ArrayList(s_);
- bitField0_ |= 0x00000001;
- }
- }
-
- /**
- * repeated bytes s = 1;
- *
- * @return A list containing the s.
- */
- public java.util.List getSList() {
- return ((bitField0_ & 0x00000001) != 0) ?
- java.util.Collections.unmodifiableList(s_) : s_;
- }
-
- /**
- * repeated bytes s = 1;
- *
- * @return The count of s.
- */
- public int getSCount() {
- return s_.size();
- }
-
- /**
- * repeated bytes s = 1;
- *
- * @param index The index of the element to return.
- * @return The s at the given index.
- */
- public com.google.protobuf.ByteString getS(int index) {
- return s_.get(index);
- }
-
- /**
- * repeated bytes s = 1;
- *
- * @param index The index to set the value at.
- * @param value The s to set.
- * @return This builder for chaining.
- */
- public Builder setS(
- int index, com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSIsMutable();
- s_.set(index, value);
- onChanged();
- return this;
- }
-
- /**
- * repeated bytes s = 1;
- *
- * @param value The s to add.
- * @return This builder for chaining.
- */
- public Builder addS(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSIsMutable();
- s_.add(value);
- onChanged();
- return this;
- }
-
- /**
- * repeated bytes s = 1;
- *
- * @param values The s to add.
- * @return This builder for chaining.
- */
- public Builder addAllS(
- java.lang.Iterable extends com.google.protobuf.ByteString> values) {
- ensureSIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, s_);
- onChanged();
- return this;
- }
-
- /**
- * repeated bytes s = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearS() {
- s_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.StringTable)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.StringTable)
- private static final crosby.binary.Osmformat.StringTable DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.StringTable();
- }
-
- public static crosby.binary.Osmformat.StringTable getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public StringTable parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new StringTable(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.StringTable getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface InfoOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.Info)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional int32 version = 1 [default = -1];
- *
- * @return Whether the version field is set.
- */
- boolean hasVersion();
-
- /**
- * optional int32 version = 1 [default = -1];
- *
- * @return The version.
- */
- int getVersion();
-
- /**
- * optional int64 timestamp = 2;
- *
- * @return Whether the timestamp field is set.
- */
- boolean hasTimestamp();
-
- /**
- * optional int64 timestamp = 2;
- *
- * @return The timestamp.
- */
- long getTimestamp();
-
- /**
- * optional int64 changeset = 3;
- *
- * @return Whether the changeset field is set.
- */
- boolean hasChangeset();
-
- /**
- * optional int64 changeset = 3;
- *
- * @return The changeset.
- */
- long getChangeset();
-
- /**
- * optional int32 uid = 4;
- *
- * @return Whether the uid field is set.
- */
- boolean hasUid();
-
- /**
- * optional int32 uid = 4;
- *
- * @return The uid.
- */
- int getUid();
-
- /**
- *
- * String IDs
- *
- *
- * optional uint32 user_sid = 5;
- *
- * @return Whether the userSid field is set.
- */
- boolean hasUserSid();
-
- /**
- *
- * String IDs
- *
- *
- * optional uint32 user_sid = 5;
- *
- * @return The userSid.
- */
- int getUserSid();
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * optional bool visible = 6;
- *
- * @return Whether the visible field is set.
- */
- boolean hasVisible();
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * optional bool visible = 6;
- *
- * @return The visible.
- */
- boolean getVisible();
- }
- /**
- *
- * Optional metadata that may be included into each primitive.
- *
- *
- * Protobuf type {@code OSMPBF.Info}
- */
- public static final class Info extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.Info)
- InfoOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use Info.newBuilder() to construct.
- private Info(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private Info() {
- version_ = -1;
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Info();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private Info(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 8: {
- bitField0_ |= 0x00000001;
- version_ = input.readInt32();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- timestamp_ = input.readInt64();
- break;
- }
- case 24: {
- bitField0_ |= 0x00000004;
- changeset_ = input.readInt64();
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- uid_ = input.readInt32();
- break;
- }
- case 40: {
- bitField0_ |= 0x00000010;
- userSid_ = input.readUInt32();
- break;
- }
- case 48: {
- bitField0_ |= 0x00000020;
- visible_ = input.readBool();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Info_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Info_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.Info.class, crosby.binary.Osmformat.Info.Builder.class);
- }
-
- private int bitField0_;
- public static final int VERSION_FIELD_NUMBER = 1;
- private int version_;
-
- /**
- * optional int32 version = 1 [default = -1];
- *
- * @return Whether the version field is set.
- */
- @java.lang.Override
- public boolean hasVersion() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * optional int32 version = 1 [default = -1];
- *
- * @return The version.
- */
- @java.lang.Override
- public int getVersion() {
- return version_;
- }
-
- public static final int TIMESTAMP_FIELD_NUMBER = 2;
- private long timestamp_;
-
- /**
- * optional int64 timestamp = 2;
- *
- * @return Whether the timestamp field is set.
- */
- @java.lang.Override
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * optional int64 timestamp = 2;
- *
- * @return The timestamp.
- */
- @java.lang.Override
- public long getTimestamp() {
- return timestamp_;
- }
-
- public static final int CHANGESET_FIELD_NUMBER = 3;
- private long changeset_;
-
- /**
- * optional int64 changeset = 3;
- *
- * @return Whether the changeset field is set.
- */
- @java.lang.Override
- public boolean hasChangeset() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- * optional int64 changeset = 3;
- *
- * @return The changeset.
- */
- @java.lang.Override
- public long getChangeset() {
- return changeset_;
- }
-
- public static final int UID_FIELD_NUMBER = 4;
- private int uid_;
-
- /**
- * optional int32 uid = 4;
- *
- * @return Whether the uid field is set.
- */
- @java.lang.Override
- public boolean hasUid() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- * optional int32 uid = 4;
- *
- * @return The uid.
- */
- @java.lang.Override
- public int getUid() {
- return uid_;
- }
-
- public static final int USER_SID_FIELD_NUMBER = 5;
- private int userSid_;
-
- /**
- *
- * String IDs
- *
- *
- * optional uint32 user_sid = 5;
- *
- * @return Whether the userSid field is set.
- */
- @java.lang.Override
- public boolean hasUserSid() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- *
- * String IDs
- *
- *
- * optional uint32 user_sid = 5;
- *
- * @return The userSid.
- */
- @java.lang.Override
- public int getUserSid() {
- return userSid_;
- }
-
- public static final int VISIBLE_FIELD_NUMBER = 6;
- private boolean visible_;
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * optional bool visible = 6;
- *
- * @return Whether the visible field is set.
- */
- @java.lang.Override
- public boolean hasVisible() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * optional bool visible = 6;
- *
- * @return The visible.
- */
- @java.lang.Override
- public boolean getVisible() {
- return visible_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeInt32(1, version_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeInt64(2, timestamp_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeInt64(3, changeset_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeInt32(4, uid_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeUInt32(5, userSid_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- output.writeBool(6, visible_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, version_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(2, timestamp_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(3, changeset_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, uid_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(5, userSid_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(6, visible_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.Info)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.Info other = (crosby.binary.Osmformat.Info) obj;
-
- if (hasVersion() != other.hasVersion())
- return false;
- if (hasVersion()) {
- if (getVersion() != other.getVersion())
- return false;
- }
- if (hasTimestamp() != other.hasTimestamp())
- return false;
- if (hasTimestamp()) {
- if (getTimestamp() != other.getTimestamp())
- return false;
- }
- if (hasChangeset() != other.hasChangeset())
- return false;
- if (hasChangeset()) {
- if (getChangeset() != other.getChangeset())
- return false;
- }
- if (hasUid() != other.hasUid())
- return false;
- if (hasUid()) {
- if (getUid() != other.getUid())
- return false;
- }
- if (hasUserSid() != other.hasUserSid())
- return false;
- if (hasUserSid()) {
- if (getUserSid() != other.getUserSid())
- return false;
- }
- if (hasVisible() != other.hasVisible())
- return false;
- if (hasVisible()) {
- if (getVisible() != other.getVisible())
- return false;
- }
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasVersion()) {
- hash = (37 * hash) + VERSION_FIELD_NUMBER;
- hash = (53 * hash) + getVersion();
- }
- if (hasTimestamp()) {
- hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getTimestamp());
- }
- if (hasChangeset()) {
- hash = (37 * hash) + CHANGESET_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getChangeset());
- }
- if (hasUid()) {
- hash = (37 * hash) + UID_FIELD_NUMBER;
- hash = (53 * hash) + getUid();
- }
- if (hasUserSid()) {
- hash = (37 * hash) + USER_SID_FIELD_NUMBER;
- hash = (53 * hash) + getUserSid();
- }
- if (hasVisible()) {
- hash = (37 * hash) + VISIBLE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getVisible());
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.Info parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Info parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Info parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Info parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Info parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Info parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Info parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Info parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Info parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Info parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Info parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Info parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.Info prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- *
- * Optional metadata that may be included into each primitive.
- *
- *
- * Protobuf type {@code OSMPBF.Info}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.Info)
- crosby.binary.Osmformat.InfoOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Info_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Info_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.Info.class, crosby.binary.Osmformat.Info.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.Info.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- version_ = -1;
- bitField0_ = (bitField0_ & ~0x00000001);
- timestamp_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000002);
- changeset_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000004);
- uid_ = 0;
- bitField0_ = (bitField0_ & ~0x00000008);
- userSid_ = 0;
- bitField0_ = (bitField0_ & ~0x00000010);
- visible_ = false;
- bitField0_ = (bitField0_ & ~0x00000020);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Info_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Info getDefaultInstanceForType() {
- return crosby.binary.Osmformat.Info.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Info build() {
- crosby.binary.Osmformat.Info result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Info buildPartial() {
- crosby.binary.Osmformat.Info result = new crosby.binary.Osmformat.Info(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- to_bitField0_ |= 0x00000001;
- }
- result.version_ = version_;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.timestamp_ = timestamp_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.changeset_ = changeset_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.uid_ = uid_;
- to_bitField0_ |= 0x00000008;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.userSid_ = userSid_;
- to_bitField0_ |= 0x00000010;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.visible_ = visible_;
- to_bitField0_ |= 0x00000020;
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.Info) {
- return mergeFrom((crosby.binary.Osmformat.Info) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.Info other) {
- if (other == crosby.binary.Osmformat.Info.getDefaultInstance())
- return this;
- if (other.hasVersion()) {
- setVersion(other.getVersion());
- }
- if (other.hasTimestamp()) {
- setTimestamp(other.getTimestamp());
- }
- if (other.hasChangeset()) {
- setChangeset(other.getChangeset());
- }
- if (other.hasUid()) {
- setUid(other.getUid());
- }
- if (other.hasUserSid()) {
- setUserSid(other.getUserSid());
- }
- if (other.hasVisible()) {
- setVisible(other.getVisible());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.Info parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.Info) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private int version_ = -1;
-
- /**
- * optional int32 version = 1 [default = -1];
- *
- * @return Whether the version field is set.
- */
- @java.lang.Override
- public boolean hasVersion() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * optional int32 version = 1 [default = -1];
- *
- * @return The version.
- */
- @java.lang.Override
- public int getVersion() {
- return version_;
- }
-
- /**
- * optional int32 version = 1 [default = -1];
- *
- * @param value The version to set.
- * @return This builder for chaining.
- */
- public Builder setVersion(int value) {
- bitField0_ |= 0x00000001;
- version_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int32 version = 1 [default = -1];
- *
- * @return This builder for chaining.
- */
- public Builder clearVersion() {
- bitField0_ = (bitField0_ & ~0x00000001);
- version_ = -1;
- onChanged();
- return this;
- }
-
- private long timestamp_;
-
- /**
- * optional int64 timestamp = 2;
- *
- * @return Whether the timestamp field is set.
- */
- @java.lang.Override
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * optional int64 timestamp = 2;
- *
- * @return The timestamp.
- */
- @java.lang.Override
- public long getTimestamp() {
- return timestamp_;
- }
-
- /**
- * optional int64 timestamp = 2;
- *
- * @param value The timestamp to set.
- * @return This builder for chaining.
- */
- public Builder setTimestamp(long value) {
- bitField0_ |= 0x00000002;
- timestamp_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int64 timestamp = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000002);
- timestamp_ = 0L;
- onChanged();
- return this;
- }
-
- private long changeset_;
-
- /**
- * optional int64 changeset = 3;
- *
- * @return Whether the changeset field is set.
- */
- @java.lang.Override
- public boolean hasChangeset() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- * optional int64 changeset = 3;
- *
- * @return The changeset.
- */
- @java.lang.Override
- public long getChangeset() {
- return changeset_;
- }
-
- /**
- * optional int64 changeset = 3;
- *
- * @param value The changeset to set.
- * @return This builder for chaining.
- */
- public Builder setChangeset(long value) {
- bitField0_ |= 0x00000004;
- changeset_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int64 changeset = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearChangeset() {
- bitField0_ = (bitField0_ & ~0x00000004);
- changeset_ = 0L;
- onChanged();
- return this;
- }
-
- private int uid_;
-
- /**
- * optional int32 uid = 4;
- *
- * @return Whether the uid field is set.
- */
- @java.lang.Override
- public boolean hasUid() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- * optional int32 uid = 4;
- *
- * @return The uid.
- */
- @java.lang.Override
- public int getUid() {
- return uid_;
- }
-
- /**
- * optional int32 uid = 4;
- *
- * @param value The uid to set.
- * @return This builder for chaining.
- */
- public Builder setUid(int value) {
- bitField0_ |= 0x00000008;
- uid_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int32 uid = 4;
- *
- * @return This builder for chaining.
- */
- public Builder clearUid() {
- bitField0_ = (bitField0_ & ~0x00000008);
- uid_ = 0;
- onChanged();
- return this;
- }
-
- private int userSid_;
-
- /**
- *
- * String IDs
- *
- *
- * optional uint32 user_sid = 5;
- *
- * @return Whether the userSid field is set.
- */
- @java.lang.Override
- public boolean hasUserSid() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- *
- * String IDs
- *
- *
- * optional uint32 user_sid = 5;
- *
- * @return The userSid.
- */
- @java.lang.Override
- public int getUserSid() {
- return userSid_;
- }
-
- /**
- *
- * String IDs
- *
- *
- * optional uint32 user_sid = 5;
- *
- * @param value The userSid to set.
- * @return This builder for chaining.
- */
- public Builder setUserSid(int value) {
- bitField0_ |= 0x00000010;
- userSid_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * String IDs
- *
- *
- * optional uint32 user_sid = 5;
- *
- * @return This builder for chaining.
- */
- public Builder clearUserSid() {
- bitField0_ = (bitField0_ & ~0x00000010);
- userSid_ = 0;
- onChanged();
- return this;
- }
-
- private boolean visible_;
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * optional bool visible = 6;
- *
- * @return Whether the visible field is set.
- */
- @java.lang.Override
- public boolean hasVisible() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * optional bool visible = 6;
- *
- * @return The visible.
- */
- @java.lang.Override
- public boolean getVisible() {
- return visible_;
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * optional bool visible = 6;
- *
- * @param value The visible to set.
- * @return This builder for chaining.
- */
- public Builder setVisible(boolean value) {
- bitField0_ |= 0x00000020;
- visible_ = value;
- onChanged();
- return this;
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * optional bool visible = 6;
- *
- * @return This builder for chaining.
- */
- public Builder clearVisible() {
- bitField0_ = (bitField0_ & ~0x00000020);
- visible_ = false;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.Info)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.Info)
- private static final crosby.binary.Osmformat.Info DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.Info();
- }
-
- public static crosby.binary.Osmformat.Info getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public Info parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Info(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Info getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface DenseInfoOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.DenseInfo)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @return A list containing the version.
- */
- java.util.List getVersionList();
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @return The count of version.
- */
- int getVersionCount();
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The version at the given index.
- */
- int getVersion(int index);
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @return A list containing the timestamp.
- */
- java.util.List getTimestampList();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @return The count of timestamp.
- */
- int getTimestampCount();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The timestamp at the given index.
- */
- long getTimestamp(int index);
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @return A list containing the changeset.
- */
- java.util.List getChangesetList();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @return The count of changeset.
- */
- int getChangesetCount();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The changeset at the given index.
- */
- long getChangeset(int index);
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @return A list containing the uid.
- */
- java.util.List getUidList();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @return The count of uid.
- */
- int getUidCount();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The uid at the given index.
- */
- int getUid(int index);
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @return A list containing the userSid.
- */
- java.util.List getUserSidList();
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @return The count of userSid.
- */
- int getUserSidCount();
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The userSid at the given index.
- */
- int getUserSid(int index);
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @return A list containing the visible.
- */
- java.util.List getVisibleList();
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @return The count of visible.
- */
- int getVisibleCount();
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The visible at the given index.
- */
- boolean getVisible(int index);
- }
- /**
- *
- ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes.
- *
- *
- * Protobuf type {@code OSMPBF.DenseInfo}
- */
- public static final class DenseInfo extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.DenseInfo)
- DenseInfoOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use DenseInfo.newBuilder() to construct.
- private DenseInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private DenseInfo() {
- version_ = emptyIntList();
- timestamp_ = emptyLongList();
- changeset_ = emptyLongList();
- uid_ = emptyIntList();
- userSid_ = emptyIntList();
- visible_ = emptyBooleanList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new DenseInfo();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private DenseInfo(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 8: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- version_ = newIntList();
- mutable_bitField0_ |= 0x00000001;
- }
- version_.addInt(input.readInt32());
- break;
- }
- case 10: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
- version_ = newIntList();
- mutable_bitField0_ |= 0x00000001;
- }
- while (input.getBytesUntilLimit() > 0) {
- version_.addInt(input.readInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 16: {
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- timestamp_ = newLongList();
- mutable_bitField0_ |= 0x00000002;
- }
- timestamp_.addLong(input.readSInt64());
- break;
- }
- case 18: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
- timestamp_ = newLongList();
- mutable_bitField0_ |= 0x00000002;
- }
- while (input.getBytesUntilLimit() > 0) {
- timestamp_.addLong(input.readSInt64());
- }
- input.popLimit(limit);
- break;
- }
- case 24: {
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- changeset_ = newLongList();
- mutable_bitField0_ |= 0x00000004;
- }
- changeset_.addLong(input.readSInt64());
- break;
- }
- case 26: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
- changeset_ = newLongList();
- mutable_bitField0_ |= 0x00000004;
- }
- while (input.getBytesUntilLimit() > 0) {
- changeset_.addLong(input.readSInt64());
- }
- input.popLimit(limit);
- break;
- }
- case 32: {
- if (!((mutable_bitField0_ & 0x00000008) != 0)) {
- uid_ = newIntList();
- mutable_bitField0_ |= 0x00000008;
- }
- uid_.addInt(input.readSInt32());
- break;
- }
- case 34: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
- uid_ = newIntList();
- mutable_bitField0_ |= 0x00000008;
- }
- while (input.getBytesUntilLimit() > 0) {
- uid_.addInt(input.readSInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 40: {
- if (!((mutable_bitField0_ & 0x00000010) != 0)) {
- userSid_ = newIntList();
- mutable_bitField0_ |= 0x00000010;
- }
- userSid_.addInt(input.readSInt32());
- break;
- }
- case 42: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) {
- userSid_ = newIntList();
- mutable_bitField0_ |= 0x00000010;
- }
- while (input.getBytesUntilLimit() > 0) {
- userSid_.addInt(input.readSInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 48: {
- if (!((mutable_bitField0_ & 0x00000020) != 0)) {
- visible_ = newBooleanList();
- mutable_bitField0_ |= 0x00000020;
- }
- visible_.addBoolean(input.readBool());
- break;
- }
- case 50: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) {
- visible_ = newBooleanList();
- mutable_bitField0_ |= 0x00000020;
- }
- while (input.getBytesUntilLimit() > 0) {
- visible_.addBoolean(input.readBool());
- }
- input.popLimit(limit);
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- version_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- timestamp_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- changeset_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000008) != 0)) {
- uid_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000010) != 0)) {
- userSid_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000020) != 0)) {
- visible_.makeImmutable(); // C
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_DenseInfo_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_DenseInfo_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.DenseInfo.class, crosby.binary.Osmformat.DenseInfo.Builder.class);
- }
-
- public static final int VERSION_FIELD_NUMBER = 1;
- private com.google.protobuf.Internal.IntList version_;
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @return A list containing the version.
- */
- @java.lang.Override
- public java.util.List getVersionList() {
- return version_;
- }
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @return The count of version.
- */
- public int getVersionCount() {
- return version_.size();
- }
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The version at the given index.
- */
- public int getVersion(int index) {
- return version_.getInt(index);
- }
-
- private int versionMemoizedSerializedSize = -1;
-
- public static final int TIMESTAMP_FIELD_NUMBER = 2;
- private com.google.protobuf.Internal.LongList timestamp_;
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @return A list containing the timestamp.
- */
- @java.lang.Override
- public java.util.List getTimestampList() {
- return timestamp_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @return The count of timestamp.
- */
- public int getTimestampCount() {
- return timestamp_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The timestamp at the given index.
- */
- public long getTimestamp(int index) {
- return timestamp_.getLong(index);
- }
-
- private int timestampMemoizedSerializedSize = -1;
-
- public static final int CHANGESET_FIELD_NUMBER = 3;
- private com.google.protobuf.Internal.LongList changeset_;
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @return A list containing the changeset.
- */
- @java.lang.Override
- public java.util.List getChangesetList() {
- return changeset_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @return The count of changeset.
- */
- public int getChangesetCount() {
- return changeset_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The changeset at the given index.
- */
- public long getChangeset(int index) {
- return changeset_.getLong(index);
- }
-
- private int changesetMemoizedSerializedSize = -1;
-
- public static final int UID_FIELD_NUMBER = 4;
- private com.google.protobuf.Internal.IntList uid_;
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @return A list containing the uid.
- */
- @java.lang.Override
- public java.util.List getUidList() {
- return uid_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @return The count of uid.
- */
- public int getUidCount() {
- return uid_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The uid at the given index.
- */
- public int getUid(int index) {
- return uid_.getInt(index);
- }
-
- private int uidMemoizedSerializedSize = -1;
-
- public static final int USER_SID_FIELD_NUMBER = 5;
- private com.google.protobuf.Internal.IntList userSid_;
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @return A list containing the userSid.
- */
- @java.lang.Override
- public java.util.List getUserSidList() {
- return userSid_;
- }
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @return The count of userSid.
- */
- public int getUserSidCount() {
- return userSid_.size();
- }
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The userSid at the given index.
- */
- public int getUserSid(int index) {
- return userSid_.getInt(index);
- }
-
- private int userSidMemoizedSerializedSize = -1;
-
- public static final int VISIBLE_FIELD_NUMBER = 6;
- private com.google.protobuf.Internal.BooleanList visible_;
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @return A list containing the visible.
- */
- @java.lang.Override
- public java.util.List getVisibleList() {
- return visible_;
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @return The count of visible.
- */
- public int getVisibleCount() {
- return visible_.size();
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The visible at the given index.
- */
- public boolean getVisible(int index) {
- return visible_.getBoolean(index);
- }
-
- private int visibleMemoizedSerializedSize = -1;
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (getVersionList().size() > 0) {
- output.writeUInt32NoTag(10);
- output.writeUInt32NoTag(versionMemoizedSerializedSize);
- }
- for (int i = 0; i < version_.size(); i++) {
- output.writeInt32NoTag(version_.getInt(i));
- }
- if (getTimestampList().size() > 0) {
- output.writeUInt32NoTag(18);
- output.writeUInt32NoTag(timestampMemoizedSerializedSize);
- }
- for (int i = 0; i < timestamp_.size(); i++) {
- output.writeSInt64NoTag(timestamp_.getLong(i));
- }
- if (getChangesetList().size() > 0) {
- output.writeUInt32NoTag(26);
- output.writeUInt32NoTag(changesetMemoizedSerializedSize);
- }
- for (int i = 0; i < changeset_.size(); i++) {
- output.writeSInt64NoTag(changeset_.getLong(i));
- }
- if (getUidList().size() > 0) {
- output.writeUInt32NoTag(34);
- output.writeUInt32NoTag(uidMemoizedSerializedSize);
- }
- for (int i = 0; i < uid_.size(); i++) {
- output.writeSInt32NoTag(uid_.getInt(i));
- }
- if (getUserSidList().size() > 0) {
- output.writeUInt32NoTag(42);
- output.writeUInt32NoTag(userSidMemoizedSerializedSize);
- }
- for (int i = 0; i < userSid_.size(); i++) {
- output.writeSInt32NoTag(userSid_.getInt(i));
- }
- if (getVisibleList().size() > 0) {
- output.writeUInt32NoTag(50);
- output.writeUInt32NoTag(visibleMemoizedSerializedSize);
- }
- for (int i = 0; i < visible_.size(); i++) {
- output.writeBoolNoTag(visible_.getBoolean(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- {
- int dataSize = 0;
- for (int i = 0; i < version_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(version_.getInt(i));
- }
- size += dataSize;
- if (!getVersionList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- versionMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < timestamp_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt64SizeNoTag(timestamp_.getLong(i));
- }
- size += dataSize;
- if (!getTimestampList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- timestampMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < changeset_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt64SizeNoTag(changeset_.getLong(i));
- }
- size += dataSize;
- if (!getChangesetList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- changesetMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < uid_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt32SizeNoTag(uid_.getInt(i));
- }
- size += dataSize;
- if (!getUidList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- uidMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < userSid_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt32SizeNoTag(userSid_.getInt(i));
- }
- size += dataSize;
- if (!getUserSidList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- userSidMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 1 * getVisibleList().size();
- size += dataSize;
- if (!getVisibleList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- visibleMemoizedSerializedSize = dataSize;
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.DenseInfo)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.DenseInfo other = (crosby.binary.Osmformat.DenseInfo) obj;
-
- if (!getVersionList()
- .equals(other.getVersionList()))
- return false;
- if (!getTimestampList()
- .equals(other.getTimestampList()))
- return false;
- if (!getChangesetList()
- .equals(other.getChangesetList()))
- return false;
- if (!getUidList()
- .equals(other.getUidList()))
- return false;
- if (!getUserSidList()
- .equals(other.getUserSidList()))
- return false;
- if (!getVisibleList()
- .equals(other.getVisibleList()))
- return false;
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getVersionCount() > 0) {
- hash = (37 * hash) + VERSION_FIELD_NUMBER;
- hash = (53 * hash) + getVersionList().hashCode();
- }
- if (getTimestampCount() > 0) {
- hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + getTimestampList().hashCode();
- }
- if (getChangesetCount() > 0) {
- hash = (37 * hash) + CHANGESET_FIELD_NUMBER;
- hash = (53 * hash) + getChangesetList().hashCode();
- }
- if (getUidCount() > 0) {
- hash = (37 * hash) + UID_FIELD_NUMBER;
- hash = (53 * hash) + getUidList().hashCode();
- }
- if (getUserSidCount() > 0) {
- hash = (37 * hash) + USER_SID_FIELD_NUMBER;
- hash = (53 * hash) + getUserSidList().hashCode();
- }
- if (getVisibleCount() > 0) {
- hash = (37 * hash) + VISIBLE_FIELD_NUMBER;
- hash = (53 * hash) + getVisibleList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.DenseInfo parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.DenseInfo prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- *
- ** Optional metadata that may be included into each primitive. Special dense format used in DenseNodes.
- *
- *
- * Protobuf type {@code OSMPBF.DenseInfo}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.DenseInfo)
- crosby.binary.Osmformat.DenseInfoOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_DenseInfo_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_DenseInfo_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.DenseInfo.class, crosby.binary.Osmformat.DenseInfo.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.DenseInfo.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- version_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000001);
- timestamp_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000002);
- changeset_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000004);
- uid_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000008);
- userSid_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000010);
- visible_ = emptyBooleanList();
- bitField0_ = (bitField0_ & ~0x00000020);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_DenseInfo_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.DenseInfo getDefaultInstanceForType() {
- return crosby.binary.Osmformat.DenseInfo.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.DenseInfo build() {
- crosby.binary.Osmformat.DenseInfo result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.DenseInfo buildPartial() {
- crosby.binary.Osmformat.DenseInfo result = new crosby.binary.Osmformat.DenseInfo(this);
- int from_bitField0_ = bitField0_;
- if (((bitField0_ & 0x00000001) != 0)) {
- version_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.version_ = version_;
- if (((bitField0_ & 0x00000002) != 0)) {
- timestamp_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.timestamp_ = timestamp_;
- if (((bitField0_ & 0x00000004) != 0)) {
- changeset_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.changeset_ = changeset_;
- if (((bitField0_ & 0x00000008) != 0)) {
- uid_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.uid_ = uid_;
- if (((bitField0_ & 0x00000010) != 0)) {
- userSid_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.userSid_ = userSid_;
- if (((bitField0_ & 0x00000020) != 0)) {
- visible_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.visible_ = visible_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.DenseInfo) {
- return mergeFrom((crosby.binary.Osmformat.DenseInfo) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.DenseInfo other) {
- if (other == crosby.binary.Osmformat.DenseInfo.getDefaultInstance())
- return this;
- if (!other.version_.isEmpty()) {
- if (version_.isEmpty()) {
- version_ = other.version_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureVersionIsMutable();
- version_.addAll(other.version_);
- }
- onChanged();
- }
- if (!other.timestamp_.isEmpty()) {
- if (timestamp_.isEmpty()) {
- timestamp_ = other.timestamp_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureTimestampIsMutable();
- timestamp_.addAll(other.timestamp_);
- }
- onChanged();
- }
- if (!other.changeset_.isEmpty()) {
- if (changeset_.isEmpty()) {
- changeset_ = other.changeset_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureChangesetIsMutable();
- changeset_.addAll(other.changeset_);
- }
- onChanged();
- }
- if (!other.uid_.isEmpty()) {
- if (uid_.isEmpty()) {
- uid_ = other.uid_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureUidIsMutable();
- uid_.addAll(other.uid_);
- }
- onChanged();
- }
- if (!other.userSid_.isEmpty()) {
- if (userSid_.isEmpty()) {
- userSid_ = other.userSid_;
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- ensureUserSidIsMutable();
- userSid_.addAll(other.userSid_);
- }
- onChanged();
- }
- if (!other.visible_.isEmpty()) {
- if (visible_.isEmpty()) {
- visible_ = other.visible_;
- bitField0_ = (bitField0_ & ~0x00000020);
- } else {
- ensureVisibleIsMutable();
- visible_.addAll(other.visible_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.DenseInfo parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.DenseInfo) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private com.google.protobuf.Internal.IntList version_ = emptyIntList();
-
- private void ensureVersionIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
- version_ = mutableCopy(version_);
- bitField0_ |= 0x00000001;
- }
- }
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @return A list containing the version.
- */
- public java.util.List getVersionList() {
- return ((bitField0_ & 0x00000001) != 0) ?
- java.util.Collections.unmodifiableList(version_) : version_;
- }
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @return The count of version.
- */
- public int getVersionCount() {
- return version_.size();
- }
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The version at the given index.
- */
- public int getVersion(int index) {
- return version_.getInt(index);
- }
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The version to set.
- * @return This builder for chaining.
- */
- public Builder setVersion(
- int index, int value) {
- ensureVersionIsMutable();
- version_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @param value The version to add.
- * @return This builder for chaining.
- */
- public Builder addVersion(int value) {
- ensureVersionIsMutable();
- version_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @param values The version to add.
- * @return This builder for chaining.
- */
- public Builder addAllVersion(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureVersionIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, version_);
- onChanged();
- return this;
- }
-
- /**
- * repeated int32 version = 1 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearVersion() {
- version_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.LongList timestamp_ = emptyLongList();
-
- private void ensureTimestampIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- timestamp_ = mutableCopy(timestamp_);
- bitField0_ |= 0x00000002;
- }
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @return A list containing the timestamp.
- */
- public java.util.List getTimestampList() {
- return ((bitField0_ & 0x00000002) != 0) ?
- java.util.Collections.unmodifiableList(timestamp_) : timestamp_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @return The count of timestamp.
- */
- public int getTimestampCount() {
- return timestamp_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The timestamp at the given index.
- */
- public long getTimestamp(int index) {
- return timestamp_.getLong(index);
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The timestamp to set.
- * @return This builder for chaining.
- */
- public Builder setTimestamp(
- int index, long value) {
- ensureTimestampIsMutable();
- timestamp_.setLong(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @param value The timestamp to add.
- * @return This builder for chaining.
- */
- public Builder addTimestamp(long value) {
- ensureTimestampIsMutable();
- timestamp_.addLong(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @param values The timestamp to add.
- * @return This builder for chaining.
- */
- public Builder addAllTimestamp(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureTimestampIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, timestamp_);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 timestamp = 2 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearTimestamp() {
- timestamp_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.LongList changeset_ = emptyLongList();
-
- private void ensureChangesetIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
- changeset_ = mutableCopy(changeset_);
- bitField0_ |= 0x00000004;
- }
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @return A list containing the changeset.
- */
- public java.util.List getChangesetList() {
- return ((bitField0_ & 0x00000004) != 0) ?
- java.util.Collections.unmodifiableList(changeset_) : changeset_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @return The count of changeset.
- */
- public int getChangesetCount() {
- return changeset_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The changeset at the given index.
- */
- public long getChangeset(int index) {
- return changeset_.getLong(index);
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The changeset to set.
- * @return This builder for chaining.
- */
- public Builder setChangeset(
- int index, long value) {
- ensureChangesetIsMutable();
- changeset_.setLong(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @param value The changeset to add.
- * @return This builder for chaining.
- */
- public Builder addChangeset(long value) {
- ensureChangesetIsMutable();
- changeset_.addLong(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @param values The changeset to add.
- * @return This builder for chaining.
- */
- public Builder addAllChangeset(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureChangesetIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, changeset_);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 changeset = 3 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearChangeset() {
- changeset_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.IntList uid_ = emptyIntList();
-
- private void ensureUidIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
- uid_ = mutableCopy(uid_);
- bitField0_ |= 0x00000008;
- }
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @return A list containing the uid.
- */
- public java.util.List getUidList() {
- return ((bitField0_ & 0x00000008) != 0) ?
- java.util.Collections.unmodifiableList(uid_) : uid_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @return The count of uid.
- */
- public int getUidCount() {
- return uid_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The uid at the given index.
- */
- public int getUid(int index) {
- return uid_.getInt(index);
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The uid to set.
- * @return This builder for chaining.
- */
- public Builder setUid(
- int index, int value) {
- ensureUidIsMutable();
- uid_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @param value The uid to add.
- * @return This builder for chaining.
- */
- public Builder addUid(int value) {
- ensureUidIsMutable();
- uid_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @param values The uid to add.
- * @return This builder for chaining.
- */
- public Builder addAllUid(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureUidIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, uid_);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint32 uid = 4 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearUid() {
- uid_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.IntList userSid_ = emptyIntList();
-
- private void ensureUserSidIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
- userSid_ = mutableCopy(userSid_);
- bitField0_ |= 0x00000010;
- }
- }
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @return A list containing the userSid.
- */
- public java.util.List getUserSidList() {
- return ((bitField0_ & 0x00000010) != 0) ?
- java.util.Collections.unmodifiableList(userSid_) : userSid_;
- }
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @return The count of userSid.
- */
- public int getUserSidCount() {
- return userSid_.size();
- }
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The userSid at the given index.
- */
- public int getUserSid(int index) {
- return userSid_.getInt(index);
- }
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The userSid to set.
- * @return This builder for chaining.
- */
- public Builder setUserSid(
- int index, int value) {
- ensureUserSidIsMutable();
- userSid_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @param value The userSid to add.
- * @return This builder for chaining.
- */
- public Builder addUserSid(int value) {
- ensureUserSidIsMutable();
- userSid_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @param values The userSid to add.
- * @return This builder for chaining.
- */
- public Builder addAllUserSid(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureUserSidIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, userSid_);
- onChanged();
- return this;
- }
-
- /**
- *
- * String IDs for usernames. DELTA coded
- *
- *
- * repeated sint32 user_sid = 5 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearUserSid() {
- userSid_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.BooleanList visible_ = emptyBooleanList();
-
- private void ensureVisibleIsMutable() {
- if (!((bitField0_ & 0x00000020) != 0)) {
- visible_ = mutableCopy(visible_);
- bitField0_ |= 0x00000020;
- }
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @return A list containing the visible.
- */
- public java.util.List getVisibleList() {
- return ((bitField0_ & 0x00000020) != 0) ?
- java.util.Collections.unmodifiableList(visible_) : visible_;
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @return The count of visible.
- */
- public int getVisibleCount() {
- return visible_.size();
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The visible at the given index.
- */
- public boolean getVisible(int index) {
- return visible_.getBoolean(index);
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The visible to set.
- * @return This builder for chaining.
- */
- public Builder setVisible(
- int index, boolean value) {
- ensureVisibleIsMutable();
- visible_.setBoolean(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @param value The visible to add.
- * @return This builder for chaining.
- */
- public Builder addVisible(boolean value) {
- ensureVisibleIsMutable();
- visible_.addBoolean(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @param values The visible to add.
- * @return This builder for chaining.
- */
- public Builder addAllVisible(
- java.lang.Iterable extends java.lang.Boolean> values) {
- ensureVisibleIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, visible_);
- onChanged();
- return this;
- }
-
- /**
- *
- * The visible flag is used to store history information. It indicates that
- * the current object version has been created by a delete operation on the
- * OSM API.
- * When a writer sets this flag, it MUST add a required_features tag with
- * value "HistoricalInformation" to the HeaderBlock.
- * If this flag is not available for some object it MUST be assumed to be
- * true if the file has the required_features tag "HistoricalInformation"
- * set.
- *
- *
- * repeated bool visible = 6 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearVisible() {
- visible_ = emptyBooleanList();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.DenseInfo)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.DenseInfo)
- private static final crosby.binary.Osmformat.DenseInfo DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.DenseInfo();
- }
-
- public static crosby.binary.Osmformat.DenseInfo getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public DenseInfo parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new DenseInfo(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.DenseInfo getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ChangeSetOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.ChangeSet)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required int64 id = 1;
- *
- * @return Whether the id field is set.
- */
- boolean hasId();
-
- /**
- * required int64 id = 1;
- *
- * @return The id.
- */
- long getId();
- }
- /**
- *
- * This is kept for backwards compatibility but not used anywhere.
- *
- *
- * Protobuf type {@code OSMPBF.ChangeSet}
- */
- public static final class ChangeSet extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.ChangeSet)
- ChangeSetOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use ChangeSet.newBuilder() to construct.
- private ChangeSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private ChangeSet() {}
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new ChangeSet();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private ChangeSet(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 8: {
- bitField0_ |= 0x00000001;
- id_ = input.readInt64();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_ChangeSet_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_ChangeSet_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.ChangeSet.class, crosby.binary.Osmformat.ChangeSet.Builder.class);
- }
-
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private long id_;
-
- /**
- * required int64 id = 1;
- *
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required int64 id = 1;
- *
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
- return id_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- if (!hasId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeInt64(1, id_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, id_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.ChangeSet)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.ChangeSet other = (crosby.binary.Osmformat.ChangeSet) obj;
-
- if (hasId() != other.hasId())
- return false;
- if (hasId()) {
- if (getId() != other.getId())
- return false;
- }
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasId()) {
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getId());
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.ChangeSet parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.ChangeSet prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- *
- * This is kept for backwards compatibility but not used anywhere.
- *
- *
- * Protobuf type {@code OSMPBF.ChangeSet}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.ChangeSet)
- crosby.binary.Osmformat.ChangeSetOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_ChangeSet_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_ChangeSet_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.ChangeSet.class, crosby.binary.Osmformat.ChangeSet.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.ChangeSet.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- id_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_ChangeSet_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.ChangeSet getDefaultInstanceForType() {
- return crosby.binary.Osmformat.ChangeSet.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.ChangeSet build() {
- crosby.binary.Osmformat.ChangeSet result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.ChangeSet buildPartial() {
- crosby.binary.Osmformat.ChangeSet result = new crosby.binary.Osmformat.ChangeSet(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.id_ = id_;
- to_bitField0_ |= 0x00000001;
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.ChangeSet) {
- return mergeFrom((crosby.binary.Osmformat.ChangeSet) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.ChangeSet other) {
- if (other == crosby.binary.Osmformat.ChangeSet.getDefaultInstance())
- return this;
- if (other.hasId()) {
- setId(other.getId());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasId()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.ChangeSet parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.ChangeSet) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private long id_;
-
- /**
- * required int64 id = 1;
- *
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required int64 id = 1;
- *
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
- return id_;
- }
-
- /**
- * required int64 id = 1;
- *
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(long value) {
- bitField0_ |= 0x00000001;
- id_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required int64 id = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- id_ = 0L;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.ChangeSet)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.ChangeSet)
- private static final crosby.binary.Osmformat.ChangeSet DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.ChangeSet();
- }
-
- public static crosby.binary.Osmformat.ChangeSet getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ChangeSet parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ChangeSet(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.ChangeSet getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface NodeOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.Node)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required sint64 id = 1;
- *
- * @return Whether the id field is set.
- */
- boolean hasId();
-
- /**
- * required sint64 id = 1;
- *
- * @return The id.
- */
- long getId();
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return A list containing the keys.
- */
- java.util.List getKeysList();
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return The count of keys.
- */
- int getKeysCount();
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keys at the given index.
- */
- int getKeys(int index);
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return A list containing the vals.
- */
- java.util.List getValsList();
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return The count of vals.
- */
- int getValsCount();
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The vals at the given index.
- */
- int getVals(int index);
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- *
- * @return Whether the info field is set.
- */
- boolean hasInfo();
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- *
- * @return The info.
- */
- crosby.binary.Osmformat.Info getInfo();
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- */
- crosby.binary.Osmformat.InfoOrBuilder getInfoOrBuilder();
-
- /**
- * required sint64 lat = 8;
- *
- * @return Whether the lat field is set.
- */
- boolean hasLat();
-
- /**
- * required sint64 lat = 8;
- *
- * @return The lat.
- */
- long getLat();
-
- /**
- * required sint64 lon = 9;
- *
- * @return Whether the lon field is set.
- */
- boolean hasLon();
-
- /**
- * required sint64 lon = 9;
- *
- * @return The lon.
- */
- long getLon();
- }
- /**
- * Protobuf type {@code OSMPBF.Node}
- */
- public static final class Node extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.Node)
- NodeOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use Node.newBuilder() to construct.
- private Node(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private Node() {
- keys_ = emptyIntList();
- vals_ = emptyIntList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Node();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private Node(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 8: {
- bitField0_ |= 0x00000001;
- id_ = input.readSInt64();
- break;
- }
- case 16: {
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- keys_ = newIntList();
- mutable_bitField0_ |= 0x00000002;
- }
- keys_.addInt(input.readUInt32());
- break;
- }
- case 18: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
- keys_ = newIntList();
- mutable_bitField0_ |= 0x00000002;
- }
- while (input.getBytesUntilLimit() > 0) {
- keys_.addInt(input.readUInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 24: {
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- vals_ = newIntList();
- mutable_bitField0_ |= 0x00000004;
- }
- vals_.addInt(input.readUInt32());
- break;
- }
- case 26: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
- vals_ = newIntList();
- mutable_bitField0_ |= 0x00000004;
- }
- while (input.getBytesUntilLimit() > 0) {
- vals_.addInt(input.readUInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 34: {
- crosby.binary.Osmformat.Info.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) != 0)) {
- subBuilder = info_.toBuilder();
- }
- info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(info_);
- info_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- case 64: {
- bitField0_ |= 0x00000004;
- lat_ = input.readSInt64();
- break;
- }
- case 72: {
- bitField0_ |= 0x00000008;
- lon_ = input.readSInt64();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- keys_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- vals_.makeImmutable(); // C
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Node_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Node_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.Node.class, crosby.binary.Osmformat.Node.Builder.class);
- }
-
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private long id_;
-
- /**
- * required sint64 id = 1;
- *
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required sint64 id = 1;
- *
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
- return id_;
- }
-
- public static final int KEYS_FIELD_NUMBER = 2;
- private com.google.protobuf.Internal.IntList keys_;
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return A list containing the keys.
- */
- @java.lang.Override
- public java.util.List getKeysList() {
- return keys_;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return The count of keys.
- */
- public int getKeysCount() {
- return keys_.size();
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keys at the given index.
- */
- public int getKeys(int index) {
- return keys_.getInt(index);
- }
-
- private int keysMemoizedSerializedSize = -1;
-
- public static final int VALS_FIELD_NUMBER = 3;
- private com.google.protobuf.Internal.IntList vals_;
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return A list containing the vals.
- */
- @java.lang.Override
- public java.util.List getValsList() {
- return vals_;
- }
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return The count of vals.
- */
- public int getValsCount() {
- return vals_.size();
- }
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The vals at the given index.
- */
- public int getVals(int index) {
- return vals_.getInt(index);
- }
-
- private int valsMemoizedSerializedSize = -1;
-
- public static final int INFO_FIELD_NUMBER = 4;
- private crosby.binary.Osmformat.Info info_;
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- *
- * @return Whether the info field is set.
- */
- @java.lang.Override
- public boolean hasInfo() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- *
- * @return The info.
- */
- @java.lang.Override
- public crosby.binary.Osmformat.Info getInfo() {
- return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- }
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() {
- return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- }
-
- public static final int LAT_FIELD_NUMBER = 8;
- private long lat_;
-
- /**
- * required sint64 lat = 8;
- *
- * @return Whether the lat field is set.
- */
- @java.lang.Override
- public boolean hasLat() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- * required sint64 lat = 8;
- *
- * @return The lat.
- */
- @java.lang.Override
- public long getLat() {
- return lat_;
- }
-
- public static final int LON_FIELD_NUMBER = 9;
- private long lon_;
-
- /**
- * required sint64 lon = 9;
- *
- * @return Whether the lon field is set.
- */
- @java.lang.Override
- public boolean hasLon() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- * required sint64 lon = 9;
- *
- * @return The lon.
- */
- @java.lang.Override
- public long getLon() {
- return lon_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- if (!hasId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasLat()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasLon()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeSInt64(1, id_);
- }
- if (getKeysList().size() > 0) {
- output.writeUInt32NoTag(18);
- output.writeUInt32NoTag(keysMemoizedSerializedSize);
- }
- for (int i = 0; i < keys_.size(); i++) {
- output.writeUInt32NoTag(keys_.getInt(i));
- }
- if (getValsList().size() > 0) {
- output.writeUInt32NoTag(26);
- output.writeUInt32NoTag(valsMemoizedSerializedSize);
- }
- for (int i = 0; i < vals_.size(); i++) {
- output.writeUInt32NoTag(vals_.getInt(i));
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeMessage(4, getInfo());
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeSInt64(8, lat_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeSInt64(9, lon_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(1, id_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < keys_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeUInt32SizeNoTag(keys_.getInt(i));
- }
- size += dataSize;
- if (!getKeysList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- keysMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < vals_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeUInt32SizeNoTag(vals_.getInt(i));
- }
- size += dataSize;
- if (!getValsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- valsMemoizedSerializedSize = dataSize;
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, getInfo());
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(8, lat_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(9, lon_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.Node)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.Node other = (crosby.binary.Osmformat.Node) obj;
-
- if (hasId() != other.hasId())
- return false;
- if (hasId()) {
- if (getId() != other.getId())
- return false;
- }
- if (!getKeysList()
- .equals(other.getKeysList()))
- return false;
- if (!getValsList()
- .equals(other.getValsList()))
- return false;
- if (hasInfo() != other.hasInfo())
- return false;
- if (hasInfo()) {
- if (!getInfo()
- .equals(other.getInfo()))
- return false;
- }
- if (hasLat() != other.hasLat())
- return false;
- if (hasLat()) {
- if (getLat() != other.getLat())
- return false;
- }
- if (hasLon() != other.hasLon())
- return false;
- if (hasLon()) {
- if (getLon() != other.getLon())
- return false;
- }
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasId()) {
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getId());
- }
- if (getKeysCount() > 0) {
- hash = (37 * hash) + KEYS_FIELD_NUMBER;
- hash = (53 * hash) + getKeysList().hashCode();
- }
- if (getValsCount() > 0) {
- hash = (37 * hash) + VALS_FIELD_NUMBER;
- hash = (53 * hash) + getValsList().hashCode();
- }
- if (hasInfo()) {
- hash = (37 * hash) + INFO_FIELD_NUMBER;
- hash = (53 * hash) + getInfo().hashCode();
- }
- if (hasLat()) {
- hash = (37 * hash) + LAT_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getLat());
- }
- if (hasLon()) {
- hash = (37 * hash) + LON_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getLon());
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.Node parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Node parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Node parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Node parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Node parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Node parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Node parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Node parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Node parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Node parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Node parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Node parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.Node prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code OSMPBF.Node}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.Node)
- crosby.binary.Osmformat.NodeOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Node_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Node_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.Node.class, crosby.binary.Osmformat.Node.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.Node.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getInfoFieldBuilder();
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- id_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- keys_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000002);
- vals_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000004);
- if (infoBuilder_ == null) {
- info_ = null;
- } else {
- infoBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- lat_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
- lon_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000020);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Node_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Node getDefaultInstanceForType() {
- return crosby.binary.Osmformat.Node.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Node build() {
- crosby.binary.Osmformat.Node result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Node buildPartial() {
- crosby.binary.Osmformat.Node result = new crosby.binary.Osmformat.Node(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.id_ = id_;
- to_bitField0_ |= 0x00000001;
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- keys_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.keys_ = keys_;
- if (((bitField0_ & 0x00000004) != 0)) {
- vals_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.vals_ = vals_;
- if (((from_bitField0_ & 0x00000008) != 0)) {
- if (infoBuilder_ == null) {
- result.info_ = info_;
- } else {
- result.info_ = infoBuilder_.build();
- }
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.lat_ = lat_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.lon_ = lon_;
- to_bitField0_ |= 0x00000008;
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.Node) {
- return mergeFrom((crosby.binary.Osmformat.Node) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.Node other) {
- if (other == crosby.binary.Osmformat.Node.getDefaultInstance())
- return this;
- if (other.hasId()) {
- setId(other.getId());
- }
- if (!other.keys_.isEmpty()) {
- if (keys_.isEmpty()) {
- keys_ = other.keys_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureKeysIsMutable();
- keys_.addAll(other.keys_);
- }
- onChanged();
- }
- if (!other.vals_.isEmpty()) {
- if (vals_.isEmpty()) {
- vals_ = other.vals_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureValsIsMutable();
- vals_.addAll(other.vals_);
- }
- onChanged();
- }
- if (other.hasInfo()) {
- mergeInfo(other.getInfo());
- }
- if (other.hasLat()) {
- setLat(other.getLat());
- }
- if (other.hasLon()) {
- setLon(other.getLon());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasId()) {
- return false;
- }
- if (!hasLat()) {
- return false;
- }
- if (!hasLon()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.Node parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.Node) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private long id_;
-
- /**
- * required sint64 id = 1;
- *
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required sint64 id = 1;
- *
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
- return id_;
- }
-
- /**
- * required sint64 id = 1;
- *
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(long value) {
- bitField0_ |= 0x00000001;
- id_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required sint64 id = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- id_ = 0L;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.IntList keys_ = emptyIntList();
-
- private void ensureKeysIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- keys_ = mutableCopy(keys_);
- bitField0_ |= 0x00000002;
- }
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return A list containing the keys.
- */
- public java.util.List getKeysList() {
- return ((bitField0_ & 0x00000002) != 0) ?
- java.util.Collections.unmodifiableList(keys_) : keys_;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return The count of keys.
- */
- public int getKeysCount() {
- return keys_.size();
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keys at the given index.
- */
- public int getKeys(int index) {
- return keys_.getInt(index);
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The keys to set.
- * @return This builder for chaining.
- */
- public Builder setKeys(
- int index, int value) {
- ensureKeysIsMutable();
- keys_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param value The keys to add.
- * @return This builder for chaining.
- */
- public Builder addKeys(int value) {
- ensureKeysIsMutable();
- keys_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param values The keys to add.
- * @return This builder for chaining.
- */
- public Builder addAllKeys(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureKeysIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, keys_);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearKeys() {
- keys_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.IntList vals_ = emptyIntList();
-
- private void ensureValsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
- vals_ = mutableCopy(vals_);
- bitField0_ |= 0x00000004;
- }
- }
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return A list containing the vals.
- */
- public java.util.List getValsList() {
- return ((bitField0_ & 0x00000004) != 0) ?
- java.util.Collections.unmodifiableList(vals_) : vals_;
- }
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return The count of vals.
- */
- public int getValsCount() {
- return vals_.size();
- }
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The vals at the given index.
- */
- public int getVals(int index) {
- return vals_.getInt(index);
- }
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The vals to set.
- * @return This builder for chaining.
- */
- public Builder setVals(
- int index, int value) {
- ensureValsIsMutable();
- vals_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param value The vals to add.
- * @return This builder for chaining.
- */
- public Builder addVals(int value) {
- ensureValsIsMutable();
- vals_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param values The vals to add.
- * @return This builder for chaining.
- */
- public Builder addAllVals(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureValsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, vals_);
- onChanged();
- return this;
- }
-
- /**
- *
- * String IDs.
- *
- *
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearVals() {
- vals_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
-
- private crosby.binary.Osmformat.Info info_;
- private com.google.protobuf.SingleFieldBuilderV3 infoBuilder_;
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- *
- * @return Whether the info field is set.
- */
- public boolean hasInfo() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- *
- * @return The info.
- */
- public crosby.binary.Osmformat.Info getInfo() {
- if (infoBuilder_ == null) {
- return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- } else {
- return infoBuilder_.getMessage();
- }
- }
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- */
- public Builder setInfo(crosby.binary.Osmformat.Info value) {
- if (infoBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- info_ = value;
- onChanged();
- } else {
- infoBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000008;
- return this;
- }
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- */
- public Builder setInfo(
- crosby.binary.Osmformat.Info.Builder builderForValue) {
- if (infoBuilder_ == null) {
- info_ = builderForValue.build();
- onChanged();
- } else {
- infoBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000008;
- return this;
- }
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- */
- public Builder mergeInfo(crosby.binary.Osmformat.Info value) {
- if (infoBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0) &&
- info_ != null &&
- info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) {
- info_ =
- crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial();
- } else {
- info_ = value;
- }
- onChanged();
- } else {
- infoBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000008;
- return this;
- }
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- */
- public Builder clearInfo() {
- if (infoBuilder_ == null) {
- info_ = null;
- onChanged();
- } else {
- infoBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- */
- public crosby.binary.Osmformat.Info.Builder getInfoBuilder() {
- bitField0_ |= 0x00000008;
- onChanged();
- return getInfoFieldBuilder().getBuilder();
- }
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- */
- public crosby.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() {
- if (infoBuilder_ != null) {
- return infoBuilder_.getMessageOrBuilder();
- } else {
- return info_ == null ?
- crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- }
- }
-
- /**
- *
- * May be omitted in omitmeta
- *
- *
- * optional .OSMPBF.Info info = 4;
- */
- private com.google.protobuf.SingleFieldBuilderV3 getInfoFieldBuilder() {
- if (infoBuilder_ == null) {
- infoBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3(
- getInfo(),
- getParentForChildren(),
- isClean());
- info_ = null;
- }
- return infoBuilder_;
- }
-
- private long lat_;
-
- /**
- * required sint64 lat = 8;
- *
- * @return Whether the lat field is set.
- */
- @java.lang.Override
- public boolean hasLat() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- * required sint64 lat = 8;
- *
- * @return The lat.
- */
- @java.lang.Override
- public long getLat() {
- return lat_;
- }
-
- /**
- * required sint64 lat = 8;
- *
- * @param value The lat to set.
- * @return This builder for chaining.
- */
- public Builder setLat(long value) {
- bitField0_ |= 0x00000010;
- lat_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required sint64 lat = 8;
- *
- * @return This builder for chaining.
- */
- public Builder clearLat() {
- bitField0_ = (bitField0_ & ~0x00000010);
- lat_ = 0L;
- onChanged();
- return this;
- }
-
- private long lon_;
-
- /**
- * required sint64 lon = 9;
- *
- * @return Whether the lon field is set.
- */
- @java.lang.Override
- public boolean hasLon() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- * required sint64 lon = 9;
- *
- * @return The lon.
- */
- @java.lang.Override
- public long getLon() {
- return lon_;
- }
-
- /**
- * required sint64 lon = 9;
- *
- * @param value The lon to set.
- * @return This builder for chaining.
- */
- public Builder setLon(long value) {
- bitField0_ |= 0x00000020;
- lon_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required sint64 lon = 9;
- *
- * @return This builder for chaining.
- */
- public Builder clearLon() {
- bitField0_ = (bitField0_ & ~0x00000020);
- lon_ = 0L;
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.Node)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.Node)
- private static final crosby.binary.Osmformat.Node DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.Node();
- }
-
- public static crosby.binary.Osmformat.Node getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public Node parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Node(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Node getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface DenseNodesOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.DenseNodes)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @return A list containing the id.
- */
- java.util.List getIdList();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @return The count of id.
- */
- int getIdCount();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The id at the given index.
- */
- long getId(int index);
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- *
- * @return Whether the denseinfo field is set.
- */
- boolean hasDenseinfo();
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- *
- * @return The denseinfo.
- */
- crosby.binary.Osmformat.DenseInfo getDenseinfo();
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- */
- crosby.binary.Osmformat.DenseInfoOrBuilder getDenseinfoOrBuilder();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @return A list containing the lat.
- */
- java.util.List getLatList();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @return The count of lat.
- */
- int getLatCount();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lat at the given index.
- */
- long getLat(int index);
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @return A list containing the lon.
- */
- java.util.List getLonList();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @return The count of lon.
- */
- int getLonCount();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lon at the given index.
- */
- long getLon(int index);
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @return A list containing the keysVals.
- */
- java.util.List getKeysValsList();
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @return The count of keysVals.
- */
- int getKeysValsCount();
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keysVals at the given index.
- */
- int getKeysVals(int index);
- }
- /**
- * Protobuf type {@code OSMPBF.DenseNodes}
- */
- public static final class DenseNodes extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.DenseNodes)
- DenseNodesOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use DenseNodes.newBuilder() to construct.
- private DenseNodes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private DenseNodes() {
- id_ = emptyLongList();
- lat_ = emptyLongList();
- lon_ = emptyLongList();
- keysVals_ = emptyIntList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new DenseNodes();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private DenseNodes(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 8: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- id_ = newLongList();
- mutable_bitField0_ |= 0x00000001;
- }
- id_.addLong(input.readSInt64());
- break;
- }
- case 10: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
- id_ = newLongList();
- mutable_bitField0_ |= 0x00000001;
- }
- while (input.getBytesUntilLimit() > 0) {
- id_.addLong(input.readSInt64());
- }
- input.popLimit(limit);
- break;
- }
- case 42: {
- crosby.binary.Osmformat.DenseInfo.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) != 0)) {
- subBuilder = denseinfo_.toBuilder();
- }
- denseinfo_ = input.readMessage(crosby.binary.Osmformat.DenseInfo.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(denseinfo_);
- denseinfo_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 64: {
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- lat_ = newLongList();
- mutable_bitField0_ |= 0x00000004;
- }
- lat_.addLong(input.readSInt64());
- break;
- }
- case 66: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
- lat_ = newLongList();
- mutable_bitField0_ |= 0x00000004;
- }
- while (input.getBytesUntilLimit() > 0) {
- lat_.addLong(input.readSInt64());
- }
- input.popLimit(limit);
- break;
- }
- case 72: {
- if (!((mutable_bitField0_ & 0x00000008) != 0)) {
- lon_ = newLongList();
- mutable_bitField0_ |= 0x00000008;
- }
- lon_.addLong(input.readSInt64());
- break;
- }
- case 74: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) {
- lon_ = newLongList();
- mutable_bitField0_ |= 0x00000008;
- }
- while (input.getBytesUntilLimit() > 0) {
- lon_.addLong(input.readSInt64());
- }
- input.popLimit(limit);
- break;
- }
- case 80: {
- if (!((mutable_bitField0_ & 0x00000010) != 0)) {
- keysVals_ = newIntList();
- mutable_bitField0_ |= 0x00000010;
- }
- keysVals_.addInt(input.readInt32());
- break;
- }
- case 82: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) {
- keysVals_ = newIntList();
- mutable_bitField0_ |= 0x00000010;
- }
- while (input.getBytesUntilLimit() > 0) {
- keysVals_.addInt(input.readInt32());
- }
- input.popLimit(limit);
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- id_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- lat_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000008) != 0)) {
- lon_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000010) != 0)) {
- keysVals_.makeImmutable(); // C
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_DenseNodes_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_DenseNodes_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.DenseNodes.class, crosby.binary.Osmformat.DenseNodes.Builder.class);
- }
-
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private com.google.protobuf.Internal.LongList id_;
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @return A list containing the id.
- */
- @java.lang.Override
- public java.util.List getIdList() {
- return id_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @return The count of id.
- */
- public int getIdCount() {
- return id_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The id at the given index.
- */
- public long getId(int index) {
- return id_.getLong(index);
- }
-
- private int idMemoizedSerializedSize = -1;
-
- public static final int DENSEINFO_FIELD_NUMBER = 5;
- private crosby.binary.Osmformat.DenseInfo denseinfo_;
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- *
- * @return Whether the denseinfo field is set.
- */
- @java.lang.Override
- public boolean hasDenseinfo() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- *
- * @return The denseinfo.
- */
- @java.lang.Override
- public crosby.binary.Osmformat.DenseInfo getDenseinfo() {
- return denseinfo_ == null ? crosby.binary.Osmformat.DenseInfo.getDefaultInstance() : denseinfo_;
- }
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.DenseInfoOrBuilder getDenseinfoOrBuilder() {
- return denseinfo_ == null ? crosby.binary.Osmformat.DenseInfo.getDefaultInstance() : denseinfo_;
- }
-
- public static final int LAT_FIELD_NUMBER = 8;
- private com.google.protobuf.Internal.LongList lat_;
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @return A list containing the lat.
- */
- @java.lang.Override
- public java.util.List getLatList() {
- return lat_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @return The count of lat.
- */
- public int getLatCount() {
- return lat_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lat at the given index.
- */
- public long getLat(int index) {
- return lat_.getLong(index);
- }
-
- private int latMemoizedSerializedSize = -1;
-
- public static final int LON_FIELD_NUMBER = 9;
- private com.google.protobuf.Internal.LongList lon_;
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @return A list containing the lon.
- */
- @java.lang.Override
- public java.util.List getLonList() {
- return lon_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @return The count of lon.
- */
- public int getLonCount() {
- return lon_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lon at the given index.
- */
- public long getLon(int index) {
- return lon_.getLong(index);
- }
-
- private int lonMemoizedSerializedSize = -1;
-
- public static final int KEYS_VALS_FIELD_NUMBER = 10;
- private com.google.protobuf.Internal.IntList keysVals_;
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @return A list containing the keysVals.
- */
- @java.lang.Override
- public java.util.List getKeysValsList() {
- return keysVals_;
- }
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @return The count of keysVals.
- */
- public int getKeysValsCount() {
- return keysVals_.size();
- }
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keysVals at the given index.
- */
- public int getKeysVals(int index) {
- return keysVals_.getInt(index);
- }
-
- private int keysValsMemoizedSerializedSize = -1;
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (getIdList().size() > 0) {
- output.writeUInt32NoTag(10);
- output.writeUInt32NoTag(idMemoizedSerializedSize);
- }
- for (int i = 0; i < id_.size(); i++) {
- output.writeSInt64NoTag(id_.getLong(i));
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(5, getDenseinfo());
- }
- if (getLatList().size() > 0) {
- output.writeUInt32NoTag(66);
- output.writeUInt32NoTag(latMemoizedSerializedSize);
- }
- for (int i = 0; i < lat_.size(); i++) {
- output.writeSInt64NoTag(lat_.getLong(i));
- }
- if (getLonList().size() > 0) {
- output.writeUInt32NoTag(74);
- output.writeUInt32NoTag(lonMemoizedSerializedSize);
- }
- for (int i = 0; i < lon_.size(); i++) {
- output.writeSInt64NoTag(lon_.getLong(i));
- }
- if (getKeysValsList().size() > 0) {
- output.writeUInt32NoTag(82);
- output.writeUInt32NoTag(keysValsMemoizedSerializedSize);
- }
- for (int i = 0; i < keysVals_.size(); i++) {
- output.writeInt32NoTag(keysVals_.getInt(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- {
- int dataSize = 0;
- for (int i = 0; i < id_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt64SizeNoTag(id_.getLong(i));
- }
- size += dataSize;
- if (!getIdList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- idMemoizedSerializedSize = dataSize;
- }
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, getDenseinfo());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < lat_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt64SizeNoTag(lat_.getLong(i));
- }
- size += dataSize;
- if (!getLatList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- latMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < lon_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt64SizeNoTag(lon_.getLong(i));
- }
- size += dataSize;
- if (!getLonList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- lonMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < keysVals_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(keysVals_.getInt(i));
- }
- size += dataSize;
- if (!getKeysValsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- keysValsMemoizedSerializedSize = dataSize;
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.DenseNodes)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.DenseNodes other = (crosby.binary.Osmformat.DenseNodes) obj;
-
- if (!getIdList()
- .equals(other.getIdList()))
- return false;
- if (hasDenseinfo() != other.hasDenseinfo())
- return false;
- if (hasDenseinfo()) {
- if (!getDenseinfo()
- .equals(other.getDenseinfo()))
- return false;
- }
- if (!getLatList()
- .equals(other.getLatList()))
- return false;
- if (!getLonList()
- .equals(other.getLonList()))
- return false;
- if (!getKeysValsList()
- .equals(other.getKeysValsList()))
- return false;
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getIdCount() > 0) {
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + getIdList().hashCode();
- }
- if (hasDenseinfo()) {
- hash = (37 * hash) + DENSEINFO_FIELD_NUMBER;
- hash = (53 * hash) + getDenseinfo().hashCode();
- }
- if (getLatCount() > 0) {
- hash = (37 * hash) + LAT_FIELD_NUMBER;
- hash = (53 * hash) + getLatList().hashCode();
- }
- if (getLonCount() > 0) {
- hash = (37 * hash) + LON_FIELD_NUMBER;
- hash = (53 * hash) + getLonList().hashCode();
- }
- if (getKeysValsCount() > 0) {
- hash = (37 * hash) + KEYS_VALS_FIELD_NUMBER;
- hash = (53 * hash) + getKeysValsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.DenseNodes parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.DenseNodes prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code OSMPBF.DenseNodes}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.DenseNodes)
- crosby.binary.Osmformat.DenseNodesOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_DenseNodes_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_DenseNodes_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.DenseNodes.class, crosby.binary.Osmformat.DenseNodes.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.DenseNodes.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getDenseinfoFieldBuilder();
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- id_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000001);
- if (denseinfoBuilder_ == null) {
- denseinfo_ = null;
- } else {
- denseinfoBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- lat_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000004);
- lon_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000008);
- keysVals_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000010);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_DenseNodes_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.DenseNodes getDefaultInstanceForType() {
- return crosby.binary.Osmformat.DenseNodes.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.DenseNodes build() {
- crosby.binary.Osmformat.DenseNodes result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.DenseNodes buildPartial() {
- crosby.binary.Osmformat.DenseNodes result = new crosby.binary.Osmformat.DenseNodes(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- id_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.id_ = id_;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- if (denseinfoBuilder_ == null) {
- result.denseinfo_ = denseinfo_;
- } else {
- result.denseinfo_ = denseinfoBuilder_.build();
- }
- to_bitField0_ |= 0x00000001;
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- lat_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.lat_ = lat_;
- if (((bitField0_ & 0x00000008) != 0)) {
- lon_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.lon_ = lon_;
- if (((bitField0_ & 0x00000010) != 0)) {
- keysVals_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.keysVals_ = keysVals_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.DenseNodes) {
- return mergeFrom((crosby.binary.Osmformat.DenseNodes) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.DenseNodes other) {
- if (other == crosby.binary.Osmformat.DenseNodes.getDefaultInstance())
- return this;
- if (!other.id_.isEmpty()) {
- if (id_.isEmpty()) {
- id_ = other.id_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureIdIsMutable();
- id_.addAll(other.id_);
- }
- onChanged();
- }
- if (other.hasDenseinfo()) {
- mergeDenseinfo(other.getDenseinfo());
- }
- if (!other.lat_.isEmpty()) {
- if (lat_.isEmpty()) {
- lat_ = other.lat_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureLatIsMutable();
- lat_.addAll(other.lat_);
- }
- onChanged();
- }
- if (!other.lon_.isEmpty()) {
- if (lon_.isEmpty()) {
- lon_ = other.lon_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureLonIsMutable();
- lon_.addAll(other.lon_);
- }
- onChanged();
- }
- if (!other.keysVals_.isEmpty()) {
- if (keysVals_.isEmpty()) {
- keysVals_ = other.keysVals_;
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- ensureKeysValsIsMutable();
- keysVals_.addAll(other.keysVals_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.DenseNodes parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.DenseNodes) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private com.google.protobuf.Internal.LongList id_ = emptyLongList();
-
- private void ensureIdIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
- id_ = mutableCopy(id_);
- bitField0_ |= 0x00000001;
- }
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @return A list containing the id.
- */
- public java.util.List getIdList() {
- return ((bitField0_ & 0x00000001) != 0) ?
- java.util.Collections.unmodifiableList(id_) : id_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @return The count of id.
- */
- public int getIdCount() {
- return id_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The id at the given index.
- */
- public long getId(int index) {
- return id_.getLong(index);
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(
- int index, long value) {
- ensureIdIsMutable();
- id_.setLong(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @param value The id to add.
- * @return This builder for chaining.
- */
- public Builder addId(long value) {
- ensureIdIsMutable();
- id_.addLong(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @param values The id to add.
- * @return This builder for chaining.
- */
- public Builder addAllId(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureIdIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, id_);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 id = 1 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearId() {
- id_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
-
- private crosby.binary.Osmformat.DenseInfo denseinfo_;
- private com.google.protobuf.SingleFieldBuilderV3 denseinfoBuilder_;
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- *
- * @return Whether the denseinfo field is set.
- */
- public boolean hasDenseinfo() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- *
- * @return The denseinfo.
- */
- public crosby.binary.Osmformat.DenseInfo getDenseinfo() {
- if (denseinfoBuilder_ == null) {
- return denseinfo_ == null ? crosby.binary.Osmformat.DenseInfo.getDefaultInstance() : denseinfo_;
- } else {
- return denseinfoBuilder_.getMessage();
- }
- }
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- */
- public Builder setDenseinfo(crosby.binary.Osmformat.DenseInfo value) {
- if (denseinfoBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- denseinfo_ = value;
- onChanged();
- } else {
- denseinfoBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000002;
- return this;
- }
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- */
- public Builder setDenseinfo(
- crosby.binary.Osmformat.DenseInfo.Builder builderForValue) {
- if (denseinfoBuilder_ == null) {
- denseinfo_ = builderForValue.build();
- onChanged();
- } else {
- denseinfoBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- return this;
- }
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- */
- public Builder mergeDenseinfo(crosby.binary.Osmformat.DenseInfo value) {
- if (denseinfoBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0) &&
- denseinfo_ != null &&
- denseinfo_ != crosby.binary.Osmformat.DenseInfo.getDefaultInstance()) {
- denseinfo_ =
- crosby.binary.Osmformat.DenseInfo.newBuilder(denseinfo_).mergeFrom(value).buildPartial();
- } else {
- denseinfo_ = value;
- }
- onChanged();
- } else {
- denseinfoBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000002;
- return this;
- }
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- */
- public Builder clearDenseinfo() {
- if (denseinfoBuilder_ == null) {
- denseinfo_ = null;
- onChanged();
- } else {
- denseinfoBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- */
- public crosby.binary.Osmformat.DenseInfo.Builder getDenseinfoBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getDenseinfoFieldBuilder().getBuilder();
- }
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- */
- public crosby.binary.Osmformat.DenseInfoOrBuilder getDenseinfoOrBuilder() {
- if (denseinfoBuilder_ != null) {
- return denseinfoBuilder_.getMessageOrBuilder();
- } else {
- return denseinfo_ == null ?
- crosby.binary.Osmformat.DenseInfo.getDefaultInstance() : denseinfo_;
- }
- }
-
- /**
- * optional .OSMPBF.DenseInfo denseinfo = 5;
- */
- private com.google.protobuf.SingleFieldBuilderV3 getDenseinfoFieldBuilder() {
- if (denseinfoBuilder_ == null) {
- denseinfoBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3(
- getDenseinfo(),
- getParentForChildren(),
- isClean());
- denseinfo_ = null;
- }
- return denseinfoBuilder_;
- }
-
- private com.google.protobuf.Internal.LongList lat_ = emptyLongList();
-
- private void ensureLatIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
- lat_ = mutableCopy(lat_);
- bitField0_ |= 0x00000004;
- }
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @return A list containing the lat.
- */
- public java.util.List getLatList() {
- return ((bitField0_ & 0x00000004) != 0) ?
- java.util.Collections.unmodifiableList(lat_) : lat_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @return The count of lat.
- */
- public int getLatCount() {
- return lat_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lat at the given index.
- */
- public long getLat(int index) {
- return lat_.getLong(index);
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The lat to set.
- * @return This builder for chaining.
- */
- public Builder setLat(
- int index, long value) {
- ensureLatIsMutable();
- lat_.setLong(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @param value The lat to add.
- * @return This builder for chaining.
- */
- public Builder addLat(long value) {
- ensureLatIsMutable();
- lat_.addLong(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @param values The lat to add.
- * @return This builder for chaining.
- */
- public Builder addAllLat(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureLatIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, lat_);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lat = 8 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearLat() {
- lat_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.LongList lon_ = emptyLongList();
-
- private void ensureLonIsMutable() {
- if (!((bitField0_ & 0x00000008) != 0)) {
- lon_ = mutableCopy(lon_);
- bitField0_ |= 0x00000008;
- }
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @return A list containing the lon.
- */
- public java.util.List getLonList() {
- return ((bitField0_ & 0x00000008) != 0) ?
- java.util.Collections.unmodifiableList(lon_) : lon_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @return The count of lon.
- */
- public int getLonCount() {
- return lon_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lon at the given index.
- */
- public long getLon(int index) {
- return lon_.getLong(index);
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The lon to set.
- * @return This builder for chaining.
- */
- public Builder setLon(
- int index, long value) {
- ensureLonIsMutable();
- lon_.setLong(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @param value The lon to add.
- * @return This builder for chaining.
- */
- public Builder addLon(long value) {
- ensureLonIsMutable();
- lon_.addLong(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @param values The lon to add.
- * @return This builder for chaining.
- */
- public Builder addAllLon(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureLonIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, lon_);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 lon = 9 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearLon() {
- lon_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.IntList keysVals_ = emptyIntList();
-
- private void ensureKeysValsIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
- keysVals_ = mutableCopy(keysVals_);
- bitField0_ |= 0x00000010;
- }
- }
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @return A list containing the keysVals.
- */
- public java.util.List getKeysValsList() {
- return ((bitField0_ & 0x00000010) != 0) ?
- java.util.Collections.unmodifiableList(keysVals_) : keysVals_;
- }
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @return The count of keysVals.
- */
- public int getKeysValsCount() {
- return keysVals_.size();
- }
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keysVals at the given index.
- */
- public int getKeysVals(int index) {
- return keysVals_.getInt(index);
- }
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The keysVals to set.
- * @return This builder for chaining.
- */
- public Builder setKeysVals(
- int index, int value) {
- ensureKeysValsIsMutable();
- keysVals_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @param value The keysVals to add.
- * @return This builder for chaining.
- */
- public Builder addKeysVals(int value) {
- ensureKeysValsIsMutable();
- keysVals_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @param values The keysVals to add.
- * @return This builder for chaining.
- */
- public Builder addAllKeysVals(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureKeysValsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, keysVals_);
- onChanged();
- return this;
- }
-
- /**
- *
- * Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
- *
- *
- * repeated int32 keys_vals = 10 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearKeysVals() {
- keysVals_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.DenseNodes)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.DenseNodes)
- private static final crosby.binary.Osmformat.DenseNodes DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.DenseNodes();
- }
-
- public static crosby.binary.Osmformat.DenseNodes getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public DenseNodes parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new DenseNodes(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.DenseNodes getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface WayOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.Way)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required int64 id = 1;
- *
- * @return Whether the id field is set.
- */
- boolean hasId();
-
- /**
- * required int64 id = 1;
- *
- * @return The id.
- */
- long getId();
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return A list containing the keys.
- */
- java.util.List getKeysList();
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return The count of keys.
- */
- int getKeysCount();
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keys at the given index.
- */
- int getKeys(int index);
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return A list containing the vals.
- */
- java.util.List getValsList();
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return The count of vals.
- */
- int getValsCount();
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The vals at the given index.
- */
- int getVals(int index);
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return Whether the info field is set.
- */
- boolean hasInfo();
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return The info.
- */
- crosby.binary.Osmformat.Info getInfo();
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- crosby.binary.Osmformat.InfoOrBuilder getInfoOrBuilder();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @return A list containing the refs.
- */
- java.util.List getRefsList();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @return The count of refs.
- */
- int getRefsCount();
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The refs at the given index.
- */
- long getRefs(int index);
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @return A list containing the lat.
- */
- java.util.List getLatList();
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @return The count of lat.
- */
- int getLatCount();
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lat at the given index.
- */
- long getLat(int index);
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @return A list containing the lon.
- */
- java.util.List getLonList();
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @return The count of lon.
- */
- int getLonCount();
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lon at the given index.
- */
- long getLon(int index);
- }
- /**
- * Protobuf type {@code OSMPBF.Way}
- */
- public static final class Way extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.Way)
- WayOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use Way.newBuilder() to construct.
- private Way(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private Way() {
- keys_ = emptyIntList();
- vals_ = emptyIntList();
- refs_ = emptyLongList();
- lat_ = emptyLongList();
- lon_ = emptyLongList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Way();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private Way(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 8: {
- bitField0_ |= 0x00000001;
- id_ = input.readInt64();
- break;
- }
- case 16: {
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- keys_ = newIntList();
- mutable_bitField0_ |= 0x00000002;
- }
- keys_.addInt(input.readUInt32());
- break;
- }
- case 18: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
- keys_ = newIntList();
- mutable_bitField0_ |= 0x00000002;
- }
- while (input.getBytesUntilLimit() > 0) {
- keys_.addInt(input.readUInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 24: {
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- vals_ = newIntList();
- mutable_bitField0_ |= 0x00000004;
- }
- vals_.addInt(input.readUInt32());
- break;
- }
- case 26: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
- vals_ = newIntList();
- mutable_bitField0_ |= 0x00000004;
- }
- while (input.getBytesUntilLimit() > 0) {
- vals_.addInt(input.readUInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 34: {
- crosby.binary.Osmformat.Info.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) != 0)) {
- subBuilder = info_.toBuilder();
- }
- info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(info_);
- info_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- case 64: {
- if (!((mutable_bitField0_ & 0x00000010) != 0)) {
- refs_ = newLongList();
- mutable_bitField0_ |= 0x00000010;
- }
- refs_.addLong(input.readSInt64());
- break;
- }
- case 66: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) {
- refs_ = newLongList();
- mutable_bitField0_ |= 0x00000010;
- }
- while (input.getBytesUntilLimit() > 0) {
- refs_.addLong(input.readSInt64());
- }
- input.popLimit(limit);
- break;
- }
- case 72: {
- if (!((mutable_bitField0_ & 0x00000020) != 0)) {
- lat_ = newLongList();
- mutable_bitField0_ |= 0x00000020;
- }
- lat_.addLong(input.readSInt64());
- break;
- }
- case 74: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) {
- lat_ = newLongList();
- mutable_bitField0_ |= 0x00000020;
- }
- while (input.getBytesUntilLimit() > 0) {
- lat_.addLong(input.readSInt64());
- }
- input.popLimit(limit);
- break;
- }
- case 80: {
- if (!((mutable_bitField0_ & 0x00000040) != 0)) {
- lon_ = newLongList();
- mutable_bitField0_ |= 0x00000040;
- }
- lon_.addLong(input.readSInt64());
- break;
- }
- case 82: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000040) != 0) && input.getBytesUntilLimit() > 0) {
- lon_ = newLongList();
- mutable_bitField0_ |= 0x00000040;
- }
- while (input.getBytesUntilLimit() > 0) {
- lon_.addLong(input.readSInt64());
- }
- input.popLimit(limit);
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- keys_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- vals_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000010) != 0)) {
- refs_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000020) != 0)) {
- lat_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000040) != 0)) {
- lon_.makeImmutable(); // C
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Way_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Way_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.Way.class, crosby.binary.Osmformat.Way.Builder.class);
- }
-
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private long id_;
-
- /**
- * required int64 id = 1;
- *
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required int64 id = 1;
- *
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
- return id_;
- }
-
- public static final int KEYS_FIELD_NUMBER = 2;
- private com.google.protobuf.Internal.IntList keys_;
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return A list containing the keys.
- */
- @java.lang.Override
- public java.util.List getKeysList() {
- return keys_;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return The count of keys.
- */
- public int getKeysCount() {
- return keys_.size();
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keys at the given index.
- */
- public int getKeys(int index) {
- return keys_.getInt(index);
- }
-
- private int keysMemoizedSerializedSize = -1;
-
- public static final int VALS_FIELD_NUMBER = 3;
- private com.google.protobuf.Internal.IntList vals_;
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return A list containing the vals.
- */
- @java.lang.Override
- public java.util.List getValsList() {
- return vals_;
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return The count of vals.
- */
- public int getValsCount() {
- return vals_.size();
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The vals at the given index.
- */
- public int getVals(int index) {
- return vals_.getInt(index);
- }
-
- private int valsMemoizedSerializedSize = -1;
-
- public static final int INFO_FIELD_NUMBER = 4;
- private crosby.binary.Osmformat.Info info_;
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return Whether the info field is set.
- */
- @java.lang.Override
- public boolean hasInfo() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return The info.
- */
- @java.lang.Override
- public crosby.binary.Osmformat.Info getInfo() {
- return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() {
- return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- }
-
- public static final int REFS_FIELD_NUMBER = 8;
- private com.google.protobuf.Internal.LongList refs_;
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @return A list containing the refs.
- */
- @java.lang.Override
- public java.util.List getRefsList() {
- return refs_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @return The count of refs.
- */
- public int getRefsCount() {
- return refs_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The refs at the given index.
- */
- public long getRefs(int index) {
- return refs_.getLong(index);
- }
-
- private int refsMemoizedSerializedSize = -1;
-
- public static final int LAT_FIELD_NUMBER = 9;
- private com.google.protobuf.Internal.LongList lat_;
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @return A list containing the lat.
- */
- @java.lang.Override
- public java.util.List getLatList() {
- return lat_;
- }
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @return The count of lat.
- */
- public int getLatCount() {
- return lat_.size();
- }
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lat at the given index.
- */
- public long getLat(int index) {
- return lat_.getLong(index);
- }
-
- private int latMemoizedSerializedSize = -1;
-
- public static final int LON_FIELD_NUMBER = 10;
- private com.google.protobuf.Internal.LongList lon_;
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @return A list containing the lon.
- */
- @java.lang.Override
- public java.util.List getLonList() {
- return lon_;
- }
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @return The count of lon.
- */
- public int getLonCount() {
- return lon_.size();
- }
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lon at the given index.
- */
- public long getLon(int index) {
- return lon_.getLong(index);
- }
-
- private int lonMemoizedSerializedSize = -1;
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- if (!hasId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeInt64(1, id_);
- }
- if (getKeysList().size() > 0) {
- output.writeUInt32NoTag(18);
- output.writeUInt32NoTag(keysMemoizedSerializedSize);
- }
- for (int i = 0; i < keys_.size(); i++) {
- output.writeUInt32NoTag(keys_.getInt(i));
- }
- if (getValsList().size() > 0) {
- output.writeUInt32NoTag(26);
- output.writeUInt32NoTag(valsMemoizedSerializedSize);
- }
- for (int i = 0; i < vals_.size(); i++) {
- output.writeUInt32NoTag(vals_.getInt(i));
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeMessage(4, getInfo());
- }
- if (getRefsList().size() > 0) {
- output.writeUInt32NoTag(66);
- output.writeUInt32NoTag(refsMemoizedSerializedSize);
- }
- for (int i = 0; i < refs_.size(); i++) {
- output.writeSInt64NoTag(refs_.getLong(i));
- }
- if (getLatList().size() > 0) {
- output.writeUInt32NoTag(74);
- output.writeUInt32NoTag(latMemoizedSerializedSize);
- }
- for (int i = 0; i < lat_.size(); i++) {
- output.writeSInt64NoTag(lat_.getLong(i));
- }
- if (getLonList().size() > 0) {
- output.writeUInt32NoTag(82);
- output.writeUInt32NoTag(lonMemoizedSerializedSize);
- }
- for (int i = 0; i < lon_.size(); i++) {
- output.writeSInt64NoTag(lon_.getLong(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, id_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < keys_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeUInt32SizeNoTag(keys_.getInt(i));
- }
- size += dataSize;
- if (!getKeysList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- keysMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < vals_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeUInt32SizeNoTag(vals_.getInt(i));
- }
- size += dataSize;
- if (!getValsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- valsMemoizedSerializedSize = dataSize;
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, getInfo());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < refs_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt64SizeNoTag(refs_.getLong(i));
- }
- size += dataSize;
- if (!getRefsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- refsMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < lat_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt64SizeNoTag(lat_.getLong(i));
- }
- size += dataSize;
- if (!getLatList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- latMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < lon_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt64SizeNoTag(lon_.getLong(i));
- }
- size += dataSize;
- if (!getLonList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- lonMemoizedSerializedSize = dataSize;
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.Way)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.Way other = (crosby.binary.Osmformat.Way) obj;
-
- if (hasId() != other.hasId())
- return false;
- if (hasId()) {
- if (getId() != other.getId())
- return false;
- }
- if (!getKeysList()
- .equals(other.getKeysList()))
- return false;
- if (!getValsList()
- .equals(other.getValsList()))
- return false;
- if (hasInfo() != other.hasInfo())
- return false;
- if (hasInfo()) {
- if (!getInfo()
- .equals(other.getInfo()))
- return false;
- }
- if (!getRefsList()
- .equals(other.getRefsList()))
- return false;
- if (!getLatList()
- .equals(other.getLatList()))
- return false;
- if (!getLonList()
- .equals(other.getLonList()))
- return false;
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasId()) {
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getId());
- }
- if (getKeysCount() > 0) {
- hash = (37 * hash) + KEYS_FIELD_NUMBER;
- hash = (53 * hash) + getKeysList().hashCode();
- }
- if (getValsCount() > 0) {
- hash = (37 * hash) + VALS_FIELD_NUMBER;
- hash = (53 * hash) + getValsList().hashCode();
- }
- if (hasInfo()) {
- hash = (37 * hash) + INFO_FIELD_NUMBER;
- hash = (53 * hash) + getInfo().hashCode();
- }
- if (getRefsCount() > 0) {
- hash = (37 * hash) + REFS_FIELD_NUMBER;
- hash = (53 * hash) + getRefsList().hashCode();
- }
- if (getLatCount() > 0) {
- hash = (37 * hash) + LAT_FIELD_NUMBER;
- hash = (53 * hash) + getLatList().hashCode();
- }
- if (getLonCount() > 0) {
- hash = (37 * hash) + LON_FIELD_NUMBER;
- hash = (53 * hash) + getLonList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.Way parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Way parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Way parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Way parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Way parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Way parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Way parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Way parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Way parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Way parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Way parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Way parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.Way prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code OSMPBF.Way}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.Way)
- crosby.binary.Osmformat.WayOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Way_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Way_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.Way.class, crosby.binary.Osmformat.Way.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.Way.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getInfoFieldBuilder();
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- id_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- keys_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000002);
- vals_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000004);
- if (infoBuilder_ == null) {
- info_ = null;
- } else {
- infoBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- refs_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000010);
- lat_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000020);
- lon_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000040);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Way_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Way getDefaultInstanceForType() {
- return crosby.binary.Osmformat.Way.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Way build() {
- crosby.binary.Osmformat.Way result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Way buildPartial() {
- crosby.binary.Osmformat.Way result = new crosby.binary.Osmformat.Way(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.id_ = id_;
- to_bitField0_ |= 0x00000001;
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- keys_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.keys_ = keys_;
- if (((bitField0_ & 0x00000004) != 0)) {
- vals_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.vals_ = vals_;
- if (((from_bitField0_ & 0x00000008) != 0)) {
- if (infoBuilder_ == null) {
- result.info_ = info_;
- } else {
- result.info_ = infoBuilder_.build();
- }
- to_bitField0_ |= 0x00000002;
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- refs_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.refs_ = refs_;
- if (((bitField0_ & 0x00000020) != 0)) {
- lat_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.lat_ = lat_;
- if (((bitField0_ & 0x00000040) != 0)) {
- lon_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000040);
- }
- result.lon_ = lon_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.Way) {
- return mergeFrom((crosby.binary.Osmformat.Way) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.Way other) {
- if (other == crosby.binary.Osmformat.Way.getDefaultInstance())
- return this;
- if (other.hasId()) {
- setId(other.getId());
- }
- if (!other.keys_.isEmpty()) {
- if (keys_.isEmpty()) {
- keys_ = other.keys_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureKeysIsMutable();
- keys_.addAll(other.keys_);
- }
- onChanged();
- }
- if (!other.vals_.isEmpty()) {
- if (vals_.isEmpty()) {
- vals_ = other.vals_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureValsIsMutable();
- vals_.addAll(other.vals_);
- }
- onChanged();
- }
- if (other.hasInfo()) {
- mergeInfo(other.getInfo());
- }
- if (!other.refs_.isEmpty()) {
- if (refs_.isEmpty()) {
- refs_ = other.refs_;
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- ensureRefsIsMutable();
- refs_.addAll(other.refs_);
- }
- onChanged();
- }
- if (!other.lat_.isEmpty()) {
- if (lat_.isEmpty()) {
- lat_ = other.lat_;
- bitField0_ = (bitField0_ & ~0x00000020);
- } else {
- ensureLatIsMutable();
- lat_.addAll(other.lat_);
- }
- onChanged();
- }
- if (!other.lon_.isEmpty()) {
- if (lon_.isEmpty()) {
- lon_ = other.lon_;
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- ensureLonIsMutable();
- lon_.addAll(other.lon_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasId()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.Way parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.Way) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private long id_;
-
- /**
- * required int64 id = 1;
- *
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required int64 id = 1;
- *
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
- return id_;
- }
-
- /**
- * required int64 id = 1;
- *
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(long value) {
- bitField0_ |= 0x00000001;
- id_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required int64 id = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- id_ = 0L;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.IntList keys_ = emptyIntList();
-
- private void ensureKeysIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- keys_ = mutableCopy(keys_);
- bitField0_ |= 0x00000002;
- }
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return A list containing the keys.
- */
- public java.util.List getKeysList() {
- return ((bitField0_ & 0x00000002) != 0) ?
- java.util.Collections.unmodifiableList(keys_) : keys_;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return The count of keys.
- */
- public int getKeysCount() {
- return keys_.size();
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keys at the given index.
- */
- public int getKeys(int index) {
- return keys_.getInt(index);
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The keys to set.
- * @return This builder for chaining.
- */
- public Builder setKeys(
- int index, int value) {
- ensureKeysIsMutable();
- keys_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param value The keys to add.
- * @return This builder for chaining.
- */
- public Builder addKeys(int value) {
- ensureKeysIsMutable();
- keys_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param values The keys to add.
- * @return This builder for chaining.
- */
- public Builder addAllKeys(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureKeysIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, keys_);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearKeys() {
- keys_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.IntList vals_ = emptyIntList();
-
- private void ensureValsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
- vals_ = mutableCopy(vals_);
- bitField0_ |= 0x00000004;
- }
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return A list containing the vals.
- */
- public java.util.List getValsList() {
- return ((bitField0_ & 0x00000004) != 0) ?
- java.util.Collections.unmodifiableList(vals_) : vals_;
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return The count of vals.
- */
- public int getValsCount() {
- return vals_.size();
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The vals at the given index.
- */
- public int getVals(int index) {
- return vals_.getInt(index);
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The vals to set.
- * @return This builder for chaining.
- */
- public Builder setVals(
- int index, int value) {
- ensureValsIsMutable();
- vals_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param value The vals to add.
- * @return This builder for chaining.
- */
- public Builder addVals(int value) {
- ensureValsIsMutable();
- vals_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param values The vals to add.
- * @return This builder for chaining.
- */
- public Builder addAllVals(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureValsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, vals_);
- onChanged();
- return this;
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearVals() {
- vals_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
-
- private crosby.binary.Osmformat.Info info_;
- private com.google.protobuf.SingleFieldBuilderV3 infoBuilder_;
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return Whether the info field is set.
- */
- public boolean hasInfo() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return The info.
- */
- public crosby.binary.Osmformat.Info getInfo() {
- if (infoBuilder_ == null) {
- return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- } else {
- return infoBuilder_.getMessage();
- }
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public Builder setInfo(crosby.binary.Osmformat.Info value) {
- if (infoBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- info_ = value;
- onChanged();
- } else {
- infoBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000008;
- return this;
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public Builder setInfo(
- crosby.binary.Osmformat.Info.Builder builderForValue) {
- if (infoBuilder_ == null) {
- info_ = builderForValue.build();
- onChanged();
- } else {
- infoBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000008;
- return this;
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public Builder mergeInfo(crosby.binary.Osmformat.Info value) {
- if (infoBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0) &&
- info_ != null &&
- info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) {
- info_ =
- crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial();
- } else {
- info_ = value;
- }
- onChanged();
- } else {
- infoBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000008;
- return this;
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public Builder clearInfo() {
- if (infoBuilder_ == null) {
- info_ = null;
- onChanged();
- } else {
- infoBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public crosby.binary.Osmformat.Info.Builder getInfoBuilder() {
- bitField0_ |= 0x00000008;
- onChanged();
- return getInfoFieldBuilder().getBuilder();
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public crosby.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() {
- if (infoBuilder_ != null) {
- return infoBuilder_.getMessageOrBuilder();
- } else {
- return info_ == null ?
- crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- }
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- private com.google.protobuf.SingleFieldBuilderV3 getInfoFieldBuilder() {
- if (infoBuilder_ == null) {
- infoBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3(
- getInfo(),
- getParentForChildren(),
- isClean());
- info_ = null;
- }
- return infoBuilder_;
- }
-
- private com.google.protobuf.Internal.LongList refs_ = emptyLongList();
-
- private void ensureRefsIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
- refs_ = mutableCopy(refs_);
- bitField0_ |= 0x00000010;
- }
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @return A list containing the refs.
- */
- public java.util.List getRefsList() {
- return ((bitField0_ & 0x00000010) != 0) ?
- java.util.Collections.unmodifiableList(refs_) : refs_;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @return The count of refs.
- */
- public int getRefsCount() {
- return refs_.size();
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The refs at the given index.
- */
- public long getRefs(int index) {
- return refs_.getLong(index);
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The refs to set.
- * @return This builder for chaining.
- */
- public Builder setRefs(
- int index, long value) {
- ensureRefsIsMutable();
- refs_.setLong(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @param value The refs to add.
- * @return This builder for chaining.
- */
- public Builder addRefs(long value) {
- ensureRefsIsMutable();
- refs_.addLong(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @param values The refs to add.
- * @return This builder for chaining.
- */
- public Builder addAllRefs(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureRefsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, refs_);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded
- *
- *
- * repeated sint64 refs = 8 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearRefs() {
- refs_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.LongList lat_ = emptyLongList();
-
- private void ensureLatIsMutable() {
- if (!((bitField0_ & 0x00000020) != 0)) {
- lat_ = mutableCopy(lat_);
- bitField0_ |= 0x00000020;
- }
- }
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @return A list containing the lat.
- */
- public java.util.List getLatList() {
- return ((bitField0_ & 0x00000020) != 0) ?
- java.util.Collections.unmodifiableList(lat_) : lat_;
- }
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @return The count of lat.
- */
- public int getLatCount() {
- return lat_.size();
- }
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lat at the given index.
- */
- public long getLat(int index) {
- return lat_.getLong(index);
- }
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The lat to set.
- * @return This builder for chaining.
- */
- public Builder setLat(
- int index, long value) {
- ensureLatIsMutable();
- lat_.setLong(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @param value The lat to add.
- * @return This builder for chaining.
- */
- public Builder addLat(long value) {
- ensureLatIsMutable();
- lat_.addLong(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @param values The lat to add.
- * @return This builder for chaining.
- */
- public Builder addAllLat(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureLatIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, lat_);
- onChanged();
- return this;
- }
-
- /**
- *
- * The following two fields are optional. They are only used in a special
- * format where node locations are also added to the ways. This makes the
- * files larger, but allows creating way geometries directly.
- * If this is used, you MUST set the optional_features tag "LocationsOnWays"
- * and the number of values in refs, lat, and lon MUST be the same.
- *
- *
- * repeated sint64 lat = 9 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearLat() {
- lat_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.LongList lon_ = emptyLongList();
-
- private void ensureLonIsMutable() {
- if (!((bitField0_ & 0x00000040) != 0)) {
- lon_ = mutableCopy(lon_);
- bitField0_ |= 0x00000040;
- }
- }
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @return A list containing the lon.
- */
- public java.util.List getLonList() {
- return ((bitField0_ & 0x00000040) != 0) ?
- java.util.Collections.unmodifiableList(lon_) : lon_;
- }
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @return The count of lon.
- */
- public int getLonCount() {
- return lon_.size();
- }
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The lon at the given index.
- */
- public long getLon(int index) {
- return lon_.getLong(index);
- }
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The lon to set.
- * @return This builder for chaining.
- */
- public Builder setLon(
- int index, long value) {
- ensureLonIsMutable();
- lon_.setLong(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @param value The lon to add.
- * @return This builder for chaining.
- */
- public Builder addLon(long value) {
- ensureLonIsMutable();
- lon_.addLong(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @param values The lon to add.
- * @return This builder for chaining.
- */
- public Builder addAllLon(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureLonIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, lon_);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA coded, optional
- *
- *
- * repeated sint64 lon = 10 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearLon() {
- lon_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.Way)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.Way)
- private static final crosby.binary.Osmformat.Way DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.Way();
- }
-
- public static crosby.binary.Osmformat.Way getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public Way parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Way(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Way getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface RelationOrBuilder extends
- // @@protoc_insertion_point(interface_extends:OSMPBF.Relation)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * required int64 id = 1;
- *
- * @return Whether the id field is set.
- */
- boolean hasId();
-
- /**
- * required int64 id = 1;
- *
- * @return The id.
- */
- long getId();
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return A list containing the keys.
- */
- java.util.List getKeysList();
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return The count of keys.
- */
- int getKeysCount();
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keys at the given index.
- */
- int getKeys(int index);
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return A list containing the vals.
- */
- java.util.List getValsList();
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return The count of vals.
- */
- int getValsCount();
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The vals at the given index.
- */
- int getVals(int index);
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return Whether the info field is set.
- */
- boolean hasInfo();
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return The info.
- */
- crosby.binary.Osmformat.Info getInfo();
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- crosby.binary.Osmformat.InfoOrBuilder getInfoOrBuilder();
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @return A list containing the rolesSid.
- */
- java.util.List getRolesSidList();
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @return The count of rolesSid.
- */
- int getRolesSidCount();
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The rolesSid at the given index.
- */
- int getRolesSid(int index);
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @return A list containing the memids.
- */
- java.util.List getMemidsList();
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @return The count of memids.
- */
- int getMemidsCount();
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The memids at the given index.
- */
- long getMemids(int index);
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @return A list containing the types.
- */
- java.util.List getTypesList();
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @return The count of types.
- */
- int getTypesCount();
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The types at the given index.
- */
- crosby.binary.Osmformat.Relation.MemberType getTypes(int index);
- }
- /**
- * Protobuf type {@code OSMPBF.Relation}
- */
- public static final class Relation extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:OSMPBF.Relation)
- RelationOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use Relation.newBuilder() to construct.
- private Relation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
-
- private Relation() {
- keys_ = emptyIntList();
- vals_ = emptyIntList();
- rolesSid_ = emptyIntList();
- memids_ = emptyLongList();
- types_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Relation();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private Relation(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 8: {
- bitField0_ |= 0x00000001;
- id_ = input.readInt64();
- break;
- }
- case 16: {
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- keys_ = newIntList();
- mutable_bitField0_ |= 0x00000002;
- }
- keys_.addInt(input.readUInt32());
- break;
- }
- case 18: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
- keys_ = newIntList();
- mutable_bitField0_ |= 0x00000002;
- }
- while (input.getBytesUntilLimit() > 0) {
- keys_.addInt(input.readUInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 24: {
- if (!((mutable_bitField0_ & 0x00000004) != 0)) {
- vals_ = newIntList();
- mutable_bitField0_ |= 0x00000004;
- }
- vals_.addInt(input.readUInt32());
- break;
- }
- case 26: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
- vals_ = newIntList();
- mutable_bitField0_ |= 0x00000004;
- }
- while (input.getBytesUntilLimit() > 0) {
- vals_.addInt(input.readUInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 34: {
- crosby.binary.Osmformat.Info.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) != 0)) {
- subBuilder = info_.toBuilder();
- }
- info_ = input.readMessage(crosby.binary.Osmformat.Info.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(info_);
- info_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- case 64: {
- if (!((mutable_bitField0_ & 0x00000010) != 0)) {
- rolesSid_ = newIntList();
- mutable_bitField0_ |= 0x00000010;
- }
- rolesSid_.addInt(input.readInt32());
- break;
- }
- case 66: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) {
- rolesSid_ = newIntList();
- mutable_bitField0_ |= 0x00000010;
- }
- while (input.getBytesUntilLimit() > 0) {
- rolesSid_.addInt(input.readInt32());
- }
- input.popLimit(limit);
- break;
- }
- case 72: {
- if (!((mutable_bitField0_ & 0x00000020) != 0)) {
- memids_ = newLongList();
- mutable_bitField0_ |= 0x00000020;
- }
- memids_.addLong(input.readSInt64());
- break;
- }
- case 74: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) {
- memids_ = newLongList();
- mutable_bitField0_ |= 0x00000020;
- }
- while (input.getBytesUntilLimit() > 0) {
- memids_.addLong(input.readSInt64());
- }
- input.popLimit(limit);
- break;
- }
- case 80: {
- int rawValue = input.readEnum();
- @SuppressWarnings("deprecation") crosby.binary.Osmformat.Relation.MemberType value =
- crosby.binary.Osmformat.Relation.MemberType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(10, rawValue);
- } else {
- if (!((mutable_bitField0_ & 0x00000040) != 0)) {
- types_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000040;
- }
- types_.add(rawValue);
- }
- break;
- }
- case 82: {
- int length = input.readRawVarint32();
- int oldLimit = input.pushLimit(length);
- while (input.getBytesUntilLimit() > 0) {
- int rawValue = input.readEnum();
- @SuppressWarnings("deprecation") crosby.binary.Osmformat.Relation.MemberType value =
- crosby.binary.Osmformat.Relation.MemberType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(10, rawValue);
- } else {
- if (!((mutable_bitField0_ & 0x00000040) != 0)) {
- types_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000040;
- }
- types_.add(rawValue);
- }
- }
- input.popLimit(oldLimit);
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- keys_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000004) != 0)) {
- vals_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000010) != 0)) {
- rolesSid_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000020) != 0)) {
- memids_.makeImmutable(); // C
- }
- if (((mutable_bitField0_ & 0x00000040) != 0)) {
- types_ = java.util.Collections.unmodifiableList(types_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Relation_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Relation_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.Relation.class, crosby.binary.Osmformat.Relation.Builder.class);
- }
-
- /**
- * Protobuf enum {@code OSMPBF.Relation.MemberType}
- */
- public enum MemberType
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * NODE = 0;
- */
- NODE(0),
- /**
- * WAY = 1;
- */
- WAY(1),
- /**
- * RELATION = 2;
- */
- RELATION(2),
- ;
-
- /**
- * NODE = 0;
- */
- public static final int NODE_VALUE = 0;
- /**
- * WAY = 1;
- */
- public static final int WAY_VALUE = 1;
- /**
- * RELATION = 2;
- */
- public static final int RELATION_VALUE = 2;
-
-
- public final int getNumber() {
- return value;
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static MemberType valueOf(int value) {
- return forNumber(value);
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- */
- public static MemberType forNumber(int value) {
- switch (value) {
- case 0:
- return NODE;
- case 1:
- return WAY;
- case 2:
- return RELATION;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
- return internalValueMap;
- }
-
- private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- public MemberType findValueByNumber(int number) {
- return MemberType.forNumber(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
- return getDescriptor().getValues().get(ordinal());
- }
-
- public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
- return getDescriptor();
- }
-
- public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return crosby.binary.Osmformat.Relation.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final MemberType[] VALUES = values();
-
- public static MemberType 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 value;
-
- private MemberType(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:OSMPBF.Relation.MemberType)
- }
-
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private long id_;
-
- /**
- * required int64 id = 1;
- *
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required int64 id = 1;
- *
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
- return id_;
- }
-
- public static final int KEYS_FIELD_NUMBER = 2;
- private com.google.protobuf.Internal.IntList keys_;
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return A list containing the keys.
- */
- @java.lang.Override
- public java.util.List getKeysList() {
- return keys_;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return The count of keys.
- */
- public int getKeysCount() {
- return keys_.size();
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keys at the given index.
- */
- public int getKeys(int index) {
- return keys_.getInt(index);
- }
-
- private int keysMemoizedSerializedSize = -1;
-
- public static final int VALS_FIELD_NUMBER = 3;
- private com.google.protobuf.Internal.IntList vals_;
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return A list containing the vals.
- */
- @java.lang.Override
- public java.util.List getValsList() {
- return vals_;
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return The count of vals.
- */
- public int getValsCount() {
- return vals_.size();
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The vals at the given index.
- */
- public int getVals(int index) {
- return vals_.getInt(index);
- }
-
- private int valsMemoizedSerializedSize = -1;
-
- public static final int INFO_FIELD_NUMBER = 4;
- private crosby.binary.Osmformat.Info info_;
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return Whether the info field is set.
- */
- @java.lang.Override
- public boolean hasInfo() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return The info.
- */
- @java.lang.Override
- public crosby.binary.Osmformat.Info getInfo() {
- return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- @java.lang.Override
- public crosby.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() {
- return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- }
-
- public static final int ROLES_SID_FIELD_NUMBER = 8;
- private com.google.protobuf.Internal.IntList rolesSid_;
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @return A list containing the rolesSid.
- */
- @java.lang.Override
- public java.util.List getRolesSidList() {
- return rolesSid_;
- }
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @return The count of rolesSid.
- */
- public int getRolesSidCount() {
- return rolesSid_.size();
- }
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The rolesSid at the given index.
- */
- public int getRolesSid(int index) {
- return rolesSid_.getInt(index);
- }
-
- private int rolesSidMemoizedSerializedSize = -1;
-
- public static final int MEMIDS_FIELD_NUMBER = 9;
- private com.google.protobuf.Internal.LongList memids_;
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @return A list containing the memids.
- */
- @java.lang.Override
- public java.util.List getMemidsList() {
- return memids_;
- }
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @return The count of memids.
- */
- public int getMemidsCount() {
- return memids_.size();
- }
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The memids at the given index.
- */
- public long getMemids(int index) {
- return memids_.getLong(index);
- }
-
- private int memidsMemoizedSerializedSize = -1;
-
- public static final int TYPES_FIELD_NUMBER = 10;
- private java.util.List types_;
- private static final com.google.protobuf.Internal.ListAdapter.Converter types_converter_ =
- new com.google.protobuf.Internal.ListAdapter.Converter() {
- public crosby.binary.Osmformat.Relation.MemberType convert(java.lang.Integer from) {
- @SuppressWarnings("deprecation") crosby.binary.Osmformat.Relation.MemberType result =
- crosby.binary.Osmformat.Relation.MemberType.valueOf(from);
- return result == null ? crosby.binary.Osmformat.Relation.MemberType.NODE : result;
- }
- };
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @return A list containing the types.
- */
- @java.lang.Override
- public java.util.List getTypesList() {
- return new com.google.protobuf.Internal.ListAdapter(
- types_, types_converter_);
- }
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @return The count of types.
- */
- @java.lang.Override
- public int getTypesCount() {
- return types_.size();
- }
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The types at the given index.
- */
- @java.lang.Override
- public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) {
- return types_converter_.convert(types_.get(index));
- }
-
- private int typesMemoizedSerializedSize;
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- if (!hasId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeInt64(1, id_);
- }
- if (getKeysList().size() > 0) {
- output.writeUInt32NoTag(18);
- output.writeUInt32NoTag(keysMemoizedSerializedSize);
- }
- for (int i = 0; i < keys_.size(); i++) {
- output.writeUInt32NoTag(keys_.getInt(i));
- }
- if (getValsList().size() > 0) {
- output.writeUInt32NoTag(26);
- output.writeUInt32NoTag(valsMemoizedSerializedSize);
- }
- for (int i = 0; i < vals_.size(); i++) {
- output.writeUInt32NoTag(vals_.getInt(i));
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeMessage(4, getInfo());
- }
- if (getRolesSidList().size() > 0) {
- output.writeUInt32NoTag(66);
- output.writeUInt32NoTag(rolesSidMemoizedSerializedSize);
- }
- for (int i = 0; i < rolesSid_.size(); i++) {
- output.writeInt32NoTag(rolesSid_.getInt(i));
- }
- if (getMemidsList().size() > 0) {
- output.writeUInt32NoTag(74);
- output.writeUInt32NoTag(memidsMemoizedSerializedSize);
- }
- for (int i = 0; i < memids_.size(); i++) {
- output.writeSInt64NoTag(memids_.getLong(i));
- }
- if (getTypesList().size() > 0) {
- output.writeUInt32NoTag(82);
- output.writeUInt32NoTag(typesMemoizedSerializedSize);
- }
- for (int i = 0; i < types_.size(); i++) {
- output.writeEnumNoTag(types_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, id_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < keys_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeUInt32SizeNoTag(keys_.getInt(i));
- }
- size += dataSize;
- if (!getKeysList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- keysMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < vals_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeUInt32SizeNoTag(vals_.getInt(i));
- }
- size += dataSize;
- if (!getValsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- valsMemoizedSerializedSize = dataSize;
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, getInfo());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < rolesSid_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(rolesSid_.getInt(i));
- }
- size += dataSize;
- if (!getRolesSidList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- rolesSidMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < memids_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeSInt64SizeNoTag(memids_.getLong(i));
- }
- size += dataSize;
- if (!getMemidsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- memidsMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < types_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(types_.get(i));
- }
- size += dataSize;
- if (!getTypesList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32SizeNoTag(dataSize);
- }
- typesMemoizedSerializedSize = dataSize;
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof crosby.binary.Osmformat.Relation)) {
- return super.equals(obj);
- }
- crosby.binary.Osmformat.Relation other = (crosby.binary.Osmformat.Relation) obj;
-
- if (hasId() != other.hasId())
- return false;
- if (hasId()) {
- if (getId() != other.getId())
- return false;
- }
- if (!getKeysList()
- .equals(other.getKeysList()))
- return false;
- if (!getValsList()
- .equals(other.getValsList()))
- return false;
- if (hasInfo() != other.hasInfo())
- return false;
- if (hasInfo()) {
- if (!getInfo()
- .equals(other.getInfo()))
- return false;
- }
- if (!getRolesSidList()
- .equals(other.getRolesSidList()))
- return false;
- if (!getMemidsList()
- .equals(other.getMemidsList()))
- return false;
- if (!types_.equals(other.types_))
- return false;
- if (!unknownFields.equals(other.unknownFields))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasId()) {
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getId());
- }
- if (getKeysCount() > 0) {
- hash = (37 * hash) + KEYS_FIELD_NUMBER;
- hash = (53 * hash) + getKeysList().hashCode();
- }
- if (getValsCount() > 0) {
- hash = (37 * hash) + VALS_FIELD_NUMBER;
- hash = (53 * hash) + getValsList().hashCode();
- }
- if (hasInfo()) {
- hash = (37 * hash) + INFO_FIELD_NUMBER;
- hash = (53 * hash) + getInfo().hashCode();
- }
- if (getRolesSidCount() > 0) {
- hash = (37 * hash) + ROLES_SID_FIELD_NUMBER;
- hash = (53 * hash) + getRolesSidList().hashCode();
- }
- if (getMemidsCount() > 0) {
- hash = (37 * hash) + MEMIDS_FIELD_NUMBER;
- hash = (53 * hash) + getMemidsList().hashCode();
- }
- if (getTypesCount() > 0) {
- hash = (37 * hash) + TYPES_FIELD_NUMBER;
- hash = (53 * hash) + types_.hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static crosby.binary.Osmformat.Relation parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Relation parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Relation parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Relation parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Relation parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static crosby.binary.Osmformat.Relation parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Relation parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Relation parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Relation parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Relation parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static crosby.binary.Osmformat.Relation parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static crosby.binary.Osmformat.Relation parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(crosby.binary.Osmformat.Relation prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code OSMPBF.Relation}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:OSMPBF.Relation)
- crosby.binary.Osmformat.RelationOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Relation_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Relation_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- crosby.binary.Osmformat.Relation.class, crosby.binary.Osmformat.Relation.Builder.class);
- }
-
- // Construct using crosby.binary.Osmformat.Relation.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getInfoFieldBuilder();
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- id_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- keys_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000002);
- vals_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000004);
- if (infoBuilder_ == null) {
- info_ = null;
- } else {
- infoBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- rolesSid_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000010);
- memids_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000020);
- types_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return crosby.binary.Osmformat.internal_static_OSMPBF_Relation_descriptor;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Relation getDefaultInstanceForType() {
- return crosby.binary.Osmformat.Relation.getDefaultInstance();
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Relation build() {
- crosby.binary.Osmformat.Relation result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Relation buildPartial() {
- crosby.binary.Osmformat.Relation result = new crosby.binary.Osmformat.Relation(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.id_ = id_;
- to_bitField0_ |= 0x00000001;
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- keys_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.keys_ = keys_;
- if (((bitField0_ & 0x00000004) != 0)) {
- vals_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.vals_ = vals_;
- if (((from_bitField0_ & 0x00000008) != 0)) {
- if (infoBuilder_ == null) {
- result.info_ = info_;
- } else {
- result.info_ = infoBuilder_.build();
- }
- to_bitField0_ |= 0x00000002;
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- rolesSid_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.rolesSid_ = rolesSid_;
- if (((bitField0_ & 0x00000020) != 0)) {
- memids_.makeImmutable();
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.memids_ = memids_;
- if (((bitField0_ & 0x00000040) != 0)) {
- types_ = java.util.Collections.unmodifiableList(types_);
- bitField0_ = (bitField0_ & ~0x00000040);
- }
- result.types_ = types_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof crosby.binary.Osmformat.Relation) {
- return mergeFrom((crosby.binary.Osmformat.Relation) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(crosby.binary.Osmformat.Relation other) {
- if (other == crosby.binary.Osmformat.Relation.getDefaultInstance())
- return this;
- if (other.hasId()) {
- setId(other.getId());
- }
- if (!other.keys_.isEmpty()) {
- if (keys_.isEmpty()) {
- keys_ = other.keys_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureKeysIsMutable();
- keys_.addAll(other.keys_);
- }
- onChanged();
- }
- if (!other.vals_.isEmpty()) {
- if (vals_.isEmpty()) {
- vals_ = other.vals_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureValsIsMutable();
- vals_.addAll(other.vals_);
- }
- onChanged();
- }
- if (other.hasInfo()) {
- mergeInfo(other.getInfo());
- }
- if (!other.rolesSid_.isEmpty()) {
- if (rolesSid_.isEmpty()) {
- rolesSid_ = other.rolesSid_;
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- ensureRolesSidIsMutable();
- rolesSid_.addAll(other.rolesSid_);
- }
- onChanged();
- }
- if (!other.memids_.isEmpty()) {
- if (memids_.isEmpty()) {
- memids_ = other.memids_;
- bitField0_ = (bitField0_ & ~0x00000020);
- } else {
- ensureMemidsIsMutable();
- memids_.addAll(other.memids_);
- }
- onChanged();
- }
- if (!other.types_.isEmpty()) {
- if (types_.isEmpty()) {
- types_ = other.types_;
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- ensureTypesIsMutable();
- types_.addAll(other.types_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasId()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- crosby.binary.Osmformat.Relation parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (crosby.binary.Osmformat.Relation) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private long id_;
-
- /**
- * required int64 id = 1;
- *
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- * required int64 id = 1;
- *
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
- return id_;
- }
-
- /**
- * required int64 id = 1;
- *
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(long value) {
- bitField0_ |= 0x00000001;
- id_ = value;
- onChanged();
- return this;
- }
-
- /**
- * required int64 id = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- id_ = 0L;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.IntList keys_ = emptyIntList();
-
- private void ensureKeysIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- keys_ = mutableCopy(keys_);
- bitField0_ |= 0x00000002;
- }
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return A list containing the keys.
- */
- public java.util.List getKeysList() {
- return ((bitField0_ & 0x00000002) != 0) ?
- java.util.Collections.unmodifiableList(keys_) : keys_;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return The count of keys.
- */
- public int getKeysCount() {
- return keys_.size();
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The keys at the given index.
- */
- public int getKeys(int index) {
- return keys_.getInt(index);
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The keys to set.
- * @return This builder for chaining.
- */
- public Builder setKeys(
- int index, int value) {
- ensureKeysIsMutable();
- keys_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param value The keys to add.
- * @return This builder for chaining.
- */
- public Builder addKeys(int value) {
- ensureKeysIsMutable();
- keys_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @param values The keys to add.
- * @return This builder for chaining.
- */
- public Builder addAllKeys(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureKeysIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, keys_);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays.
- *
- *
- * repeated uint32 keys = 2 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearKeys() {
- keys_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.IntList vals_ = emptyIntList();
-
- private void ensureValsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
- vals_ = mutableCopy(vals_);
- bitField0_ |= 0x00000004;
- }
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return A list containing the vals.
- */
- public java.util.List getValsList() {
- return ((bitField0_ & 0x00000004) != 0) ?
- java.util.Collections.unmodifiableList(vals_) : vals_;
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return The count of vals.
- */
- public int getValsCount() {
- return vals_.size();
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The vals at the given index.
- */
- public int getVals(int index) {
- return vals_.getInt(index);
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The vals to set.
- * @return This builder for chaining.
- */
- public Builder setVals(
- int index, int value) {
- ensureValsIsMutable();
- vals_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param value The vals to add.
- * @return This builder for chaining.
- */
- public Builder addVals(int value) {
- ensureValsIsMutable();
- vals_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @param values The vals to add.
- * @return This builder for chaining.
- */
- public Builder addAllVals(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureValsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, vals_);
- onChanged();
- return this;
- }
-
- /**
- * repeated uint32 vals = 3 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearVals() {
- vals_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
-
- private crosby.binary.Osmformat.Info info_;
- private com.google.protobuf.SingleFieldBuilderV3 infoBuilder_;
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return Whether the info field is set.
- */
- public boolean hasInfo() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- *
- * @return The info.
- */
- public crosby.binary.Osmformat.Info getInfo() {
- if (infoBuilder_ == null) {
- return info_ == null ? crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- } else {
- return infoBuilder_.getMessage();
- }
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public Builder setInfo(crosby.binary.Osmformat.Info value) {
- if (infoBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- info_ = value;
- onChanged();
- } else {
- infoBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000008;
- return this;
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public Builder setInfo(
- crosby.binary.Osmformat.Info.Builder builderForValue) {
- if (infoBuilder_ == null) {
- info_ = builderForValue.build();
- onChanged();
- } else {
- infoBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000008;
- return this;
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public Builder mergeInfo(crosby.binary.Osmformat.Info value) {
- if (infoBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0) &&
- info_ != null &&
- info_ != crosby.binary.Osmformat.Info.getDefaultInstance()) {
- info_ =
- crosby.binary.Osmformat.Info.newBuilder(info_).mergeFrom(value).buildPartial();
- } else {
- info_ = value;
- }
- onChanged();
- } else {
- infoBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000008;
- return this;
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public Builder clearInfo() {
- if (infoBuilder_ == null) {
- info_ = null;
- onChanged();
- } else {
- infoBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public crosby.binary.Osmformat.Info.Builder getInfoBuilder() {
- bitField0_ |= 0x00000008;
- onChanged();
- return getInfoFieldBuilder().getBuilder();
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- public crosby.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() {
- if (infoBuilder_ != null) {
- return infoBuilder_.getMessageOrBuilder();
- } else {
- return info_ == null ?
- crosby.binary.Osmformat.Info.getDefaultInstance() : info_;
- }
- }
-
- /**
- * optional .OSMPBF.Info info = 4;
- */
- private com.google.protobuf.SingleFieldBuilderV3 getInfoFieldBuilder() {
- if (infoBuilder_ == null) {
- infoBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3(
- getInfo(),
- getParentForChildren(),
- isClean());
- info_ = null;
- }
- return infoBuilder_;
- }
-
- private com.google.protobuf.Internal.IntList rolesSid_ = emptyIntList();
-
- private void ensureRolesSidIsMutable() {
- if (!((bitField0_ & 0x00000010) != 0)) {
- rolesSid_ = mutableCopy(rolesSid_);
- bitField0_ |= 0x00000010;
- }
- }
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @return A list containing the rolesSid.
- */
- public java.util.List getRolesSidList() {
- return ((bitField0_ & 0x00000010) != 0) ?
- java.util.Collections.unmodifiableList(rolesSid_) : rolesSid_;
- }
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @return The count of rolesSid.
- */
- public int getRolesSidCount() {
- return rolesSid_.size();
- }
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The rolesSid at the given index.
- */
- public int getRolesSid(int index) {
- return rolesSid_.getInt(index);
- }
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The rolesSid to set.
- * @return This builder for chaining.
- */
- public Builder setRolesSid(
- int index, int value) {
- ensureRolesSidIsMutable();
- rolesSid_.setInt(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @param value The rolesSid to add.
- * @return This builder for chaining.
- */
- public Builder addRolesSid(int value) {
- ensureRolesSidIsMutable();
- rolesSid_.addInt(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @param values The rolesSid to add.
- * @return This builder for chaining.
- */
- public Builder addAllRolesSid(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureRolesSidIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, rolesSid_);
- onChanged();
- return this;
- }
-
- /**
- *
- * Parallel arrays
- *
- *
- * repeated int32 roles_sid = 8 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearRolesSid() {
- rolesSid_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.LongList memids_ = emptyLongList();
-
- private void ensureMemidsIsMutable() {
- if (!((bitField0_ & 0x00000020) != 0)) {
- memids_ = mutableCopy(memids_);
- bitField0_ |= 0x00000020;
- }
- }
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @return A list containing the memids.
- */
- public java.util.List getMemidsList() {
- return ((bitField0_ & 0x00000020) != 0) ?
- java.util.Collections.unmodifiableList(memids_) : memids_;
- }
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @return The count of memids.
- */
- public int getMemidsCount() {
- return memids_.size();
- }
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The memids at the given index.
- */
- public long getMemids(int index) {
- return memids_.getLong(index);
- }
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The memids to set.
- * @return This builder for chaining.
- */
- public Builder setMemids(
- int index, long value) {
- ensureMemidsIsMutable();
- memids_.setLong(index, value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @param value The memids to add.
- * @return This builder for chaining.
- */
- public Builder addMemids(long value) {
- ensureMemidsIsMutable();
- memids_.addLong(value);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @param values The memids to add.
- * @return This builder for chaining.
- */
- public Builder addAllMemids(
- java.lang.Iterable extends java.lang.Long> values) {
- ensureMemidsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, memids_);
- onChanged();
- return this;
- }
-
- /**
- *
- * DELTA encoded
- *
- *
- * repeated sint64 memids = 9 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearMemids() {
- memids_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- return this;
- }
-
- private java.util.List types_ =
- java.util.Collections.emptyList();
-
- private void ensureTypesIsMutable() {
- if (!((bitField0_ & 0x00000040) != 0)) {
- types_ = new java.util.ArrayList(types_);
- bitField0_ |= 0x00000040;
- }
- }
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @return A list containing the types.
- */
- public java.util.List getTypesList() {
- return new com.google.protobuf.Internal.ListAdapter(
- types_, types_converter_);
- }
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @return The count of types.
- */
- public int getTypesCount() {
- return types_.size();
- }
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @param index The index of the element to return.
- * @return The types at the given index.
- */
- public crosby.binary.Osmformat.Relation.MemberType getTypes(int index) {
- return types_converter_.convert(types_.get(index));
- }
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @param index The index to set the value at.
- * @param value The types to set.
- * @return This builder for chaining.
- */
- public Builder setTypes(
- int index, crosby.binary.Osmformat.Relation.MemberType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTypesIsMutable();
- types_.set(index, value.getNumber());
- onChanged();
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @param value The types to add.
- * @return This builder for chaining.
- */
- public Builder addTypes(crosby.binary.Osmformat.Relation.MemberType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTypesIsMutable();
- types_.add(value.getNumber());
- onChanged();
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @param values The types to add.
- * @return This builder for chaining.
- */
- public Builder addAllTypes(
- java.lang.Iterable extends crosby.binary.Osmformat.Relation.MemberType> values) {
- ensureTypesIsMutable();
- for (crosby.binary.Osmformat.Relation.MemberType value : values) {
- types_.add(value.getNumber());
- }
- onChanged();
- return this;
- }
-
- /**
- * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- *
- * @return This builder for chaining.
- */
- public Builder clearTypes() {
- types_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:OSMPBF.Relation)
- }
-
- // @@protoc_insertion_point(class_scope:OSMPBF.Relation)
- private static final crosby.binary.Osmformat.Relation DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new crosby.binary.Osmformat.Relation();
- }
-
- public static crosby.binary.Osmformat.Relation getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated
- public static final com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public Relation parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Relation(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public crosby.binary.Osmformat.Relation getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_HeaderBlock_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_HeaderBlock_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_HeaderBBox_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_HeaderBBox_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_PrimitiveBlock_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_PrimitiveBlock_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_PrimitiveGroup_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_PrimitiveGroup_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_StringTable_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_StringTable_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_Info_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_Info_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_DenseInfo_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_DenseInfo_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_ChangeSet_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_ChangeSet_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_Node_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_Node_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_DenseNodes_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_DenseNodes_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_Way_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_Way_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_OSMPBF_Relation_descriptor;
- private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_OSMPBF_Relation_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
- return descriptor;
- }
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n2planetiler-core/src/main/resources/osm" +
- "format.proto\022\006OSMPBF\"\207\002\n\013HeaderBlock\022 \n\004" +
- "bbox\030\001 \001(\0132\022.OSMPBF.HeaderBBox\022\031\n\021requir" +
- "ed_features\030\004 \003(\t\022\031\n\021optional_features\030\005" +
- " \003(\t\022\026\n\016writingprogram\030\020 \001(\t\022\016\n\006source\030\021" +
- " \001(\t\022%\n\035osmosis_replication_timestamp\030 " +
- "\001(\003\022+\n#osmosis_replication_sequence_numb" +
- "er\030! \001(\003\022$\n\034osmosis_replication_base_url" +
- "\030\" \001(\t\"F\n\nHeaderBBox\022\014\n\004left\030\001 \002(\022\022\r\n\005ri" +
- "ght\030\002 \002(\022\022\013\n\003top\030\003 \002(\022\022\016\n\006bottom\030\004 \002(\022\"\272" +
- "\001\n\016PrimitiveBlock\022(\n\013stringtable\030\001 \002(\0132\023" +
- ".OSMPBF.StringTable\022\026\n\016primitivegroup\030\002 " +
- "\003(\014\022\030\n\013granularity\030\021 \001(\005:\003100\022\025\n\nlat_off" +
- "set\030\023 \001(\003:\0010\022\025\n\nlon_offset\030\024 \001(\003:\0010\022\036\n\020d" +
- "ate_granularity\030\022 \001(\005:\0041000\"\267\001\n\016Primitiv" +
- "eGroup\022\033\n\005nodes\030\001 \003(\0132\014.OSMPBF.Node\022!\n\005d" +
- "ense\030\002 \001(\0132\022.OSMPBF.DenseNodes\022\031\n\004ways\030\003" +
- " \003(\0132\013.OSMPBF.Way\022#\n\trelations\030\004 \003(\0132\020.O" +
- "SMPBF.Relation\022%\n\nchangesets\030\005 \003(\0132\021.OSM" +
- "PBF.ChangeSet\"\030\n\013StringTable\022\t\n\001s\030\001 \003(\014\"" +
- "q\n\004Info\022\023\n\007version\030\001 \001(\005:\002-1\022\021\n\ttimestam" +
- "p\030\002 \001(\003\022\021\n\tchangeset\030\003 \001(\003\022\013\n\003uid\030\004 \001(\005\022" +
- "\020\n\010user_sid\030\005 \001(\r\022\017\n\007visible\030\006 \001(\010\"\212\001\n\tD" +
- "enseInfo\022\023\n\007version\030\001 \003(\005B\002\020\001\022\025\n\ttimesta" +
- "mp\030\002 \003(\022B\002\020\001\022\025\n\tchangeset\030\003 \003(\022B\002\020\001\022\017\n\003u" +
- "id\030\004 \003(\021B\002\020\001\022\024\n\010user_sid\030\005 \003(\021B\002\020\001\022\023\n\007vi" +
- "sible\030\006 \003(\010B\002\020\001\"\027\n\tChangeSet\022\n\n\002id\030\001 \002(\003" +
- "\"l\n\004Node\022\n\n\002id\030\001 \002(\022\022\020\n\004keys\030\002 \003(\rB\002\020\001\022\020" +
- "\n\004vals\030\003 \003(\rB\002\020\001\022\032\n\004info\030\004 \001(\0132\014.OSMPBF." +
- "Info\022\013\n\003lat\030\010 \002(\022\022\013\n\003lon\030\t \002(\022\"{\n\nDenseN" +
- "odes\022\016\n\002id\030\001 \003(\022B\002\020\001\022$\n\tdenseinfo\030\005 \001(\0132" +
- "\021.OSMPBF.DenseInfo\022\017\n\003lat\030\010 \003(\022B\002\020\001\022\017\n\003l" +
- "on\030\t \003(\022B\002\020\001\022\025\n\tkeys_vals\030\n \003(\005B\002\020\001\"\205\001\n\003" +
- "Way\022\n\n\002id\030\001 \002(\003\022\020\n\004keys\030\002 \003(\rB\002\020\001\022\020\n\004val" +
- "s\030\003 \003(\rB\002\020\001\022\032\n\004info\030\004 \001(\0132\014.OSMPBF.Info\022" +
- "\020\n\004refs\030\010 \003(\022B\002\020\001\022\017\n\003lat\030\t \003(\022B\002\020\001\022\017\n\003lo" +
- "n\030\n \003(\022B\002\020\001\"\340\001\n\010Relation\022\n\n\002id\030\001 \002(\003\022\020\n\004" +
- "keys\030\002 \003(\rB\002\020\001\022\020\n\004vals\030\003 \003(\rB\002\020\001\022\032\n\004info" +
- "\030\004 \001(\0132\014.OSMPBF.Info\022\025\n\troles_sid\030\010 \003(\005B" +
- "\002\020\001\022\022\n\006memids\030\t \003(\022B\002\020\001\022.\n\005types\030\n \003(\0162\033" +
- ".OSMPBF.Relation.MemberTypeB\002\020\001\"-\n\nMembe" +
- "rType\022\010\n\004NODE\020\000\022\007\n\003WAY\020\001\022\014\n\010RELATION\020\002B\017" +
- "\n\rcrosby.binary"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[]{
- });
- internal_static_OSMPBF_HeaderBlock_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_OSMPBF_HeaderBlock_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_HeaderBlock_descriptor,
- new java.lang.String[]{"Bbox", "RequiredFeatures", "OptionalFeatures", "Writingprogram", "Source",
- "OsmosisReplicationTimestamp", "OsmosisReplicationSequenceNumber", "OsmosisReplicationBaseUrl",});
- internal_static_OSMPBF_HeaderBBox_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_OSMPBF_HeaderBBox_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_HeaderBBox_descriptor,
- new java.lang.String[]{"Left", "Right", "Top", "Bottom",});
- internal_static_OSMPBF_PrimitiveBlock_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_OSMPBF_PrimitiveBlock_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_PrimitiveBlock_descriptor,
- new java.lang.String[]{"Stringtable", "Primitivegroup", "Granularity", "LatOffset", "LonOffset",
- "DateGranularity",});
- internal_static_OSMPBF_PrimitiveGroup_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_OSMPBF_PrimitiveGroup_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_PrimitiveGroup_descriptor,
- new java.lang.String[]{"Nodes", "Dense", "Ways", "Relations", "Changesets",});
- internal_static_OSMPBF_StringTable_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_OSMPBF_StringTable_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_StringTable_descriptor,
- new java.lang.String[]{"S",});
- internal_static_OSMPBF_Info_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_OSMPBF_Info_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_Info_descriptor,
- new java.lang.String[]{"Version", "Timestamp", "Changeset", "Uid", "UserSid", "Visible",});
- internal_static_OSMPBF_DenseInfo_descriptor =
- getDescriptor().getMessageTypes().get(6);
- internal_static_OSMPBF_DenseInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_DenseInfo_descriptor,
- new java.lang.String[]{"Version", "Timestamp", "Changeset", "Uid", "UserSid", "Visible",});
- internal_static_OSMPBF_ChangeSet_descriptor =
- getDescriptor().getMessageTypes().get(7);
- internal_static_OSMPBF_ChangeSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_ChangeSet_descriptor,
- new java.lang.String[]{"Id",});
- internal_static_OSMPBF_Node_descriptor =
- getDescriptor().getMessageTypes().get(8);
- internal_static_OSMPBF_Node_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_Node_descriptor,
- new java.lang.String[]{"Id", "Keys", "Vals", "Info", "Lat", "Lon",});
- internal_static_OSMPBF_DenseNodes_descriptor =
- getDescriptor().getMessageTypes().get(9);
- internal_static_OSMPBF_DenseNodes_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_DenseNodes_descriptor,
- new java.lang.String[]{"Id", "Denseinfo", "Lat", "Lon", "KeysVals",});
- internal_static_OSMPBF_Way_descriptor =
- getDescriptor().getMessageTypes().get(10);
- internal_static_OSMPBF_Way_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_Way_descriptor,
- new java.lang.String[]{"Id", "Keys", "Vals", "Info", "Refs", "Lat", "Lon",});
- internal_static_OSMPBF_Relation_descriptor =
- getDescriptor().getMessageTypes().get(11);
- internal_static_OSMPBF_Relation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_OSMPBF_Relation_descriptor,
- new java.lang.String[]{"Id", "Keys", "Vals", "Info", "RolesSid", "Memids", "Types",});
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/planetiler-core/src/main/java/crosby/binary/Osmformat.java.pb.meta b/planetiler-core/src/main/java/crosby/binary/Osmformat.java.pb.meta
deleted file mode 100644
index 3c50d4a6af..0000000000
Binary files a/planetiler-core/src/main/java/crosby/binary/Osmformat.java.pb.meta and /dev/null differ
diff --git a/planetiler-core/src/main/java/vector_tile/VectorTileProto.java b/planetiler-core/src/main/java/vector_tile/VectorTileProto.java
deleted file mode 100644
index 89be9bd6db..0000000000
--- a/planetiler-core/src/main/java/vector_tile/VectorTileProto.java
+++ /dev/null
@@ -1,6295 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: planetiler-core/src/main/resources/vector_tile_proto.proto
-
-package vector_tile;
-
-@javax.annotation.Generated(value = "protoc", comments = "annotations:VectorTileProto.java.pb.meta")
-public final class VectorTileProto {
- private VectorTileProto() {}
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {}
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
-
- public interface TileOrBuilder extends
- // @@protoc_insertion_point(interface_extends:vector_tile.Tile)
- com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder {
-
- /**
- * repeated .vector_tile.Tile.Layer layers = 3;
- */
- java.util.List getLayersList();
-
- /**
- * repeated .vector_tile.Tile.Layer layers = 3;
- */
- vector_tile.VectorTileProto.Tile.Layer getLayers(int index);
-
- /**
- * repeated .vector_tile.Tile.Layer layers = 3;
- */
- int getLayersCount();
-
- /**
- * repeated .vector_tile.Tile.Layer layers = 3;
- */
- java.util.List extends vector_tile.VectorTileProto.Tile.LayerOrBuilder> getLayersOrBuilderList();
-
- /**
- * repeated .vector_tile.Tile.Layer layers = 3;
- */
- vector_tile.VectorTileProto.Tile.LayerOrBuilder getLayersOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code vector_tile.Tile}
- */
- public static final class Tile extends
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage implements
- // @@protoc_insertion_point(message_implements:vector_tile.Tile)
- TileOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use Tile.newBuilder() to construct.
- private Tile(
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) {
- super(builder);
- }
-
- private Tile() {
- layers_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Tile();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private Tile(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 26: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- layers_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- layers_.add(
- input.readMessage(vector_tile.VectorTileProto.Tile.Layer.PARSER, extensionRegistry));
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- layers_ = java.util.Collections.unmodifiableList(layers_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return vector_tile.VectorTileProto.internal_static_vector_tile_Tile_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return vector_tile.VectorTileProto.internal_static_vector_tile_Tile_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- vector_tile.VectorTileProto.Tile.class, vector_tile.VectorTileProto.Tile.Builder.class);
- }
-
- /**
- *
- * GeomType is described in section 4.3.4 of the specification
- *
- *
- * Protobuf enum {@code vector_tile.Tile.GeomType}
- */
- public enum GeomType
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * UNKNOWN = 0;
- */
- UNKNOWN(0),
- /**
- * POINT = 1;
- */
- POINT(1),
- /**
- * LINESTRING = 2;
- */
- LINESTRING(2),
- /**
- * POLYGON = 3;
- */
- POLYGON(3),
- ;
-
- /**
- * UNKNOWN = 0;
- */
- public static final int UNKNOWN_VALUE = 0;
- /**
- * POINT = 1;
- */
- public static final int POINT_VALUE = 1;
- /**
- * LINESTRING = 2;
- */
- public static final int LINESTRING_VALUE = 2;
- /**
- * POLYGON = 3;
- */
- public static final int POLYGON_VALUE = 3;
-
-
- public final int getNumber() {
- return value;
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static GeomType valueOf(int value) {
- return forNumber(value);
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- */
- public static GeomType forNumber(int value) {
- switch (value) {
- case 0:
- return UNKNOWN;
- case 1:
- return POINT;
- case 2:
- return LINESTRING;
- case 3:
- return POLYGON;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
- return internalValueMap;
- }
-
- private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- public GeomType findValueByNumber(int number) {
- return GeomType.forNumber(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
- return getDescriptor().getValues().get(ordinal());
- }
-
- public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
- return getDescriptor();
- }
-
- public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return vector_tile.VectorTileProto.Tile.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final GeomType[] VALUES = values();
-
- public static GeomType 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 value;
-
- private GeomType(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:vector_tile.Tile.GeomType)
- }
-
- public interface ValueOrBuilder extends
- // @@protoc_insertion_point(interface_extends:vector_tile.Tile.Value)
- com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder {
-
- /**
- *
- * Exactly one of these values must be present in a valid message
- *
- *
- * optional string string_value = 1;
- *
- * @return Whether the stringValue field is set.
- */
- boolean hasStringValue();
-
- /**
- *
- * Exactly one of these values must be present in a valid message
- *
- *
- * optional string string_value = 1;
- *
- * @return The stringValue.
- */
- java.lang.String getStringValue();
-
- /**
- *
- * Exactly one of these values must be present in a valid message
- *
- *
- * optional string string_value = 1;
- *
- * @return The bytes for stringValue.
- */
- com.google.protobuf.ByteString getStringValueBytes();
-
- /**
- * optional float float_value = 2;
- *
- * @return Whether the floatValue field is set.
- */
- boolean hasFloatValue();
-
- /**
- * optional float float_value = 2;
- *
- * @return The floatValue.
- */
- float getFloatValue();
-
- /**
- * optional double double_value = 3;
- *
- * @return Whether the doubleValue field is set.
- */
- boolean hasDoubleValue();
-
- /**
- * optional double double_value = 3;
- *
- * @return The doubleValue.
- */
- double getDoubleValue();
-
- /**
- * optional int64 int_value = 4;
- *
- * @return Whether the intValue field is set.
- */
- boolean hasIntValue();
-
- /**
- * optional int64 int_value = 4;
- *
- * @return The intValue.
- */
- long getIntValue();
-
- /**
- * optional uint64 uint_value = 5;
- *
- * @return Whether the uintValue field is set.
- */
- boolean hasUintValue();
-
- /**
- * optional uint64 uint_value = 5;
- *
- * @return The uintValue.
- */
- long getUintValue();
-
- /**
- * optional sint64 sint_value = 6;
- *
- * @return Whether the sintValue field is set.
- */
- boolean hasSintValue();
-
- /**
- * optional sint64 sint_value = 6;
- *
- * @return The sintValue.
- */
- long getSintValue();
-
- /**
- * optional bool bool_value = 7;
- *
- * @return Whether the boolValue field is set.
- */
- boolean hasBoolValue();
-
- /**
- * optional bool bool_value = 7;
- *
- * @return The boolValue.
- */
- boolean getBoolValue();
- }
- /**
- *
- * Variant type encoding
- * The use of values is described in section 4.1 of the specification
- *
- *
- * Protobuf type {@code vector_tile.Tile.Value}
- */
- public static final class Value extends
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage implements
- // @@protoc_insertion_point(message_implements:vector_tile.Tile.Value)
- ValueOrBuilder {
- private static final long serialVersionUID = 0L;
-
- // Use Value.newBuilder() to construct.
- private Value(
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) {
- super(builder);
- }
-
- private Value() {
- stringValue_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Value();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private Value(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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;
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- stringValue_ = bs;
- break;
- }
- case 21: {
- bitField0_ |= 0x00000002;
- floatValue_ = input.readFloat();
- break;
- }
- case 25: {
- bitField0_ |= 0x00000004;
- doubleValue_ = input.readDouble();
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- intValue_ = input.readInt64();
- break;
- }
- case 40: {
- bitField0_ |= 0x00000010;
- uintValue_ = input.readUInt64();
- break;
- }
- case 48: {
- bitField0_ |= 0x00000020;
- sintValue_ = input.readSInt64();
- break;
- }
- case 56: {
- bitField0_ |= 0x00000040;
- boolValue_ = input.readBool();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return vector_tile.VectorTileProto.internal_static_vector_tile_Tile_Value_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return vector_tile.VectorTileProto.internal_static_vector_tile_Tile_Value_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- vector_tile.VectorTileProto.Tile.Value.class, vector_tile.VectorTileProto.Tile.Value.Builder.class);
- }
-
- private int bitField0_;
- public static final int STRING_VALUE_FIELD_NUMBER = 1;
- private volatile java.lang.Object stringValue_;
-
- /**
- *
- * Exactly one of these values must be present in a valid message
- *
- *
- * optional string string_value = 1;
- *
- * @return Whether the stringValue field is set.
- */
- @java.lang.Override
- public boolean hasStringValue() {
- return ((bitField0_ & 0x00000001) != 0);
- }
-
- /**
- *
- * Exactly one of these values must be present in a valid message
- *
- *
- * optional string string_value = 1;
- *
- * @return The stringValue.
- */
- @java.lang.Override
- public java.lang.String getStringValue() {
- java.lang.Object ref = stringValue_;
- 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()) {
- stringValue_ = s;
- }
- return s;
- }
- }
-
- /**
- *
- * Exactly one of these values must be present in a valid message
- *
- *
- * optional string string_value = 1;
- *
- * @return The bytes for stringValue.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getStringValueBytes() {
- java.lang.Object ref = stringValue_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- stringValue_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int FLOAT_VALUE_FIELD_NUMBER = 2;
- private float floatValue_;
-
- /**
- * optional float float_value = 2;
- *
- * @return Whether the floatValue field is set.
- */
- @java.lang.Override
- public boolean hasFloatValue() {
- return ((bitField0_ & 0x00000002) != 0);
- }
-
- /**
- * optional float float_value = 2;
- *
- * @return The floatValue.
- */
- @java.lang.Override
- public float getFloatValue() {
- return floatValue_;
- }
-
- public static final int DOUBLE_VALUE_FIELD_NUMBER = 3;
- private double doubleValue_;
-
- /**
- * optional double double_value = 3;
- *
- * @return Whether the doubleValue field is set.
- */
- @java.lang.Override
- public boolean hasDoubleValue() {
- return ((bitField0_ & 0x00000004) != 0);
- }
-
- /**
- * optional double double_value = 3;
- *
- * @return The doubleValue.
- */
- @java.lang.Override
- public double getDoubleValue() {
- return doubleValue_;
- }
-
- public static final int INT_VALUE_FIELD_NUMBER = 4;
- private long intValue_;
-
- /**
- * optional int64 int_value = 4;
- *
- * @return Whether the intValue field is set.
- */
- @java.lang.Override
- public boolean hasIntValue() {
- return ((bitField0_ & 0x00000008) != 0);
- }
-
- /**
- * optional int64 int_value = 4;
- *
- * @return The intValue.
- */
- @java.lang.Override
- public long getIntValue() {
- return intValue_;
- }
-
- public static final int UINT_VALUE_FIELD_NUMBER = 5;
- private long uintValue_;
-
- /**
- * optional uint64 uint_value = 5;
- *
- * @return Whether the uintValue field is set.
- */
- @java.lang.Override
- public boolean hasUintValue() {
- return ((bitField0_ & 0x00000010) != 0);
- }
-
- /**
- * optional uint64 uint_value = 5;
- *
- * @return The uintValue.
- */
- @java.lang.Override
- public long getUintValue() {
- return uintValue_;
- }
-
- public static final int SINT_VALUE_FIELD_NUMBER = 6;
- private long sintValue_;
-
- /**
- * optional sint64 sint_value = 6;
- *
- * @return Whether the sintValue field is set.
- */
- @java.lang.Override
- public boolean hasSintValue() {
- return ((bitField0_ & 0x00000020) != 0);
- }
-
- /**
- * optional sint64 sint_value = 6;
- *
- * @return The sintValue.
- */
- @java.lang.Override
- public long getSintValue() {
- return sintValue_;
- }
-
- public static final int BOOL_VALUE_FIELD_NUMBER = 7;
- private boolean boolValue_;
-
- /**
- * optional bool bool_value = 7;
- *
- * @return Whether the boolValue field is set.
- */
- @java.lang.Override
- public boolean hasBoolValue() {
- return ((bitField0_ & 0x00000040) != 0);
- }
-
- /**
- * optional bool bool_value = 7;
- *
- * @return The boolValue.
- */
- @java.lang.Override
- public boolean getBoolValue() {
- return boolValue_;
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1)
- return true;
- if (isInitialized == 0)
- return false;
-
- if (!extensionsAreInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWriter extensionWriter =
- newExtensionWriter();
- if (((bitField0_ & 0x00000001) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stringValue_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeFloat(2, floatValue_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeDouble(3, doubleValue_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeInt64(4, intValue_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeUInt64(5, uintValue_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- output.writeSInt64(6, sintValue_);
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- output.writeBool(7, boolValue_);
- }
- extensionWriter.writeUntil(536870912, output);
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1)
- return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, stringValue_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, floatValue_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(3, doubleValue_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(4, intValue_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(5, uintValue_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(6, sintValue_);
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(7, boolValue_);
- }
- size += extensionsSerializedSize();
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof vector_tile.VectorTileProto.Tile.Value)) {
- return super.equals(obj);
- }
- vector_tile.VectorTileProto.Tile.Value other = (vector_tile.VectorTileProto.Tile.Value) obj;
-
- if (hasStringValue() != other.hasStringValue())
- return false;
- if (hasStringValue()) {
- if (!getStringValue()
- .equals(other.getStringValue()))
- return false;
- }
- if (hasFloatValue() != other.hasFloatValue())
- return false;
- if (hasFloatValue()) {
- if (java.lang.Float.floatToIntBits(getFloatValue()) != java.lang.Float.floatToIntBits(
- other.getFloatValue()))
- return false;
- }
- if (hasDoubleValue() != other.hasDoubleValue())
- return false;
- if (hasDoubleValue()) {
- if (java.lang.Double.doubleToLongBits(getDoubleValue()) != java.lang.Double.doubleToLongBits(
- other.getDoubleValue()))
- return false;
- }
- if (hasIntValue() != other.hasIntValue())
- return false;
- if (hasIntValue()) {
- if (getIntValue() != other.getIntValue())
- return false;
- }
- if (hasUintValue() != other.hasUintValue())
- return false;
- if (hasUintValue()) {
- if (getUintValue() != other.getUintValue())
- return false;
- }
- if (hasSintValue() != other.hasSintValue())
- return false;
- if (hasSintValue()) {
- if (getSintValue() != other.getSintValue())
- return false;
- }
- if (hasBoolValue() != other.hasBoolValue())
- return false;
- if (hasBoolValue()) {
- if (getBoolValue() != other.getBoolValue())
- return false;
- }
- if (!unknownFields.equals(other.unknownFields))
- return false;
- if (!getExtensionFields().equals(other.getExtensionFields()))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasStringValue()) {
- hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getStringValue().hashCode();
- }
- if (hasFloatValue()) {
- hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + java.lang.Float.floatToIntBits(
- getFloatValue());
- }
- if (hasDoubleValue()) {
- hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getDoubleValue()));
- }
- if (hasIntValue()) {
- hash = (37 * hash) + INT_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getIntValue());
- }
- if (hasUintValue()) {
- hash = (37 * hash) + UINT_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getUintValue());
- }
- if (hasSintValue()) {
- hash = (37 * hash) + SINT_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getSintValue());
- }
- if (hasBoolValue()) {
- hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getBoolValue());
- }
- hash = hashFields(hash, getExtensionFields());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
-
- public static vector_tile.VectorTileProto.Tile.Value parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(vector_tile.VectorTileProto.Tile.Value prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- *
- * Variant type encoding
- * The use of values is described in section 4.1 of the specification
- *
- *
- * Protobuf type {@code vector_tile.Tile.Value}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder
- implements
- // @@protoc_insertion_point(builder_implements:vector_tile.Tile.Value)
- vector_tile.VectorTileProto.Tile.ValueOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return vector_tile.VectorTileProto.internal_static_vector_tile_Tile_Value_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
- return vector_tile.VectorTileProto.internal_static_vector_tile_Tile_Value_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- vector_tile.VectorTileProto.Tile.Value.class, vector_tile.VectorTileProto.Tile.Value.Builder.class);
- }
-
- // Construct using vector_tile.VectorTileProto.Tile.Value.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- }
- }
-
- @java.lang.Override
- public Builder clear() {
- super.clear();
- stringValue_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- floatValue_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000002);
- doubleValue_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000004);
- intValue_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- uintValue_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
- sintValue_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000020);
- boolValue_ = false;
- bitField0_ = (bitField0_ & ~0x00000040);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return vector_tile.VectorTileProto.internal_static_vector_tile_Tile_Value_descriptor;
- }
-
- @java.lang.Override
- public vector_tile.VectorTileProto.Tile.Value getDefaultInstanceForType() {
- return vector_tile.VectorTileProto.Tile.Value.getDefaultInstance();
- }
-
- @java.lang.Override
- public vector_tile.VectorTileProto.Tile.Value build() {
- vector_tile.VectorTileProto.Tile.Value result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public vector_tile.VectorTileProto.Tile.Value buildPartial() {
- vector_tile.VectorTileProto.Tile.Value result = new vector_tile.VectorTileProto.Tile.Value(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- to_bitField0_ |= 0x00000001;
- }
- result.stringValue_ = stringValue_;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.floatValue_ = floatValue_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.doubleValue_ = doubleValue_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.intValue_ = intValue_;
- to_bitField0_ |= 0x00000008;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.uintValue_ = uintValue_;
- to_bitField0_ |= 0x00000010;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.sintValue_ = sintValue_;
- to_bitField0_ |= 0x00000020;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.boolValue_ = boolValue_;
- to_bitField0_ |= 0x00000040;
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
-
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
-
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
-
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
-
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
-
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
-
- @java.lang.Override
- public Builder setExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension extension,
- Type value) {
- return super.setExtension(extension, value);
- }
-
- @java.lang.Override
- public Builder setExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension> extension,
- int index, Type value) {
- return super.setExtension(extension, index, value);
- }
-
- @java.lang.Override
- public Builder addExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension> extension,
- Type value) {
- return super.addExtension(extension, value);
- }
-
- @java.lang.Override
- public Builder clearExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension extension) {
- return super.clearExtension(extension);
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof vector_tile.VectorTileProto.Tile.Value) {
- return mergeFrom((vector_tile.VectorTileProto.Tile.Value) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(vector_tile.VectorTileProto.Tile.Value other) {
- if (other == vector_tile.VectorTileProto.Tile.Value.getDefaultInstance())
- return this;
- if (other.hasStringValue()) {
- bitField0_ |= 0x00000001;
- stringValue_ = other.stringValue_;
- onChanged();
- }
- if (other.hasFloatValue()) {
- setFloatValue(other.getFloatValue());
- }
- if (other.hasDoubleValue()) {
- setDoubleValue(other.getDoubleValue());
- }
- if (other.hasIntValue()) {
- setIntValue(other.getIntValue());
- }
- if (other.hasUintValue()) {
- setUintValue(other.getUintValue());
- }
- if (other.hasSintValue()) {
- setSintValue(other.getSintValue());
- }
- if (other.hasBoolValue()) {
- setBoolValue(other.getBoolValue());
- }
- this.mergeExtensionFields(other);
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!extensionsAreInitialized()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- vector_tile.VectorTileProto.Tile.Value parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (vector_tile.VectorTileProto.Tile.Value) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private java.lang.Object stringValue_ = "";
-
- /**
- *