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

cz.proto.RangeBoundary Maven / Gradle / Ivy

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

package cz.proto;

/**
 * Protobuf type {@code cz.proto.RangeBoundary}
 */
public final class RangeBoundary extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.RangeBoundary)
    RangeBoundaryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RangeBoundary.newBuilder() to construct.
  private RangeBoundary(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RangeBoundary() {
    types_ = java.util.Collections.emptyList();
    ranges_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RangeBoundary(
      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: {

            id_ = input.readUInt64();
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              types_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            types_.add(
                input.readMessage(cz.proto.DataType.parser(), extensionRegistry));
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              ranges_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            ranges_.add(
                input.readMessage(cz.proto.Boundary.parser(), extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        types_ = java.util.Collections.unmodifiableList(types_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        ranges_ = java.util.Collections.unmodifiableList(ranges_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.Statistics.internal_static_cz_proto_RangeBoundary_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return cz.proto.Statistics.internal_static_cz_proto_RangeBoundary_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            cz.proto.RangeBoundary.class, cz.proto.RangeBoundary.Builder.class);
  }

  public static final int ID_FIELD_NUMBER = 1;
  private long id_;
  /**
   * uint64 id = 1;
   * @return The id.
   */
  @java.lang.Override
  public long getId() {
    return id_;
  }

  public static final int TYPES_FIELD_NUMBER = 2;
  private java.util.List types_;
  /**
   * repeated .cz.proto.DataType types = 2;
   */
  @java.lang.Override
  public java.util.List getTypesList() {
    return types_;
  }
  /**
   * repeated .cz.proto.DataType types = 2;
   */
  @java.lang.Override
  public java.util.List 
      getTypesOrBuilderList() {
    return types_;
  }
  /**
   * repeated .cz.proto.DataType types = 2;
   */
  @java.lang.Override
  public int getTypesCount() {
    return types_.size();
  }
  /**
   * repeated .cz.proto.DataType types = 2;
   */
  @java.lang.Override
  public cz.proto.DataType getTypes(int index) {
    return types_.get(index);
  }
  /**
   * repeated .cz.proto.DataType types = 2;
   */
  @java.lang.Override
  public cz.proto.DataTypeOrBuilder getTypesOrBuilder(
      int index) {
    return types_.get(index);
  }

  public static final int RANGES_FIELD_NUMBER = 3;
  private java.util.List ranges_;
  /**
   * repeated .cz.proto.Boundary ranges = 3;
   */
  @java.lang.Override
  public java.util.List getRangesList() {
    return ranges_;
  }
  /**
   * repeated .cz.proto.Boundary ranges = 3;
   */
  @java.lang.Override
  public java.util.List 
      getRangesOrBuilderList() {
    return ranges_;
  }
  /**
   * repeated .cz.proto.Boundary ranges = 3;
   */
  @java.lang.Override
  public int getRangesCount() {
    return ranges_.size();
  }
  /**
   * repeated .cz.proto.Boundary ranges = 3;
   */
  @java.lang.Override
  public cz.proto.Boundary getRanges(int index) {
    return ranges_.get(index);
  }
  /**
   * repeated .cz.proto.Boundary ranges = 3;
   */
  @java.lang.Override
  public cz.proto.BoundaryOrBuilder getRangesOrBuilder(
      int index) {
    return ranges_.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 (id_ != 0L) {
      output.writeUInt64(1, id_);
    }
    for (int i = 0; i < types_.size(); i++) {
      output.writeMessage(2, types_.get(i));
    }
    for (int i = 0; i < ranges_.size(); i++) {
      output.writeMessage(3, ranges_.get(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (id_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(1, id_);
    }
    for (int i = 0; i < types_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, types_.get(i));
    }
    for (int i = 0; i < ranges_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, ranges_.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 cz.proto.RangeBoundary)) {
      return super.equals(obj);
    }
    cz.proto.RangeBoundary other = (cz.proto.RangeBoundary) obj;

    if (getId()
        != other.getId()) return false;
    if (!getTypesList()
        .equals(other.getTypesList())) return false;
    if (!getRangesList()
        .equals(other.getRangesList())) 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();
    hash = (37 * hash) + ID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getId());
    if (getTypesCount() > 0) {
      hash = (37 * hash) + TYPES_FIELD_NUMBER;
      hash = (53 * hash) + getTypesList().hashCode();
    }
    if (getRangesCount() > 0) {
      hash = (37 * hash) + RANGES_FIELD_NUMBER;
      hash = (53 * hash) + getRangesList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static cz.proto.RangeBoundary parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.RangeBoundary parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.RangeBoundary parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.RangeBoundary parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.RangeBoundary parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.RangeBoundary parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.RangeBoundary parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.RangeBoundary 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 cz.proto.RangeBoundary parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static cz.proto.RangeBoundary 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 cz.proto.RangeBoundary parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.RangeBoundary 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(cz.proto.RangeBoundary 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 cz.proto.RangeBoundary}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:cz.proto.RangeBoundary)
      cz.proto.RangeBoundaryOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return cz.proto.Statistics.internal_static_cz_proto_RangeBoundary_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.Statistics.internal_static_cz_proto_RangeBoundary_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.RangeBoundary.class, cz.proto.RangeBoundary.Builder.class);
    }

    // Construct using cz.proto.RangeBoundary.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getTypesFieldBuilder();
        getRangesFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      id_ = 0L;

      if (typesBuilder_ == null) {
        types_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        typesBuilder_.clear();
      }
      if (rangesBuilder_ == null) {
        ranges_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        rangesBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return cz.proto.Statistics.internal_static_cz_proto_RangeBoundary_descriptor;
    }

    @java.lang.Override
    public cz.proto.RangeBoundary getDefaultInstanceForType() {
      return cz.proto.RangeBoundary.getDefaultInstance();
    }

    @java.lang.Override
    public cz.proto.RangeBoundary build() {
      cz.proto.RangeBoundary result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public cz.proto.RangeBoundary buildPartial() {
      cz.proto.RangeBoundary result = new cz.proto.RangeBoundary(this);
      int from_bitField0_ = bitField0_;
      result.id_ = id_;
      if (typesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          types_ = java.util.Collections.unmodifiableList(types_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.types_ = types_;
      } else {
        result.types_ = typesBuilder_.build();
      }
      if (rangesBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          ranges_ = java.util.Collections.unmodifiableList(ranges_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.ranges_ = ranges_;
      } else {
        result.ranges_ = rangesBuilder_.build();
      }
      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 cz.proto.RangeBoundary) {
        return mergeFrom((cz.proto.RangeBoundary)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.RangeBoundary other) {
      if (other == cz.proto.RangeBoundary.getDefaultInstance()) return this;
      if (other.getId() != 0L) {
        setId(other.getId());
      }
      if (typesBuilder_ == null) {
        if (!other.types_.isEmpty()) {
          if (types_.isEmpty()) {
            types_ = other.types_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureTypesIsMutable();
            types_.addAll(other.types_);
          }
          onChanged();
        }
      } else {
        if (!other.types_.isEmpty()) {
          if (typesBuilder_.isEmpty()) {
            typesBuilder_.dispose();
            typesBuilder_ = null;
            types_ = other.types_;
            bitField0_ = (bitField0_ & ~0x00000001);
            typesBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getTypesFieldBuilder() : null;
          } else {
            typesBuilder_.addAllMessages(other.types_);
          }
        }
      }
      if (rangesBuilder_ == null) {
        if (!other.ranges_.isEmpty()) {
          if (ranges_.isEmpty()) {
            ranges_ = other.ranges_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureRangesIsMutable();
            ranges_.addAll(other.ranges_);
          }
          onChanged();
        }
      } else {
        if (!other.ranges_.isEmpty()) {
          if (rangesBuilder_.isEmpty()) {
            rangesBuilder_.dispose();
            rangesBuilder_ = null;
            ranges_ = other.ranges_;
            bitField0_ = (bitField0_ & ~0x00000002);
            rangesBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getRangesFieldBuilder() : null;
          } else {
            rangesBuilder_.addAllMessages(other.ranges_);
          }
        }
      }
      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 {
      cz.proto.RangeBoundary parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.RangeBoundary) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private long id_ ;
    /**
     * uint64 id = 1;
     * @return The id.
     */
    @java.lang.Override
    public long getId() {
      return id_;
    }
    /**
     * uint64 id = 1;
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(long value) {
      
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 id = 1;
     * @return This builder for chaining.
     */
    public Builder clearId() {
      
      id_ = 0L;
      onChanged();
      return this;
    }

    private java.util.List types_ =
      java.util.Collections.emptyList();
    private void ensureTypesIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        types_ = new java.util.ArrayList(types_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder> typesBuilder_;

    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public java.util.List getTypesList() {
      if (typesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(types_);
      } else {
        return typesBuilder_.getMessageList();
      }
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public int getTypesCount() {
      if (typesBuilder_ == null) {
        return types_.size();
      } else {
        return typesBuilder_.getCount();
      }
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public cz.proto.DataType getTypes(int index) {
      if (typesBuilder_ == null) {
        return types_.get(index);
      } else {
        return typesBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public Builder setTypes(
        int index, cz.proto.DataType value) {
      if (typesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTypesIsMutable();
        types_.set(index, value);
        onChanged();
      } else {
        typesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public Builder setTypes(
        int index, cz.proto.DataType.Builder builderForValue) {
      if (typesBuilder_ == null) {
        ensureTypesIsMutable();
        types_.set(index, builderForValue.build());
        onChanged();
      } else {
        typesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public Builder addTypes(cz.proto.DataType value) {
      if (typesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTypesIsMutable();
        types_.add(value);
        onChanged();
      } else {
        typesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public Builder addTypes(
        int index, cz.proto.DataType value) {
      if (typesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTypesIsMutable();
        types_.add(index, value);
        onChanged();
      } else {
        typesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public Builder addTypes(
        cz.proto.DataType.Builder builderForValue) {
      if (typesBuilder_ == null) {
        ensureTypesIsMutable();
        types_.add(builderForValue.build());
        onChanged();
      } else {
        typesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public Builder addTypes(
        int index, cz.proto.DataType.Builder builderForValue) {
      if (typesBuilder_ == null) {
        ensureTypesIsMutable();
        types_.add(index, builderForValue.build());
        onChanged();
      } else {
        typesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public Builder addAllTypes(
        java.lang.Iterable values) {
      if (typesBuilder_ == null) {
        ensureTypesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, types_);
        onChanged();
      } else {
        typesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public Builder clearTypes() {
      if (typesBuilder_ == null) {
        types_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        typesBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public Builder removeTypes(int index) {
      if (typesBuilder_ == null) {
        ensureTypesIsMutable();
        types_.remove(index);
        onChanged();
      } else {
        typesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public cz.proto.DataType.Builder getTypesBuilder(
        int index) {
      return getTypesFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public cz.proto.DataTypeOrBuilder getTypesOrBuilder(
        int index) {
      if (typesBuilder_ == null) {
        return types_.get(index);  } else {
        return typesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public java.util.List 
         getTypesOrBuilderList() {
      if (typesBuilder_ != null) {
        return typesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(types_);
      }
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public cz.proto.DataType.Builder addTypesBuilder() {
      return getTypesFieldBuilder().addBuilder(
          cz.proto.DataType.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public cz.proto.DataType.Builder addTypesBuilder(
        int index) {
      return getTypesFieldBuilder().addBuilder(
          index, cz.proto.DataType.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.DataType types = 2;
     */
    public java.util.List 
         getTypesBuilderList() {
      return getTypesFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder> 
        getTypesFieldBuilder() {
      if (typesBuilder_ == null) {
        typesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder>(
                types_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        types_ = null;
      }
      return typesBuilder_;
    }

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.Boundary, cz.proto.Boundary.Builder, cz.proto.BoundaryOrBuilder> rangesBuilder_;

    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public java.util.List getRangesList() {
      if (rangesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(ranges_);
      } else {
        return rangesBuilder_.getMessageList();
      }
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public int getRangesCount() {
      if (rangesBuilder_ == null) {
        return ranges_.size();
      } else {
        return rangesBuilder_.getCount();
      }
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public cz.proto.Boundary getRanges(int index) {
      if (rangesBuilder_ == null) {
        return ranges_.get(index);
      } else {
        return rangesBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public Builder setRanges(
        int index, cz.proto.Boundary value) {
      if (rangesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRangesIsMutable();
        ranges_.set(index, value);
        onChanged();
      } else {
        rangesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public Builder setRanges(
        int index, cz.proto.Boundary.Builder builderForValue) {
      if (rangesBuilder_ == null) {
        ensureRangesIsMutable();
        ranges_.set(index, builderForValue.build());
        onChanged();
      } else {
        rangesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public Builder addRanges(cz.proto.Boundary value) {
      if (rangesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRangesIsMutable();
        ranges_.add(value);
        onChanged();
      } else {
        rangesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public Builder addRanges(
        int index, cz.proto.Boundary value) {
      if (rangesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRangesIsMutable();
        ranges_.add(index, value);
        onChanged();
      } else {
        rangesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public Builder addRanges(
        cz.proto.Boundary.Builder builderForValue) {
      if (rangesBuilder_ == null) {
        ensureRangesIsMutable();
        ranges_.add(builderForValue.build());
        onChanged();
      } else {
        rangesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public Builder addRanges(
        int index, cz.proto.Boundary.Builder builderForValue) {
      if (rangesBuilder_ == null) {
        ensureRangesIsMutable();
        ranges_.add(index, builderForValue.build());
        onChanged();
      } else {
        rangesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public Builder addAllRanges(
        java.lang.Iterable values) {
      if (rangesBuilder_ == null) {
        ensureRangesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, ranges_);
        onChanged();
      } else {
        rangesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public Builder clearRanges() {
      if (rangesBuilder_ == null) {
        ranges_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        rangesBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public Builder removeRanges(int index) {
      if (rangesBuilder_ == null) {
        ensureRangesIsMutable();
        ranges_.remove(index);
        onChanged();
      } else {
        rangesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public cz.proto.Boundary.Builder getRangesBuilder(
        int index) {
      return getRangesFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public cz.proto.BoundaryOrBuilder getRangesOrBuilder(
        int index) {
      if (rangesBuilder_ == null) {
        return ranges_.get(index);  } else {
        return rangesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public java.util.List 
         getRangesOrBuilderList() {
      if (rangesBuilder_ != null) {
        return rangesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(ranges_);
      }
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public cz.proto.Boundary.Builder addRangesBuilder() {
      return getRangesFieldBuilder().addBuilder(
          cz.proto.Boundary.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public cz.proto.Boundary.Builder addRangesBuilder(
        int index) {
      return getRangesFieldBuilder().addBuilder(
          index, cz.proto.Boundary.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.Boundary ranges = 3;
     */
    public java.util.List 
         getRangesBuilderList() {
      return getRangesFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.Boundary, cz.proto.Boundary.Builder, cz.proto.BoundaryOrBuilder> 
        getRangesFieldBuilder() {
      if (rangesBuilder_ == null) {
        rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            cz.proto.Boundary, cz.proto.Boundary.Builder, cz.proto.BoundaryOrBuilder>(
                ranges_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        ranges_ = null;
      }
      return rangesBuilder_;
    }
    @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:cz.proto.RangeBoundary)
  }

  // @@protoc_insertion_point(class_scope:cz.proto.RangeBoundary)
  private static final cz.proto.RangeBoundary DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new cz.proto.RangeBoundary();
  }

  public static cz.proto.RangeBoundary getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy