All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.baremaps.osm.binary.Osmformat Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: osmformat.proto
// Protobuf Java Version: 4.28.0

package org.apache.baremaps.osm.binary;

public final class Osmformat {
  private Osmformat() {}
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 28,
      /* patch= */ 0,
      /* suffix= */ "",
      Osmformat.class.getName());
  }
  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.
     */
    org.apache.baremaps.osm.binary.Osmformat.HeaderBBox getBbox();
    /**
     * optional .OSMPBF.HeaderBBox bbox = 1;
     */
    org.apache.baremaps.osm.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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.HeaderBlock) HeaderBlockOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", HeaderBlock.class.getName()); } // Use HeaderBlock.newBuilder() to construct. private HeaderBlock(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private HeaderBlock() { requiredFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); optionalFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); writingprogram_ = ""; source_ = ""; osmosisReplicationBaseUrl_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_HeaderBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_HeaderBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.HeaderBlock.class, org.apache.baremaps.osm.binary.Osmformat.HeaderBlock.Builder.class); } private int bitField0_; public static final int BBOX_FIELD_NUMBER = 1; private org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.HeaderBBox getBbox() { return bbox_ == null ? org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.getDefaultInstance() : bbox_; } /** * optional .OSMPBF.HeaderBBox bbox = 1; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.HeaderBBoxOrBuilder getBboxOrBuilder() { return bbox_ == null ? org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.getDefaultInstance() : bbox_; } public static final int REQUIRED_FEATURES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList requiredFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList optionalFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * 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; @SuppressWarnings("serial") 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; @SuppressWarnings("serial") 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_ = 0L; /** *
     * 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_ = 0L; /** *
     * 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; @SuppressWarnings("serial") 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.GeneratedMessage.writeString(output, 4, requiredFeatures_.getRaw(i)); } for (int i = 0; i < optionalFeatures_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 5, optionalFeatures_.getRaw(i)); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 16, writingprogram_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.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.GeneratedMessage.writeString(output, 34, osmosisReplicationBaseUrl_); } getUnknownFields().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.GeneratedMessage.computeStringSize(16, writingprogram_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.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.GeneratedMessage.computeStringSize(34, osmosisReplicationBaseUrl_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.HeaderBlock)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.HeaderBlock other = (org.apache.baremaps.osm.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBlock parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.HeaderBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.HeaderBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBlock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBlock parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBlock parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBlock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBlock parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBlock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBlock parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code OSMPBF.HeaderBlock} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.HeaderBlock) org.apache.baremaps.osm.binary.Osmformat.HeaderBlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_HeaderBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_HeaderBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.HeaderBlock.class, org.apache.baremaps.osm.binary.Osmformat.HeaderBlock.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.HeaderBlock.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getBboxFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bbox_ = null; if (bboxBuilder_ != null) { bboxBuilder_.dispose(); bboxBuilder_ = null; } requiredFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); optionalFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); writingprogram_ = ""; source_ = ""; osmosisReplicationTimestamp_ = 0L; osmosisReplicationSequenceNumber_ = 0L; osmosisReplicationBaseUrl_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_HeaderBlock_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.HeaderBlock getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.HeaderBlock.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.HeaderBlock build() { org.apache.baremaps.osm.binary.Osmformat.HeaderBlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.HeaderBlock buildPartial() { org.apache.baremaps.osm.binary.Osmformat.HeaderBlock result = new org.apache.baremaps.osm.binary.Osmformat.HeaderBlock(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.HeaderBlock result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.bbox_ = bboxBuilder_ == null ? bbox_ : bboxBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { requiredFeatures_.makeImmutable(); result.requiredFeatures_ = requiredFeatures_; } if (((from_bitField0_ & 0x00000004) != 0)) { optionalFeatures_.makeImmutable(); result.optionalFeatures_ = optionalFeatures_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.writingprogram_ = writingprogram_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.source_ = source_; to_bitField0_ |= 0x00000004; } 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)) { result.osmosisReplicationBaseUrl_ = osmosisReplicationBaseUrl_; to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.HeaderBlock) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.HeaderBlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.HeaderBlock other) { if (other == org.apache.baremaps.osm.binary.Osmformat.HeaderBlock.getDefaultInstance()) return this; if (other.hasBbox()) { mergeBbox(other.getBbox()); } if (!other.requiredFeatures_.isEmpty()) { if (requiredFeatures_.isEmpty()) { requiredFeatures_ = other.requiredFeatures_; bitField0_ |= 0x00000002; } else { ensureRequiredFeaturesIsMutable(); requiredFeatures_.addAll(other.requiredFeatures_); } onChanged(); } if (!other.optionalFeatures_.isEmpty()) { if (optionalFeatures_.isEmpty()) { optionalFeatures_ = other.optionalFeatures_; bitField0_ |= 0x00000004; } else { ensureOptionalFeaturesIsMutable(); optionalFeatures_.addAll(other.optionalFeatures_); } onChanged(); } if (other.hasWritingprogram()) { writingprogram_ = other.writingprogram_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasSource()) { source_ = other.source_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasOsmosisReplicationTimestamp()) { setOsmosisReplicationTimestamp(other.getOsmosisReplicationTimestamp()); } if (other.hasOsmosisReplicationSequenceNumber()) { setOsmosisReplicationSequenceNumber(other.getOsmosisReplicationSequenceNumber()); } if (other.hasOsmosisReplicationBaseUrl()) { osmosisReplicationBaseUrl_ = other.osmosisReplicationBaseUrl_; bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getBboxFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 34: { com.google.protobuf.ByteString bs = input.readBytes(); ensureRequiredFeaturesIsMutable(); requiredFeatures_.add(bs); break; } // case 34 case 42: { com.google.protobuf.ByteString bs = input.readBytes(); ensureOptionalFeaturesIsMutable(); optionalFeatures_.add(bs); break; } // case 42 case 130: { writingprogram_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 130 case 138: { source_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 138 case 256: { osmosisReplicationTimestamp_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 256 case 264: { osmosisReplicationSequenceNumber_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 264 case 274: { osmosisReplicationBaseUrl_ = input.readBytes(); bitField0_ |= 0x00000080; break; } // case 274 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.apache.baremaps.osm.binary.Osmformat.HeaderBBox bbox_; private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.HeaderBBox, org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.Builder, org.apache.baremaps.osm.binary.Osmformat.HeaderBBoxOrBuilder> 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 org.apache.baremaps.osm.binary.Osmformat.HeaderBBox getBbox() { if (bboxBuilder_ == null) { return bbox_ == null ? org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.getDefaultInstance() : bbox_; } else { return bboxBuilder_.getMessage(); } } /** * optional .OSMPBF.HeaderBBox bbox = 1; */ public Builder setBbox(org.apache.baremaps.osm.binary.Osmformat.HeaderBBox value) { if (bboxBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bbox_ = value; } else { bboxBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .OSMPBF.HeaderBBox bbox = 1; */ public Builder setBbox( org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.Builder builderForValue) { if (bboxBuilder_ == null) { bbox_ = builderForValue.build(); } else { bboxBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional .OSMPBF.HeaderBBox bbox = 1; */ public Builder mergeBbox(org.apache.baremaps.osm.binary.Osmformat.HeaderBBox value) { if (bboxBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && bbox_ != null && bbox_ != org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.getDefaultInstance()) { getBboxBuilder().mergeFrom(value); } else { bbox_ = value; } } else { bboxBuilder_.mergeFrom(value); } if (bbox_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * optional .OSMPBF.HeaderBBox bbox = 1; */ public Builder clearBbox() { bitField0_ = (bitField0_ & ~0x00000001); bbox_ = null; if (bboxBuilder_ != null) { bboxBuilder_.dispose(); bboxBuilder_ = null; } onChanged(); return this; } /** * optional .OSMPBF.HeaderBBox bbox = 1; */ public org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.Builder getBboxBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBboxFieldBuilder().getBuilder(); } /** * optional .OSMPBF.HeaderBBox bbox = 1; */ public org.apache.baremaps.osm.binary.Osmformat.HeaderBBoxOrBuilder getBboxOrBuilder() { if (bboxBuilder_ != null) { return bboxBuilder_.getMessageOrBuilder(); } else { return bbox_ == null ? org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.getDefaultInstance() : bbox_; } } /** * optional .OSMPBF.HeaderBBox bbox = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.HeaderBBox, org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.Builder, org.apache.baremaps.osm.binary.Osmformat.HeaderBBoxOrBuilder> getBboxFieldBuilder() { if (bboxBuilder_ == null) { bboxBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.HeaderBBox, org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.Builder, org.apache.baremaps.osm.binary.Osmformat.HeaderBBoxOrBuilder>( getBbox(), getParentForChildren(), isClean()); bbox_ = null; } return bboxBuilder_; } private com.google.protobuf.LazyStringArrayList requiredFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRequiredFeaturesIsMutable() { if (!requiredFeatures_.isModifiable()) { 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() { requiredFeatures_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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_); bitField0_ |= 0x00000002; 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.emptyList(); 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); bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList optionalFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureOptionalFeaturesIsMutable() { if (!optionalFeatures_.isModifiable()) { 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() { optionalFeatures_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000004; 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); bitField0_ |= 0x00000004; 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_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * repeated string optional_features = 5; * @return This builder for chaining. */ public Builder clearOptionalFeatures() { optionalFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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); bitField0_ |= 0x00000004; 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(); } writingprogram_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional string writingprogram = 16; * @return This builder for chaining. */ public Builder clearWritingprogram() { writingprogram_ = getDefaultInstance().getWritingprogram(); bitField0_ = (bitField0_ & ~0x00000008); 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(); } writingprogram_ = value; bitField0_ |= 0x00000008; 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(); } source_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * From the bbox field.
       * 
* * optional string source = 17; * @return This builder for chaining. */ public Builder clearSource() { source_ = getDefaultInstance().getSource(); bitField0_ = (bitField0_ & ~0x00000010); 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(); } source_ = value; bitField0_ |= 0x00000010; 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) { osmosisReplicationTimestamp_ = value; bitField0_ |= 0x00000020; 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) { osmosisReplicationSequenceNumber_ = value; bitField0_ |= 0x00000040; 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(); } osmosisReplicationBaseUrl_ = value; bitField0_ |= 0x00000080; 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() { osmosisReplicationBaseUrl_ = getDefaultInstance().getOsmosisReplicationBaseUrl(); bitField0_ = (bitField0_ & ~0x00000080); 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(); } osmosisReplicationBaseUrl_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBlock) } // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBlock) private static final org.apache.baremaps.osm.binary.Osmformat.HeaderBlock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.HeaderBlock(); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBlock getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.HeaderBBox) HeaderBBoxOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", HeaderBBox.class.getName()); } // Use HeaderBBox.newBuilder() to construct. private HeaderBBox(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private HeaderBBox() { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_HeaderBBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_HeaderBBox_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.class, org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.Builder.class); } private int bitField0_; public static final int LEFT_FIELD_NUMBER = 1; private long left_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_ = 0L; /** * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.HeaderBBox)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.HeaderBBox other = (org.apache.baremaps.osm.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBBox parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.HeaderBBox parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.HeaderBBox parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBBox parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBBox parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBBox parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBBox parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBBox parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBBox parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBBox parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code OSMPBF.HeaderBBox} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.HeaderBBox) org.apache.baremaps.osm.binary.Osmformat.HeaderBBoxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_HeaderBBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_HeaderBBox_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.class, org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; left_ = 0L; right_ = 0L; top_ = 0L; bottom_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_HeaderBBox_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.HeaderBBox getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.HeaderBBox.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.HeaderBBox build() { org.apache.baremaps.osm.binary.Osmformat.HeaderBBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.HeaderBBox buildPartial() { org.apache.baremaps.osm.binary.Osmformat.HeaderBBox result = new org.apache.baremaps.osm.binary.Osmformat.HeaderBBox(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.HeaderBBox result) { 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_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.HeaderBBox) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.HeaderBBox)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.HeaderBBox other) { if (other == org.apache.baremaps.osm.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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { left_ = input.readSInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { right_ = input.readSInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { top_ = input.readSInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { bottom_ = input.readSInt64(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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) { left_ = value; bitField0_ |= 0x00000001; 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) { right_ = value; bitField0_ |= 0x00000002; 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) { top_ = value; bitField0_ |= 0x00000004; 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) { bottom_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * required sint64 bottom = 4; * @return This builder for chaining. */ public Builder clearBottom() { bitField0_ = (bitField0_ & ~0x00000008); bottom_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OSMPBF.HeaderBBox) } // @@protoc_insertion_point(class_scope:OSMPBF.HeaderBBox) private static final org.apache.baremaps.osm.binary.Osmformat.HeaderBBox DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.HeaderBBox(); } public static org.apache.baremaps.osm.binary.Osmformat.HeaderBBox getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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. */ org.apache.baremaps.osm.binary.Osmformat.StringTable getStringtable(); /** * required .OSMPBF.StringTable stringtable = 1; */ org.apache.baremaps.osm.binary.Osmformat.StringTableOrBuilder getStringtableOrBuilder(); /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ java.util.List getPrimitivegroupList(); /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index); /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ int getPrimitivegroupCount(); /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ java.util.List getPrimitivegroupOrBuilderList(); /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroupOrBuilder getPrimitivegroupOrBuilder( 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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.PrimitiveBlock) PrimitiveBlockOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", PrimitiveBlock.class.getName()); } // Use PrimitiveBlock.newBuilder() to construct. private PrimitiveBlock(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private PrimitiveBlock() { primitivegroup_ = java.util.Collections.emptyList(); granularity_ = 100; dateGranularity_ = 1000; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_PrimitiveBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_PrimitiveBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock.class, org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock.Builder.class); } private int bitField0_; public static final int STRINGTABLE_FIELD_NUMBER = 1; private org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.StringTable getStringtable() { return stringtable_ == null ? org.apache.baremaps.osm.binary.Osmformat.StringTable.getDefaultInstance() : stringtable_; } /** * required .OSMPBF.StringTable stringtable = 1; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.StringTableOrBuilder getStringtableOrBuilder() { return stringtable_ == null ? org.apache.baremaps.osm.binary.Osmformat.StringTable.getDefaultInstance() : stringtable_; } public static final int PRIMITIVEGROUP_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List primitivegroup_; /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ @java.lang.Override public java.util.List getPrimitivegroupList() { return primitivegroup_; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ @java.lang.Override public java.util.List getPrimitivegroupOrBuilderList() { return primitivegroup_; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ @java.lang.Override public int getPrimitivegroupCount() { return primitivegroup_.size(); } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { return primitivegroup_.get(index); } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroupOrBuilder getPrimitivegroupOrBuilder( int index) { return primitivegroup_.get(index); } public static final int GRANULARITY_FIELD_NUMBER = 17; 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_ & 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_ = 0L; /** *
     * 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_ = 0L; /** * 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_ = 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_ & 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; } for (int i = 0; i < getPrimitivegroupCount(); i++) { if (!getPrimitivegroup(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 { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStringtable()); } for (int i = 0; i < primitivegroup_.size(); i++) { output.writeMessage(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_); } getUnknownFields().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()); } for (int i = 0; i < primitivegroup_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, primitivegroup_.get(i)); } 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock other = (org.apache.baremaps.osm.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code OSMPBF.PrimitiveBlock} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.PrimitiveBlock) org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_PrimitiveBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_PrimitiveBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock.class, org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getStringtableFieldBuilder(); getPrimitivegroupFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; stringtable_ = null; if (stringtableBuilder_ != null) { stringtableBuilder_.dispose(); stringtableBuilder_ = null; } if (primitivegroupBuilder_ == null) { primitivegroup_ = java.util.Collections.emptyList(); } else { primitivegroup_ = null; primitivegroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); granularity_ = 100; latOffset_ = 0L; lonOffset_ = 0L; dateGranularity_ = 1000; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_PrimitiveBlock_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock build() { org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock buildPartial() { org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock result = new org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock result) { if (primitivegroupBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { primitivegroup_ = java.util.Collections.unmodifiableList(primitivegroup_); bitField0_ = (bitField0_ & ~0x00000002); } result.primitivegroup_ = primitivegroup_; } else { result.primitivegroup_ = primitivegroupBuilder_.build(); } } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.stringtable_ = stringtableBuilder_ == null ? stringtable_ : stringtableBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.granularity_ = granularity_; to_bitField0_ |= 0x00000002; } 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)) { result.dateGranularity_ = dateGranularity_; to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock other) { if (other == org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock.getDefaultInstance()) return this; if (other.hasStringtable()) { mergeStringtable(other.getStringtable()); } if (primitivegroupBuilder_ == null) { if (!other.primitivegroup_.isEmpty()) { if (primitivegroup_.isEmpty()) { primitivegroup_ = other.primitivegroup_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePrimitivegroupIsMutable(); primitivegroup_.addAll(other.primitivegroup_); } onChanged(); } } else { if (!other.primitivegroup_.isEmpty()) { if (primitivegroupBuilder_.isEmpty()) { primitivegroupBuilder_.dispose(); primitivegroupBuilder_ = null; primitivegroup_ = other.primitivegroup_; bitField0_ = (bitField0_ & ~0x00000002); primitivegroupBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPrimitivegroupFieldBuilder() : null; } else { primitivegroupBuilder_.addAllMessages(other.primitivegroup_); } } } 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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasStringtable()) { return false; } for (int i = 0; i < getPrimitivegroupCount(); i++) { if (!getPrimitivegroup(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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getStringtableFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup m = input.readMessage( org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.parser(), extensionRegistry); if (primitivegroupBuilder_ == null) { ensurePrimitivegroupIsMutable(); primitivegroup_.add(m); } else { primitivegroupBuilder_.addMessage(m); } break; } // case 18 case 136: { granularity_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 136 case 144: { dateGranularity_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 144 case 152: { latOffset_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 152 case 160: { lonOffset_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.apache.baremaps.osm.binary.Osmformat.StringTable stringtable_; private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.StringTable, org.apache.baremaps.osm.binary.Osmformat.StringTable.Builder, org.apache.baremaps.osm.binary.Osmformat.StringTableOrBuilder> 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 org.apache.baremaps.osm.binary.Osmformat.StringTable getStringtable() { if (stringtableBuilder_ == null) { return stringtable_ == null ? org.apache.baremaps.osm.binary.Osmformat.StringTable.getDefaultInstance() : stringtable_; } else { return stringtableBuilder_.getMessage(); } } /** * required .OSMPBF.StringTable stringtable = 1; */ public Builder setStringtable(org.apache.baremaps.osm.binary.Osmformat.StringTable value) { if (stringtableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stringtable_ = value; } else { stringtableBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .OSMPBF.StringTable stringtable = 1; */ public Builder setStringtable( org.apache.baremaps.osm.binary.Osmformat.StringTable.Builder builderForValue) { if (stringtableBuilder_ == null) { stringtable_ = builderForValue.build(); } else { stringtableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * required .OSMPBF.StringTable stringtable = 1; */ public Builder mergeStringtable(org.apache.baremaps.osm.binary.Osmformat.StringTable value) { if (stringtableBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && stringtable_ != null && stringtable_ != org.apache.baremaps.osm.binary.Osmformat.StringTable.getDefaultInstance()) { getStringtableBuilder().mergeFrom(value); } else { stringtable_ = value; } } else { stringtableBuilder_.mergeFrom(value); } if (stringtable_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * required .OSMPBF.StringTable stringtable = 1; */ public Builder clearStringtable() { bitField0_ = (bitField0_ & ~0x00000001); stringtable_ = null; if (stringtableBuilder_ != null) { stringtableBuilder_.dispose(); stringtableBuilder_ = null; } onChanged(); return this; } /** * required .OSMPBF.StringTable stringtable = 1; */ public org.apache.baremaps.osm.binary.Osmformat.StringTable.Builder getStringtableBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStringtableFieldBuilder().getBuilder(); } /** * required .OSMPBF.StringTable stringtable = 1; */ public org.apache.baremaps.osm.binary.Osmformat.StringTableOrBuilder getStringtableOrBuilder() { if (stringtableBuilder_ != null) { return stringtableBuilder_.getMessageOrBuilder(); } else { return stringtable_ == null ? org.apache.baremaps.osm.binary.Osmformat.StringTable.getDefaultInstance() : stringtable_; } } /** * required .OSMPBF.StringTable stringtable = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.StringTable, org.apache.baremaps.osm.binary.Osmformat.StringTable.Builder, org.apache.baremaps.osm.binary.Osmformat.StringTableOrBuilder> getStringtableFieldBuilder() { if (stringtableBuilder_ == null) { stringtableBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.StringTable, org.apache.baremaps.osm.binary.Osmformat.StringTable.Builder, org.apache.baremaps.osm.binary.Osmformat.StringTableOrBuilder>( 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; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroupOrBuilder> primitivegroupBuilder_; /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public java.util.List getPrimitivegroupList() { if (primitivegroupBuilder_ == null) { return java.util.Collections.unmodifiableList(primitivegroup_); } else { return primitivegroupBuilder_.getMessageList(); } } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public int getPrimitivegroupCount() { if (primitivegroupBuilder_ == null) { return primitivegroup_.size(); } else { return primitivegroupBuilder_.getCount(); } } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup getPrimitivegroup(int index) { if (primitivegroupBuilder_ == null) { return primitivegroup_.get(index); } else { return primitivegroupBuilder_.getMessage(index); } } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public Builder setPrimitivegroup( int index, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup value) { if (primitivegroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrimitivegroupIsMutable(); primitivegroup_.set(index, value); onChanged(); } else { primitivegroupBuilder_.setMessage(index, value); } return this; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public Builder setPrimitivegroup( int index, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { if (primitivegroupBuilder_ == null) { ensurePrimitivegroupIsMutable(); primitivegroup_.set(index, builderForValue.build()); onChanged(); } else { primitivegroupBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public Builder addPrimitivegroup(org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup value) { if (primitivegroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrimitivegroupIsMutable(); primitivegroup_.add(value); onChanged(); } else { primitivegroupBuilder_.addMessage(value); } return this; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public Builder addPrimitivegroup( int index, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup value) { if (primitivegroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePrimitivegroupIsMutable(); primitivegroup_.add(index, value); onChanged(); } else { primitivegroupBuilder_.addMessage(index, value); } return this; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public Builder addPrimitivegroup( org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { if (primitivegroupBuilder_ == null) { ensurePrimitivegroupIsMutable(); primitivegroup_.add(builderForValue.build()); onChanged(); } else { primitivegroupBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public Builder addPrimitivegroup( int index, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder builderForValue) { if (primitivegroupBuilder_ == null) { ensurePrimitivegroupIsMutable(); primitivegroup_.add(index, builderForValue.build()); onChanged(); } else { primitivegroupBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public Builder addAllPrimitivegroup( java.lang.Iterable values) { if (primitivegroupBuilder_ == null) { ensurePrimitivegroupIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, primitivegroup_); onChanged(); } else { primitivegroupBuilder_.addAllMessages(values); } return this; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public Builder clearPrimitivegroup() { if (primitivegroupBuilder_ == null) { primitivegroup_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { primitivegroupBuilder_.clear(); } return this; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public Builder removePrimitivegroup(int index) { if (primitivegroupBuilder_ == null) { ensurePrimitivegroupIsMutable(); primitivegroup_.remove(index); onChanged(); } else { primitivegroupBuilder_.remove(index); } return this; } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder getPrimitivegroupBuilder( int index) { return getPrimitivegroupFieldBuilder().getBuilder(index); } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroupOrBuilder getPrimitivegroupOrBuilder( int index) { if (primitivegroupBuilder_ == null) { return primitivegroup_.get(index); } else { return primitivegroupBuilder_.getMessageOrBuilder(index); } } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public java.util.List getPrimitivegroupOrBuilderList() { if (primitivegroupBuilder_ != null) { return primitivegroupBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(primitivegroup_); } } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder addPrimitivegroupBuilder() { return getPrimitivegroupFieldBuilder().addBuilder( org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.getDefaultInstance()); } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder addPrimitivegroupBuilder( int index) { return getPrimitivegroupFieldBuilder().addBuilder( index, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.getDefaultInstance()); } /** * repeated .OSMPBF.PrimitiveGroup primitivegroup = 2; */ public java.util.List getPrimitivegroupBuilderList() { return getPrimitivegroupFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroupOrBuilder> getPrimitivegroupFieldBuilder() { if (primitivegroupBuilder_ == null) { primitivegroupBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroupOrBuilder>( primitivegroup_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); primitivegroup_ = null; } return primitivegroupBuilder_; } 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) { granularity_ = value; bitField0_ |= 0x00000004; 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) { latOffset_ = value; bitField0_ |= 0x00000008; 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) { lonOffset_ = value; bitField0_ |= 0x00000010; 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) { dateGranularity_ = value; bitField0_ |= 0x00000020; 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; } // @@protoc_insertion_point(builder_scope:OSMPBF.PrimitiveBlock) } // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveBlock) private static final org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock(); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveBlock getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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; */ org.apache.baremaps.osm.binary.Osmformat.Node getNodes(int index); /** * repeated .OSMPBF.Node nodes = 1; */ int getNodesCount(); /** * repeated .OSMPBF.Node nodes = 1; */ java.util.List getNodesOrBuilderList(); /** * repeated .OSMPBF.Node nodes = 1; */ org.apache.baremaps.osm.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. */ org.apache.baremaps.osm.binary.Osmformat.DenseNodes getDense(); /** * optional .OSMPBF.DenseNodes dense = 2; */ org.apache.baremaps.osm.binary.Osmformat.DenseNodesOrBuilder getDenseOrBuilder(); /** * repeated .OSMPBF.Way ways = 3; */ java.util.List getWaysList(); /** * repeated .OSMPBF.Way ways = 3; */ org.apache.baremaps.osm.binary.Osmformat.Way getWays(int index); /** * repeated .OSMPBF.Way ways = 3; */ int getWaysCount(); /** * repeated .OSMPBF.Way ways = 3; */ java.util.List getWaysOrBuilderList(); /** * repeated .OSMPBF.Way ways = 3; */ org.apache.baremaps.osm.binary.Osmformat.WayOrBuilder getWaysOrBuilder( int index); /** * repeated .OSMPBF.Relation relations = 4; */ java.util.List getRelationsList(); /** * repeated .OSMPBF.Relation relations = 4; */ org.apache.baremaps.osm.binary.Osmformat.Relation getRelations(int index); /** * repeated .OSMPBF.Relation relations = 4; */ int getRelationsCount(); /** * repeated .OSMPBF.Relation relations = 4; */ java.util.List getRelationsOrBuilderList(); /** * repeated .OSMPBF.Relation relations = 4; */ org.apache.baremaps.osm.binary.Osmformat.RelationOrBuilder getRelationsOrBuilder( int index); /** * repeated .OSMPBF.ChangeSet changesets = 5; */ java.util.List getChangesetsList(); /** * repeated .OSMPBF.ChangeSet changesets = 5; */ org.apache.baremaps.osm.binary.Osmformat.ChangeSet getChangesets(int index); /** * repeated .OSMPBF.ChangeSet changesets = 5; */ int getChangesetsCount(); /** * repeated .OSMPBF.ChangeSet changesets = 5; */ java.util.List getChangesetsOrBuilderList(); /** * repeated .OSMPBF.ChangeSet changesets = 5; */ org.apache.baremaps.osm.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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.PrimitiveGroup) PrimitiveGroupOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", PrimitiveGroup.class.getName()); } // Use PrimitiveGroup.newBuilder() to construct. private PrimitiveGroup(com.google.protobuf.GeneratedMessage.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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_PrimitiveGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_PrimitiveGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.class, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder.class); } private int bitField0_; public static final int NODES_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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 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 org.apache.baremaps.osm.binary.Osmformat.Node getNodes(int index) { return nodes_.get(index); } /** * repeated .OSMPBF.Node nodes = 1; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.NodeOrBuilder getNodesOrBuilder( int index) { return nodes_.get(index); } public static final int DENSE_FIELD_NUMBER = 2; private org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.DenseNodes getDense() { return dense_ == null ? org.apache.baremaps.osm.binary.Osmformat.DenseNodes.getDefaultInstance() : dense_; } /** * optional .OSMPBF.DenseNodes dense = 2; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.DenseNodesOrBuilder getDenseOrBuilder() { return dense_ == null ? org.apache.baremaps.osm.binary.Osmformat.DenseNodes.getDefaultInstance() : dense_; } public static final int WAYS_FIELD_NUMBER = 3; @SuppressWarnings("serial") 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 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 org.apache.baremaps.osm.binary.Osmformat.Way getWays(int index) { return ways_.get(index); } /** * repeated .OSMPBF.Way ways = 3; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.WayOrBuilder getWaysOrBuilder( int index) { return ways_.get(index); } public static final int RELATIONS_FIELD_NUMBER = 4; @SuppressWarnings("serial") 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 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 org.apache.baremaps.osm.binary.Osmformat.Relation getRelations(int index) { return relations_.get(index); } /** * repeated .OSMPBF.Relation relations = 4; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.RelationOrBuilder getRelationsOrBuilder( int index) { return relations_.get(index); } public static final int CHANGESETS_FIELD_NUMBER = 5; @SuppressWarnings("serial") 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 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 org.apache.baremaps.osm.binary.Osmformat.ChangeSet getChangesets(int index) { return changesets_.get(index); } /** * repeated .OSMPBF.ChangeSet changesets = 5; */ @java.lang.Override public org.apache.baremaps.osm.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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup other = (org.apache.baremaps.osm.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.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.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.PrimitiveGroup) org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_PrimitiveGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_PrimitiveGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.class, org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getNodesFieldBuilder(); getDenseFieldBuilder(); getWaysFieldBuilder(); getRelationsFieldBuilder(); getChangesetsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (nodesBuilder_ == null) { nodes_ = java.util.Collections.emptyList(); } else { nodes_ = null; nodesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); dense_ = null; if (denseBuilder_ != null) { denseBuilder_.dispose(); denseBuilder_ = null; } if (waysBuilder_ == null) { ways_ = java.util.Collections.emptyList(); } else { ways_ = null; waysBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (relationsBuilder_ == null) { relations_ = java.util.Collections.emptyList(); } else { relations_ = null; relationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (changesetsBuilder_ == null) { changesets_ = java.util.Collections.emptyList(); } else { changesets_ = null; changesetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_PrimitiveGroup_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup build() { org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup buildPartial() { org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup result = new org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup result) { 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 (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(); } } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.dense_ = denseBuilder_ == null ? dense_ : denseBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup other) { if (other == org.apache.baremaps.osm.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.alwaysUseFieldBuilders ? getChangesetsFieldBuilder() : null; } else { changesetsBuilder_.addAllMessages(other.changesets_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.apache.baremaps.osm.binary.Osmformat.Node m = input.readMessage( org.apache.baremaps.osm.binary.Osmformat.Node.parser(), extensionRegistry); if (nodesBuilder_ == null) { ensureNodesIsMutable(); nodes_.add(m); } else { nodesBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getDenseFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { org.apache.baremaps.osm.binary.Osmformat.Way m = input.readMessage( org.apache.baremaps.osm.binary.Osmformat.Way.parser(), extensionRegistry); if (waysBuilder_ == null) { ensureWaysIsMutable(); ways_.add(m); } else { waysBuilder_.addMessage(m); } break; } // case 26 case 34: { org.apache.baremaps.osm.binary.Osmformat.Relation m = input.readMessage( org.apache.baremaps.osm.binary.Osmformat.Relation.parser(), extensionRegistry); if (relationsBuilder_ == null) { ensureRelationsIsMutable(); relations_.add(m); } else { relationsBuilder_.addMessage(m); } break; } // case 34 case 42: { org.apache.baremaps.osm.binary.Osmformat.ChangeSet m = input.readMessage( org.apache.baremaps.osm.binary.Osmformat.ChangeSet.parser(), extensionRegistry); if (changesetsBuilder_ == null) { ensureChangesetsIsMutable(); changesets_.add(m); } else { changesetsBuilder_.addMessage(m); } break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Node, org.apache.baremaps.osm.binary.Osmformat.Node.Builder, org.apache.baremaps.osm.binary.Osmformat.NodeOrBuilder> 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 org.apache.baremaps.osm.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, org.apache.baremaps.osm.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, org.apache.baremaps.osm.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(org.apache.baremaps.osm.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, org.apache.baremaps.osm.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( org.apache.baremaps.osm.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, org.apache.baremaps.osm.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 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 org.apache.baremaps.osm.binary.Osmformat.Node.Builder getNodesBuilder( int index) { return getNodesFieldBuilder().getBuilder(index); } /** * repeated .OSMPBF.Node nodes = 1; */ public org.apache.baremaps.osm.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 getNodesOrBuilderList() { if (nodesBuilder_ != null) { return nodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nodes_); } } /** * repeated .OSMPBF.Node nodes = 1; */ public org.apache.baremaps.osm.binary.Osmformat.Node.Builder addNodesBuilder() { return getNodesFieldBuilder().addBuilder( org.apache.baremaps.osm.binary.Osmformat.Node.getDefaultInstance()); } /** * repeated .OSMPBF.Node nodes = 1; */ public org.apache.baremaps.osm.binary.Osmformat.Node.Builder addNodesBuilder( int index) { return getNodesFieldBuilder().addBuilder( index, org.apache.baremaps.osm.binary.Osmformat.Node.getDefaultInstance()); } /** * repeated .OSMPBF.Node nodes = 1; */ public java.util.List getNodesBuilderList() { return getNodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Node, org.apache.baremaps.osm.binary.Osmformat.Node.Builder, org.apache.baremaps.osm.binary.Osmformat.NodeOrBuilder> getNodesFieldBuilder() { if (nodesBuilder_ == null) { nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Node, org.apache.baremaps.osm.binary.Osmformat.Node.Builder, org.apache.baremaps.osm.binary.Osmformat.NodeOrBuilder>( nodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nodes_ = null; } return nodesBuilder_; } private org.apache.baremaps.osm.binary.Osmformat.DenseNodes dense_; private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.DenseNodes, org.apache.baremaps.osm.binary.Osmformat.DenseNodes.Builder, org.apache.baremaps.osm.binary.Osmformat.DenseNodesOrBuilder> 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 org.apache.baremaps.osm.binary.Osmformat.DenseNodes getDense() { if (denseBuilder_ == null) { return dense_ == null ? org.apache.baremaps.osm.binary.Osmformat.DenseNodes.getDefaultInstance() : dense_; } else { return denseBuilder_.getMessage(); } } /** * optional .OSMPBF.DenseNodes dense = 2; */ public Builder setDense(org.apache.baremaps.osm.binary.Osmformat.DenseNodes value) { if (denseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dense_ = value; } else { denseBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .OSMPBF.DenseNodes dense = 2; */ public Builder setDense( org.apache.baremaps.osm.binary.Osmformat.DenseNodes.Builder builderForValue) { if (denseBuilder_ == null) { dense_ = builderForValue.build(); } else { denseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .OSMPBF.DenseNodes dense = 2; */ public Builder mergeDense(org.apache.baremaps.osm.binary.Osmformat.DenseNodes value) { if (denseBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && dense_ != null && dense_ != org.apache.baremaps.osm.binary.Osmformat.DenseNodes.getDefaultInstance()) { getDenseBuilder().mergeFrom(value); } else { dense_ = value; } } else { denseBuilder_.mergeFrom(value); } if (dense_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * optional .OSMPBF.DenseNodes dense = 2; */ public Builder clearDense() { bitField0_ = (bitField0_ & ~0x00000002); dense_ = null; if (denseBuilder_ != null) { denseBuilder_.dispose(); denseBuilder_ = null; } onChanged(); return this; } /** * optional .OSMPBF.DenseNodes dense = 2; */ public org.apache.baremaps.osm.binary.Osmformat.DenseNodes.Builder getDenseBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDenseFieldBuilder().getBuilder(); } /** * optional .OSMPBF.DenseNodes dense = 2; */ public org.apache.baremaps.osm.binary.Osmformat.DenseNodesOrBuilder getDenseOrBuilder() { if (denseBuilder_ != null) { return denseBuilder_.getMessageOrBuilder(); } else { return dense_ == null ? org.apache.baremaps.osm.binary.Osmformat.DenseNodes.getDefaultInstance() : dense_; } } /** * optional .OSMPBF.DenseNodes dense = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.DenseNodes, org.apache.baremaps.osm.binary.Osmformat.DenseNodes.Builder, org.apache.baremaps.osm.binary.Osmformat.DenseNodesOrBuilder> getDenseFieldBuilder() { if (denseBuilder_ == null) { denseBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.DenseNodes, org.apache.baremaps.osm.binary.Osmformat.DenseNodes.Builder, org.apache.baremaps.osm.binary.Osmformat.DenseNodesOrBuilder>( 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.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Way, org.apache.baremaps.osm.binary.Osmformat.Way.Builder, org.apache.baremaps.osm.binary.Osmformat.WayOrBuilder> 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 org.apache.baremaps.osm.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, org.apache.baremaps.osm.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, org.apache.baremaps.osm.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(org.apache.baremaps.osm.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, org.apache.baremaps.osm.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( org.apache.baremaps.osm.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, org.apache.baremaps.osm.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 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 org.apache.baremaps.osm.binary.Osmformat.Way.Builder getWaysBuilder( int index) { return getWaysFieldBuilder().getBuilder(index); } /** * repeated .OSMPBF.Way ways = 3; */ public org.apache.baremaps.osm.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 getWaysOrBuilderList() { if (waysBuilder_ != null) { return waysBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ways_); } } /** * repeated .OSMPBF.Way ways = 3; */ public org.apache.baremaps.osm.binary.Osmformat.Way.Builder addWaysBuilder() { return getWaysFieldBuilder().addBuilder( org.apache.baremaps.osm.binary.Osmformat.Way.getDefaultInstance()); } /** * repeated .OSMPBF.Way ways = 3; */ public org.apache.baremaps.osm.binary.Osmformat.Way.Builder addWaysBuilder( int index) { return getWaysFieldBuilder().addBuilder( index, org.apache.baremaps.osm.binary.Osmformat.Way.getDefaultInstance()); } /** * repeated .OSMPBF.Way ways = 3; */ public java.util.List getWaysBuilderList() { return getWaysFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Way, org.apache.baremaps.osm.binary.Osmformat.Way.Builder, org.apache.baremaps.osm.binary.Osmformat.WayOrBuilder> getWaysFieldBuilder() { if (waysBuilder_ == null) { waysBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Way, org.apache.baremaps.osm.binary.Osmformat.Way.Builder, org.apache.baremaps.osm.binary.Osmformat.WayOrBuilder>( 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.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Relation, org.apache.baremaps.osm.binary.Osmformat.Relation.Builder, org.apache.baremaps.osm.binary.Osmformat.RelationOrBuilder> 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 org.apache.baremaps.osm.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, org.apache.baremaps.osm.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, org.apache.baremaps.osm.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(org.apache.baremaps.osm.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, org.apache.baremaps.osm.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( org.apache.baremaps.osm.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, org.apache.baremaps.osm.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 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 org.apache.baremaps.osm.binary.Osmformat.Relation.Builder getRelationsBuilder( int index) { return getRelationsFieldBuilder().getBuilder(index); } /** * repeated .OSMPBF.Relation relations = 4; */ public org.apache.baremaps.osm.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 getRelationsOrBuilderList() { if (relationsBuilder_ != null) { return relationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(relations_); } } /** * repeated .OSMPBF.Relation relations = 4; */ public org.apache.baremaps.osm.binary.Osmformat.Relation.Builder addRelationsBuilder() { return getRelationsFieldBuilder().addBuilder( org.apache.baremaps.osm.binary.Osmformat.Relation.getDefaultInstance()); } /** * repeated .OSMPBF.Relation relations = 4; */ public org.apache.baremaps.osm.binary.Osmformat.Relation.Builder addRelationsBuilder( int index) { return getRelationsFieldBuilder().addBuilder( index, org.apache.baremaps.osm.binary.Osmformat.Relation.getDefaultInstance()); } /** * repeated .OSMPBF.Relation relations = 4; */ public java.util.List getRelationsBuilderList() { return getRelationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Relation, org.apache.baremaps.osm.binary.Osmformat.Relation.Builder, org.apache.baremaps.osm.binary.Osmformat.RelationOrBuilder> getRelationsFieldBuilder() { if (relationsBuilder_ == null) { relationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Relation, org.apache.baremaps.osm.binary.Osmformat.Relation.Builder, org.apache.baremaps.osm.binary.Osmformat.RelationOrBuilder>( 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.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.ChangeSet, org.apache.baremaps.osm.binary.Osmformat.ChangeSet.Builder, org.apache.baremaps.osm.binary.Osmformat.ChangeSetOrBuilder> 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 org.apache.baremaps.osm.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, org.apache.baremaps.osm.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, org.apache.baremaps.osm.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(org.apache.baremaps.osm.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, org.apache.baremaps.osm.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( org.apache.baremaps.osm.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, org.apache.baremaps.osm.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 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 org.apache.baremaps.osm.binary.Osmformat.ChangeSet.Builder getChangesetsBuilder( int index) { return getChangesetsFieldBuilder().getBuilder(index); } /** * repeated .OSMPBF.ChangeSet changesets = 5; */ public org.apache.baremaps.osm.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 getChangesetsOrBuilderList() { if (changesetsBuilder_ != null) { return changesetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(changesets_); } } /** * repeated .OSMPBF.ChangeSet changesets = 5; */ public org.apache.baremaps.osm.binary.Osmformat.ChangeSet.Builder addChangesetsBuilder() { return getChangesetsFieldBuilder().addBuilder( org.apache.baremaps.osm.binary.Osmformat.ChangeSet.getDefaultInstance()); } /** * repeated .OSMPBF.ChangeSet changesets = 5; */ public org.apache.baremaps.osm.binary.Osmformat.ChangeSet.Builder addChangesetsBuilder( int index) { return getChangesetsFieldBuilder().addBuilder( index, org.apache.baremaps.osm.binary.Osmformat.ChangeSet.getDefaultInstance()); } /** * repeated .OSMPBF.ChangeSet changesets = 5; */ public java.util.List getChangesetsBuilderList() { return getChangesetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.ChangeSet, org.apache.baremaps.osm.binary.Osmformat.ChangeSet.Builder, org.apache.baremaps.osm.binary.Osmformat.ChangeSetOrBuilder> getChangesetsFieldBuilder() { if (changesetsBuilder_ == null) { changesetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.ChangeSet, org.apache.baremaps.osm.binary.Osmformat.ChangeSet.Builder, org.apache.baremaps.osm.binary.Osmformat.ChangeSetOrBuilder>( changesets_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); changesets_ = null; } return changesetsBuilder_; } // @@protoc_insertion_point(builder_scope:OSMPBF.PrimitiveGroup) } // @@protoc_insertion_point(class_scope:OSMPBF.PrimitiveGroup) private static final org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup(); } public static org.apache.baremaps.osm.binary.Osmformat.PrimitiveGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.StringTable) StringTableOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", StringTable.class.getName()); } // Use StringTable.newBuilder() to construct. private StringTable(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StringTable() { s_ = emptyList(com.google.protobuf.ByteString.class); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_StringTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_StringTable_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.StringTable.class, org.apache.baremaps.osm.binary.Osmformat.StringTable.Builder.class); } public static final int S_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList s_ = emptyList(com.google.protobuf.ByteString.class); /** * 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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.StringTable)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.StringTable other = (org.apache.baremaps.osm.binary.Osmformat.StringTable) obj; if (!getSList() .equals(other.getSList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.StringTable parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.StringTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.StringTable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.StringTable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.StringTable parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.StringTable parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.StringTable parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.StringTable parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.StringTable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.StringTable parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.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.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.StringTable) org.apache.baremaps.osm.binary.Osmformat.StringTableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_StringTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_StringTable_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.StringTable.class, org.apache.baremaps.osm.binary.Osmformat.StringTable.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.StringTable.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; s_ = emptyList(com.google.protobuf.ByteString.class); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_StringTable_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.StringTable getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.StringTable.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.StringTable build() { org.apache.baremaps.osm.binary.Osmformat.StringTable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.StringTable buildPartial() { org.apache.baremaps.osm.binary.Osmformat.StringTable result = new org.apache.baremaps.osm.binary.Osmformat.StringTable(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.StringTable result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { s_.makeImmutable(); result.s_ = s_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.StringTable) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.StringTable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.StringTable other) { if (other == org.apache.baremaps.osm.binary.Osmformat.StringTable.getDefaultInstance()) return this; if (!other.s_.isEmpty()) { if (s_.isEmpty()) { s_ = other.s_; s_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureSIsMutable(); s_.addAll(other.s_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString v = input.readBytes(); ensureSIsMutable(); s_.add(v); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.ProtobufList s_ = emptyList(com.google.protobuf.ByteString.class); private void ensureSIsMutable() { if (!s_.isModifiable()) { s_ = makeMutableCopy(s_); } bitField0_ |= 0x00000001; } /** * repeated bytes s = 1; * @return A list containing the s. */ public java.util.List getSList() { s_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000001; 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); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated bytes s = 1; * @param values The s to add. * @return This builder for chaining. */ public Builder addAllS( java.lang.Iterable values) { ensureSIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, s_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * repeated bytes s = 1; * @return This builder for chaining. */ public Builder clearS() { s_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OSMPBF.StringTable) } // @@protoc_insertion_point(class_scope:OSMPBF.StringTable) private static final org.apache.baremaps.osm.binary.Osmformat.StringTable DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.StringTable(); } public static org.apache.baremaps.osm.binary.Osmformat.StringTable getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.Info) InfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", Info.class.getName()); } // Use Info.newBuilder() to construct. private Info(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Info() { version_ = -1; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Info_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Info_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.Info.class, org.apache.baremaps.osm.binary.Osmformat.Info.Builder.class); } private int bitField0_; public static final int VERSION_FIELD_NUMBER = 1; 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_; } public static final int TIMESTAMP_FIELD_NUMBER = 2; private long timestamp_ = 0L; /** * 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_ = 0L; /** * 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_ = 0; /** * 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_ = 0; /** *
     * 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_ = false; /** *
     * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.Info)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.Info other = (org.apache.baremaps.osm.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.Info parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Info parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Info parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.Info parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Info parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Info parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Info parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Info parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Info parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Info parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.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.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.Info) org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Info_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Info_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.Info.class, org.apache.baremaps.osm.binary.Osmformat.Info.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.Info.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; version_ = -1; timestamp_ = 0L; changeset_ = 0L; uid_ = 0; userSid_ = 0; visible_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Info_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Info getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Info build() { org.apache.baremaps.osm.binary.Osmformat.Info result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Info buildPartial() { org.apache.baremaps.osm.binary.Osmformat.Info result = new org.apache.baremaps.osm.binary.Osmformat.Info(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.Info result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.version_ = version_; to_bitField0_ |= 0x00000001; } 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_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.Info) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.Info)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.Info other) { if (other == org.apache.baremaps.osm.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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { version_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { timestamp_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { changeset_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { uid_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { userSid_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { visible_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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) { version_ = value; bitField0_ |= 0x00000001; 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) { timestamp_ = value; bitField0_ |= 0x00000002; 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) { changeset_ = value; bitField0_ |= 0x00000004; 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) { uid_ = value; bitField0_ |= 0x00000008; 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) { userSid_ = value; bitField0_ |= 0x00000010; 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) { visible_ = value; bitField0_ |= 0x00000020; 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; } // @@protoc_insertion_point(builder_scope:OSMPBF.Info) } // @@protoc_insertion_point(class_scope:OSMPBF.Info) private static final org.apache.baremaps.osm.binary.Osmformat.Info DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.Info(); } public static org.apache.baremaps.osm.binary.Osmformat.Info getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.DenseInfo) DenseInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", DenseInfo.class.getName()); } // Use DenseInfo.newBuilder() to construct. private DenseInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DenseInfo() { version_ = emptyIntList(); timestamp_ = emptyLongList(); changeset_ = emptyLongList(); uid_ = emptyIntList(); userSid_ = emptyIntList(); visible_ = emptyBooleanList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_DenseInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_DenseInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.DenseInfo.class, org.apache.baremaps.osm.binary.Osmformat.DenseInfo.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList version_ = emptyIntList(); /** * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList timestamp_ = emptyLongList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList changeset_ = emptyLongList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList uid_ = emptyIntList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList userSid_ = emptyIntList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.BooleanList visible_ = emptyBooleanList(); /** *
     * 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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.DenseInfo)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.DenseInfo other = (org.apache.baremaps.osm.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.DenseInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.DenseInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.DenseInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.DenseInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.DenseInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.DenseInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.DenseInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.DenseInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.DenseInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.DenseInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.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.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.DenseInfo) org.apache.baremaps.osm.binary.Osmformat.DenseInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_DenseInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_DenseInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.DenseInfo.class, org.apache.baremaps.osm.binary.Osmformat.DenseInfo.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.DenseInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; version_ = emptyIntList(); timestamp_ = emptyLongList(); changeset_ = emptyLongList(); uid_ = emptyIntList(); userSid_ = emptyIntList(); visible_ = emptyBooleanList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_DenseInfo_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.DenseInfo getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.DenseInfo.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.DenseInfo build() { org.apache.baremaps.osm.binary.Osmformat.DenseInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.DenseInfo buildPartial() { org.apache.baremaps.osm.binary.Osmformat.DenseInfo result = new org.apache.baremaps.osm.binary.Osmformat.DenseInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.DenseInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { version_.makeImmutable(); result.version_ = version_; } if (((from_bitField0_ & 0x00000002) != 0)) { timestamp_.makeImmutable(); result.timestamp_ = timestamp_; } if (((from_bitField0_ & 0x00000004) != 0)) { changeset_.makeImmutable(); result.changeset_ = changeset_; } if (((from_bitField0_ & 0x00000008) != 0)) { uid_.makeImmutable(); result.uid_ = uid_; } if (((from_bitField0_ & 0x00000010) != 0)) { userSid_.makeImmutable(); result.userSid_ = userSid_; } if (((from_bitField0_ & 0x00000020) != 0)) { visible_.makeImmutable(); result.visible_ = visible_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.DenseInfo) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.DenseInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.DenseInfo other) { if (other == org.apache.baremaps.osm.binary.Osmformat.DenseInfo.getDefaultInstance()) return this; if (!other.version_.isEmpty()) { if (version_.isEmpty()) { version_ = other.version_; version_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureVersionIsMutable(); version_.addAll(other.version_); } onChanged(); } if (!other.timestamp_.isEmpty()) { if (timestamp_.isEmpty()) { timestamp_ = other.timestamp_; timestamp_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensureTimestampIsMutable(); timestamp_.addAll(other.timestamp_); } onChanged(); } if (!other.changeset_.isEmpty()) { if (changeset_.isEmpty()) { changeset_ = other.changeset_; changeset_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensureChangesetIsMutable(); changeset_.addAll(other.changeset_); } onChanged(); } if (!other.uid_.isEmpty()) { if (uid_.isEmpty()) { uid_ = other.uid_; uid_.makeImmutable(); bitField0_ |= 0x00000008; } else { ensureUidIsMutable(); uid_.addAll(other.uid_); } onChanged(); } if (!other.userSid_.isEmpty()) { if (userSid_.isEmpty()) { userSid_ = other.userSid_; userSid_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensureUserSidIsMutable(); userSid_.addAll(other.userSid_); } onChanged(); } if (!other.visible_.isEmpty()) { if (visible_.isEmpty()) { visible_ = other.visible_; visible_.makeImmutable(); bitField0_ |= 0x00000020; } else { ensureVisibleIsMutable(); visible_.addAll(other.visible_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int v = input.readInt32(); ensureVersionIsMutable(); version_.addInt(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureVersionIsMutable(); while (input.getBytesUntilLimit() > 0) { version_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 10 case 16: { long v = input.readSInt64(); ensureTimestampIsMutable(); timestamp_.addLong(v); break; } // case 16 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureTimestampIsMutable(); while (input.getBytesUntilLimit() > 0) { timestamp_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 18 case 24: { long v = input.readSInt64(); ensureChangesetIsMutable(); changeset_.addLong(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureChangesetIsMutable(); while (input.getBytesUntilLimit() > 0) { changeset_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 26 case 32: { int v = input.readSInt32(); ensureUidIsMutable(); uid_.addInt(v); break; } // case 32 case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureUidIsMutable(); while (input.getBytesUntilLimit() > 0) { uid_.addInt(input.readSInt32()); } input.popLimit(limit); break; } // case 34 case 40: { int v = input.readSInt32(); ensureUserSidIsMutable(); userSid_.addInt(v); break; } // case 40 case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureUserSidIsMutable(); while (input.getBytesUntilLimit() > 0) { userSid_.addInt(input.readSInt32()); } input.popLimit(limit); break; } // case 42 case 48: { boolean v = input.readBool(); ensureVisibleIsMutable(); visible_.addBoolean(v); break; } // case 48 case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureVisibleIsMutable(alloc / 1); while (input.getBytesUntilLimit() > 0) { visible_.addBoolean(input.readBool()); } input.popLimit(limit); break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.IntList version_ = emptyIntList(); private void ensureVersionIsMutable() { if (!version_.isModifiable()) { version_ = makeMutableCopy(version_); } bitField0_ |= 0x00000001; } /** * repeated int32 version = 1 [packed = true]; * @return A list containing the version. */ public java.util.List getVersionList() { version_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000001; 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); bitField0_ |= 0x00000001; 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 values) { ensureVersionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, version_); bitField0_ |= 0x00000001; 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 (!timestamp_.isModifiable()) { timestamp_ = makeMutableCopy(timestamp_); } bitField0_ |= 0x00000002; } /** *
       * DELTA coded
       * 
* * repeated sint64 timestamp = 2 [packed = true]; * @return A list containing the timestamp. */ public java.util.List getTimestampList() { timestamp_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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 values) { ensureTimestampIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, timestamp_); bitField0_ |= 0x00000002; 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 (!changeset_.isModifiable()) { changeset_ = makeMutableCopy(changeset_); } bitField0_ |= 0x00000004; } /** *
       * DELTA coded
       * 
* * repeated sint64 changeset = 3 [packed = true]; * @return A list containing the changeset. */ public java.util.List getChangesetList() { changeset_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000004; 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); bitField0_ |= 0x00000004; 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 values) { ensureChangesetIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, changeset_); bitField0_ |= 0x00000004; 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 (!uid_.isModifiable()) { uid_ = makeMutableCopy(uid_); } bitField0_ |= 0x00000008; } /** *
       * DELTA coded
       * 
* * repeated sint32 uid = 4 [packed = true]; * @return A list containing the uid. */ public java.util.List getUidList() { uid_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000008; 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); bitField0_ |= 0x00000008; 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 values) { ensureUidIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, uid_); bitField0_ |= 0x00000008; 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 (!userSid_.isModifiable()) { userSid_ = makeMutableCopy(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() { userSid_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000010; 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); bitField0_ |= 0x00000010; 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 values) { ensureUserSidIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, userSid_); bitField0_ |= 0x00000010; 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 (!visible_.isModifiable()) { visible_ = makeMutableCopy(visible_); } bitField0_ |= 0x00000020; } private void ensureVisibleIsMutable(int capacity) { if (!visible_.isModifiable()) { visible_ = makeMutableCopy(visible_, capacity); } 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() { visible_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000020; 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); bitField0_ |= 0x00000020; 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 values) { ensureVisibleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, visible_); bitField0_ |= 0x00000020; 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; } // @@protoc_insertion_point(builder_scope:OSMPBF.DenseInfo) } // @@protoc_insertion_point(class_scope:OSMPBF.DenseInfo) private static final org.apache.baremaps.osm.binary.Osmformat.DenseInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.DenseInfo(); } public static org.apache.baremaps.osm.binary.Osmformat.DenseInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.ChangeSet) ChangeSetOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", ChangeSet.class.getName()); } // Use ChangeSet.newBuilder() to construct. private ChangeSet(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ChangeSet() { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_ChangeSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_ChangeSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.ChangeSet.class, org.apache.baremaps.osm.binary.Osmformat.ChangeSet.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private long id_ = 0L; /** * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.ChangeSet)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.ChangeSet other = (org.apache.baremaps.osm.binary.Osmformat.ChangeSet) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.ChangeSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.ChangeSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.ChangeSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.ChangeSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.ChangeSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.ChangeSet parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.ChangeSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.ChangeSet parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.ChangeSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.ChangeSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.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.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.ChangeSet) org.apache.baremaps.osm.binary.Osmformat.ChangeSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_ChangeSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_ChangeSet_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.ChangeSet.class, org.apache.baremaps.osm.binary.Osmformat.ChangeSet.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.ChangeSet.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_ChangeSet_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.ChangeSet getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.ChangeSet.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.ChangeSet build() { org.apache.baremaps.osm.binary.Osmformat.ChangeSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.ChangeSet buildPartial() { org.apache.baremaps.osm.binary.Osmformat.ChangeSet result = new org.apache.baremaps.osm.binary.Osmformat.ChangeSet(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.ChangeSet result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.ChangeSet) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.ChangeSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.ChangeSet other) { if (other == org.apache.baremaps.osm.binary.Osmformat.ChangeSet.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { id_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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) { id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * required int64 id = 1; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OSMPBF.ChangeSet) } // @@protoc_insertion_point(class_scope:OSMPBF.ChangeSet) private static final org.apache.baremaps.osm.binary.Osmformat.ChangeSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.ChangeSet(); } public static org.apache.baremaps.osm.binary.Osmformat.ChangeSet getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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. */ org.apache.baremaps.osm.binary.Osmformat.Info getInfo(); /** *
     * May be omitted in omitmeta
     * 
* * optional .OSMPBF.Info info = 4; */ org.apache.baremaps.osm.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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.Node) NodeOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", Node.class.getName()); } // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Node() { keys_ = emptyIntList(); vals_ = emptyIntList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.Node.class, org.apache.baremaps.osm.binary.Osmformat.Node.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private long id_ = 0L; /** * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList keys_ = emptyIntList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList vals_ = emptyIntList(); /** *
     * 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 org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Info getInfo() { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } /** *
     * May be omitted in omitmeta
     * 
* * optional .OSMPBF.Info info = 4; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } public static final int LAT_FIELD_NUMBER = 8; private long lat_ = 0L; /** * 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_ = 0L; /** * 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_); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.Node)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.Node other = (org.apache.baremaps.osm.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.Node parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Node parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.Node parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Node parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Node parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Node parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Node parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Node parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code OSMPBF.Node} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.Node) org.apache.baremaps.osm.binary.Osmformat.NodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.Node.class, org.apache.baremaps.osm.binary.Osmformat.Node.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.Node.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = 0L; keys_ = emptyIntList(); vals_ = emptyIntList(); info_ = null; if (infoBuilder_ != null) { infoBuilder_.dispose(); infoBuilder_ = null; } lat_ = 0L; lon_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Node_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Node getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.Node.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Node build() { org.apache.baremaps.osm.binary.Osmformat.Node result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Node buildPartial() { org.apache.baremaps.osm.binary.Osmformat.Node result = new org.apache.baremaps.osm.binary.Osmformat.Node(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.Node result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { keys_.makeImmutable(); result.keys_ = keys_; } if (((from_bitField0_ & 0x00000004) != 0)) { vals_.makeImmutable(); result.vals_ = vals_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.info_ = infoBuilder_ == null ? 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_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.Node) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.Node)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.Node other) { if (other == org.apache.baremaps.osm.binary.Osmformat.Node.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; keys_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (!other.vals_.isEmpty()) { if (vals_.isEmpty()) { vals_ = other.vals_; vals_.makeImmutable(); 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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { id_ = input.readSInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { int v = input.readUInt32(); ensureKeysIsMutable(); keys_.addInt(v); break; } // case 16 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureKeysIsMutable(); while (input.getBytesUntilLimit() > 0) { keys_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 18 case 24: { int v = input.readUInt32(); ensureValsIsMutable(); vals_.addInt(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureValsIsMutable(); while (input.getBytesUntilLimit() > 0) { vals_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 26 case 34: { input.readMessage( getInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 64: { lat_ = input.readSInt64(); bitField0_ |= 0x00000010; break; } // case 64 case 72: { lon_ = input.readSInt64(); bitField0_ |= 0x00000020; break; } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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) { id_ = value; bitField0_ |= 0x00000001; 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 (!keys_.isModifiable()) { keys_ = makeMutableCopy(keys_); } bitField0_ |= 0x00000002; } /** *
       * Parallel arrays.
       * 
* * repeated uint32 keys = 2 [packed = true]; * @return A list containing the keys. */ public java.util.List getKeysList() { keys_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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 values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); bitField0_ |= 0x00000002; 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 (!vals_.isModifiable()) { vals_ = makeMutableCopy(vals_); } bitField0_ |= 0x00000004; } /** *
       * String IDs.
       * 
* * repeated uint32 vals = 3 [packed = true]; * @return A list containing the vals. */ public java.util.List getValsList() { vals_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000004; 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); bitField0_ |= 0x00000004; 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 values) { ensureValsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, vals_); bitField0_ |= 0x00000004; 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 org.apache.baremaps.osm.binary.Osmformat.Info info_; private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Info, org.apache.baremaps.osm.binary.Osmformat.Info.Builder, org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder> 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 org.apache.baremaps.osm.binary.Osmformat.Info getInfo() { if (infoBuilder_ == null) { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } else { return infoBuilder_.getMessage(); } } /** *
       * May be omitted in omitmeta
       * 
* * optional .OSMPBF.Info info = 4; */ public Builder setInfo(org.apache.baremaps.osm.binary.Osmformat.Info value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } info_ = value; } else { infoBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * May be omitted in omitmeta
       * 
* * optional .OSMPBF.Info info = 4; */ public Builder setInfo( org.apache.baremaps.osm.binary.Osmformat.Info.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); } else { infoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * May be omitted in omitmeta
       * 
* * optional .OSMPBF.Info info = 4; */ public Builder mergeInfo(org.apache.baremaps.osm.binary.Osmformat.Info value) { if (infoBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && info_ != null && info_ != org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance()) { getInfoBuilder().mergeFrom(value); } else { info_ = value; } } else { infoBuilder_.mergeFrom(value); } if (info_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * May be omitted in omitmeta
       * 
* * optional .OSMPBF.Info info = 4; */ public Builder clearInfo() { bitField0_ = (bitField0_ & ~0x00000008); info_ = null; if (infoBuilder_ != null) { infoBuilder_.dispose(); infoBuilder_ = null; } onChanged(); return this; } /** *
       * May be omitted in omitmeta
       * 
* * optional .OSMPBF.Info info = 4; */ public org.apache.baremaps.osm.binary.Osmformat.Info.Builder getInfoBuilder() { bitField0_ |= 0x00000008; onChanged(); return getInfoFieldBuilder().getBuilder(); } /** *
       * May be omitted in omitmeta
       * 
* * optional .OSMPBF.Info info = 4; */ public org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilder(); } else { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } } /** *
       * May be omitted in omitmeta
       * 
* * optional .OSMPBF.Info info = 4; */ private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Info, org.apache.baremaps.osm.binary.Osmformat.Info.Builder, org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { infoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Info, org.apache.baremaps.osm.binary.Osmformat.Info.Builder, org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder>( 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) { lat_ = value; bitField0_ |= 0x00000010; 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) { lon_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * required sint64 lon = 9; * @return This builder for chaining. */ public Builder clearLon() { bitField0_ = (bitField0_ & ~0x00000020); lon_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OSMPBF.Node) } // @@protoc_insertion_point(class_scope:OSMPBF.Node) private static final org.apache.baremaps.osm.binary.Osmformat.Node DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.Node(); } public static org.apache.baremaps.osm.binary.Osmformat.Node getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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. */ org.apache.baremaps.osm.binary.Osmformat.DenseInfo getDenseinfo(); /** * optional .OSMPBF.DenseInfo denseinfo = 5; */ org.apache.baremaps.osm.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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.DenseNodes) DenseNodesOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", DenseNodes.class.getName()); } // Use DenseNodes.newBuilder() to construct. private DenseNodes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DenseNodes() { id_ = emptyLongList(); lat_ = emptyLongList(); lon_ = emptyLongList(); keysVals_ = emptyIntList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_DenseNodes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_DenseNodes_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.DenseNodes.class, org.apache.baremaps.osm.binary.Osmformat.DenseNodes.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList id_ = emptyLongList(); /** *
     * 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 org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.DenseInfo getDenseinfo() { return denseinfo_ == null ? org.apache.baremaps.osm.binary.Osmformat.DenseInfo.getDefaultInstance() : denseinfo_; } /** * optional .OSMPBF.DenseInfo denseinfo = 5; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.DenseInfoOrBuilder getDenseinfoOrBuilder() { return denseinfo_ == null ? org.apache.baremaps.osm.binary.Osmformat.DenseInfo.getDefaultInstance() : denseinfo_; } public static final int LAT_FIELD_NUMBER = 8; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList lat_ = emptyLongList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList lon_ = emptyLongList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList keysVals_ = emptyIntList(); /** *
     * 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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.DenseNodes)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.DenseNodes other = (org.apache.baremaps.osm.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.DenseNodes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.DenseNodes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.DenseNodes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.DenseNodes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.DenseNodes parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.DenseNodes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.DenseNodes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.DenseNodes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.DenseNodes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.DenseNodes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code OSMPBF.DenseNodes} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.DenseNodes) org.apache.baremaps.osm.binary.Osmformat.DenseNodesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_DenseNodes_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_DenseNodes_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.DenseNodes.class, org.apache.baremaps.osm.binary.Osmformat.DenseNodes.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.DenseNodes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getDenseinfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = emptyLongList(); denseinfo_ = null; if (denseinfoBuilder_ != null) { denseinfoBuilder_.dispose(); denseinfoBuilder_ = null; } lat_ = emptyLongList(); lon_ = emptyLongList(); keysVals_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_DenseNodes_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.DenseNodes getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.DenseNodes.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.DenseNodes build() { org.apache.baremaps.osm.binary.Osmformat.DenseNodes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.DenseNodes buildPartial() { org.apache.baremaps.osm.binary.Osmformat.DenseNodes result = new org.apache.baremaps.osm.binary.Osmformat.DenseNodes(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.DenseNodes result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { id_.makeImmutable(); result.id_ = id_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.denseinfo_ = denseinfoBuilder_ == null ? denseinfo_ : denseinfoBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { lat_.makeImmutable(); result.lat_ = lat_; } if (((from_bitField0_ & 0x00000008) != 0)) { lon_.makeImmutable(); result.lon_ = lon_; } if (((from_bitField0_ & 0x00000010) != 0)) { keysVals_.makeImmutable(); result.keysVals_ = keysVals_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.DenseNodes) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.DenseNodes)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.DenseNodes other) { if (other == org.apache.baremaps.osm.binary.Osmformat.DenseNodes.getDefaultInstance()) return this; if (!other.id_.isEmpty()) { if (id_.isEmpty()) { id_ = other.id_; id_.makeImmutable(); 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_; lat_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensureLatIsMutable(); lat_.addAll(other.lat_); } onChanged(); } if (!other.lon_.isEmpty()) { if (lon_.isEmpty()) { lon_ = other.lon_; lon_.makeImmutable(); bitField0_ |= 0x00000008; } else { ensureLonIsMutable(); lon_.addAll(other.lon_); } onChanged(); } if (!other.keysVals_.isEmpty()) { if (keysVals_.isEmpty()) { keysVals_ = other.keysVals_; keysVals_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensureKeysValsIsMutable(); keysVals_.addAll(other.keysVals_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { long v = input.readSInt64(); ensureIdIsMutable(); id_.addLong(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureIdIsMutable(); while (input.getBytesUntilLimit() > 0) { id_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 10 case 42: { input.readMessage( getDenseinfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 42 case 64: { long v = input.readSInt64(); ensureLatIsMutable(); lat_.addLong(v); break; } // case 64 case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureLatIsMutable(); while (input.getBytesUntilLimit() > 0) { lat_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 66 case 72: { long v = input.readSInt64(); ensureLonIsMutable(); lon_.addLong(v); break; } // case 72 case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureLonIsMutable(); while (input.getBytesUntilLimit() > 0) { lon_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 74 case 80: { int v = input.readInt32(); ensureKeysValsIsMutable(); keysVals_.addInt(v); break; } // case 80 case 82: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureKeysValsIsMutable(); while (input.getBytesUntilLimit() > 0) { keysVals_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.LongList id_ = emptyLongList(); private void ensureIdIsMutable() { if (!id_.isModifiable()) { id_ = makeMutableCopy(id_); } bitField0_ |= 0x00000001; } /** *
       * DELTA coded
       * 
* * repeated sint64 id = 1 [packed = true]; * @return A list containing the id. */ public java.util.List getIdList() { id_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000001; 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); bitField0_ |= 0x00000001; 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 values) { ensureIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, id_); bitField0_ |= 0x00000001; 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 org.apache.baremaps.osm.binary.Osmformat.DenseInfo denseinfo_; private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.DenseInfo, org.apache.baremaps.osm.binary.Osmformat.DenseInfo.Builder, org.apache.baremaps.osm.binary.Osmformat.DenseInfoOrBuilder> 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 org.apache.baremaps.osm.binary.Osmformat.DenseInfo getDenseinfo() { if (denseinfoBuilder_ == null) { return denseinfo_ == null ? org.apache.baremaps.osm.binary.Osmformat.DenseInfo.getDefaultInstance() : denseinfo_; } else { return denseinfoBuilder_.getMessage(); } } /** * optional .OSMPBF.DenseInfo denseinfo = 5; */ public Builder setDenseinfo(org.apache.baremaps.osm.binary.Osmformat.DenseInfo value) { if (denseinfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } denseinfo_ = value; } else { denseinfoBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .OSMPBF.DenseInfo denseinfo = 5; */ public Builder setDenseinfo( org.apache.baremaps.osm.binary.Osmformat.DenseInfo.Builder builderForValue) { if (denseinfoBuilder_ == null) { denseinfo_ = builderForValue.build(); } else { denseinfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional .OSMPBF.DenseInfo denseinfo = 5; */ public Builder mergeDenseinfo(org.apache.baremaps.osm.binary.Osmformat.DenseInfo value) { if (denseinfoBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && denseinfo_ != null && denseinfo_ != org.apache.baremaps.osm.binary.Osmformat.DenseInfo.getDefaultInstance()) { getDenseinfoBuilder().mergeFrom(value); } else { denseinfo_ = value; } } else { denseinfoBuilder_.mergeFrom(value); } if (denseinfo_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * optional .OSMPBF.DenseInfo denseinfo = 5; */ public Builder clearDenseinfo() { bitField0_ = (bitField0_ & ~0x00000002); denseinfo_ = null; if (denseinfoBuilder_ != null) { denseinfoBuilder_.dispose(); denseinfoBuilder_ = null; } onChanged(); return this; } /** * optional .OSMPBF.DenseInfo denseinfo = 5; */ public org.apache.baremaps.osm.binary.Osmformat.DenseInfo.Builder getDenseinfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDenseinfoFieldBuilder().getBuilder(); } /** * optional .OSMPBF.DenseInfo denseinfo = 5; */ public org.apache.baremaps.osm.binary.Osmformat.DenseInfoOrBuilder getDenseinfoOrBuilder() { if (denseinfoBuilder_ != null) { return denseinfoBuilder_.getMessageOrBuilder(); } else { return denseinfo_ == null ? org.apache.baremaps.osm.binary.Osmformat.DenseInfo.getDefaultInstance() : denseinfo_; } } /** * optional .OSMPBF.DenseInfo denseinfo = 5; */ private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.DenseInfo, org.apache.baremaps.osm.binary.Osmformat.DenseInfo.Builder, org.apache.baremaps.osm.binary.Osmformat.DenseInfoOrBuilder> getDenseinfoFieldBuilder() { if (denseinfoBuilder_ == null) { denseinfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.DenseInfo, org.apache.baremaps.osm.binary.Osmformat.DenseInfo.Builder, org.apache.baremaps.osm.binary.Osmformat.DenseInfoOrBuilder>( getDenseinfo(), getParentForChildren(), isClean()); denseinfo_ = null; } return denseinfoBuilder_; } private com.google.protobuf.Internal.LongList lat_ = emptyLongList(); private void ensureLatIsMutable() { if (!lat_.isModifiable()) { lat_ = makeMutableCopy(lat_); } bitField0_ |= 0x00000004; } /** *
       * DELTA coded
       * 
* * repeated sint64 lat = 8 [packed = true]; * @return A list containing the lat. */ public java.util.List getLatList() { lat_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000004; 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); bitField0_ |= 0x00000004; 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 values) { ensureLatIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, lat_); bitField0_ |= 0x00000004; 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 (!lon_.isModifiable()) { lon_ = makeMutableCopy(lon_); } bitField0_ |= 0x00000008; } /** *
       * DELTA coded
       * 
* * repeated sint64 lon = 9 [packed = true]; * @return A list containing the lon. */ public java.util.List getLonList() { lon_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000008; 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); bitField0_ |= 0x00000008; 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 values) { ensureLonIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, lon_); bitField0_ |= 0x00000008; 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 (!keysVals_.isModifiable()) { keysVals_ = makeMutableCopy(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() { keysVals_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000010; 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); bitField0_ |= 0x00000010; 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 values) { ensureKeysValsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keysVals_); bitField0_ |= 0x00000010; 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; } // @@protoc_insertion_point(builder_scope:OSMPBF.DenseNodes) } // @@protoc_insertion_point(class_scope:OSMPBF.DenseNodes) private static final org.apache.baremaps.osm.binary.Osmformat.DenseNodes DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.DenseNodes(); } public static org.apache.baremaps.osm.binary.Osmformat.DenseNodes getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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. */ org.apache.baremaps.osm.binary.Osmformat.Info getInfo(); /** * optional .OSMPBF.Info info = 4; */ org.apache.baremaps.osm.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.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.Way) WayOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", Way.class.getName()); } // Use Way.newBuilder() to construct. private Way(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Way() { keys_ = emptyIntList(); vals_ = emptyIntList(); refs_ = emptyLongList(); lat_ = emptyLongList(); lon_ = emptyLongList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Way_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Way_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.Way.class, org.apache.baremaps.osm.binary.Osmformat.Way.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private long id_ = 0L; /** * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList keys_ = emptyIntList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList vals_ = emptyIntList(); /** * 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 org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Info getInfo() { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } /** * optional .OSMPBF.Info info = 4; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } public static final int REFS_FIELD_NUMBER = 8; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList refs_ = emptyLongList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList lat_ = emptyLongList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList lon_ = emptyLongList(); /** *
     * 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)); } getUnknownFields().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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.Way)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.Way other = (org.apache.baremaps.osm.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.Way parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Way parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Way parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.Way parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Way parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Way parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Way parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Way parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Way parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Way parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code OSMPBF.Way} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.Way) org.apache.baremaps.osm.binary.Osmformat.WayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Way_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Way_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.Way.class, org.apache.baremaps.osm.binary.Osmformat.Way.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.Way.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = 0L; keys_ = emptyIntList(); vals_ = emptyIntList(); info_ = null; if (infoBuilder_ != null) { infoBuilder_.dispose(); infoBuilder_ = null; } refs_ = emptyLongList(); lat_ = emptyLongList(); lon_ = emptyLongList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Way_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Way getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.Way.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Way build() { org.apache.baremaps.osm.binary.Osmformat.Way result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Way buildPartial() { org.apache.baremaps.osm.binary.Osmformat.Way result = new org.apache.baremaps.osm.binary.Osmformat.Way(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.Way result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { keys_.makeImmutable(); result.keys_ = keys_; } if (((from_bitField0_ & 0x00000004) != 0)) { vals_.makeImmutable(); result.vals_ = vals_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { refs_.makeImmutable(); result.refs_ = refs_; } if (((from_bitField0_ & 0x00000020) != 0)) { lat_.makeImmutable(); result.lat_ = lat_; } if (((from_bitField0_ & 0x00000040) != 0)) { lon_.makeImmutable(); result.lon_ = lon_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.Way) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.Way)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.Way other) { if (other == org.apache.baremaps.osm.binary.Osmformat.Way.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; keys_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (!other.vals_.isEmpty()) { if (vals_.isEmpty()) { vals_ = other.vals_; vals_.makeImmutable(); 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_; refs_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensureRefsIsMutable(); refs_.addAll(other.refs_); } onChanged(); } if (!other.lat_.isEmpty()) { if (lat_.isEmpty()) { lat_ = other.lat_; lat_.makeImmutable(); bitField0_ |= 0x00000020; } else { ensureLatIsMutable(); lat_.addAll(other.lat_); } onChanged(); } if (!other.lon_.isEmpty()) { if (lon_.isEmpty()) { lon_ = other.lon_; lon_.makeImmutable(); bitField0_ |= 0x00000040; } else { ensureLonIsMutable(); lon_.addAll(other.lon_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { id_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { int v = input.readUInt32(); ensureKeysIsMutable(); keys_.addInt(v); break; } // case 16 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureKeysIsMutable(); while (input.getBytesUntilLimit() > 0) { keys_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 18 case 24: { int v = input.readUInt32(); ensureValsIsMutable(); vals_.addInt(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureValsIsMutable(); while (input.getBytesUntilLimit() > 0) { vals_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 26 case 34: { input.readMessage( getInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 64: { long v = input.readSInt64(); ensureRefsIsMutable(); refs_.addLong(v); break; } // case 64 case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRefsIsMutable(); while (input.getBytesUntilLimit() > 0) { refs_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 66 case 72: { long v = input.readSInt64(); ensureLatIsMutable(); lat_.addLong(v); break; } // case 72 case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureLatIsMutable(); while (input.getBytesUntilLimit() > 0) { lat_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 74 case 80: { long v = input.readSInt64(); ensureLonIsMutable(); lon_.addLong(v); break; } // case 80 case 82: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureLonIsMutable(); while (input.getBytesUntilLimit() > 0) { lon_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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) { id_ = value; bitField0_ |= 0x00000001; 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 (!keys_.isModifiable()) { keys_ = makeMutableCopy(keys_); } bitField0_ |= 0x00000002; } /** *
       * Parallel arrays.
       * 
* * repeated uint32 keys = 2 [packed = true]; * @return A list containing the keys. */ public java.util.List getKeysList() { keys_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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 values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); bitField0_ |= 0x00000002; 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 (!vals_.isModifiable()) { vals_ = makeMutableCopy(vals_); } bitField0_ |= 0x00000004; } /** * repeated uint32 vals = 3 [packed = true]; * @return A list containing the vals. */ public java.util.List getValsList() { vals_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000004; 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); bitField0_ |= 0x00000004; 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 values) { ensureValsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, vals_); bitField0_ |= 0x00000004; 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 org.apache.baremaps.osm.binary.Osmformat.Info info_; private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Info, org.apache.baremaps.osm.binary.Osmformat.Info.Builder, org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder> 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 org.apache.baremaps.osm.binary.Osmformat.Info getInfo() { if (infoBuilder_ == null) { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } else { return infoBuilder_.getMessage(); } } /** * optional .OSMPBF.Info info = 4; */ public Builder setInfo(org.apache.baremaps.osm.binary.Osmformat.Info value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } info_ = value; } else { infoBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .OSMPBF.Info info = 4; */ public Builder setInfo( org.apache.baremaps.osm.binary.Osmformat.Info.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); } else { infoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .OSMPBF.Info info = 4; */ public Builder mergeInfo(org.apache.baremaps.osm.binary.Osmformat.Info value) { if (infoBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && info_ != null && info_ != org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance()) { getInfoBuilder().mergeFrom(value); } else { info_ = value; } } else { infoBuilder_.mergeFrom(value); } if (info_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * optional .OSMPBF.Info info = 4; */ public Builder clearInfo() { bitField0_ = (bitField0_ & ~0x00000008); info_ = null; if (infoBuilder_ != null) { infoBuilder_.dispose(); infoBuilder_ = null; } onChanged(); return this; } /** * optional .OSMPBF.Info info = 4; */ public org.apache.baremaps.osm.binary.Osmformat.Info.Builder getInfoBuilder() { bitField0_ |= 0x00000008; onChanged(); return getInfoFieldBuilder().getBuilder(); } /** * optional .OSMPBF.Info info = 4; */ public org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilder(); } else { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } } /** * optional .OSMPBF.Info info = 4; */ private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Info, org.apache.baremaps.osm.binary.Osmformat.Info.Builder, org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { infoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Info, org.apache.baremaps.osm.binary.Osmformat.Info.Builder, org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder>( getInfo(), getParentForChildren(), isClean()); info_ = null; } return infoBuilder_; } private com.google.protobuf.Internal.LongList refs_ = emptyLongList(); private void ensureRefsIsMutable() { if (!refs_.isModifiable()) { refs_ = makeMutableCopy(refs_); } bitField0_ |= 0x00000010; } /** *
       * DELTA coded
       * 
* * repeated sint64 refs = 8 [packed = true]; * @return A list containing the refs. */ public java.util.List getRefsList() { refs_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000010; 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); bitField0_ |= 0x00000010; 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 values) { ensureRefsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, refs_); bitField0_ |= 0x00000010; 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 (!lat_.isModifiable()) { lat_ = makeMutableCopy(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() { lat_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000020; 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); bitField0_ |= 0x00000020; 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 values) { ensureLatIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, lat_); bitField0_ |= 0x00000020; 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 (!lon_.isModifiable()) { lon_ = makeMutableCopy(lon_); } bitField0_ |= 0x00000040; } /** *
       * DELTA coded, optional
       * 
* * repeated sint64 lon = 10 [packed = true]; * @return A list containing the lon. */ public java.util.List getLonList() { lon_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000040; 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); bitField0_ |= 0x00000040; 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 values) { ensureLonIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, lon_); bitField0_ |= 0x00000040; 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; } // @@protoc_insertion_point(builder_scope:OSMPBF.Way) } // @@protoc_insertion_point(class_scope:OSMPBF.Way) private static final org.apache.baremaps.osm.binary.Osmformat.Way DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.Way(); } public static org.apache.baremaps.osm.binary.Osmformat.Way getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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. */ org.apache.baremaps.osm.binary.Osmformat.Info getInfo(); /** * optional .OSMPBF.Info info = 4; */ org.apache.baremaps.osm.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. */ org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType getTypes(int index); } /** * Protobuf type {@code OSMPBF.Relation} */ public static final class Relation extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:OSMPBF.Relation) RelationOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", Relation.class.getName()); } // Use Relation.newBuilder() to construct. private Relation(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Relation() { keys_ = emptyIntList(); vals_ = emptyIntList(); rolesSid_ = emptyIntList(); memids_ = emptyLongList(); types_ = emptyIntList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Relation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Relation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.Relation.class, org.apache.baremaps.osm.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), ; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 0, /* suffix= */ "", MemberType.class.getName()); } /** * 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< MemberType> 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 org.apache.baremaps.osm.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_ = 0L; /** * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList keys_ = emptyIntList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList vals_ = emptyIntList(); /** * 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 org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Info getInfo() { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } /** * optional .OSMPBF.Info info = 4; */ @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } public static final int ROLES_SID_FIELD_NUMBER = 8; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList rolesSid_ = emptyIntList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList memids_ = emptyLongList(); /** *
     * 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; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList types_; private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType> types_converter_ = new com.google.protobuf.Internal.IntListAdapter.IntConverter< org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType>() { public org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType convert(int from) { org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType result = org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType.forNumber(from); return result == null ? org.apache.baremaps.osm.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.IntListAdapter< org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType>(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 org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType getTypes(int index) { return types_converter_.convert(types_.getInt(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_.getInt(i)); } getUnknownFields().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_.getInt(i)); } size += dataSize; if (!getTypesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }typesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.baremaps.osm.binary.Osmformat.Relation)) { return super.equals(obj); } org.apache.baremaps.osm.binary.Osmformat.Relation other = (org.apache.baremaps.osm.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.baremaps.osm.binary.Osmformat.Relation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Relation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.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 org.apache.baremaps.osm.binary.Osmformat.Relation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.baremaps.osm.binary.Osmformat.Relation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Relation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Relation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Relation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Relation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.apache.baremaps.osm.binary.Osmformat.Relation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.apache.baremaps.osm.binary.Osmformat.Relation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.baremaps.osm.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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code OSMPBF.Relation} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:OSMPBF.Relation) org.apache.baremaps.osm.binary.Osmformat.RelationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Relation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Relation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.baremaps.osm.binary.Osmformat.Relation.class, org.apache.baremaps.osm.binary.Osmformat.Relation.Builder.class); } // Construct using org.apache.baremaps.osm.binary.Osmformat.Relation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = 0L; keys_ = emptyIntList(); vals_ = emptyIntList(); info_ = null; if (infoBuilder_ != null) { infoBuilder_.dispose(); infoBuilder_ = null; } rolesSid_ = emptyIntList(); memids_ = emptyLongList(); types_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.baremaps.osm.binary.Osmformat.internal_static_OSMPBF_Relation_descriptor; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Relation getDefaultInstanceForType() { return org.apache.baremaps.osm.binary.Osmformat.Relation.getDefaultInstance(); } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Relation build() { org.apache.baremaps.osm.binary.Osmformat.Relation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.apache.baremaps.osm.binary.Osmformat.Relation buildPartial() { org.apache.baremaps.osm.binary.Osmformat.Relation result = new org.apache.baremaps.osm.binary.Osmformat.Relation(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.apache.baremaps.osm.binary.Osmformat.Relation result) { if (((bitField0_ & 0x00000040) != 0)) { types_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000040); } result.types_ = types_; } private void buildPartial0(org.apache.baremaps.osm.binary.Osmformat.Relation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { keys_.makeImmutable(); result.keys_ = keys_; } if (((from_bitField0_ & 0x00000004) != 0)) { vals_.makeImmutable(); result.vals_ = vals_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { rolesSid_.makeImmutable(); result.rolesSid_ = rolesSid_; } if (((from_bitField0_ & 0x00000020) != 0)) { memids_.makeImmutable(); result.memids_ = memids_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.baremaps.osm.binary.Osmformat.Relation) { return mergeFrom((org.apache.baremaps.osm.binary.Osmformat.Relation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.baremaps.osm.binary.Osmformat.Relation other) { if (other == org.apache.baremaps.osm.binary.Osmformat.Relation.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; keys_.makeImmutable(); bitField0_ |= 0x00000002; } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (!other.vals_.isEmpty()) { if (vals_.isEmpty()) { vals_ = other.vals_; vals_.makeImmutable(); 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_; rolesSid_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensureRolesSidIsMutable(); rolesSid_.addAll(other.rolesSid_); } onChanged(); } if (!other.memids_.isEmpty()) { if (memids_.isEmpty()) { memids_ = other.memids_; memids_.makeImmutable(); 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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { id_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { int v = input.readUInt32(); ensureKeysIsMutable(); keys_.addInt(v); break; } // case 16 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureKeysIsMutable(); while (input.getBytesUntilLimit() > 0) { keys_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 18 case 24: { int v = input.readUInt32(); ensureValsIsMutable(); vals_.addInt(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureValsIsMutable(); while (input.getBytesUntilLimit() > 0) { vals_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 26 case 34: { input.readMessage( getInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 64: { int v = input.readInt32(); ensureRolesSidIsMutable(); rolesSid_.addInt(v); break; } // case 64 case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureRolesSidIsMutable(); while (input.getBytesUntilLimit() > 0) { rolesSid_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 66 case 72: { long v = input.readSInt64(); ensureMemidsIsMutable(); memids_.addLong(v); break; } // case 72 case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureMemidsIsMutable(); while (input.getBytesUntilLimit() > 0) { memids_.addLong(input.readSInt64()); } input.popLimit(limit); break; } // case 74 case 80: { int tmpRaw = input.readEnum(); org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType tmpValue = org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(10, tmpRaw); } else { ensureTypesIsMutable(); types_.addInt(tmpRaw); } break; } // case 80 case 82: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType tmpValue = org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(10, tmpRaw); } else { ensureTypesIsMutable(); types_.addInt(tmpRaw); } } input.popLimit(oldLimit); break; } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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) { id_ = value; bitField0_ |= 0x00000001; 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 (!keys_.isModifiable()) { keys_ = makeMutableCopy(keys_); } bitField0_ |= 0x00000002; } /** *
       * Parallel arrays.
       * 
