Class ThrottleGroup.Builder

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

public static final class ThrottleGroup.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ThrottleGroup,ThrottleGroup.Builder> implements ThrottleGroupOrBuilder
 *
 A single throttle limit applied to one or more operations.

 The list of operations MUST contain at least one entry.<br/>
 The throttle limit SHALL be specified in thousandths of an operation
 per second; one operation per second for the network would be `1000`.<br/>
 The throttle limit MUST be greater than zero (`0`).
 
Protobuf type proto.ThrottleGroup
  • Method Details

    • getOperationsList

      public List<HederaFunctionality> getOperationsList()
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Specified by:
      getOperationsList in interface ThrottleGroupOrBuilder
      Returns:
      A list containing the operations.
    • getOperationsCount

      public int getOperationsCount()
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Specified by:
      getOperationsCount in interface ThrottleGroupOrBuilder
      Returns:
      The count of operations.
    • getOperations

      public HederaFunctionality getOperations(int index)
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Specified by:
      getOperations in interface ThrottleGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The operations at the given index.
    • setOperations

      public ThrottleGroup.Builder setOperations(int index, HederaFunctionality value)
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Parameters:
      index - The index to set the value at.
      value - The operations to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • addOperations

      public ThrottleGroup.Builder addOperations(HederaFunctionality value)
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Parameters:
      value - The operations to add.
      Returns:
      This builder for chaining.
    • addAllOperations

      public ThrottleGroup.Builder addAllOperations(Iterable<? extends HederaFunctionality> values)
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Parameters:
      values - The operations to add.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • clearOperations

      public ThrottleGroup.Builder clearOperations()
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Returns:
      This builder for chaining.
    • getOperationsValueList

      public List<Integer> getOperationsValueList()
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Specified by:
      getOperationsValueList in interface ThrottleGroupOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for operations.
    • getOperationsValue

      public int getOperationsValue(int index)
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Specified by:
      getOperationsValue in interface ThrottleGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of operations at the given index.
    • setOperationsValue

      public ThrottleGroup.Builder setOperationsValue(int index, int value)
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for operations to set.
      Returns:
      This builder for chaining.
    • addOperationsValue

      public ThrottleGroup.Builder addOperationsValue(int value)
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Parameters:
      value - The enum numeric value on the wire for operations to add.
      Returns:
      This builder for chaining.
    • addAllOperationsValue

      public ThrottleGroup.Builder addAllOperationsValue(Iterable<Integer> values)
       *
       A list of operations to be throttled.
       <p>
       This list MUST contain at least one item.<br/>
       This list SHOULD NOT contain any item included in any other
       active `ThrottleGroup`.
       
      repeated .proto.HederaFunctionality operations = 1;
      Parameters:
      values - The enum numeric values on the wire for operations to add.
      Returns:
      This builder for chaining.
    • getMilliOpsPerSec

      public long getMilliOpsPerSec()
       *
       A throttle limit for this group.<br/>
       This is a total number of operations, in thousandths, the network may
       perform each second for this group. Every node executes every transaction,
       so this limit effectively applies individually to each node as well.<br/>
       <p>
       This value MUST be greater than zero (`0`).<br/>
       This value SHOULD be less than `9,223,372`.<br/>
       
      uint64 milliOpsPerSec = 2;
      Specified by:
      getMilliOpsPerSec in interface ThrottleGroupOrBuilder
      Returns:
      The milliOpsPerSec.
    • setMilliOpsPerSec

      public ThrottleGroup.Builder setMilliOpsPerSec(long value)
       *
       A throttle limit for this group.<br/>
       This is a total number of operations, in thousandths, the network may
       perform each second for this group. Every node executes every transaction,
       so this limit effectively applies individually to each node as well.<br/>
       <p>
       This value MUST be greater than zero (`0`).<br/>
       This value SHOULD be less than `9,223,372`.<br/>
       
      uint64 milliOpsPerSec = 2;
      Parameters:
      value - The milliOpsPerSec to set.
      Returns:
      This builder for chaining.
    • clearMilliOpsPerSec

      public ThrottleGroup.Builder clearMilliOpsPerSec()
       *
       A throttle limit for this group.<br/>
       This is a total number of operations, in thousandths, the network may
       perform each second for this group. Every node executes every transaction,
       so this limit effectively applies individually to each node as well.<br/>
       <p>
       This value MUST be greater than zero (`0`).<br/>
       This value SHOULD be less than `9,223,372`.<br/>
       
      uint64 milliOpsPerSec = 2;
      Returns:
      This builder for chaining.