com.hedera.hashgraph.sdk.proto.ThrottleGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
// 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.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ThrottleGroup.class, com.hedera.hashgraph.sdk.proto.ThrottleGroup.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List 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>() {
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) {
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_ = 0L;
/**
*
**
* 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_);
}
getUnknownFields().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 += getUnknownFields().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.hedera.hashgraph.sdk.proto.ThrottleGroup)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.ThrottleGroup other = (com.hedera.hashgraph.sdk.proto.ThrottleGroup) obj;
if (!operations_.equals(other.operations_)) return false;
if (getMilliOpsPerSec()
!= other.getMilliOpsPerSec()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(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 PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ThrottleGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ThrottleGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ThrottleGroup.class, com.hedera.hashgraph.sdk.proto.ThrottleGroup.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.ThrottleGroup.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
milliOpsPerSec_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleGroup_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleGroup getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.ThrottleGroup.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleGroup build() {
com.hedera.hashgraph.sdk.proto.ThrottleGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleGroup buildPartial() {
com.hedera.hashgraph.sdk.proto.ThrottleGroup result = new com.hedera.hashgraph.sdk.proto.ThrottleGroup(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.ThrottleGroup result) {
if (((bitField0_ & 0x00000001) != 0)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.operations_ = operations_;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.ThrottleGroup result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.milliOpsPerSec_ = milliOpsPerSec_;
}
}
@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.hedera.hashgraph.sdk.proto.ThrottleGroup) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.ThrottleGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ThrottleGroup other) {
if (other == com.hedera.hashgraph.sdk.proto.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.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int tmpRaw = input.readEnum();
ensureOperationsIsMutable();
operations_.add(tmpRaw);
break;
} // case 8
case 10: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureOperationsIsMutable();
operations_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 10
case 16: {
milliOpsPerSec_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.HederaFunctionality> values) {
ensureOperationsIsMutable();
for (com.hedera.hashgraph.sdk.proto.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 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) {
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;
bitField0_ |= 0x00000002;
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() {
bitField0_ = (bitField0_ & ~0x00000002);
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.hedera.hashgraph.sdk.proto.ThrottleGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ThrottleGroup();
}
public static com.hedera.hashgraph.sdk.proto.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.hedera.hashgraph.sdk.proto.ThrottleGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}