com.hedera.hashgraph.sdk.proto.ThrottleDefinitions 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
The 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 list of throttle buckets which, simultaneously enforced, define the system's throttling policy.
* <ol>
* <li> When an operation appears in more than one throttling bucket, all its buckets must have room
* or it will be throttled.</li>
* <li>An operation assigned to no buckets is always throttled.</li>
* </ol>
*
*
* Protobuf type {@code proto.ThrottleDefinitions}
*/
public final class ThrottleDefinitions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.ThrottleDefinitions)
ThrottleDefinitionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ThrottleDefinitions.newBuilder() to construct.
private ThrottleDefinitions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ThrottleDefinitions() {
throttleBuckets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ThrottleDefinitions();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleDefinitions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleDefinitions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ThrottleDefinitions.class, com.hedera.hashgraph.sdk.proto.ThrottleDefinitions.Builder.class);
}
public static final int THROTTLEBUCKETS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List throttleBuckets_;
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
@java.lang.Override
public java.util.List getThrottleBucketsList() {
return throttleBuckets_;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.ThrottleBucketOrBuilder>
getThrottleBucketsOrBuilderList() {
return throttleBuckets_;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
@java.lang.Override
public int getThrottleBucketsCount() {
return throttleBuckets_.size();
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleBucket getThrottleBuckets(int index) {
return throttleBuckets_.get(index);
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleBucketOrBuilder getThrottleBucketsOrBuilder(
int index) {
return throttleBuckets_.get(index);
}
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 {
for (int i = 0; i < throttleBuckets_.size(); i++) {
output.writeMessage(1, throttleBuckets_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < throttleBuckets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, throttleBuckets_.get(i));
}
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.ThrottleDefinitions)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.ThrottleDefinitions other = (com.hedera.hashgraph.sdk.proto.ThrottleDefinitions) obj;
if (!getThrottleBucketsList()
.equals(other.getThrottleBucketsList())) 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 (getThrottleBucketsCount() > 0) {
hash = (37 * hash) + THROTTLEBUCKETS_FIELD_NUMBER;
hash = (53 * hash) + getThrottleBucketsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions 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.ThrottleDefinitions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions 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.ThrottleDefinitions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions 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.ThrottleDefinitions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions 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.ThrottleDefinitions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions 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.ThrottleDefinitions 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.ThrottleDefinitions 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.ThrottleDefinitions 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 list of throttle buckets which, simultaneously enforced, define the system's throttling policy.
* <ol>
* <li> When an operation appears in more than one throttling bucket, all its buckets must have room
* or it will be throttled.</li>
* <li>An operation assigned to no buckets is always throttled.</li>
* </ol>
*
*
* Protobuf type {@code proto.ThrottleDefinitions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.ThrottleDefinitions)
com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleDefinitions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleDefinitions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ThrottleDefinitions.class, com.hedera.hashgraph.sdk.proto.ThrottleDefinitions.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.ThrottleDefinitions.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (throttleBucketsBuilder_ == null) {
throttleBuckets_ = java.util.Collections.emptyList();
} else {
throttleBuckets_ = null;
throttleBucketsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleDefinitions_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleDefinitions getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.ThrottleDefinitions.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleDefinitions build() {
com.hedera.hashgraph.sdk.proto.ThrottleDefinitions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleDefinitions buildPartial() {
com.hedera.hashgraph.sdk.proto.ThrottleDefinitions result = new com.hedera.hashgraph.sdk.proto.ThrottleDefinitions(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.ThrottleDefinitions result) {
if (throttleBucketsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
throttleBuckets_ = java.util.Collections.unmodifiableList(throttleBuckets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.throttleBuckets_ = throttleBuckets_;
} else {
result.throttleBuckets_ = throttleBucketsBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.ThrottleDefinitions result) {
int from_bitField0_ = bitField0_;
}
@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.ThrottleDefinitions) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.ThrottleDefinitions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ThrottleDefinitions other) {
if (other == com.hedera.hashgraph.sdk.proto.ThrottleDefinitions.getDefaultInstance()) return this;
if (throttleBucketsBuilder_ == null) {
if (!other.throttleBuckets_.isEmpty()) {
if (throttleBuckets_.isEmpty()) {
throttleBuckets_ = other.throttleBuckets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureThrottleBucketsIsMutable();
throttleBuckets_.addAll(other.throttleBuckets_);
}
onChanged();
}
} else {
if (!other.throttleBuckets_.isEmpty()) {
if (throttleBucketsBuilder_.isEmpty()) {
throttleBucketsBuilder_.dispose();
throttleBucketsBuilder_ = null;
throttleBuckets_ = other.throttleBuckets_;
bitField0_ = (bitField0_ & ~0x00000001);
throttleBucketsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getThrottleBucketsFieldBuilder() : null;
} else {
throttleBucketsBuilder_.addAllMessages(other.throttleBuckets_);
}
}
}
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 10: {
com.hedera.hashgraph.sdk.proto.ThrottleBucket m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.ThrottleBucket.parser(),
extensionRegistry);
if (throttleBucketsBuilder_ == null) {
ensureThrottleBucketsIsMutable();
throttleBuckets_.add(m);
} else {
throttleBucketsBuilder_.addMessage(m);
}
break;
} // case 10
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 throttleBuckets_ =
java.util.Collections.emptyList();
private void ensureThrottleBucketsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
throttleBuckets_ = new java.util.ArrayList(throttleBuckets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ThrottleBucket, com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder, com.hedera.hashgraph.sdk.proto.ThrottleBucketOrBuilder> throttleBucketsBuilder_;
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public java.util.List getThrottleBucketsList() {
if (throttleBucketsBuilder_ == null) {
return java.util.Collections.unmodifiableList(throttleBuckets_);
} else {
return throttleBucketsBuilder_.getMessageList();
}
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public int getThrottleBucketsCount() {
if (throttleBucketsBuilder_ == null) {
return throttleBuckets_.size();
} else {
return throttleBucketsBuilder_.getCount();
}
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleBucket getThrottleBuckets(int index) {
if (throttleBucketsBuilder_ == null) {
return throttleBuckets_.get(index);
} else {
return throttleBucketsBuilder_.getMessage(index);
}
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder setThrottleBuckets(
int index, com.hedera.hashgraph.sdk.proto.ThrottleBucket value) {
if (throttleBucketsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThrottleBucketsIsMutable();
throttleBuckets_.set(index, value);
onChanged();
} else {
throttleBucketsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder setThrottleBuckets(
int index, com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder builderForValue) {
if (throttleBucketsBuilder_ == null) {
ensureThrottleBucketsIsMutable();
throttleBuckets_.set(index, builderForValue.build());
onChanged();
} else {
throttleBucketsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder addThrottleBuckets(com.hedera.hashgraph.sdk.proto.ThrottleBucket value) {
if (throttleBucketsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThrottleBucketsIsMutable();
throttleBuckets_.add(value);
onChanged();
} else {
throttleBucketsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder addThrottleBuckets(
int index, com.hedera.hashgraph.sdk.proto.ThrottleBucket value) {
if (throttleBucketsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThrottleBucketsIsMutable();
throttleBuckets_.add(index, value);
onChanged();
} else {
throttleBucketsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder addThrottleBuckets(
com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder builderForValue) {
if (throttleBucketsBuilder_ == null) {
ensureThrottleBucketsIsMutable();
throttleBuckets_.add(builderForValue.build());
onChanged();
} else {
throttleBucketsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder addThrottleBuckets(
int index, com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder builderForValue) {
if (throttleBucketsBuilder_ == null) {
ensureThrottleBucketsIsMutable();
throttleBuckets_.add(index, builderForValue.build());
onChanged();
} else {
throttleBucketsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder addAllThrottleBuckets(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.ThrottleBucket> values) {
if (throttleBucketsBuilder_ == null) {
ensureThrottleBucketsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, throttleBuckets_);
onChanged();
} else {
throttleBucketsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder clearThrottleBuckets() {
if (throttleBucketsBuilder_ == null) {
throttleBuckets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
throttleBucketsBuilder_.clear();
}
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder removeThrottleBuckets(int index) {
if (throttleBucketsBuilder_ == null) {
ensureThrottleBucketsIsMutable();
throttleBuckets_.remove(index);
onChanged();
} else {
throttleBucketsBuilder_.remove(index);
}
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder getThrottleBucketsBuilder(
int index) {
return getThrottleBucketsFieldBuilder().getBuilder(index);
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleBucketOrBuilder getThrottleBucketsOrBuilder(
int index) {
if (throttleBucketsBuilder_ == null) {
return throttleBuckets_.get(index); } else {
return throttleBucketsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.ThrottleBucketOrBuilder>
getThrottleBucketsOrBuilderList() {
if (throttleBucketsBuilder_ != null) {
return throttleBucketsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(throttleBuckets_);
}
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder addThrottleBucketsBuilder() {
return getThrottleBucketsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.ThrottleBucket.getDefaultInstance());
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder addThrottleBucketsBuilder(
int index) {
return getThrottleBucketsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.ThrottleBucket.getDefaultInstance());
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public java.util.List
getThrottleBucketsBuilderList() {
return getThrottleBucketsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ThrottleBucket, com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder, com.hedera.hashgraph.sdk.proto.ThrottleBucketOrBuilder>
getThrottleBucketsFieldBuilder() {
if (throttleBucketsBuilder_ == null) {
throttleBucketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ThrottleBucket, com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder, com.hedera.hashgraph.sdk.proto.ThrottleBucketOrBuilder>(
throttleBuckets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
throttleBuckets_ = null;
}
return throttleBucketsBuilder_;
}
@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.ThrottleDefinitions)
}
// @@protoc_insertion_point(class_scope:proto.ThrottleDefinitions)
private static final com.hedera.hashgraph.sdk.proto.ThrottleDefinitions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ThrottleDefinitions();
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ThrottleDefinitions 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.ThrottleDefinitions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}