All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.ThrottleGroup Maven / Gradle / Ivy

There is a newer version: 2.39.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: throttle_definitions.proto

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * A set of operations which should be collectively throttled at a given milli-ops-per-second limit.
 * 
* * Protobuf type {@code proto.ThrottleGroup} */ public final class ThrottleGroup extends com.google.protobuf.GeneratedMessageLite< ThrottleGroup, ThrottleGroup.Builder> implements // @@protoc_insertion_point(message_implements:proto.ThrottleGroup) ThrottleGroupOrBuilder { private ThrottleGroup() { operations_ = emptyIntList(); } public static final int OPERATIONS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.IntList operations_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.hedera.hashgraph.sdk.proto.HederaFunctionality> operations_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.hedera.hashgraph.sdk.proto.HederaFunctionality>() { @java.lang.Override public com.hedera.hashgraph.sdk.proto.HederaFunctionality convert(java.lang.Integer from) { com.hedera.hashgraph.sdk.proto.HederaFunctionality result = com.hedera.hashgraph.sdk.proto.HederaFunctionality.forNumber(from); return result == null ? com.hedera.hashgraph.sdk.proto.HederaFunctionality.UNRECOGNIZED : result; } }; /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @return A list containing the operations. */ @java.lang.Override public java.util.List getOperationsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.hedera.hashgraph.sdk.proto.HederaFunctionality>(operations_, operations_converter_); } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @return The count of operations. */ @java.lang.Override public int getOperationsCount() { return operations_.size(); } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @param index The index of the element to return. * @return The operations at the given index. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.HederaFunctionality getOperations(int index) { com.hedera.hashgraph.sdk.proto.HederaFunctionality result = com.hedera.hashgraph.sdk.proto.HederaFunctionality.forNumber(operations_.getInt(index)); return result == null ? com.hedera.hashgraph.sdk.proto.HederaFunctionality.UNRECOGNIZED : result; } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @return A list containing the enum numeric values on the wire for operations. */ @java.lang.Override public java.util.List getOperationsValueList() { return operations_; } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of operations at the given index. */ @java.lang.Override public int getOperationsValue(int index) { return operations_.getInt(index); } private int operationsMemoizedSerializedSize; private void ensureOperationsIsMutable() { com.google.protobuf.Internal.IntList tmp = operations_; if (!tmp.isModifiable()) { operations_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @param index The index to set the value at. * @param value The operations to set. */ private void setOperations( int index, com.hedera.hashgraph.sdk.proto.HederaFunctionality value) { value.getClass(); ensureOperationsIsMutable(); operations_.setInt(index, value.getNumber()); } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @param value The operations to add. */ private void addOperations(com.hedera.hashgraph.sdk.proto.HederaFunctionality value) { value.getClass(); ensureOperationsIsMutable(); operations_.addInt(value.getNumber()); } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @param values The operations to add. */ private void addAllOperations( java.lang.Iterable values) { ensureOperationsIsMutable(); for (com.hedera.hashgraph.sdk.proto.HederaFunctionality value : values) { operations_.addInt(value.getNumber()); } } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; */ private void clearOperations() { operations_ = emptyIntList(); } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @param value The enum numeric value on the wire for operations to set. */ private void setOperationsValue( int index, int value) { ensureOperationsIsMutable(); operations_.setInt(index, value); } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @param value The enum numeric value on the wire for operations to add. */ private void addOperationsValue(int value) { ensureOperationsIsMutable(); operations_.addInt(value); } /** *
   **
   * The operations to be throttled
   * 
* * repeated .proto.HederaFunctionality operations = 1; * @param values The enum numeric values on the wire for operations to add. */ private void addAllOperationsValue( java.lang.Iterable values) { ensureOperationsIsMutable(); for (int value : values) { operations_.addInt(value); } } public static final int MILLIOPSPERSEC_FIELD_NUMBER = 2; private long milliOpsPerSec_; /** *
   **
   * The number of total operations per second across the entire network, multiplied by 1000. So, to
   * choose 3 operations per second (which on a network of 30 nodes is a tenth of an operation per
   * second for each node), set milliOpsPerSec = 3000. And to choose 3.6 ops per second, use
   * milliOpsPerSec = 3600. Minimum allowed value is 1, and maximum allowed value is 9223372.
   * 
* * uint64 milliOpsPerSec = 2; * @return The milliOpsPerSec. */ @java.lang.Override public long getMilliOpsPerSec() { return milliOpsPerSec_; } /** *
   **
   * The number of total operations per second across the entire network, multiplied by 1000. So, to
   * choose 3 operations per second (which on a network of 30 nodes is a tenth of an operation per
   * second for each node), set milliOpsPerSec = 3000. And to choose 3.6 ops per second, use
   * milliOpsPerSec = 3600. Minimum allowed value is 1, and maximum allowed value is 9223372.
   * 
* * uint64 milliOpsPerSec = 2; * @param value The milliOpsPerSec to set. */ private void setMilliOpsPerSec(long value) { milliOpsPerSec_ = value; } /** *
   **
   * The number of total operations per second across the entire network, multiplied by 1000. So, to
   * choose 3 operations per second (which on a network of 30 nodes is a tenth of an operation per
   * second for each node), set milliOpsPerSec = 3000. And to choose 3.6 ops per second, use
   * milliOpsPerSec = 3600. Minimum allowed value is 1, and maximum allowed value is 9223372.
   * 
* * uint64 milliOpsPerSec = 2; */ private void clearMilliOpsPerSec() { milliOpsPerSec_ = 0L; } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.ThrottleGroup prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * A set of operations which should be collectively throttled at a given milli-ops-per-second limit.
   * 
* * Protobuf type {@code proto.ThrottleGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.ThrottleGroup, Builder> implements // @@protoc_insertion_point(builder_implements:proto.ThrottleGroup) com.hedera.hashgraph.sdk.proto.ThrottleGroupOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.ThrottleGroup.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @return A list containing the operations. */ @java.lang.Override public java.util.List getOperationsList() { return instance.getOperationsList(); } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @return The count of operations. */ @java.lang.Override public int getOperationsCount() { return instance.getOperationsCount(); } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @param index The index of the element to return. * @return The operations at the given index. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.HederaFunctionality getOperations(int index) { return instance.getOperations(index); } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @param index The index to set the value at. * @param value The operations to set. * @return This builder for chaining. */ public Builder setOperations( int index, com.hedera.hashgraph.sdk.proto.HederaFunctionality value) { copyOnWrite(); instance.setOperations(index, value); return this; } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @param value The operations to add. * @return This builder for chaining. */ public Builder addOperations(com.hedera.hashgraph.sdk.proto.HederaFunctionality value) { copyOnWrite(); instance.addOperations(value); return this; } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @param values The operations to add. * @return This builder for chaining. */ public Builder addAllOperations( java.lang.Iterable values) { copyOnWrite(); instance.addAllOperations(values); return this; } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @return This builder for chaining. */ public Builder clearOperations() { copyOnWrite(); instance.clearOperations(); return this; } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @return A list containing the enum numeric values on the wire for operations. */ @java.lang.Override public java.util.List getOperationsValueList() { return java.util.Collections.unmodifiableList( instance.getOperationsValueList()); } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of operations at the given index. */ @java.lang.Override public int getOperationsValue(int index) { return instance.getOperationsValue(index); } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @param index The index to set the value at. * @param value The enum numeric value on the wire for operations to set. * @return This builder for chaining. */ public Builder setOperationsValue( int index, int value) { copyOnWrite(); instance.setOperationsValue(index, value); return this; } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @param value The enum numeric value on the wire for operations to add. * @return This builder for chaining. */ public Builder addOperationsValue(int value) { copyOnWrite(); instance.addOperationsValue(value); return this; } /** *
     **
     * The operations to be throttled
     * 
* * repeated .proto.HederaFunctionality operations = 1; * @param values The enum numeric values on the wire for operations to add. * @return This builder for chaining. */ public Builder addAllOperationsValue( java.lang.Iterable values) { copyOnWrite(); instance.addAllOperationsValue(values); return this; } /** *
     **
     * The number of total operations per second across the entire network, multiplied by 1000. So, to
     * choose 3 operations per second (which on a network of 30 nodes is a tenth of an operation per
     * second for each node), set milliOpsPerSec = 3000. And to choose 3.6 ops per second, use
     * milliOpsPerSec = 3600. Minimum allowed value is 1, and maximum allowed value is 9223372.
     * 
* * uint64 milliOpsPerSec = 2; * @return The milliOpsPerSec. */ @java.lang.Override public long getMilliOpsPerSec() { return instance.getMilliOpsPerSec(); } /** *
     **
     * The number of total operations per second across the entire network, multiplied by 1000. So, to
     * choose 3 operations per second (which on a network of 30 nodes is a tenth of an operation per
     * second for each node), set milliOpsPerSec = 3000. And to choose 3.6 ops per second, use
     * milliOpsPerSec = 3600. Minimum allowed value is 1, and maximum allowed value is 9223372.
     * 
* * uint64 milliOpsPerSec = 2; * @param value The milliOpsPerSec to set. * @return This builder for chaining. */ public Builder setMilliOpsPerSec(long value) { copyOnWrite(); instance.setMilliOpsPerSec(value); return this; } /** *
     **
     * The number of total operations per second across the entire network, multiplied by 1000. So, to
     * choose 3 operations per second (which on a network of 30 nodes is a tenth of an operation per
     * second for each node), set milliOpsPerSec = 3000. And to choose 3.6 ops per second, use
     * milliOpsPerSec = 3600. Minimum allowed value is 1, and maximum allowed value is 9223372.
     * 
* * uint64 milliOpsPerSec = 2; * @return This builder for chaining. */ public Builder clearMilliOpsPerSec() { copyOnWrite(); instance.clearMilliOpsPerSec(); return this; } // @@protoc_insertion_point(builder_scope:proto.ThrottleGroup) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.ThrottleGroup(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "operations_", "milliOpsPerSec_", }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001,\u0002\u0003"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.ThrottleGroup.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.ThrottleGroup) private static final com.hedera.hashgraph.sdk.proto.ThrottleGroup DEFAULT_INSTANCE; static { ThrottleGroup defaultInstance = new ThrottleGroup(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ThrottleGroup.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.ThrottleGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy