Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The time at which the this snapshot of capacity was calculated.<br/> Stored as an offset from the `epoch`.* Used throttle capacity.* The time at which the this snapshot of capacity was calculated.<br/> Stored as an offset from the `epoch`.longgetUsed()* Used throttle capacity.boolean* The time at which the this snapshot of capacity was calculated.<br/> Stored as an offset from the `epoch`.mergeLastDecisionTime(Timestamp value) * The time at which the this snapshot of capacity was calculated.<br/> Stored as an offset from the `epoch`.setLastDecisionTime(Timestamp value) * The time at which the this snapshot of capacity was calculated.<br/> Stored as an offset from the `epoch`.setLastDecisionTime(Timestamp.Builder builderForValue) * The time at which the this snapshot of capacity was calculated.<br/> Stored as an offset from the `epoch`.setUsed(long value) * Used throttle capacity.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getUsed
public long getUsed()* Used throttle capacity.
int64 used = 1;- Specified by:
getUsedin interfaceThrottleUsageSnapshotOrBuilder- Returns:
- The used.
-
setUsed
* Used throttle capacity.
int64 used = 1;- Parameters:
value- The used to set.- Returns:
- This builder for chaining.
-
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:
hasLastDecisionTimein interfaceThrottleUsageSnapshotOrBuilder- Returns:
- Whether the lastDecisionTime field is set.
-
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:
getLastDecisionTimein interfaceThrottleUsageSnapshotOrBuilder- Returns:
- The lastDecisionTime.
-
setLastDecisionTime
* 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
* 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
* 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
* 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;
-