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

com.hederahashgraph.api.proto.java.CongestionLevelStarts Maven / Gradle / Ivy

There is a newer version: 0.54.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: state/congestion/congestion_level_starts.proto

package com.hederahashgraph.api.proto.java;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CongestionLevelStarts(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              genericLevelStarts_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            genericLevelStarts_.add(
                input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry));
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              gasLevelStarts_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            gasLevelStarts_.add(
                input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.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)) {
        genericLevelStarts_ = java.util.Collections.unmodifiableList(genericLevelStarts_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        gasLevelStarts_ = java.util.Collections.unmodifiableList(gasLevelStarts_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.hederahashgraph.api.proto.java.CongestionLevelStartsOuterClass.internal_static_proto_CongestionLevelStarts_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.hederahashgraph.api.proto.java.CongestionLevelStartsOuterClass.internal_static_proto_CongestionLevelStarts_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.hederahashgraph.api.proto.java.CongestionLevelStarts.class, com.hederahashgraph.api.proto.java.CongestionLevelStarts.Builder.class);
  }

  public static final int GENERIC_LEVEL_STARTS_FIELD_NUMBER = 1;
  private java.util.List genericLevelStarts_;
  /**
   * 
   **
   * Timestamps defining generic congestion levels.
   * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ @java.lang.Override public java.util.List getGenericLevelStartsList() { return genericLevelStarts_; } /** *
   **
   * Timestamps defining generic congestion levels.
   * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ @java.lang.Override public java.util.List getGenericLevelStartsOrBuilderList() { return genericLevelStarts_; } /** *
   **
   * Timestamps defining generic congestion levels.
   * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ @java.lang.Override public int getGenericLevelStartsCount() { return genericLevelStarts_.size(); } /** *
   **
   * Timestamps defining generic congestion levels.
   * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.Timestamp getGenericLevelStarts(int index) { return genericLevelStarts_.get(index); } /** *
   **
   * Timestamps defining generic congestion levels.
   * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TimestampOrBuilder getGenericLevelStartsOrBuilder( int index) { return genericLevelStarts_.get(index); } public static final int GAS_LEVEL_STARTS_FIELD_NUMBER = 2; private java.util.List gasLevelStarts_; /** *
   **
   * Timestamps defining gas congestion levels.
   * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ @java.lang.Override public java.util.List getGasLevelStartsList() { return gasLevelStarts_; } /** *
   **
   * Timestamps defining gas congestion levels.
   * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ @java.lang.Override public java.util.List getGasLevelStartsOrBuilderList() { return gasLevelStarts_; } /** *
   **
   * Timestamps defining gas congestion levels.
   * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ @java.lang.Override public int getGasLevelStartsCount() { return gasLevelStarts_.size(); } /** *
   **
   * Timestamps defining gas congestion levels.
   * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.Timestamp getGasLevelStarts(int index) { return gasLevelStarts_.get(index); } /** *
   **
   * Timestamps defining gas congestion levels.
   * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TimestampOrBuilder getGasLevelStartsOrBuilder( int index) { return gasLevelStarts_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < genericLevelStarts_.size(); i++) { output.writeMessage(1, genericLevelStarts_.get(i)); } for (int i = 0; i < gasLevelStarts_.size(); i++) { output.writeMessage(2, gasLevelStarts_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < genericLevelStarts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, genericLevelStarts_.get(i)); } for (int i = 0; i < gasLevelStarts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, gasLevelStarts_.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 com.hederahashgraph.api.proto.java.CongestionLevelStarts)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.CongestionLevelStarts other = (com.hederahashgraph.api.proto.java.CongestionLevelStarts) obj; if (!getGenericLevelStartsList() .equals(other.getGenericLevelStartsList())) return false; if (!getGasLevelStartsList() .equals(other.getGasLevelStartsList())) 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 (getGenericLevelStartsCount() > 0) { hash = (37 * hash) + GENERIC_LEVEL_STARTS_FIELD_NUMBER; hash = (53 * hash) + getGenericLevelStartsList().hashCode(); } if (getGasLevelStartsCount() > 0) { hash = (37 * hash) + GAS_LEVEL_STARTS_FIELD_NUMBER; hash = (53 * hash) + getGasLevelStartsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts 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 com.hederahashgraph.api.proto.java.CongestionLevelStarts parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts 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 com.hederahashgraph.api.proto.java.CongestionLevelStarts parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts 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(com.hederahashgraph.api.proto.java.CongestionLevelStarts 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 proto.CongestionLevelStarts} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.CongestionLevelStarts) com.hederahashgraph.api.proto.java.CongestionLevelStartsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.CongestionLevelStartsOuterClass.internal_static_proto_CongestionLevelStarts_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.CongestionLevelStartsOuterClass.internal_static_proto_CongestionLevelStarts_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.CongestionLevelStarts.class, com.hederahashgraph.api.proto.java.CongestionLevelStarts.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.CongestionLevelStarts.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getGenericLevelStartsFieldBuilder(); getGasLevelStartsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (genericLevelStartsBuilder_ == null) { genericLevelStarts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { genericLevelStartsBuilder_.clear(); } if (gasLevelStartsBuilder_ == null) { gasLevelStarts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { gasLevelStartsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.CongestionLevelStartsOuterClass.internal_static_proto_CongestionLevelStarts_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.CongestionLevelStarts getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.CongestionLevelStarts.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.CongestionLevelStarts build() { com.hederahashgraph.api.proto.java.CongestionLevelStarts result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.CongestionLevelStarts buildPartial() { com.hederahashgraph.api.proto.java.CongestionLevelStarts result = new com.hederahashgraph.api.proto.java.CongestionLevelStarts(this); int from_bitField0_ = bitField0_; if (genericLevelStartsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { genericLevelStarts_ = java.util.Collections.unmodifiableList(genericLevelStarts_); bitField0_ = (bitField0_ & ~0x00000001); } result.genericLevelStarts_ = genericLevelStarts_; } else { result.genericLevelStarts_ = genericLevelStartsBuilder_.build(); } if (gasLevelStartsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { gasLevelStarts_ = java.util.Collections.unmodifiableList(gasLevelStarts_); bitField0_ = (bitField0_ & ~0x00000002); } result.gasLevelStarts_ = gasLevelStarts_; } else { result.gasLevelStarts_ = gasLevelStartsBuilder_.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 com.hederahashgraph.api.proto.java.CongestionLevelStarts) { return mergeFrom((com.hederahashgraph.api.proto.java.CongestionLevelStarts)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.CongestionLevelStarts other) { if (other == com.hederahashgraph.api.proto.java.CongestionLevelStarts.getDefaultInstance()) return this; if (genericLevelStartsBuilder_ == null) { if (!other.genericLevelStarts_.isEmpty()) { if (genericLevelStarts_.isEmpty()) { genericLevelStarts_ = other.genericLevelStarts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureGenericLevelStartsIsMutable(); genericLevelStarts_.addAll(other.genericLevelStarts_); } onChanged(); } } else { if (!other.genericLevelStarts_.isEmpty()) { if (genericLevelStartsBuilder_.isEmpty()) { genericLevelStartsBuilder_.dispose(); genericLevelStartsBuilder_ = null; genericLevelStarts_ = other.genericLevelStarts_; bitField0_ = (bitField0_ & ~0x00000001); genericLevelStartsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGenericLevelStartsFieldBuilder() : null; } else { genericLevelStartsBuilder_.addAllMessages(other.genericLevelStarts_); } } } if (gasLevelStartsBuilder_ == null) { if (!other.gasLevelStarts_.isEmpty()) { if (gasLevelStarts_.isEmpty()) { gasLevelStarts_ = other.gasLevelStarts_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGasLevelStartsIsMutable(); gasLevelStarts_.addAll(other.gasLevelStarts_); } onChanged(); } } else { if (!other.gasLevelStarts_.isEmpty()) { if (gasLevelStartsBuilder_.isEmpty()) { gasLevelStartsBuilder_.dispose(); gasLevelStartsBuilder_ = null; gasLevelStarts_ = other.gasLevelStarts_; bitField0_ = (bitField0_ & ~0x00000002); gasLevelStartsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGasLevelStartsFieldBuilder() : null; } else { gasLevelStartsBuilder_.addAllMessages(other.gasLevelStarts_); } } } 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 { com.hederahashgraph.api.proto.java.CongestionLevelStarts parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.CongestionLevelStarts) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List genericLevelStarts_ = java.util.Collections.emptyList(); private void ensureGenericLevelStartsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { genericLevelStarts_ = new java.util.ArrayList(genericLevelStarts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> genericLevelStartsBuilder_; /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public java.util.List getGenericLevelStartsList() { if (genericLevelStartsBuilder_ == null) { return java.util.Collections.unmodifiableList(genericLevelStarts_); } else { return genericLevelStartsBuilder_.getMessageList(); } } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public int getGenericLevelStartsCount() { if (genericLevelStartsBuilder_ == null) { return genericLevelStarts_.size(); } else { return genericLevelStartsBuilder_.getCount(); } } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public com.hederahashgraph.api.proto.java.Timestamp getGenericLevelStarts(int index) { if (genericLevelStartsBuilder_ == null) { return genericLevelStarts_.get(index); } else { return genericLevelStartsBuilder_.getMessage(index); } } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public Builder setGenericLevelStarts( int index, com.hederahashgraph.api.proto.java.Timestamp value) { if (genericLevelStartsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGenericLevelStartsIsMutable(); genericLevelStarts_.set(index, value); onChanged(); } else { genericLevelStartsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public Builder setGenericLevelStarts( int index, com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (genericLevelStartsBuilder_ == null) { ensureGenericLevelStartsIsMutable(); genericLevelStarts_.set(index, builderForValue.build()); onChanged(); } else { genericLevelStartsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public Builder addGenericLevelStarts(com.hederahashgraph.api.proto.java.Timestamp value) { if (genericLevelStartsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGenericLevelStartsIsMutable(); genericLevelStarts_.add(value); onChanged(); } else { genericLevelStartsBuilder_.addMessage(value); } return this; } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public Builder addGenericLevelStarts( int index, com.hederahashgraph.api.proto.java.Timestamp value) { if (genericLevelStartsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGenericLevelStartsIsMutable(); genericLevelStarts_.add(index, value); onChanged(); } else { genericLevelStartsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public Builder addGenericLevelStarts( com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (genericLevelStartsBuilder_ == null) { ensureGenericLevelStartsIsMutable(); genericLevelStarts_.add(builderForValue.build()); onChanged(); } else { genericLevelStartsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public Builder addGenericLevelStarts( int index, com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (genericLevelStartsBuilder_ == null) { ensureGenericLevelStartsIsMutable(); genericLevelStarts_.add(index, builderForValue.build()); onChanged(); } else { genericLevelStartsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public Builder addAllGenericLevelStarts( java.lang.Iterable values) { if (genericLevelStartsBuilder_ == null) { ensureGenericLevelStartsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, genericLevelStarts_); onChanged(); } else { genericLevelStartsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public Builder clearGenericLevelStarts() { if (genericLevelStartsBuilder_ == null) { genericLevelStarts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { genericLevelStartsBuilder_.clear(); } return this; } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public Builder removeGenericLevelStarts(int index) { if (genericLevelStartsBuilder_ == null) { ensureGenericLevelStartsIsMutable(); genericLevelStarts_.remove(index); onChanged(); } else { genericLevelStartsBuilder_.remove(index); } return this; } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder getGenericLevelStartsBuilder( int index) { return getGenericLevelStartsFieldBuilder().getBuilder(index); } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public com.hederahashgraph.api.proto.java.TimestampOrBuilder getGenericLevelStartsOrBuilder( int index) { if (genericLevelStartsBuilder_ == null) { return genericLevelStarts_.get(index); } else { return genericLevelStartsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public java.util.List getGenericLevelStartsOrBuilderList() { if (genericLevelStartsBuilder_ != null) { return genericLevelStartsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(genericLevelStarts_); } } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder addGenericLevelStartsBuilder() { return getGenericLevelStartsFieldBuilder().addBuilder( com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance()); } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder addGenericLevelStartsBuilder( int index) { return getGenericLevelStartsFieldBuilder().addBuilder( index, com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance()); } /** *
     **
     * Timestamps defining generic congestion levels.
     * 
* * repeated .proto.Timestamp generic_level_starts = 1; */ public java.util.List getGenericLevelStartsBuilderList() { return getGenericLevelStartsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> getGenericLevelStartsFieldBuilder() { if (genericLevelStartsBuilder_ == null) { genericLevelStartsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>( genericLevelStarts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); genericLevelStarts_ = null; } return genericLevelStartsBuilder_; } private java.util.List gasLevelStarts_ = java.util.Collections.emptyList(); private void ensureGasLevelStartsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { gasLevelStarts_ = new java.util.ArrayList(gasLevelStarts_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> gasLevelStartsBuilder_; /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public java.util.List getGasLevelStartsList() { if (gasLevelStartsBuilder_ == null) { return java.util.Collections.unmodifiableList(gasLevelStarts_); } else { return gasLevelStartsBuilder_.getMessageList(); } } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public int getGasLevelStartsCount() { if (gasLevelStartsBuilder_ == null) { return gasLevelStarts_.size(); } else { return gasLevelStartsBuilder_.getCount(); } } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public com.hederahashgraph.api.proto.java.Timestamp getGasLevelStarts(int index) { if (gasLevelStartsBuilder_ == null) { return gasLevelStarts_.get(index); } else { return gasLevelStartsBuilder_.getMessage(index); } } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public Builder setGasLevelStarts( int index, com.hederahashgraph.api.proto.java.Timestamp value) { if (gasLevelStartsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGasLevelStartsIsMutable(); gasLevelStarts_.set(index, value); onChanged(); } else { gasLevelStartsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public Builder setGasLevelStarts( int index, com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (gasLevelStartsBuilder_ == null) { ensureGasLevelStartsIsMutable(); gasLevelStarts_.set(index, builderForValue.build()); onChanged(); } else { gasLevelStartsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public Builder addGasLevelStarts(com.hederahashgraph.api.proto.java.Timestamp value) { if (gasLevelStartsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGasLevelStartsIsMutable(); gasLevelStarts_.add(value); onChanged(); } else { gasLevelStartsBuilder_.addMessage(value); } return this; } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public Builder addGasLevelStarts( int index, com.hederahashgraph.api.proto.java.Timestamp value) { if (gasLevelStartsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGasLevelStartsIsMutable(); gasLevelStarts_.add(index, value); onChanged(); } else { gasLevelStartsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public Builder addGasLevelStarts( com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (gasLevelStartsBuilder_ == null) { ensureGasLevelStartsIsMutable(); gasLevelStarts_.add(builderForValue.build()); onChanged(); } else { gasLevelStartsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public Builder addGasLevelStarts( int index, com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (gasLevelStartsBuilder_ == null) { ensureGasLevelStartsIsMutable(); gasLevelStarts_.add(index, builderForValue.build()); onChanged(); } else { gasLevelStartsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public Builder addAllGasLevelStarts( java.lang.Iterable values) { if (gasLevelStartsBuilder_ == null) { ensureGasLevelStartsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, gasLevelStarts_); onChanged(); } else { gasLevelStartsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public Builder clearGasLevelStarts() { if (gasLevelStartsBuilder_ == null) { gasLevelStarts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { gasLevelStartsBuilder_.clear(); } return this; } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public Builder removeGasLevelStarts(int index) { if (gasLevelStartsBuilder_ == null) { ensureGasLevelStartsIsMutable(); gasLevelStarts_.remove(index); onChanged(); } else { gasLevelStartsBuilder_.remove(index); } return this; } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder getGasLevelStartsBuilder( int index) { return getGasLevelStartsFieldBuilder().getBuilder(index); } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public com.hederahashgraph.api.proto.java.TimestampOrBuilder getGasLevelStartsOrBuilder( int index) { if (gasLevelStartsBuilder_ == null) { return gasLevelStarts_.get(index); } else { return gasLevelStartsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public java.util.List getGasLevelStartsOrBuilderList() { if (gasLevelStartsBuilder_ != null) { return gasLevelStartsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(gasLevelStarts_); } } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder addGasLevelStartsBuilder() { return getGasLevelStartsFieldBuilder().addBuilder( com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance()); } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder addGasLevelStartsBuilder( int index) { return getGasLevelStartsFieldBuilder().addBuilder( index, com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance()); } /** *
     **
     * Timestamps defining gas congestion levels.
     * 
* * repeated .proto.Timestamp gas_level_starts = 2; */ public java.util.List getGasLevelStartsBuilderList() { return getGasLevelStartsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> getGasLevelStartsFieldBuilder() { if (gasLevelStartsBuilder_ == null) { gasLevelStartsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>( gasLevelStarts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); gasLevelStarts_ = null; } return gasLevelStartsBuilder_; } @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:proto.CongestionLevelStarts) } // @@protoc_insertion_point(class_scope:proto.CongestionLevelStarts) private static final com.hederahashgraph.api.proto.java.CongestionLevelStarts DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.CongestionLevelStarts(); } public static com.hederahashgraph.api.proto.java.CongestionLevelStarts getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CongestionLevelStarts parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CongestionLevelStarts(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 com.hederahashgraph.api.proto.java.CongestionLevelStarts getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy