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

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

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

package org.openstreetmap.atlas.proto;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ProtoLine(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {
            bitField0_ |= 0x00000001;
            id_ = input.readInt64();
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              shapePoints_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            shapePoints_.add(
                input.readMessage(org.openstreetmap.atlas.proto.ProtoLocation.PARSER, extensionRegistry));
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              tags_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            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_ & 0x00000002) != 0)) {
        shapePoints_ = java.util.Collections.unmodifiableList(shapePoints_);
      }
      if (((mutable_bitField0_ & 0x00000004) != 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.ProtoLineWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoLine_descriptor;
  }

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

  private int bitField0_;
  public static final int ID_FIELD_NUMBER = 1;
  private long id_;
  /**
   * optional int64 id = 1;
   * @return Whether the id field is set.
   */
  @java.lang.Override
  public boolean hasId() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional int64 id = 1;
   * @return The id.
   */
  @java.lang.Override
  public long getId() {
    return id_;
  }

  public static final int SHAPEPOINTS_FIELD_NUMBER = 2;
  private java.util.List shapePoints_;
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
   */
  @java.lang.Override
  public java.util.List getShapePointsList() {
    return shapePoints_;
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
   */
  @java.lang.Override
  public java.util.List 
      getShapePointsOrBuilderList() {
    return shapePoints_;
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
   */
  @java.lang.Override
  public int getShapePointsCount() {
    return shapePoints_.size();
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
   */
  @java.lang.Override
  public org.openstreetmap.atlas.proto.ProtoLocation getShapePoints(int index) {
    return shapePoints_.get(index);
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
   */
  @java.lang.Override
  public org.openstreetmap.atlas.proto.ProtoLocationOrBuilder getShapePointsOrBuilder(
      int index) {
    return shapePoints_.get(index);
  }

  public static final int TAGS_FIELD_NUMBER = 3;
  private java.util.List tags_;
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 3;
   */
  @java.lang.Override
  public java.util.List getTagsList() {
    return tags_;
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 3;
   */
  @java.lang.Override
  public java.util.List 
      getTagsOrBuilderList() {
    return tags_;
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 3;
   */
  @java.lang.Override
  public int getTagsCount() {
    return tags_.size();
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 3;
   */
  @java.lang.Override
  public org.openstreetmap.atlas.proto.ProtoTag getTags(int index) {
    return tags_.get(index);
  }
  /**
   * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 3;
   */
  @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, id_);
    }
    for (int i = 0; i < shapePoints_.size(); i++) {
      output.writeMessage(2, shapePoints_.get(i));
    }
    for (int i = 0; i < tags_.size(); i++) {
      output.writeMessage(3, 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, id_);
    }
    for (int i = 0; i < shapePoints_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, shapePoints_.get(i));
    }
    for (int i = 0; i < tags_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, 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.ProtoLine)) {
      return super.equals(obj);
    }
    org.openstreetmap.atlas.proto.ProtoLine other = (org.openstreetmap.atlas.proto.ProtoLine) obj;

    if (hasId() != other.hasId()) return false;
    if (hasId()) {
      if (getId()
          != other.getId()) return false;
    }
    if (!getShapePointsList()
        .equals(other.getShapePointsList())) 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 (hasId()) {
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getId());
    }
    if (getShapePointsCount() > 0) {
      hash = (37 * hash) + SHAPEPOINTS_FIELD_NUMBER;
      hash = (53 * hash) + getShapePointsList().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.ProtoLine parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.openstreetmap.atlas.proto.ProtoLine 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.ProtoLine parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.openstreetmap.atlas.proto.ProtoLine 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.ProtoLine parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.openstreetmap.atlas.proto.ProtoLine parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.openstreetmap.atlas.proto.ProtoLine parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.openstreetmap.atlas.proto.ProtoLine 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.ProtoLine parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.openstreetmap.atlas.proto.ProtoLine 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.ProtoLine parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.openstreetmap.atlas.proto.ProtoLine 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.ProtoLine 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.ProtoLine}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:org.openstreetmap.atlas.proto.ProtoLine)
      org.openstreetmap.atlas.proto.ProtoLineOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.openstreetmap.atlas.proto.ProtoLineWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoLine_descriptor;
    }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getShapePointsFieldBuilder();
        getTagsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      id_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000001);
      if (shapePointsBuilder_ == null) {
        shapePoints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        shapePointsBuilder_.clear();
      }
      if (tagsBuilder_ == null) {
        tags_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        tagsBuilder_.clear();
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public org.openstreetmap.atlas.proto.ProtoLine buildPartial() {
      org.openstreetmap.atlas.proto.ProtoLine result = new org.openstreetmap.atlas.proto.ProtoLine(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.id_ = id_;
        to_bitField0_ |= 0x00000001;
      }
      if (shapePointsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          shapePoints_ = java.util.Collections.unmodifiableList(shapePoints_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.shapePoints_ = shapePoints_;
      } else {
        result.shapePoints_ = shapePointsBuilder_.build();
      }
      if (tagsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          tags_ = java.util.Collections.unmodifiableList(tags_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        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.ProtoLine) {
        return mergeFrom((org.openstreetmap.atlas.proto.ProtoLine)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.openstreetmap.atlas.proto.ProtoLine other) {
      if (other == org.openstreetmap.atlas.proto.ProtoLine.getDefaultInstance()) return this;
      if (other.hasId()) {
        setId(other.getId());
      }
      if (shapePointsBuilder_ == null) {
        if (!other.shapePoints_.isEmpty()) {
          if (shapePoints_.isEmpty()) {
            shapePoints_ = other.shapePoints_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureShapePointsIsMutable();
            shapePoints_.addAll(other.shapePoints_);
          }
          onChanged();
        }
      } else {
        if (!other.shapePoints_.isEmpty()) {
          if (shapePointsBuilder_.isEmpty()) {
            shapePointsBuilder_.dispose();
            shapePointsBuilder_ = null;
            shapePoints_ = other.shapePoints_;
            bitField0_ = (bitField0_ & ~0x00000002);
            shapePointsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getShapePointsFieldBuilder() : null;
          } else {
            shapePointsBuilder_.addAllMessages(other.shapePoints_);
          }
        }
      }
      if (tagsBuilder_ == null) {
        if (!other.tags_.isEmpty()) {
          if (tags_.isEmpty()) {
            tags_ = other.tags_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureTagsIsMutable();
            tags_.addAll(other.tags_);
          }
          onChanged();
        }
      } else {
        if (!other.tags_.isEmpty()) {
          if (tagsBuilder_.isEmpty()) {
            tagsBuilder_.dispose();
            tagsBuilder_ = null;
            tags_ = other.tags_;
            bitField0_ = (bitField0_ & ~0x00000004);
            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.ProtoLine parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.openstreetmap.atlas.proto.ProtoLine) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private long id_ ;
    /**
     * optional int64 id = 1;
     * @return Whether the id field is set.
     */
    @java.lang.Override
    public boolean hasId() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional int64 id = 1;
     * @return The id.
     */
    @java.lang.Override
    public long getId() {
      return id_;
    }
    /**
     * optional int64 id = 1;
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(long value) {
      bitField0_ |= 0x00000001;
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 id = 1;
     * @return This builder for chaining.
     */
    public Builder clearId() {
      bitField0_ = (bitField0_ & ~0x00000001);
      id_ = 0L;
      onChanged();
      return this;
    }

    private java.util.List shapePoints_ =
      java.util.Collections.emptyList();
    private void ensureShapePointsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        shapePoints_ = new java.util.ArrayList(shapePoints_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.openstreetmap.atlas.proto.ProtoLocation, org.openstreetmap.atlas.proto.ProtoLocation.Builder, org.openstreetmap.atlas.proto.ProtoLocationOrBuilder> shapePointsBuilder_;

    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public java.util.List getShapePointsList() {
      if (shapePointsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(shapePoints_);
      } else {
        return shapePointsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public int getShapePointsCount() {
      if (shapePointsBuilder_ == null) {
        return shapePoints_.size();
      } else {
        return shapePointsBuilder_.getCount();
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public org.openstreetmap.atlas.proto.ProtoLocation getShapePoints(int index) {
      if (shapePointsBuilder_ == null) {
        return shapePoints_.get(index);
      } else {
        return shapePointsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public Builder setShapePoints(
        int index, org.openstreetmap.atlas.proto.ProtoLocation value) {
      if (shapePointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureShapePointsIsMutable();
        shapePoints_.set(index, value);
        onChanged();
      } else {
        shapePointsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public Builder setShapePoints(
        int index, org.openstreetmap.atlas.proto.ProtoLocation.Builder builderForValue) {
      if (shapePointsBuilder_ == null) {
        ensureShapePointsIsMutable();
        shapePoints_.set(index, builderForValue.build());
        onChanged();
      } else {
        shapePointsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public Builder addShapePoints(org.openstreetmap.atlas.proto.ProtoLocation value) {
      if (shapePointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureShapePointsIsMutable();
        shapePoints_.add(value);
        onChanged();
      } else {
        shapePointsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public Builder addShapePoints(
        int index, org.openstreetmap.atlas.proto.ProtoLocation value) {
      if (shapePointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureShapePointsIsMutable();
        shapePoints_.add(index, value);
        onChanged();
      } else {
        shapePointsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public Builder addShapePoints(
        org.openstreetmap.atlas.proto.ProtoLocation.Builder builderForValue) {
      if (shapePointsBuilder_ == null) {
        ensureShapePointsIsMutable();
        shapePoints_.add(builderForValue.build());
        onChanged();
      } else {
        shapePointsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public Builder addShapePoints(
        int index, org.openstreetmap.atlas.proto.ProtoLocation.Builder builderForValue) {
      if (shapePointsBuilder_ == null) {
        ensureShapePointsIsMutable();
        shapePoints_.add(index, builderForValue.build());
        onChanged();
      } else {
        shapePointsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public Builder addAllShapePoints(
        java.lang.Iterable values) {
      if (shapePointsBuilder_ == null) {
        ensureShapePointsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, shapePoints_);
        onChanged();
      } else {
        shapePointsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public Builder clearShapePoints() {
      if (shapePointsBuilder_ == null) {
        shapePoints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        shapePointsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public Builder removeShapePoints(int index) {
      if (shapePointsBuilder_ == null) {
        ensureShapePointsIsMutable();
        shapePoints_.remove(index);
        onChanged();
      } else {
        shapePointsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public org.openstreetmap.atlas.proto.ProtoLocation.Builder getShapePointsBuilder(
        int index) {
      return getShapePointsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public org.openstreetmap.atlas.proto.ProtoLocationOrBuilder getShapePointsOrBuilder(
        int index) {
      if (shapePointsBuilder_ == null) {
        return shapePoints_.get(index);  } else {
        return shapePointsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public java.util.List 
         getShapePointsOrBuilderList() {
      if (shapePointsBuilder_ != null) {
        return shapePointsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(shapePoints_);
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public org.openstreetmap.atlas.proto.ProtoLocation.Builder addShapePointsBuilder() {
      return getShapePointsFieldBuilder().addBuilder(
          org.openstreetmap.atlas.proto.ProtoLocation.getDefaultInstance());
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public org.openstreetmap.atlas.proto.ProtoLocation.Builder addShapePointsBuilder(
        int index) {
      return getShapePointsFieldBuilder().addBuilder(
          index, org.openstreetmap.atlas.proto.ProtoLocation.getDefaultInstance());
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoLocation shapePoints = 2;
     */
    public java.util.List 
         getShapePointsBuilderList() {
      return getShapePointsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.openstreetmap.atlas.proto.ProtoLocation, org.openstreetmap.atlas.proto.ProtoLocation.Builder, org.openstreetmap.atlas.proto.ProtoLocationOrBuilder> 
        getShapePointsFieldBuilder() {
      if (shapePointsBuilder_ == null) {
        shapePointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            org.openstreetmap.atlas.proto.ProtoLocation, org.openstreetmap.atlas.proto.ProtoLocation.Builder, org.openstreetmap.atlas.proto.ProtoLocationOrBuilder>(
                shapePoints_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        shapePoints_ = null;
      }
      return shapePointsBuilder_;
    }

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

    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 = 3;
     */
    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 = 3;
     */
    public int getTagsCount() {
      if (tagsBuilder_ == null) {
        return tags_.size();
      } else {
        return tagsBuilder_.getCount();
      }
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 3;
     */
    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 = 3;
     */
    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 = 3;
     */
    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 = 3;
     */
    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 = 3;
     */
    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 = 3;
     */
    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 = 3;
     */
    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 = 3;
     */
    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 = 3;
     */
    public Builder clearTags() {
      if (tagsBuilder_ == null) {
        tags_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        tagsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 3;
     */
    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 = 3;
     */
    public org.openstreetmap.atlas.proto.ProtoTag.Builder getTagsBuilder(
        int index) {
      return getTagsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 3;
     */
    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 = 3;
     */
    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 = 3;
     */
    public org.openstreetmap.atlas.proto.ProtoTag.Builder addTagsBuilder() {
      return getTagsFieldBuilder().addBuilder(
          org.openstreetmap.atlas.proto.ProtoTag.getDefaultInstance());
    }
    /**
     * repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 3;
     */
    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 = 3;
     */
    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_ & 0x00000004) != 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.ProtoLine)
  }

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

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

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public ProtoLine parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new ProtoLine(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.ProtoLine getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy