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

org.openstreetmap.atlas.proto.ProtoAtlasMetaData Maven / Gradle / Ivy

There is a newer version: 7.0.8
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ProtoAtlasMetaData.proto

package org.openstreetmap.atlas.proto;

/**
 * Protobuf type {@code org.openstreetmap.atlas.proto.ProtoAtlasMetaData}
 */
public final class ProtoAtlasMetaData extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:org.openstreetmap.atlas.proto.ProtoAtlasMetaData)
    ProtoAtlasMetaDataOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ProtoAtlasMetaData.newBuilder() to construct.
  private ProtoAtlasMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ProtoAtlasMetaData() {
    codeVersion_ = "";
    dataVersion_ = "";
    country_ = "";
    shardName_ = "";
    tags_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ProtoAtlasMetaData();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ProtoAtlasMetaData(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {
            bitField0_ |= 0x00000001;
            edgeNumber_ = input.readInt64();
            break;
          }
          case 16: {
            bitField0_ |= 0x00000002;
            nodeNumber_ = input.readInt64();
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            areaNumber_ = input.readInt64();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            lineNumber_ = input.readInt64();
            break;
          }
          case 40: {
            bitField0_ |= 0x00000010;
            pointNumber_ = input.readInt64();
            break;
          }
          case 48: {
            bitField0_ |= 0x00000020;
            relationNumber_ = input.readInt64();
            break;
          }
          case 56: {
            bitField0_ |= 0x00000040;
            original_ = input.readBool();
            break;
          }
          case 66: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000080;
            codeVersion_ = bs;
            break;
          }
          case 74: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000100;
            dataVersion_ = bs;
            break;
          }
          case 82: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000200;
            country_ = bs;
            break;
          }
          case 90: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000400;
            shardName_ = bs;
            break;
          }
          case 98: {
            if (!((mutable_bitField0_ & 0x00000800) != 0)) {
              tags_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000800;
            }
            tags_.add(
                input.readMessage(org.openstreetmap.atlas.proto.ProtoTag.PARSER, extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000800) != 0)) {
        tags_ = java.util.Collections.unmodifiableList(tags_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.openstreetmap.atlas.proto.ProtoAtlasMetaDataWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoAtlasMetaData_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.openstreetmap.atlas.proto.ProtoAtlasMetaDataWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoAtlasMetaData_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.openstreetmap.atlas.proto.ProtoAtlasMetaData.class, org.openstreetmap.atlas.proto.ProtoAtlasMetaData.Builder.class);
  }

  private int bitField0_;
  public static final int EDGENUMBER_FIELD_NUMBER = 1;
  private long edgeNumber_;
  /**
   * optional int64 edgeNumber = 1;
   * @return Whether the edgeNumber field is set.
   */
  @java.lang.Override
  public boolean hasEdgeNumber() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional int64 edgeNumber = 1;
   * @return The edgeNumber.
   */
  @java.lang.Override
  public long getEdgeNumber() {
    return edgeNumber_;
  }

  public static final int NODENUMBER_FIELD_NUMBER = 2;
  private long nodeNumber_;
  /**
   * optional int64 nodeNumber = 2;
   * @return Whether the nodeNumber field is set.
   */
  @java.lang.Override
  public boolean hasNodeNumber() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional int64 nodeNumber = 2;
   * @return The nodeNumber.
   */
  @java.lang.Override
  public long getNodeNumber() {
    return nodeNumber_;
  }

  public static final int AREANUMBER_FIELD_NUMBER = 3;
  private long areaNumber_;
  /**
   * optional int64 areaNumber = 3;
   * @return Whether the areaNumber field is set.
   */
  @java.lang.Override
  public boolean hasAreaNumber() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional int64 areaNumber = 3;
   * @return The areaNumber.
   */
  @java.lang.Override
  public long getAreaNumber() {
    return areaNumber_;
  }

  public static final int LINENUMBER_FIELD_NUMBER = 4;
  private long lineNumber_;
  /**
   * optional int64 lineNumber = 4;
   * @return Whether the lineNumber field is set.
   */
  @java.lang.Override
  public boolean hasLineNumber() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional int64 lineNumber = 4;
   * @return The lineNumber.
   */
  @java.lang.Override
  public long getLineNumber() {
    return lineNumber_;
  }

  public static final int POINTNUMBER_FIELD_NUMBER = 5;
  private long pointNumber_;
  /**
   * optional int64 pointNumber = 5;
   * @return Whether the pointNumber field is set.
   */
  @java.lang.Override
  public boolean hasPointNumber() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional int64 pointNumber = 5;
   * @return The pointNumber.
   */
  @java.lang.Override
  public long getPointNumber() {
    return pointNumber_;
  }

  public static final int RELATIONNUMBER_FIELD_NUMBER = 6;
  private long relationNumber_;
  /**
   * optional int64 relationNumber = 6;
   * @return Whether the relationNumber field is set.
   */
  @java.lang.Override
  public boolean hasRelationNumber() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional int64 relationNumber = 6;
   * @return The relationNumber.
   */
  @java.lang.Override
  public long getRelationNumber() {
    return relationNumber_;
  }

  public static final int ORIGINAL_FIELD_NUMBER = 7;
  private boolean original_;
  /**
   * optional bool original = 7;
   * @return Whether the original field is set.
   */
  @java.lang.Override
  public boolean hasOriginal() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional bool original = 7;
   * @return The original.
   */
  @java.lang.Override
  public boolean getOriginal() {
    return original_;
  }

  public static final int CODEVERSION_FIELD_NUMBER = 8;
  private volatile java.lang.Object codeVersion_;
  /**
   * optional string codeVersion = 8;
   * @return Whether the codeVersion field is set.
   */
  @java.lang.Override
  public boolean hasCodeVersion() {
    return ((bitField0_ & 0x00000080) != 0);
  }
  /**
   * optional string codeVersion = 8;
   * @return The codeVersion.
   */
  @java.lang.Override
  public java.lang.String getCodeVersion() {
    java.lang.Object ref = codeVersion_;
    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()) {
        codeVersion_ = s;
      }
      return s;
    }
  }
  /**
   * optional string codeVersion = 8;
   * @return The bytes for codeVersion.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCodeVersionBytes() {
    java.lang.Object ref = codeVersion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      codeVersion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DATAVERSION_FIELD_NUMBER = 9;
  private volatile java.lang.Object dataVersion_;
  /**
   * optional string dataVersion = 9;
   * @return Whether the dataVersion field is set.
   */
  @java.lang.Override
  public boolean hasDataVersion() {
    return ((bitField0_ & 0x00000100) != 0);
  }
  /**
   * optional string dataVersion = 9;
   * @return The dataVersion.
   */
  @java.lang.Override
  public java.lang.String getDataVersion() {
    java.lang.Object ref = dataVersion_;
    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()) {
        dataVersion_ = s;
      }
      return s;
    }
  }
  /**
   * optional string dataVersion = 9;
   * @return The bytes for dataVersion.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDataVersionBytes() {
    java.lang.Object ref = dataVersion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      dataVersion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int COUNTRY_FIELD_NUMBER = 10;
  private volatile java.lang.Object country_;
  /**
   * optional string country = 10;
   * @return Whether the country field is set.
   */
  @java.lang.Override
  public boolean hasCountry() {
    return ((bitField0_ & 0x00000200) != 0);
  }
  /**
   * optional string country = 10;
   * @return The country.
   */
  @java.lang.Override
  public java.lang.String getCountry() {
    java.lang.Object ref = country_;
    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()) {
        country_ = s;
      }
      return s;
    }
  }
  /**
   * optional string country = 10;
   * @return The bytes for country.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCountryBytes() {
    java.lang.Object ref = country_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      country_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SHARDNAME_FIELD_NUMBER = 11;
  private volatile java.lang.Object shardName_;
  /**
   * optional string shardName = 11;
   * @return Whether the shardName field is set.
   */
  @java.lang.Override
  public boolean hasShardName() {
    return ((bitField0_ & 0x00000400) != 0);
  }
  /**
   * optional string shardName = 11;
   * @return The shardName.
   */
  @java.lang.Override
  public java.lang.String getShardName() {
    java.lang.Object ref = shardName_;
    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()) {
        shardName_ = s;
      }
      return s;
    }
  }
  /**
   * optional string shardName = 11;
   * @return The bytes for shardName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getShardNameBytes() {
    java.lang.Object ref = shardName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      shardName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TAGS_FIELD_NUMBER = 12;
  private java.util.List tags_;
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
   */
  @java.lang.Override
  public java.util.List getTagsList() {
    return tags_;
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
   */
  @java.lang.Override
  public java.util.List 
      getTagsOrBuilderList() {
    return tags_;
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
   */
  @java.lang.Override
  public int getTagsCount() {
    return tags_.size();
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
   */
  @java.lang.Override
  public org.openstreetmap.atlas.proto.ProtoTag getTags(int index) {
    return tags_.get(index);
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
   */
  @java.lang.Override
  public org.openstreetmap.atlas.proto.ProtoTagOrBuilder getTagsOrBuilder(
      int index) {
    return tags_.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 {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeInt64(1, edgeNumber_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeInt64(2, nodeNumber_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeInt64(3, areaNumber_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeInt64(4, lineNumber_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeInt64(5, pointNumber_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeInt64(6, relationNumber_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      output.writeBool(7, original_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, codeVersion_);
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, dataVersion_);
    }
    if (((bitField0_ & 0x00000200) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, country_);
    }
    if (((bitField0_ & 0x00000400) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, shardName_);
    }
    for (int i = 0; i < tags_.size(); i++) {
      output.writeMessage(12, tags_.get(i));
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(1, edgeNumber_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(2, nodeNumber_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(3, areaNumber_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, lineNumber_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, pointNumber_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(6, relationNumber_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(7, original_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, codeVersion_);
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, dataVersion_);
    }
    if (((bitField0_ & 0x00000200) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, country_);
    }
    if (((bitField0_ & 0x00000400) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, shardName_);
    }
    for (int i = 0; i < tags_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(12, tags_.get(i));
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof org.openstreetmap.atlas.proto.ProtoAtlasMetaData)) {
      return super.equals(obj);
    }
    org.openstreetmap.atlas.proto.ProtoAtlasMetaData other = (org.openstreetmap.atlas.proto.ProtoAtlasMetaData) obj;

    if (hasEdgeNumber() != other.hasEdgeNumber()) return false;
    if (hasEdgeNumber()) {
      if (getEdgeNumber()
          != other.getEdgeNumber()) return false;
    }
    if (hasNodeNumber() != other.hasNodeNumber()) return false;
    if (hasNodeNumber()) {
      if (getNodeNumber()
          != other.getNodeNumber()) return false;
    }
    if (hasAreaNumber() != other.hasAreaNumber()) return false;
    if (hasAreaNumber()) {
      if (getAreaNumber()
          != other.getAreaNumber()) return false;
    }
    if (hasLineNumber() != other.hasLineNumber()) return false;
    if (hasLineNumber()) {
      if (getLineNumber()
          != other.getLineNumber()) return false;
    }
    if (hasPointNumber() != other.hasPointNumber()) return false;
    if (hasPointNumber()) {
      if (getPointNumber()
          != other.getPointNumber()) return false;
    }
    if (hasRelationNumber() != other.hasRelationNumber()) return false;
    if (hasRelationNumber()) {
      if (getRelationNumber()
          != other.getRelationNumber()) return false;
    }
    if (hasOriginal() != other.hasOriginal()) return false;
    if (hasOriginal()) {
      if (getOriginal()
          != other.getOriginal()) return false;
    }
    if (hasCodeVersion() != other.hasCodeVersion()) return false;
    if (hasCodeVersion()) {
      if (!getCodeVersion()
          .equals(other.getCodeVersion())) return false;
    }
    if (hasDataVersion() != other.hasDataVersion()) return false;
    if (hasDataVersion()) {
      if (!getDataVersion()
          .equals(other.getDataVersion())) return false;
    }
    if (hasCountry() != other.hasCountry()) return false;
    if (hasCountry()) {
      if (!getCountry()
          .equals(other.getCountry())) return false;
    }
    if (hasShardName() != other.hasShardName()) return false;
    if (hasShardName()) {
      if (!getShardName()
          .equals(other.getShardName())) return false;
    }
    if (!getTagsList()
        .equals(other.getTagsList())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasEdgeNumber()) {
      hash = (37 * hash) + EDGENUMBER_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getEdgeNumber());
    }
    if (hasNodeNumber()) {
      hash = (37 * hash) + NODENUMBER_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getNodeNumber());
    }
    if (hasAreaNumber()) {
      hash = (37 * hash) + AREANUMBER_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getAreaNumber());
    }
    if (hasLineNumber()) {
      hash = (37 * hash) + LINENUMBER_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getLineNumber());
    }
    if (hasPointNumber()) {
      hash = (37 * hash) + POINTNUMBER_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getPointNumber());
    }
    if (hasRelationNumber()) {
      hash = (37 * hash) + RELATIONNUMBER_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getRelationNumber());
    }
    if (hasOriginal()) {
      hash = (37 * hash) + ORIGINAL_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getOriginal());
    }
    if (hasCodeVersion()) {
      hash = (37 * hash) + CODEVERSION_FIELD_NUMBER;
      hash = (53 * hash) + getCodeVersion().hashCode();
    }
    if (hasDataVersion()) {
      hash = (37 * hash) + DATAVERSION_FIELD_NUMBER;
      hash = (53 * hash) + getDataVersion().hashCode();
    }
    if (hasCountry()) {
      hash = (37 * hash) + COUNTRY_FIELD_NUMBER;
      hash = (53 * hash) + getCountry().hashCode();
    }
    if (hasShardName()) {
      hash = (37 * hash) + SHARDNAME_FIELD_NUMBER;
      hash = (53 * hash) + getShardName().hashCode();
    }
    if (getTagsCount() > 0) {
      hash = (37 * hash) + TAGS_FIELD_NUMBER;
      hash = (53 * hash) + getTagsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(org.openstreetmap.atlas.proto.ProtoAtlasMetaData prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code org.openstreetmap.atlas.proto.ProtoAtlasMetaData}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:org.openstreetmap.atlas.proto.ProtoAtlasMetaData)
      org.openstreetmap.atlas.proto.ProtoAtlasMetaDataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.openstreetmap.atlas.proto.ProtoAtlasMetaDataWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoAtlasMetaData_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.openstreetmap.atlas.proto.ProtoAtlasMetaDataWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoAtlasMetaData_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.openstreetmap.atlas.proto.ProtoAtlasMetaData.class, org.openstreetmap.atlas.proto.ProtoAtlasMetaData.Builder.class);
    }

    // Construct using org.openstreetmap.atlas.proto.ProtoAtlasMetaData.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getTagsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      edgeNumber_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000001);
      nodeNumber_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000002);
      areaNumber_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000004);
      lineNumber_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000008);
      pointNumber_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000010);
      relationNumber_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000020);
      original_ = false;
      bitField0_ = (bitField0_ & ~0x00000040);
      codeVersion_ = "";
      bitField0_ = (bitField0_ & ~0x00000080);
      dataVersion_ = "";
      bitField0_ = (bitField0_ & ~0x00000100);
      country_ = "";
      bitField0_ = (bitField0_ & ~0x00000200);
      shardName_ = "";
      bitField0_ = (bitField0_ & ~0x00000400);
      if (tagsBuilder_ == null) {
        tags_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000800);
      } else {
        tagsBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.openstreetmap.atlas.proto.ProtoAtlasMetaDataWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoAtlasMetaData_descriptor;
    }

    @java.lang.Override
    public org.openstreetmap.atlas.proto.ProtoAtlasMetaData getDefaultInstanceForType() {
      return org.openstreetmap.atlas.proto.ProtoAtlasMetaData.getDefaultInstance();
    }

    @java.lang.Override
    public org.openstreetmap.atlas.proto.ProtoAtlasMetaData build() {
      org.openstreetmap.atlas.proto.ProtoAtlasMetaData result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.openstreetmap.atlas.proto.ProtoAtlasMetaData buildPartial() {
      org.openstreetmap.atlas.proto.ProtoAtlasMetaData result = new org.openstreetmap.atlas.proto.ProtoAtlasMetaData(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.edgeNumber_ = edgeNumber_;
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.nodeNumber_ = nodeNumber_;
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.areaNumber_ = areaNumber_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.lineNumber_ = lineNumber_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.pointNumber_ = pointNumber_;
        to_bitField0_ |= 0x00000010;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.relationNumber_ = relationNumber_;
        to_bitField0_ |= 0x00000020;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.original_ = original_;
        to_bitField0_ |= 0x00000040;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        to_bitField0_ |= 0x00000080;
      }
      result.codeVersion_ = codeVersion_;
      if (((from_bitField0_ & 0x00000100) != 0)) {
        to_bitField0_ |= 0x00000100;
      }
      result.dataVersion_ = dataVersion_;
      if (((from_bitField0_ & 0x00000200) != 0)) {
        to_bitField0_ |= 0x00000200;
      }
      result.country_ = country_;
      if (((from_bitField0_ & 0x00000400) != 0)) {
        to_bitField0_ |= 0x00000400;
      }
      result.shardName_ = shardName_;
      if (tagsBuilder_ == null) {
        if (((bitField0_ & 0x00000800) != 0)) {
          tags_ = java.util.Collections.unmodifiableList(tags_);
          bitField0_ = (bitField0_ & ~0x00000800);
        }
        result.tags_ = tags_;
      } else {
        result.tags_ = tagsBuilder_.build();
      }
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof org.openstreetmap.atlas.proto.ProtoAtlasMetaData) {
        return mergeFrom((org.openstreetmap.atlas.proto.ProtoAtlasMetaData)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.openstreetmap.atlas.proto.ProtoAtlasMetaData other) {
      if (other == org.openstreetmap.atlas.proto.ProtoAtlasMetaData.getDefaultInstance()) return this;
      if (other.hasEdgeNumber()) {
        setEdgeNumber(other.getEdgeNumber());
      }
      if (other.hasNodeNumber()) {
        setNodeNumber(other.getNodeNumber());
      }
      if (other.hasAreaNumber()) {
        setAreaNumber(other.getAreaNumber());
      }
      if (other.hasLineNumber()) {
        setLineNumber(other.getLineNumber());
      }
      if (other.hasPointNumber()) {
        setPointNumber(other.getPointNumber());
      }
      if (other.hasRelationNumber()) {
        setRelationNumber(other.getRelationNumber());
      }
      if (other.hasOriginal()) {
        setOriginal(other.getOriginal());
      }
      if (other.hasCodeVersion()) {
        bitField0_ |= 0x00000080;
        codeVersion_ = other.codeVersion_;
        onChanged();
      }
      if (other.hasDataVersion()) {
        bitField0_ |= 0x00000100;
        dataVersion_ = other.dataVersion_;
        onChanged();
      }
      if (other.hasCountry()) {
        bitField0_ |= 0x00000200;
        country_ = other.country_;
        onChanged();
      }
      if (other.hasShardName()) {
        bitField0_ |= 0x00000400;
        shardName_ = other.shardName_;
        onChanged();
      }
      if (tagsBuilder_ == null) {
        if (!other.tags_.isEmpty()) {
          if (tags_.isEmpty()) {
            tags_ = other.tags_;
            bitField0_ = (bitField0_ & ~0x00000800);
          } else {
            ensureTagsIsMutable();
            tags_.addAll(other.tags_);
          }
          onChanged();
        }
      } else {
        if (!other.tags_.isEmpty()) {
          if (tagsBuilder_.isEmpty()) {
            tagsBuilder_.dispose();
            tagsBuilder_ = null;
            tags_ = other.tags_;
            bitField0_ = (bitField0_ & ~0x00000800);
            tagsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getTagsFieldBuilder() : null;
          } else {
            tagsBuilder_.addAllMessages(other.tags_);
          }
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      org.openstreetmap.atlas.proto.ProtoAtlasMetaData parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.openstreetmap.atlas.proto.ProtoAtlasMetaData) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private long edgeNumber_ ;
    /**
     * optional int64 edgeNumber = 1;
     * @return Whether the edgeNumber field is set.
     */
    @java.lang.Override
    public boolean hasEdgeNumber() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional int64 edgeNumber = 1;
     * @return The edgeNumber.
     */
    @java.lang.Override
    public long getEdgeNumber() {
      return edgeNumber_;
    }
    /**
     * optional int64 edgeNumber = 1;
     * @param value The edgeNumber to set.
     * @return This builder for chaining.
     */
    public Builder setEdgeNumber(long value) {
      bitField0_ |= 0x00000001;
      edgeNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 edgeNumber = 1;
     * @return This builder for chaining.
     */
    public Builder clearEdgeNumber() {
      bitField0_ = (bitField0_ & ~0x00000001);
      edgeNumber_ = 0L;
      onChanged();
      return this;
    }

    private long nodeNumber_ ;
    /**
     * optional int64 nodeNumber = 2;
     * @return Whether the nodeNumber field is set.
     */
    @java.lang.Override
    public boolean hasNodeNumber() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional int64 nodeNumber = 2;
     * @return The nodeNumber.
     */
    @java.lang.Override
    public long getNodeNumber() {
      return nodeNumber_;
    }
    /**
     * optional int64 nodeNumber = 2;
     * @param value The nodeNumber to set.
     * @return This builder for chaining.
     */
    public Builder setNodeNumber(long value) {
      bitField0_ |= 0x00000002;
      nodeNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 nodeNumber = 2;
     * @return This builder for chaining.
     */
    public Builder clearNodeNumber() {
      bitField0_ = (bitField0_ & ~0x00000002);
      nodeNumber_ = 0L;
      onChanged();
      return this;
    }

    private long areaNumber_ ;
    /**
     * optional int64 areaNumber = 3;
     * @return Whether the areaNumber field is set.
     */
    @java.lang.Override
    public boolean hasAreaNumber() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional int64 areaNumber = 3;
     * @return The areaNumber.
     */
    @java.lang.Override
    public long getAreaNumber() {
      return areaNumber_;
    }
    /**
     * optional int64 areaNumber = 3;
     * @param value The areaNumber to set.
     * @return This builder for chaining.
     */
    public Builder setAreaNumber(long value) {
      bitField0_ |= 0x00000004;
      areaNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 areaNumber = 3;
     * @return This builder for chaining.
     */
    public Builder clearAreaNumber() {
      bitField0_ = (bitField0_ & ~0x00000004);
      areaNumber_ = 0L;
      onChanged();
      return this;
    }

    private long lineNumber_ ;
    /**
     * optional int64 lineNumber = 4;
     * @return Whether the lineNumber field is set.
     */
    @java.lang.Override
    public boolean hasLineNumber() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional int64 lineNumber = 4;
     * @return The lineNumber.
     */
    @java.lang.Override
    public long getLineNumber() {
      return lineNumber_;
    }
    /**
     * optional int64 lineNumber = 4;
     * @param value The lineNumber to set.
     * @return This builder for chaining.
     */
    public Builder setLineNumber(long value) {
      bitField0_ |= 0x00000008;
      lineNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 lineNumber = 4;
     * @return This builder for chaining.
     */
    public Builder clearLineNumber() {
      bitField0_ = (bitField0_ & ~0x00000008);
      lineNumber_ = 0L;
      onChanged();
      return this;
    }

    private long pointNumber_ ;
    /**
     * optional int64 pointNumber = 5;
     * @return Whether the pointNumber field is set.
     */
    @java.lang.Override
    public boolean hasPointNumber() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional int64 pointNumber = 5;
     * @return The pointNumber.
     */
    @java.lang.Override
    public long getPointNumber() {
      return pointNumber_;
    }
    /**
     * optional int64 pointNumber = 5;
     * @param value The pointNumber to set.
     * @return This builder for chaining.
     */
    public Builder setPointNumber(long value) {
      bitField0_ |= 0x00000010;
      pointNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 pointNumber = 5;
     * @return This builder for chaining.
     */
    public Builder clearPointNumber() {
      bitField0_ = (bitField0_ & ~0x00000010);
      pointNumber_ = 0L;
      onChanged();
      return this;
    }

    private long relationNumber_ ;
    /**
     * optional int64 relationNumber = 6;
     * @return Whether the relationNumber field is set.
     */
    @java.lang.Override
    public boolean hasRelationNumber() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional int64 relationNumber = 6;
     * @return The relationNumber.
     */
    @java.lang.Override
    public long getRelationNumber() {
      return relationNumber_;
    }
    /**
     * optional int64 relationNumber = 6;
     * @param value The relationNumber to set.
     * @return This builder for chaining.
     */
    public Builder setRelationNumber(long value) {
      bitField0_ |= 0x00000020;
      relationNumber_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 relationNumber = 6;
     * @return This builder for chaining.
     */
    public Builder clearRelationNumber() {
      bitField0_ = (bitField0_ & ~0x00000020);
      relationNumber_ = 0L;
      onChanged();
      return this;
    }

    private boolean original_ ;
    /**
     * optional bool original = 7;
     * @return Whether the original field is set.
     */
    @java.lang.Override
    public boolean hasOriginal() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * optional bool original = 7;
     * @return The original.
     */
    @java.lang.Override
    public boolean getOriginal() {
      return original_;
    }
    /**
     * optional bool original = 7;
     * @param value The original to set.
     * @return This builder for chaining.
     */
    public Builder setOriginal(boolean value) {
      bitField0_ |= 0x00000040;
      original_ = value;
      onChanged();
      return this;
    }
    /**
     * optional bool original = 7;
     * @return This builder for chaining.
     */
    public Builder clearOriginal() {
      bitField0_ = (bitField0_ & ~0x00000040);
      original_ = false;
      onChanged();
      return this;
    }

    private java.lang.Object codeVersion_ = "";
    /**
     * optional string codeVersion = 8;
     * @return Whether the codeVersion field is set.
     */
    public boolean hasCodeVersion() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     * optional string codeVersion = 8;
     * @return The codeVersion.
     */
    public java.lang.String getCodeVersion() {
      java.lang.Object ref = codeVersion_;
      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()) {
          codeVersion_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string codeVersion = 8;
     * @return The bytes for codeVersion.
     */
    public com.google.protobuf.ByteString
        getCodeVersionBytes() {
      java.lang.Object ref = codeVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        codeVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string codeVersion = 8;
     * @param value The codeVersion to set.
     * @return This builder for chaining.
     */
    public Builder setCodeVersion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000080;
      codeVersion_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string codeVersion = 8;
     * @return This builder for chaining.
     */
    public Builder clearCodeVersion() {
      bitField0_ = (bitField0_ & ~0x00000080);
      codeVersion_ = getDefaultInstance().getCodeVersion();
      onChanged();
      return this;
    }
    /**
     * optional string codeVersion = 8;
     * @param value The bytes for codeVersion to set.
     * @return This builder for chaining.
     */
    public Builder setCodeVersionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000080;
      codeVersion_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object dataVersion_ = "";
    /**
     * optional string dataVersion = 9;
     * @return Whether the dataVersion field is set.
     */
    public boolean hasDataVersion() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     * optional string dataVersion = 9;
     * @return The dataVersion.
     */
    public java.lang.String getDataVersion() {
      java.lang.Object ref = dataVersion_;
      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()) {
          dataVersion_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string dataVersion = 9;
     * @return The bytes for dataVersion.
     */
    public com.google.protobuf.ByteString
        getDataVersionBytes() {
      java.lang.Object ref = dataVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dataVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string dataVersion = 9;
     * @param value The dataVersion to set.
     * @return This builder for chaining.
     */
    public Builder setDataVersion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000100;
      dataVersion_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string dataVersion = 9;
     * @return This builder for chaining.
     */
    public Builder clearDataVersion() {
      bitField0_ = (bitField0_ & ~0x00000100);
      dataVersion_ = getDefaultInstance().getDataVersion();
      onChanged();
      return this;
    }
    /**
     * optional string dataVersion = 9;
     * @param value The bytes for dataVersion to set.
     * @return This builder for chaining.
     */
    public Builder setDataVersionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000100;
      dataVersion_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object country_ = "";
    /**
     * optional string country = 10;
     * @return Whether the country field is set.
     */
    public boolean hasCountry() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     * optional string country = 10;
     * @return The country.
     */
    public java.lang.String getCountry() {
      java.lang.Object ref = country_;
      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()) {
          country_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string country = 10;
     * @return The bytes for country.
     */
    public com.google.protobuf.ByteString
        getCountryBytes() {
      java.lang.Object ref = country_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        country_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string country = 10;
     * @param value The country to set.
     * @return This builder for chaining.
     */
    public Builder setCountry(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000200;
      country_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string country = 10;
     * @return This builder for chaining.
     */
    public Builder clearCountry() {
      bitField0_ = (bitField0_ & ~0x00000200);
      country_ = getDefaultInstance().getCountry();
      onChanged();
      return this;
    }
    /**
     * optional string country = 10;
     * @param value The bytes for country to set.
     * @return This builder for chaining.
     */
    public Builder setCountryBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000200;
      country_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object shardName_ = "";
    /**
     * optional string shardName = 11;
     * @return Whether the shardName field is set.
     */
    public boolean hasShardName() {
      return ((bitField0_ & 0x00000400) != 0);
    }
    /**
     * optional string shardName = 11;
     * @return The shardName.
     */
    public java.lang.String getShardName() {
      java.lang.Object ref = shardName_;
      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()) {
          shardName_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string shardName = 11;
     * @return The bytes for shardName.
     */
    public com.google.protobuf.ByteString
        getShardNameBytes() {
      java.lang.Object ref = shardName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        shardName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string shardName = 11;
     * @param value The shardName to set.
     * @return This builder for chaining.
     */
    public Builder setShardName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000400;
      shardName_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string shardName = 11;
     * @return This builder for chaining.
     */
    public Builder clearShardName() {
      bitField0_ = (bitField0_ & ~0x00000400);
      shardName_ = getDefaultInstance().getShardName();
      onChanged();
      return this;
    }
    /**
     * optional string shardName = 11;
     * @param value The bytes for shardName to set.
     * @return This builder for chaining.
     */
    public Builder setShardNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000400;
      shardName_ = value;
      onChanged();
      return this;
    }

    private java.util.List tags_ =
      java.util.Collections.emptyList();
    private void ensureTagsIsMutable() {
      if (!((bitField0_ & 0x00000800) != 0)) {
        tags_ = new java.util.ArrayList(tags_);
        bitField0_ |= 0x00000800;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.openstreetmap.atlas.proto.ProtoTag, org.openstreetmap.atlas.proto.ProtoTag.Builder, org.openstreetmap.atlas.proto.ProtoTagOrBuilder> tagsBuilder_;

    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public java.util.List getTagsList() {
      if (tagsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(tags_);
      } else {
        return tagsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public int getTagsCount() {
      if (tagsBuilder_ == null) {
        return tags_.size();
      } else {
        return tagsBuilder_.getCount();
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public org.openstreetmap.atlas.proto.ProtoTag getTags(int index) {
      if (tagsBuilder_ == null) {
        return tags_.get(index);
      } else {
        return tagsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public Builder setTags(
        int index, org.openstreetmap.atlas.proto.ProtoTag value) {
      if (tagsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTagsIsMutable();
        tags_.set(index, value);
        onChanged();
      } else {
        tagsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public Builder setTags(
        int index, org.openstreetmap.atlas.proto.ProtoTag.Builder builderForValue) {
      if (tagsBuilder_ == null) {
        ensureTagsIsMutable();
        tags_.set(index, builderForValue.build());
        onChanged();
      } else {
        tagsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public Builder addTags(org.openstreetmap.atlas.proto.ProtoTag value) {
      if (tagsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTagsIsMutable();
        tags_.add(value);
        onChanged();
      } else {
        tagsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public Builder addTags(
        int index, org.openstreetmap.atlas.proto.ProtoTag value) {
      if (tagsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTagsIsMutable();
        tags_.add(index, value);
        onChanged();
      } else {
        tagsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public Builder addTags(
        org.openstreetmap.atlas.proto.ProtoTag.Builder builderForValue) {
      if (tagsBuilder_ == null) {
        ensureTagsIsMutable();
        tags_.add(builderForValue.build());
        onChanged();
      } else {
        tagsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public Builder addTags(
        int index, org.openstreetmap.atlas.proto.ProtoTag.Builder builderForValue) {
      if (tagsBuilder_ == null) {
        ensureTagsIsMutable();
        tags_.add(index, builderForValue.build());
        onChanged();
      } else {
        tagsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public Builder addAllTags(
        java.lang.Iterable values) {
      if (tagsBuilder_ == null) {
        ensureTagsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, tags_);
        onChanged();
      } else {
        tagsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public Builder clearTags() {
      if (tagsBuilder_ == null) {
        tags_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000800);
        onChanged();
      } else {
        tagsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public Builder removeTags(int index) {
      if (tagsBuilder_ == null) {
        ensureTagsIsMutable();
        tags_.remove(index);
        onChanged();
      } else {
        tagsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public org.openstreetmap.atlas.proto.ProtoTag.Builder getTagsBuilder(
        int index) {
      return getTagsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public org.openstreetmap.atlas.proto.ProtoTagOrBuilder getTagsOrBuilder(
        int index) {
      if (tagsBuilder_ == null) {
        return tags_.get(index);  } else {
        return tagsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public java.util.List 
         getTagsOrBuilderList() {
      if (tagsBuilder_ != null) {
        return tagsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(tags_);
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public org.openstreetmap.atlas.proto.ProtoTag.Builder addTagsBuilder() {
      return getTagsFieldBuilder().addBuilder(
          org.openstreetmap.atlas.proto.ProtoTag.getDefaultInstance());
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public org.openstreetmap.atlas.proto.ProtoTag.Builder addTagsBuilder(
        int index) {
      return getTagsFieldBuilder().addBuilder(
          index, org.openstreetmap.atlas.proto.ProtoTag.getDefaultInstance());
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 12;
     */
    public java.util.List 
         getTagsBuilderList() {
      return getTagsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.openstreetmap.atlas.proto.ProtoTag, org.openstreetmap.atlas.proto.ProtoTag.Builder, org.openstreetmap.atlas.proto.ProtoTagOrBuilder> 
        getTagsFieldBuilder() {
      if (tagsBuilder_ == null) {
        tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            org.openstreetmap.atlas.proto.ProtoTag, org.openstreetmap.atlas.proto.ProtoTag.Builder, org.openstreetmap.atlas.proto.ProtoTagOrBuilder>(
                tags_,
                ((bitField0_ & 0x00000800) != 0),
                getParentForChildren(),
                isClean());
        tags_ = null;
      }
      return tagsBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:org.openstreetmap.atlas.proto.ProtoAtlasMetaData)
  }

  // @@protoc_insertion_point(class_scope:org.openstreetmap.atlas.proto.ProtoAtlasMetaData)
  private static final org.openstreetmap.atlas.proto.ProtoAtlasMetaData DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.openstreetmap.atlas.proto.ProtoAtlasMetaData();
  }

  public static org.openstreetmap.atlas.proto.ProtoAtlasMetaData getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public ProtoAtlasMetaData parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new ProtoAtlasMetaData(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public org.openstreetmap.atlas.proto.ProtoAtlasMetaData getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy