Class ThrottleUsageSnapshot.Builder

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

public static final class ThrottleUsageSnapshot.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ThrottleUsageSnapshot,ThrottleUsageSnapshot.Builder> implements ThrottleUsageSnapshotOrBuilder
 *
 A single snapshot of the used throttle capacity for a throttle and point in
 time.

 > Question:
 >> What throttle does this apply to? How is that determined?
 
Protobuf type proto.ThrottleUsageSnapshot
  • Method Details

    • getUsed

      public long getUsed()
       *
       Used throttle capacity.
       
      int64 used = 1;
      Specified by:
      getUsed in interface ThrottleUsageSnapshotOrBuilder
      Returns:
      The used.
    • setUsed

      public ThrottleUsageSnapshot.Builder setUsed(long value)
       *
       Used throttle capacity.
       
      int64 used = 1;
      Parameters:
      value - The used to set.
      Returns:
      This builder for chaining.
    • clearUsed

      public ThrottleUsageSnapshot.Builder clearUsed()
       *
       Used throttle capacity.
       
      int64 used = 1;
      Returns:
      This builder for chaining.
    • hasLastDecisionTime

      public boolean hasLastDecisionTime()
       *
       The time at which the this snapshot of capacity was calculated.<br/>
       Stored as an offset from the `epoch`.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp last_decision_time = 2;
      Specified by:
      hasLastDecisionTime in interface ThrottleUsageSnapshotOrBuilder
      Returns:
      Whether the lastDecisionTime field is set.
    • getLastDecisionTime

      public Timestamp getLastDecisionTime()
       *
       The time at which the this snapshot of capacity was calculated.<br/>
       Stored as an offset from the `epoch`.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp last_decision_time = 2;
      Specified by:
      getLastDecisionTime in interface ThrottleUsageSnapshotOrBuilder
      Returns:
      The lastDecisionTime.
    • setLastDecisionTime

      public ThrottleUsageSnapshot.Builder setLastDecisionTime(Timestamp value)
       *
       The time at which the this snapshot of capacity was calculated.<br/>
       Stored as an offset from the `epoch`.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp last_decision_time = 2;
    • setLastDecisionTime

      public ThrottleUsageSnapshot.Builder setLastDecisionTime(Timestamp.Builder builderForValue)
       *
       The time at which the this snapshot of capacity was calculated.<br/>
       Stored as an offset from the `epoch`.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp last_decision_time = 2;
    • mergeLastDecisionTime

      public ThrottleUsageSnapshot.Builder mergeLastDecisionTime(Timestamp value)
       *
       The time at which the this snapshot of capacity was calculated.<br/>
       Stored as an offset from the `epoch`.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp last_decision_time = 2;
    • clearLastDecisionTime

      public ThrottleUsageSnapshot.Builder clearLastDecisionTime()
       *
       The time at which the this snapshot of capacity was calculated.<br/>
       Stored as an offset from the `epoch`.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp last_decision_time = 2;