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
  • Method Details

    • getThrottleBucketsList

      public List<ThrottleBucket> 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:
      getThrottleBucketsList in interface ThrottleDefinitionsOrBuilder
    • 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:
      getThrottleBucketsCount in interface ThrottleDefinitionsOrBuilder
    • getThrottleBuckets

      public ThrottleBucket getThrottleBuckets(int index)
       *
       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:
      getThrottleBuckets in interface ThrottleDefinitionsOrBuilder
    • setThrottleBuckets

      public ThrottleDefinitions.Builder setThrottleBuckets(int index, ThrottleBucket value)
       *
       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

      public ThrottleDefinitions.Builder addThrottleBuckets(ThrottleBucket value)
       *
       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 value)
       *
       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(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

      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

      public ThrottleDefinitions.Builder addAllThrottleBuckets(Iterable<? extends ThrottleBucket> values)
       *
       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

      public ThrottleDefinitions.Builder 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

      public ThrottleDefinitions.Builder removeThrottleBuckets(int index)
       *
       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;