Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// 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>
*
**
* 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.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.ThrottleDefinitions, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.ThrottleDefinitions)
com.hedera.hashgraph.sdk.proto.ThrottleDefinitionsOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.ThrottleDefinitions.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
@java.lang.Override
public java.util.List getThrottleBucketsList() {
return java.util.Collections.unmodifiableList(
instance.getThrottleBucketsList());
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
@java.lang.Override
public int getThrottleBucketsCount() {
return instance.getThrottleBucketsCount();
}/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleBucket getThrottleBuckets(int index) {
return instance.getThrottleBuckets(index);
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder setThrottleBuckets(
int index, com.hedera.hashgraph.sdk.proto.ThrottleBucket value) {
copyOnWrite();
instance.setThrottleBuckets(index, value);
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder setThrottleBuckets(
int index, com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder builderForValue) {
copyOnWrite();
instance.setThrottleBuckets(index,
builderForValue.build());
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder addThrottleBuckets(com.hedera.hashgraph.sdk.proto.ThrottleBucket value) {
copyOnWrite();
instance.addThrottleBuckets(value);
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder addThrottleBuckets(
int index, com.hedera.hashgraph.sdk.proto.ThrottleBucket value) {
copyOnWrite();
instance.addThrottleBuckets(index, value);
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder addThrottleBuckets(
com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder builderForValue) {
copyOnWrite();
instance.addThrottleBuckets(builderForValue.build());
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder addThrottleBuckets(
int index, com.hedera.hashgraph.sdk.proto.ThrottleBucket.Builder builderForValue) {
copyOnWrite();
instance.addThrottleBuckets(index,
builderForValue.build());
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder addAllThrottleBuckets(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.ThrottleBucket> values) {
copyOnWrite();
instance.addAllThrottleBuckets(values);
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder clearThrottleBuckets() {
copyOnWrite();
instance.clearThrottleBuckets();
return this;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
public Builder removeThrottleBuckets(int index) {
copyOnWrite();
instance.removeThrottleBuckets(index);
return this;
}
// @@protoc_insertion_point(builder_scope:proto.ThrottleDefinitions)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.ThrottleDefinitions();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"throttleBuckets_",
com.hedera.hashgraph.sdk.proto.ThrottleBucket.class,
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.ThrottleDefinitions.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.ThrottleDefinitions)
private static final com.hedera.hashgraph.sdk.proto.ThrottleDefinitions DEFAULT_INSTANCE;
static {
ThrottleDefinitions defaultInstance = new ThrottleDefinitions();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ThrottleDefinitions.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}