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

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

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: state/throttles/throttle_usage_snapshots.proto

package com.hederahashgraph.api.proto.java;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ThrottleUsageSnapshots(
      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)) {
              tpsThrottles_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            tpsThrottles_.add(
                input.readMessage(com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.parser(), extensionRegistry));
            break;
          }
          case 18: {
            com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder subBuilder = null;
            if (gasThrottle_ != null) {
              subBuilder = gasThrottle_.toBuilder();
            }
            gasThrottle_ = input.readMessage(com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(gasThrottle_);
              gasThrottle_ = subBuilder.buildPartial();
            }

            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)) {
        tpsThrottles_ = java.util.Collections.unmodifiableList(tpsThrottles_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotsOuterClass.internal_static_proto_ThrottleUsageSnapshots_descriptor;
  }

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

  public static final int TPS_THROTTLES_FIELD_NUMBER = 1;
  private java.util.List tpsThrottles_;
  /**
   * 
   **
   * Snapshots for TPS throttles.
   * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ @java.lang.Override public java.util.List getTpsThrottlesList() { return tpsThrottles_; } /** *
   **
   * Snapshots for TPS throttles.
   * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ @java.lang.Override public java.util.List getTpsThrottlesOrBuilderList() { return tpsThrottles_; } /** *
   **
   * Snapshots for TPS throttles.
   * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ @java.lang.Override public int getTpsThrottlesCount() { return tpsThrottles_.size(); } /** *
   **
   * Snapshots for TPS throttles.
   * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot getTpsThrottles(int index) { return tpsThrottles_.get(index); } /** *
   **
   * Snapshots for TPS throttles.
   * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotOrBuilder getTpsThrottlesOrBuilder( int index) { return tpsThrottles_.get(index); } public static final int GAS_THROTTLE_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot gasThrottle_; /** *
   **
   * Snapshots for gas throttle.
   * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; * @return Whether the gasThrottle field is set. */ @java.lang.Override public boolean hasGasThrottle() { return gasThrottle_ != null; } /** *
   **
   * Snapshots for gas throttle.
   * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; * @return The gasThrottle. */ @java.lang.Override public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot getGasThrottle() { return gasThrottle_ == null ? com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.getDefaultInstance() : gasThrottle_; } /** *
   **
   * Snapshots for gas throttle.
   * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotOrBuilder getGasThrottleOrBuilder() { return getGasThrottle(); } 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 < tpsThrottles_.size(); i++) { output.writeMessage(1, tpsThrottles_.get(i)); } if (gasThrottle_ != null) { output.writeMessage(2, getGasThrottle()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < tpsThrottles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, tpsThrottles_.get(i)); } if (gasThrottle_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getGasThrottle()); } 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.ThrottleUsageSnapshots)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots other = (com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) obj; if (!getTpsThrottlesList() .equals(other.getTpsThrottlesList())) return false; if (hasGasThrottle() != other.hasGasThrottle()) return false; if (hasGasThrottle()) { if (!getGasThrottle() .equals(other.getGasThrottle())) 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 (getTpsThrottlesCount() > 0) { hash = (37 * hash) + TPS_THROTTLES_FIELD_NUMBER; hash = (53 * hash) + getTpsThrottlesList().hashCode(); } if (hasGasThrottle()) { hash = (37 * hash) + GAS_THROTTLE_FIELD_NUMBER; hash = (53 * hash) + getGasThrottle().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ThrottleUsageSnapshots) com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotsOuterClass.internal_static_proto_ThrottleUsageSnapshots_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotsOuterClass.internal_static_proto_ThrottleUsageSnapshots_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.class, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTpsThrottlesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (tpsThrottlesBuilder_ == null) { tpsThrottles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { tpsThrottlesBuilder_.clear(); } if (gasThrottleBuilder_ == null) { gasThrottle_ = null; } else { gasThrottle_ = null; gasThrottleBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotsOuterClass.internal_static_proto_ThrottleUsageSnapshots_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots build() { com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots buildPartial() { com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots result = new com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots(this); int from_bitField0_ = bitField0_; if (tpsThrottlesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { tpsThrottles_ = java.util.Collections.unmodifiableList(tpsThrottles_); bitField0_ = (bitField0_ & ~0x00000001); } result.tpsThrottles_ = tpsThrottles_; } else { result.tpsThrottles_ = tpsThrottlesBuilder_.build(); } if (gasThrottleBuilder_ == null) { result.gasThrottle_ = gasThrottle_; } else { result.gasThrottle_ = gasThrottleBuilder_.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.ThrottleUsageSnapshots) { return mergeFrom((com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots other) { if (other == com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots.getDefaultInstance()) return this; if (tpsThrottlesBuilder_ == null) { if (!other.tpsThrottles_.isEmpty()) { if (tpsThrottles_.isEmpty()) { tpsThrottles_ = other.tpsThrottles_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTpsThrottlesIsMutable(); tpsThrottles_.addAll(other.tpsThrottles_); } onChanged(); } } else { if (!other.tpsThrottles_.isEmpty()) { if (tpsThrottlesBuilder_.isEmpty()) { tpsThrottlesBuilder_.dispose(); tpsThrottlesBuilder_ = null; tpsThrottles_ = other.tpsThrottles_; bitField0_ = (bitField0_ & ~0x00000001); tpsThrottlesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTpsThrottlesFieldBuilder() : null; } else { tpsThrottlesBuilder_.addAllMessages(other.tpsThrottles_); } } } if (other.hasGasThrottle()) { mergeGasThrottle(other.getGasThrottle()); } 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.ThrottleUsageSnapshots parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List tpsThrottles_ = java.util.Collections.emptyList(); private void ensureTpsThrottlesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tpsThrottles_ = new java.util.ArrayList(tpsThrottles_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotOrBuilder> tpsThrottlesBuilder_; /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public java.util.List getTpsThrottlesList() { if (tpsThrottlesBuilder_ == null) { return java.util.Collections.unmodifiableList(tpsThrottles_); } else { return tpsThrottlesBuilder_.getMessageList(); } } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public int getTpsThrottlesCount() { if (tpsThrottlesBuilder_ == null) { return tpsThrottles_.size(); } else { return tpsThrottlesBuilder_.getCount(); } } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot getTpsThrottles(int index) { if (tpsThrottlesBuilder_ == null) { return tpsThrottles_.get(index); } else { return tpsThrottlesBuilder_.getMessage(index); } } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public Builder setTpsThrottles( int index, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot value) { if (tpsThrottlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTpsThrottlesIsMutable(); tpsThrottles_.set(index, value); onChanged(); } else { tpsThrottlesBuilder_.setMessage(index, value); } return this; } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public Builder setTpsThrottles( int index, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder builderForValue) { if (tpsThrottlesBuilder_ == null) { ensureTpsThrottlesIsMutable(); tpsThrottles_.set(index, builderForValue.build()); onChanged(); } else { tpsThrottlesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public Builder addTpsThrottles(com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot value) { if (tpsThrottlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTpsThrottlesIsMutable(); tpsThrottles_.add(value); onChanged(); } else { tpsThrottlesBuilder_.addMessage(value); } return this; } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public Builder addTpsThrottles( int index, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot value) { if (tpsThrottlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTpsThrottlesIsMutable(); tpsThrottles_.add(index, value); onChanged(); } else { tpsThrottlesBuilder_.addMessage(index, value); } return this; } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public Builder addTpsThrottles( com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder builderForValue) { if (tpsThrottlesBuilder_ == null) { ensureTpsThrottlesIsMutable(); tpsThrottles_.add(builderForValue.build()); onChanged(); } else { tpsThrottlesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public Builder addTpsThrottles( int index, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder builderForValue) { if (tpsThrottlesBuilder_ == null) { ensureTpsThrottlesIsMutable(); tpsThrottles_.add(index, builderForValue.build()); onChanged(); } else { tpsThrottlesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public Builder addAllTpsThrottles( java.lang.Iterable values) { if (tpsThrottlesBuilder_ == null) { ensureTpsThrottlesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tpsThrottles_); onChanged(); } else { tpsThrottlesBuilder_.addAllMessages(values); } return this; } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public Builder clearTpsThrottles() { if (tpsThrottlesBuilder_ == null) { tpsThrottles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tpsThrottlesBuilder_.clear(); } return this; } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public Builder removeTpsThrottles(int index) { if (tpsThrottlesBuilder_ == null) { ensureTpsThrottlesIsMutable(); tpsThrottles_.remove(index); onChanged(); } else { tpsThrottlesBuilder_.remove(index); } return this; } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder getTpsThrottlesBuilder( int index) { return getTpsThrottlesFieldBuilder().getBuilder(index); } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotOrBuilder getTpsThrottlesOrBuilder( int index) { if (tpsThrottlesBuilder_ == null) { return tpsThrottles_.get(index); } else { return tpsThrottlesBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public java.util.List getTpsThrottlesOrBuilderList() { if (tpsThrottlesBuilder_ != null) { return tpsThrottlesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tpsThrottles_); } } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder addTpsThrottlesBuilder() { return getTpsThrottlesFieldBuilder().addBuilder( com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.getDefaultInstance()); } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder addTpsThrottlesBuilder( int index) { return getTpsThrottlesFieldBuilder().addBuilder( index, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.getDefaultInstance()); } /** *
     **
     * Snapshots for TPS throttles.
     * 
* * repeated .proto.ThrottleUsageSnapshot tps_throttles = 1; */ public java.util.List getTpsThrottlesBuilderList() { return getTpsThrottlesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotOrBuilder> getTpsThrottlesFieldBuilder() { if (tpsThrottlesBuilder_ == null) { tpsThrottlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotOrBuilder>( tpsThrottles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); tpsThrottles_ = null; } return tpsThrottlesBuilder_; } private com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot gasThrottle_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotOrBuilder> gasThrottleBuilder_; /** *
     **
     * Snapshots for gas throttle.
     * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; * @return Whether the gasThrottle field is set. */ public boolean hasGasThrottle() { return gasThrottleBuilder_ != null || gasThrottle_ != null; } /** *
     **
     * Snapshots for gas throttle.
     * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; * @return The gasThrottle. */ public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot getGasThrottle() { if (gasThrottleBuilder_ == null) { return gasThrottle_ == null ? com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.getDefaultInstance() : gasThrottle_; } else { return gasThrottleBuilder_.getMessage(); } } /** *
     **
     * Snapshots for gas throttle.
     * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; */ public Builder setGasThrottle(com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot value) { if (gasThrottleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } gasThrottle_ = value; onChanged(); } else { gasThrottleBuilder_.setMessage(value); } return this; } /** *
     **
     * Snapshots for gas throttle.
     * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; */ public Builder setGasThrottle( com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder builderForValue) { if (gasThrottleBuilder_ == null) { gasThrottle_ = builderForValue.build(); onChanged(); } else { gasThrottleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * Snapshots for gas throttle.
     * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; */ public Builder mergeGasThrottle(com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot value) { if (gasThrottleBuilder_ == null) { if (gasThrottle_ != null) { gasThrottle_ = com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.newBuilder(gasThrottle_).mergeFrom(value).buildPartial(); } else { gasThrottle_ = value; } onChanged(); } else { gasThrottleBuilder_.mergeFrom(value); } return this; } /** *
     **
     * Snapshots for gas throttle.
     * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; */ public Builder clearGasThrottle() { if (gasThrottleBuilder_ == null) { gasThrottle_ = null; onChanged(); } else { gasThrottle_ = null; gasThrottleBuilder_ = null; } return this; } /** *
     **
     * Snapshots for gas throttle.
     * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; */ public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder getGasThrottleBuilder() { onChanged(); return getGasThrottleFieldBuilder().getBuilder(); } /** *
     **
     * Snapshots for gas throttle.
     * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; */ public com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotOrBuilder getGasThrottleOrBuilder() { if (gasThrottleBuilder_ != null) { return gasThrottleBuilder_.getMessageOrBuilder(); } else { return gasThrottle_ == null ? com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.getDefaultInstance() : gasThrottle_; } } /** *
     **
     * Snapshots for gas throttle.
     * 
* * .proto.ThrottleUsageSnapshot gas_throttle = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotOrBuilder> getGasThrottleFieldBuilder() { if (gasThrottleBuilder_ == null) { gasThrottleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshot.Builder, com.hederahashgraph.api.proto.java.ThrottleUsageSnapshotOrBuilder>( getGasThrottle(), getParentForChildren(), isClean()); gasThrottle_ = null; } return gasThrottleBuilder_; } @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.ThrottleUsageSnapshots) } // @@protoc_insertion_point(class_scope:proto.ThrottleUsageSnapshots) private static final com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots(); } public static com.hederahashgraph.api.proto.java.ThrottleUsageSnapshots getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ThrottleUsageSnapshots parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ThrottleUsageSnapshots(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.ThrottleUsageSnapshots getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy