com.hederahashgraph.api.proto.java.ThrottleDefinitions Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: throttle_definitions.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ThrottleDefinitions(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
throttleBuckets_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
throttleBuckets_.add(
input.readMessage(com.hederahashgraph.api.proto.java.ThrottleBucket.parser(), extensionRegistry));
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)) {
throttleBuckets_ = java.util.Collections.unmodifiableList(throttleBuckets_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleDefinitions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleDefinitions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ThrottleDefinitions.class, com.hederahashgraph.api.proto.java.ThrottleDefinitions.Builder.class);
}
public static final int THROTTLEBUCKETS_FIELD_NUMBER = 1;
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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThrottleBucket getThrottleBuckets(int index) {
return throttleBuckets_.get(index);
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.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));
}
unknownFields.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 += 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.ThrottleDefinitions)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.ThrottleDefinitions other = (com.hederahashgraph.api.proto.java.ThrottleDefinitions) obj;
if (!getThrottleBucketsList()
.equals(other.getThrottleBucketsList())) 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 (getThrottleBucketsCount() > 0) {
hash = (37 * hash) + THROTTLEBUCKETS_FIELD_NUMBER;
hash = (53 * hash) + getThrottleBucketsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.ThrottleDefinitions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ThrottleDefinitions 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.ThrottleDefinitions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThrottleDefinitions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ThrottleDefinitions 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.ThrottleDefinitions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThrottleDefinitions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThrottleDefinitions 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.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThrottleDefinitionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleDefinitions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleDefinitions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ThrottleDefinitions.class, com.hederahashgraph.api.proto.java.ThrottleDefinitions.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.ThrottleDefinitions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getThrottleBucketsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (throttleBucketsBuilder_ == null) {
throttleBuckets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
throttleBucketsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitionsOuterClass.internal_static_proto_ThrottleDefinitions_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleDefinitions getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.ThrottleDefinitions.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleDefinitions build() {
com.hederahashgraph.api.proto.java.ThrottleDefinitions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ThrottleDefinitions buildPartial() {
com.hederahashgraph.api.proto.java.ThrottleDefinitions result = new com.hederahashgraph.api.proto.java.ThrottleDefinitions(this);
int from_bitField0_ = bitField0_;
if (throttleBucketsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
throttleBuckets_ = java.util.Collections.unmodifiableList(throttleBuckets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.throttleBuckets_ = throttleBuckets_;
} else {
result.throttleBuckets_ = throttleBucketsBuilder_.build();
}
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.ThrottleDefinitions) {
return mergeFrom((com.hederahashgraph.api.proto.java.ThrottleDefinitions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.ThrottleDefinitions other) {
if (other == com.hederahashgraph.api.proto.java.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.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.ThrottleDefinitions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.ThrottleDefinitions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.hederahashgraph.api.proto.java.ThrottleBucket, com.hederahashgraph.api.proto.java.ThrottleBucket.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThrottleBucket.Builder getThrottleBucketsBuilder(
int index) {
return getThrottleBucketsFieldBuilder().getBuilder(index);
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThrottleBucketOrBuilder>
getThrottleBucketsOrBuilderList() {
if (throttleBucketsBuilder_ != null) {
return throttleBucketsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(throttleBuckets_);
}
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public com.hederahashgraph.api.proto.java.ThrottleBucket.Builder addThrottleBucketsBuilder() {
return getThrottleBucketsFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.ThrottleBucket.getDefaultInstance());
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public com.hederahashgraph.api.proto.java.ThrottleBucket.Builder addThrottleBucketsBuilder(
int index) {
return getThrottleBucketsFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.ThrottleBucket.getDefaultInstance());
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public java.util.List
getThrottleBucketsBuilderList() {
return getThrottleBucketsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ThrottleBucket, com.hederahashgraph.api.proto.java.ThrottleBucket.Builder, com.hederahashgraph.api.proto.java.ThrottleBucketOrBuilder>
getThrottleBucketsFieldBuilder() {
if (throttleBucketsBuilder_ == null) {
throttleBucketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.ThrottleBucket, com.hederahashgraph.api.proto.java.ThrottleBucket.Builder, com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.ThrottleDefinitions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ThrottleDefinitions();
}
public static com.hederahashgraph.api.proto.java.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 {
return new ThrottleDefinitions(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.ThrottleDefinitions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy