Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class ThrottleDefinitions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ThrottleDefinitions,ThrottleDefinitions.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ThrottleDefinitions,ThrottleDefinitions.Builder>
com.hedera.hashgraph.sdk.proto.ThrottleDefinitions.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,ThrottleDefinitionsOrBuilder,Cloneable
- Enclosing class:
ThrottleDefinitions
public static final class ThrottleDefinitions.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ThrottleDefinitions,ThrottleDefinitions.Builder>
implements ThrottleDefinitionsOrBuilder
* A list of throttle buckets.<br/> This list, simultaneously enforced, defines a complete throttling policy. 1. When an operation appears in more than one throttling bucket, that operation SHALL be throttled unless all of the buckets where the operation appears have "capacity" available. 1. An operation assigned to no buckets is SHALL be throttled in every instance. The _effective_ throttle for this case is `0`.Protobuf type
proto.ThrottleDefinitions-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllThrottleBuckets(Iterable<? extends ThrottleBucket> values) * A list of throttle buckets.addThrottleBuckets(int index, ThrottleBucket value) * A list of throttle buckets.addThrottleBuckets(int index, ThrottleBucket.Builder builderForValue) * A list of throttle buckets.addThrottleBuckets(ThrottleBucket value) * A list of throttle buckets.addThrottleBuckets(ThrottleBucket.Builder builderForValue) * A list of throttle buckets.* A list of throttle buckets.getThrottleBuckets(int index) * A list of throttle buckets.int* A list of throttle buckets.* A list of throttle buckets.removeThrottleBuckets(int index) * A list of throttle buckets.setThrottleBuckets(int index, ThrottleBucket value) * A list of throttle buckets.setThrottleBuckets(int index, ThrottleBucket.Builder builderForValue) * A list of throttle buckets.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
-
getThrottleBucketsList
* A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1;- Specified by:
getThrottleBucketsListin interfaceThrottleDefinitionsOrBuilder
-
getThrottleBucketsCount
public int getThrottleBucketsCount()* A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1;- Specified by:
getThrottleBucketsCountin interfaceThrottleDefinitionsOrBuilder
-
getThrottleBuckets
* A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1;- Specified by:
getThrottleBucketsin interfaceThrottleDefinitionsOrBuilder
-
setThrottleBuckets
* A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1; -
setThrottleBuckets
public ThrottleDefinitions.Builder setThrottleBuckets(int index, ThrottleBucket.Builder builderForValue) * A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1; -
addThrottleBuckets
* A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1; -
addThrottleBuckets
* A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1; -
addThrottleBuckets
* A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1; -
addThrottleBuckets
public ThrottleDefinitions.Builder addThrottleBuckets(int index, ThrottleBucket.Builder builderForValue) * A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1; -
addAllThrottleBuckets
* A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1; -
clearThrottleBuckets
* A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1; -
removeThrottleBuckets
* A list of throttle buckets. <p> This list MUST be set, and SHOULD NOT be empty.<br/> An empty list SHALL have the effect of setting all operations to a single group with throttle limit of `0` operations per second for the entire network.
repeated .proto.ThrottleBucket throttleBuckets = 1;
-