com.hederahashgraph.api.proto.java.ThrottleGroup Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: throttle_definitions.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.ThrottleGroup)
ThrottleGroupOrBuilder {
private static final long serialVersionUID = 0L;
// Use ThrottleGroup.newBuilder() to construct.
private ThrottleGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ThrottleGroup() {
operations_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ThrottleGroup();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ThrottleGroup(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
operations_.add(rawValue);
break;
}
case 10: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
operations_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 16: {
milliOpsPerSec_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ThrottleGroup.class, com.hederahashgraph.api.proto.java.ThrottleGroup.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
private java.util.List operations_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.hederahashgraph.api.proto.java.HederaFunctionality> operations_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.hederahashgraph.api.proto.java.HederaFunctionality>() {
public com.hederahashgraph.api.proto.java.HederaFunctionality convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
com.hederahashgraph.api.proto.java.HederaFunctionality result = com.hederahashgraph.api.proto.java.HederaFunctionality.valueOf(from);
return result == null ? com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.HederaFunctionality getOperations(int index) {
return operations_converter_.convert(operations_.get(index));
}
/**
*
**
* 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_.get(index);
}
private int operationsMemoizedSerializedSize;
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_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getOperationsList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(operationsMemoizedSerializedSize);
}
for (int i = 0; i < operations_.size(); i++) {
output.writeEnumNoTag(operations_.get(i));
}
if (milliOpsPerSec_ != 0L) {
output.writeUInt64(2, milliOpsPerSec_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < operations_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(operations_.get(i));
}
size += dataSize;
if (!getOperationsList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}operationsMemoizedSerializedSize = dataSize;
}
if (milliOpsPerSec_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, milliOpsPerSec_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.ThrottleGroup)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.ThrottleGroup other = (com.hederahashgraph.api.proto.java.ThrottleGroup) obj;
if (!operations_.equals(other.operations_)) return false;
if (getMilliOpsPerSec()
!= other.getMilliOpsPerSec()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getOperationsCount() > 0) {
hash = (37 * hash) + OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + operations_.hashCode();
}
hash = (37 * hash) + MILLIOPSPERSEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMilliOpsPerSec());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hederahashgraph.api.proto.java.ThrottleGroup prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* 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.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.ThrottleGroup)
com.hederahashgraph.api.proto.java.ThrottleGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ThrottleGroup.class, com.hederahashgraph.api.proto.java.ThrottleGroup.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.ThrottleGroup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
milliOpsPerSec_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleGroup_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleGroup getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.ThrottleGroup.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleGroup build() {
com.hederahashgraph.api.proto.java.ThrottleGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleGroup buildPartial() {
com.hederahashgraph.api.proto.java.ThrottleGroup result = new com.hederahashgraph.api.proto.java.ThrottleGroup(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.operations_ = operations_;
result.milliOpsPerSec_ = milliOpsPerSec_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.ThrottleGroup) {
return mergeFrom((com.hederahashgraph.api.proto.java.ThrottleGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.ThrottleGroup other) {
if (other == com.hederahashgraph.api.proto.java.ThrottleGroup.getDefaultInstance()) return this;
if (!other.operations_.isEmpty()) {
if (operations_.isEmpty()) {
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOperationsIsMutable();
operations_.addAll(other.operations_);
}
onChanged();
}
if (other.getMilliOpsPerSec() != 0L) {
setMilliOpsPerSec(other.getMilliOpsPerSec());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hederahashgraph.api.proto.java.ThrottleGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.ThrottleGroup) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List operations_ =
java.util.Collections.emptyList();
private void ensureOperationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList(operations_);
bitField0_ |= 0x00000001;
}
}
/**
*
**
* The operations to be throttled
*
*
* repeated .proto.HederaFunctionality operations = 1;
* @return A list containing the operations.
*/
public java.util.List getOperationsList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.hederahashgraph.api.proto.java.HederaFunctionality>(operations_, operations_converter_);
}
/**
*
**
* The operations to be throttled
*
*
* repeated .proto.HederaFunctionality operations = 1;
* @return The count of operations.
*/
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.
*/
public com.hederahashgraph.api.proto.java.HederaFunctionality getOperations(int index) {
return operations_converter_.convert(operations_.get(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.hederahashgraph.api.proto.java.HederaFunctionality value) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.set(index, value.getNumber());
onChanged();
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.hederahashgraph.api.proto.java.HederaFunctionality value) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(value.getNumber());
onChanged();
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 extends com.hederahashgraph.api.proto.java.HederaFunctionality> values) {
ensureOperationsIsMutable();
for (com.hederahashgraph.api.proto.java.HederaFunctionality value : values) {
operations_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
**
* The operations to be throttled
*
*
* repeated .proto.HederaFunctionality operations = 1;
* @return This builder for chaining.
*/
public Builder clearOperations() {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
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.
*/
public java.util.List
getOperationsValueList() {
return java.util.Collections.unmodifiableList(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.
*/
public int getOperationsValue(int index) {
return operations_.get(index);
}
/**
*
**
* 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.
* @return This builder for chaining.
*/
public Builder setOperationsValue(
int index, int value) {
ensureOperationsIsMutable();
operations_.set(index, value);
onChanged();
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) {
ensureOperationsIsMutable();
operations_.add(value);
onChanged();
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) {
ensureOperationsIsMutable();
for (int value : values) {
operations_.add(value);
}
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setMilliOpsPerSec(long value) {
milliOpsPerSec_ = value;
onChanged();
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() {
milliOpsPerSec_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.ThrottleGroup)
}
// @@protoc_insertion_point(class_scope:proto.ThrottleGroup)
private static final com.hederahashgraph.api.proto.java.ThrottleGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ThrottleGroup();
}
public static com.hederahashgraph.api.proto.java.ThrottleGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ThrottleGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ThrottleGroup(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy