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-jdk7 Show documentation
Show all versions of sdk-jdk7 Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: throttle_definitions.proto
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.GeneratedMessageLite<
ThrottleDefinitions, ThrottleDefinitions.Builder> implements
// @@protoc_insertion_point(message_implements:proto.ThrottleDefinitions)
ThrottleDefinitionsOrBuilder {
private ThrottleDefinitions() {
throttleBuckets_ = emptyProtobufList();
}
public static final int THROTTLEBUCKETS_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList throttleBuckets_;
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
@java.lang.Override
public java.util.List getThrottleBucketsList() {
return throttleBuckets_;
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
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;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleBucketOrBuilder getThrottleBucketsOrBuilder(
int index) {
return throttleBuckets_.get(index);
}
private void ensureThrottleBucketsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = throttleBuckets_;
if (!tmp.isModifiable()) {
throttleBuckets_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
private void setThrottleBuckets(
int index, com.hedera.hashgraph.sdk.proto.ThrottleBucket value) {
value.getClass();
ensureThrottleBucketsIsMutable();
throttleBuckets_.set(index, value);
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
private void addThrottleBuckets(com.hedera.hashgraph.sdk.proto.ThrottleBucket value) {
value.getClass();
ensureThrottleBucketsIsMutable();
throttleBuckets_.add(value);
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
private void addThrottleBuckets(
int index, com.hedera.hashgraph.sdk.proto.ThrottleBucket value) {
value.getClass();
ensureThrottleBucketsIsMutable();
throttleBuckets_.add(index, value);
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
private void addAllThrottleBuckets(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.ThrottleBucket> values) {
ensureThrottleBucketsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, throttleBuckets_);
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
private void clearThrottleBuckets() {
throttleBuckets_ = emptyProtobufList();
}
/**
* repeated .proto.ThrottleBucket throttleBuckets = 1;
*/
private void removeThrottleBuckets(int index) {
ensureThrottleBucketsIsMutable();
throttleBuckets_.remove(index);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleDefinitions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.ThrottleDefinitions prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* 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();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy