Class ThrottleUsageSnapshots.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ThrottleUsageSnapshots,ThrottleUsageSnapshots.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ThrottleUsageSnapshots,ThrottleUsageSnapshots.Builder>
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, ThrottleUsageSnapshotsOrBuilder, Cloneable
Enclosing class:
ThrottleUsageSnapshots

public static final class ThrottleUsageSnapshots.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ThrottleUsageSnapshots,ThrottleUsageSnapshots.Builder> implements ThrottleUsageSnapshotsOrBuilder
 *
 All point-in-time snapshots of throttle usage for TPS, "gas" throttle
 values for a given point in time and evm ops duration throttle.

 > Question:
 >> What point in time?  Should this store consensus timestamp here?
 
Protobuf type proto.ThrottleUsageSnapshots
  • Method Details

    • getTpsThrottlesList

      public List<ThrottleUsageSnapshot> getTpsThrottlesList()
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
      Specified by:
      getTpsThrottlesList in interface ThrottleUsageSnapshotsOrBuilder
    • getTpsThrottlesCount

      public int getTpsThrottlesCount()
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
      Specified by:
      getTpsThrottlesCount in interface ThrottleUsageSnapshotsOrBuilder
    • getTpsThrottles

      public ThrottleUsageSnapshot getTpsThrottles(int index)
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
      Specified by:
      getTpsThrottles in interface ThrottleUsageSnapshotsOrBuilder
    • setTpsThrottles

      public ThrottleUsageSnapshots.Builder setTpsThrottles(int index, ThrottleUsageSnapshot value)
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
    • setTpsThrottles

      public ThrottleUsageSnapshots.Builder setTpsThrottles(int index, ThrottleUsageSnapshot.Builder builderForValue)
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
    • addTpsThrottles

      public ThrottleUsageSnapshots.Builder addTpsThrottles(ThrottleUsageSnapshot value)
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
    • addTpsThrottles

      public ThrottleUsageSnapshots.Builder addTpsThrottles(int index, ThrottleUsageSnapshot value)
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
    • addTpsThrottles

      public ThrottleUsageSnapshots.Builder addTpsThrottles(ThrottleUsageSnapshot.Builder builderForValue)
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
    • addTpsThrottles

      public ThrottleUsageSnapshots.Builder addTpsThrottles(int index, ThrottleUsageSnapshot.Builder builderForValue)
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
    • addAllTpsThrottles

      public ThrottleUsageSnapshots.Builder addAllTpsThrottles(Iterable<? extends ThrottleUsageSnapshot> values)
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
    • clearTpsThrottles

      public ThrottleUsageSnapshots.Builder clearTpsThrottles()
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
    • removeTpsThrottles

      public ThrottleUsageSnapshots.Builder removeTpsThrottles(int index)
       *
       A list of snapshots for TPS throttles.
       <p>
       <blockquote>Question:<blockquote>What is the order?</blockquote></blockquote>
       
      repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
    • hasGasThrottle

      public boolean hasGasThrottle()
       *
       A single snapshot for the gas throttle.
       
      .proto.ThrottleUsageSnapshot gas_throttle = 2;
      Specified by:
      hasGasThrottle in interface ThrottleUsageSnapshotsOrBuilder
      Returns:
      Whether the gasThrottle field is set.
    • getGasThrottle

      public ThrottleUsageSnapshot getGasThrottle()
       *
       A single snapshot for the gas throttle.
       
      .proto.ThrottleUsageSnapshot gas_throttle = 2;
      Specified by:
      getGasThrottle in interface ThrottleUsageSnapshotsOrBuilder
      Returns:
      The gasThrottle.
    • setGasThrottle

       *
       A single snapshot for the gas throttle.
       
      .proto.ThrottleUsageSnapshot gas_throttle = 2;
    • setGasThrottle

      public ThrottleUsageSnapshots.Builder setGasThrottle(ThrottleUsageSnapshot.Builder builderForValue)
       *
       A single snapshot for the gas throttle.
       
      .proto.ThrottleUsageSnapshot gas_throttle = 2;
    • mergeGasThrottle

      public ThrottleUsageSnapshots.Builder mergeGasThrottle(ThrottleUsageSnapshot value)
       *
       A single snapshot for the gas throttle.
       
      .proto.ThrottleUsageSnapshot gas_throttle = 2;
    • clearGasThrottle

      public ThrottleUsageSnapshots.Builder clearGasThrottle()
       *
       A single snapshot for the gas throttle.
       
      .proto.ThrottleUsageSnapshot gas_throttle = 2;
    • hasEvmOpsDurationThrottle

      public boolean hasEvmOpsDurationThrottle()
       *
       A single snapshot for evm ops duration throttle.
       
      .proto.ThrottleUsageSnapshot evm_ops_duration_throttle = 3;
      Specified by:
      hasEvmOpsDurationThrottle in interface ThrottleUsageSnapshotsOrBuilder
      Returns:
      Whether the evmOpsDurationThrottle field is set.
    • getEvmOpsDurationThrottle

      public ThrottleUsageSnapshot getEvmOpsDurationThrottle()
       *
       A single snapshot for evm ops duration throttle.
       
      .proto.ThrottleUsageSnapshot evm_ops_duration_throttle = 3;
      Specified by:
      getEvmOpsDurationThrottle in interface ThrottleUsageSnapshotsOrBuilder
      Returns:
      The evmOpsDurationThrottle.
    • setEvmOpsDurationThrottle

      public ThrottleUsageSnapshots.Builder setEvmOpsDurationThrottle(ThrottleUsageSnapshot value)
       *
       A single snapshot for evm ops duration throttle.
       
      .proto.ThrottleUsageSnapshot evm_ops_duration_throttle = 3;
    • setEvmOpsDurationThrottle

      public ThrottleUsageSnapshots.Builder setEvmOpsDurationThrottle(ThrottleUsageSnapshot.Builder builderForValue)
       *
       A single snapshot for evm ops duration throttle.
       
      .proto.ThrottleUsageSnapshot evm_ops_duration_throttle = 3;
    • mergeEvmOpsDurationThrottle

      public ThrottleUsageSnapshots.Builder mergeEvmOpsDurationThrottle(ThrottleUsageSnapshot value)
       *
       A single snapshot for evm ops duration throttle.
       
      .proto.ThrottleUsageSnapshot evm_ops_duration_throttle = 3;
    • clearEvmOpsDurationThrottle

      public ThrottleUsageSnapshots.Builder clearEvmOpsDurationThrottle()
       *
       A single snapshot for evm ops duration throttle.
       
      .proto.ThrottleUsageSnapshot evm_ops_duration_throttle = 3;