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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllOperations(Iterable<? extends HederaFunctionality> values) * A list of operations to be throttled.addAllOperationsValue(Iterable<Integer> values) * A list of operations to be throttled.addOperations(HederaFunctionality value) * A list of operations to be throttled.addOperationsValue(int value) * A list of operations to be throttled.* 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.* A list of operations to be throttled.long* 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.getOperations(int index) * A list of operations to be throttled.int* A list of operations to be throttled.* A list of operations to be throttled.intgetOperationsValue(int index) * A list of operations to be throttled.* A list of operations to be throttled.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.setOperations(int index, HederaFunctionality value) * A list of operations to be throttled.setOperationsValue(int index, int value) * A list of operations to be throttled.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
-
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:
getOperationsListin interfaceThrottleGroupOrBuilder- 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:
getOperationsCountin interfaceThrottleGroupOrBuilder- Returns:
- The count of operations.
-
getOperations
* 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:
getOperationsin interfaceThrottleGroupOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The operations at the given index.
-
setOperations
* 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
* 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
* 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
* 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
* 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:
getOperationsValueListin interfaceThrottleGroupOrBuilder- 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:
getOperationsValuein interfaceThrottleGroupOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of operations at the given index.
-
setOperationsValue
* 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
* 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
* 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:
getMilliOpsPerSecin interfaceThrottleGroupOrBuilder- Returns:
- The milliOpsPerSec.
-
setMilliOpsPerSec
* 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
* 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.
-