* * repeated uint32 keys = 2 [packed = true]; * @return A list containing the keys. */ public java.util.List getKeysList() { keys_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000002; 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); bitField0_ |= 0x00000002; 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 values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); bitField0_ |= 0x00000002; 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 (!vals_.isModifiable()) { vals_ = makeMutableCopy(vals_); } bitField0_ |= 0x00000004; } /** * repeated uint32 vals = 3 [packed = true]; * @return A list containing the vals. */ public java.util.List getValsList() { vals_.makeImmutable(); 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); } /** * 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); bitField0_ |= 0x00000004; 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); bitField0_ |= 0x00000004; 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 values) { ensureValsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, vals_); bitField0_ |= 0x00000004; 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 org.apache.baremaps.osm.binary.Osmformat.Info info_; private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Info, org.apache.baremaps.osm.binary.Osmformat.Info.Builder, org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder> 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 org.apache.baremaps.osm.binary.Osmformat.Info getInfo() { if (infoBuilder_ == null) { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } else { return infoBuilder_.getMessage(); } } /** * optional .OSMPBF.Info info = 4; */ public Builder setInfo(org.apache.baremaps.osm.binary.Osmformat.Info value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } info_ = value; } else { infoBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .OSMPBF.Info info = 4; */ public Builder setInfo( org.apache.baremaps.osm.binary.Osmformat.Info.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); } else { infoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional .OSMPBF.Info info = 4; */ public Builder mergeInfo(org.apache.baremaps.osm.binary.Osmformat.Info value) { if (infoBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && info_ != null && info_ != org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance()) { getInfoBuilder().mergeFrom(value); } else { info_ = value; } } else { infoBuilder_.mergeFrom(value); } if (info_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * optional .OSMPBF.Info info = 4; */ public Builder clearInfo() { bitField0_ = (bitField0_ & ~0x00000008); info_ = null; if (infoBuilder_ != null) { infoBuilder_.dispose(); infoBuilder_ = null; } onChanged(); return this; } /** * optional .OSMPBF.Info info = 4; */ public org.apache.baremaps.osm.binary.Osmformat.Info.Builder getInfoBuilder() { bitField0_ |= 0x00000008; onChanged(); return getInfoFieldBuilder().getBuilder(); } /** * optional .OSMPBF.Info info = 4; */ public org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilder(); } else { return info_ == null ? org.apache.baremaps.osm.binary.Osmformat.Info.getDefaultInstance() : info_; } } /** * optional .OSMPBF.Info info = 4; */ private com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Info, org.apache.baremaps.osm.binary.Osmformat.Info.Builder, org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { infoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.baremaps.osm.binary.Osmformat.Info, org.apache.baremaps.osm.binary.Osmformat.Info.Builder, org.apache.baremaps.osm.binary.Osmformat.InfoOrBuilder>( getInfo(), getParentForChildren(), isClean()); info_ = null; } return infoBuilder_; } private com.google.protobuf.Internal.IntList rolesSid_ = emptyIntList(); private void ensureRolesSidIsMutable() { if (!rolesSid_.isModifiable()) { rolesSid_ = makeMutableCopy(rolesSid_); } bitField0_ |= 0x00000010; } /** *
       * Parallel arrays
       * 
* * repeated int32 roles_sid = 8 [packed = true]; * @return A list containing the rolesSid. */ public java.util.List getRolesSidList() { rolesSid_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000010; 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); bitField0_ |= 0x00000010; 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 values) { ensureRolesSidIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rolesSid_); bitField0_ |= 0x00000010; 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 (!memids_.isModifiable()) { memids_ = makeMutableCopy(memids_); } bitField0_ |= 0x00000020; } /** *
       * DELTA encoded
       * 
* * repeated sint64 memids = 9 [packed = true]; * @return A list containing the memids. */ public java.util.List getMemidsList() { memids_.makeImmutable(); 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); } /** *
       * 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); bitField0_ |= 0x00000020; 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); bitField0_ |= 0x00000020; 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 values) { ensureMemidsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, memids_); bitField0_ |= 0x00000020; 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 com.google.protobuf.Internal.IntList types_ = emptyIntList(); private void ensureTypesIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { types_ = makeMutableCopy(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.IntListAdapter< org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType>(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 org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType getTypes(int index) { return types_converter_.convert(types_.getInt(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, org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType value) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.setInt(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(org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType value) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.addInt(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 values) { ensureTypesIsMutable(); for (org.apache.baremaps.osm.binary.Osmformat.Relation.MemberType value : values) { types_.addInt(value.getNumber()); } onChanged(); return this; } /** * repeated .OSMPBF.Relation.MemberType types = 10 [packed = true]; * @return This builder for chaining. */ public Builder clearTypes() { types_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:OSMPBF.Relation) } // @@protoc_insertion_point(class_scope:OSMPBF.Relation) private static final org.apache.baremaps.osm.binary.Osmformat.Relation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.baremaps.osm.binary.Osmformat.Relation(); } public static org.apache.baremaps.osm.binary.Osmformat.Relation getDefaultInstance() { return DEFAULT_INSTANCE; } private 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.apache.baremaps.osm.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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 = { "\n\017osmformat.proto\022\006OSMPBF\"\207\002\n\013HeaderBloc" + "k\022 \n\004bbox\030\001 \001(\0132\022.OSMPBF.HeaderBBox\022\031\n\021r" + "equired_features\030\004 \003(\t\022\031\n\021optional_featu" + "res\030\005 \003(\t\022\026\n\016writingprogram\030\020 \001(\t\022\016\n\006sou" + "rce\030\021 \001(\t\022%\n\035osmosis_replication_timesta" + "mp\030 \001(\003\022+\n#osmosis_replication_sequence" + "_number\030! \001(\003\022$\n\034osmosis_replication_bas" + "e_url\030\" \001(\t\"F\n\nHeaderBBox\022\014\n\004left\030\001 \002(\022\022" + "\r\n\005right\030\002 \002(\022\022\013\n\003top\030\003 \002(\022\022\016\n\006bottom\030\004 " + "\002(\022\"\322\001\n\016PrimitiveBlock\022(\n\013stringtable\030\001 " + "\002(\0132\023.OSMPBF.StringTable\022.\n\016primitivegro" + "up\030\002 \003(\0132\026.OSMPBF.PrimitiveGroup\022\030\n\013gran" + "ularity\030\021 \001(\005:\003100\022\025\n\nlat_offset\030\023 \001(\003:\001" + "0\022\025\n\nlon_offset\030\024 \001(\003:\0010\022\036\n\020date_granula" + "rity\030\022 \001(\005:\0041000\"\267\001\n\016PrimitiveGroup\022\033\n\005n" + "odes\030\001 \003(\0132\014.OSMPBF.Node\022!\n\005dense\030\002 \001(\0132" + "\022.OSMPBF.DenseNodes\022\031\n\004ways\030\003 \003(\0132\013.OSMP" + "BF.Way\022#\n\trelations\030\004 \003(\0132\020.OSMPBF.Relat" + "ion\022%\n\nchangesets\030\005 \003(\0132\021.OSMPBF.ChangeS" + "et\"\030\n\013StringTable\022\t\n\001s\030\001 \003(\014\"q\n\004Info\022\023\n\007" + "version\030\001 \001(\005:\002-1\022\021\n\ttimestamp\030\002 \001(\003\022\021\n\t" + "changeset\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\tDenseInfo\022\023\n" + "\007version\030\001 \003(\005B\002\020\001\022\025\n\ttimestamp\030\002 \003(\022B\002\020" + "\001\022\025\n\tchangeset\030\003 \003(\022B\002\020\001\022\017\n\003uid\030\004 \003(\021B\002\020" + "\001\022\024\n\010user_sid\030\005 \003(\021B\002\020\001\022\023\n\007visible\030\006 \003(\010" + "B\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\nDenseNodes\022\016\n\002id\030" + "\001 \003(\022B\002\020\001\022$\n\tdenseinfo\030\005 \001(\0132\021.OSMPBF.De" + "nseInfo\022\017\n\003lat\030\010 \003(\022B\002\020\001\022\017\n\003lon\030\t \003(\022B\002\020" + "\001\022\025\n\tkeys_vals\030\n \003(\005B\002\020\001\"\205\001\n\003Way\022\n\n\002id\030\001" + " \002(\003\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\020\n\004refs\030\010 \003" + "(\022B\002\020\001\022\017\n\003lat\030\t \003(\022B\002\020\001\022\017\n\003lon\030\n \003(\022B\002\020\001" + "\"\340\001\n\010Relation\022\n\n\002id\030\001 \002(\003\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.OS" + "MPBF.Info\022\025\n\troles_sid\030\010 \003(\005B\002\020\001\022\022\n\006memi" + "ds\030\t \003(\022B\002\020\001\022.\n\005types\030\n \003(\0162\033.OSMPBF.Rel" + "ation.MemberTypeB\002\020\001\"-\n\nMemberType\022\010\n\004NO" + "DE\020\000\022\007\n\003WAY\020\001\022\014\n\010RELATION\020\002B\"\n\036org.apach" + "e.baremaps.osm.binaryH\001" }; 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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.FieldAccessorTable( internal_static_OSMPBF_Relation_descriptor, new java.lang.String[] { "Id", "Keys", "Vals", "Info", "RolesSid", "Memids", "Types", }); descriptor.resolveAllFeaturesImmutable(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy