com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots 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_usage_snapshots.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
* Protobuf type {@code proto.ThrottleUsageSnapshots}
*/
public final class ThrottleUsageSnapshots extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.ThrottleUsageSnapshots)
ThrottleUsageSnapshotsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ThrottleUsageSnapshots.newBuilder() to construct.
private ThrottleUsageSnapshots(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ThrottleUsageSnapshots() {
tpsThrottles_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ThrottleUsageSnapshots();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotsOuterClass.internal_static_proto_ThrottleUsageSnapshots_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotsOuterClass.internal_static_proto_ThrottleUsageSnapshots_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots.class, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots.Builder.class);
}
private int bitField0_;
public static final int TPS_THROTTLES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List tpsThrottles_;
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
@java.lang.Override
public java.util.List getTpsThrottlesList() {
return tpsThrottles_;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder>
getTpsThrottlesOrBuilderList() {
return tpsThrottles_;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
@java.lang.Override
public int getTpsThrottlesCount() {
return tpsThrottles_.size();
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot getTpsThrottles(int index) {
return tpsThrottles_.get(index);
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder getTpsThrottlesOrBuilder(
int index) {
return tpsThrottles_.get(index);
}
public static final int GAS_THROTTLE_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot gasThrottle_;
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
* @return Whether the gasThrottle field is set.
*/
@java.lang.Override
public boolean hasGasThrottle() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
* @return The gasThrottle.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot getGasThrottle() {
return gasThrottle_ == null ? com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.getDefaultInstance() : gasThrottle_;
}
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder getGasThrottleOrBuilder() {
return gasThrottle_ == null ? com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.getDefaultInstance() : gasThrottle_;
}
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 < tpsThrottles_.size(); i++) {
output.writeMessage(1, tpsThrottles_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getGasThrottle());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < tpsThrottles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, tpsThrottles_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getGasThrottle());
}
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.ThrottleUsageSnapshots)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots other = (com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots) obj;
if (!getTpsThrottlesList()
.equals(other.getTpsThrottlesList())) return false;
if (hasGasThrottle() != other.hasGasThrottle()) return false;
if (hasGasThrottle()) {
if (!getGasThrottle()
.equals(other.getGasThrottle())) 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 (getTpsThrottlesCount() > 0) {
hash = (37 * hash) + TPS_THROTTLES_FIELD_NUMBER;
hash = (53 * hash) + getTpsThrottlesList().hashCode();
}
if (hasGasThrottle()) {
hash = (37 * hash) + GAS_THROTTLE_FIELD_NUMBER;
hash = (53 * hash) + getGasThrottle().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots 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.ThrottleUsageSnapshots 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;
}
/**
* Protobuf type {@code proto.ThrottleUsageSnapshots}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.ThrottleUsageSnapshots)
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotsOuterClass.internal_static_proto_ThrottleUsageSnapshots_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotsOuterClass.internal_static_proto_ThrottleUsageSnapshots_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots.class, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTpsThrottlesFieldBuilder();
getGasThrottleFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (tpsThrottlesBuilder_ == null) {
tpsThrottles_ = java.util.Collections.emptyList();
} else {
tpsThrottles_ = null;
tpsThrottlesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
gasThrottle_ = null;
if (gasThrottleBuilder_ != null) {
gasThrottleBuilder_.dispose();
gasThrottleBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotsOuterClass.internal_static_proto_ThrottleUsageSnapshots_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots build() {
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots buildPartial() {
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots result = new com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots result) {
if (tpsThrottlesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
tpsThrottles_ = java.util.Collections.unmodifiableList(tpsThrottles_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.tpsThrottles_ = tpsThrottles_;
} else {
result.tpsThrottles_ = tpsThrottlesBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.gasThrottle_ = gasThrottleBuilder_ == null
? gasThrottle_
: gasThrottleBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_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.ThrottleUsageSnapshots) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots other) {
if (other == com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots.getDefaultInstance()) return this;
if (tpsThrottlesBuilder_ == null) {
if (!other.tpsThrottles_.isEmpty()) {
if (tpsThrottles_.isEmpty()) {
tpsThrottles_ = other.tpsThrottles_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTpsThrottlesIsMutable();
tpsThrottles_.addAll(other.tpsThrottles_);
}
onChanged();
}
} else {
if (!other.tpsThrottles_.isEmpty()) {
if (tpsThrottlesBuilder_.isEmpty()) {
tpsThrottlesBuilder_.dispose();
tpsThrottlesBuilder_ = null;
tpsThrottles_ = other.tpsThrottles_;
bitField0_ = (bitField0_ & ~0x00000001);
tpsThrottlesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTpsThrottlesFieldBuilder() : null;
} else {
tpsThrottlesBuilder_.addAllMessages(other.tpsThrottles_);
}
}
}
if (other.hasGasThrottle()) {
mergeGasThrottle(other.getGasThrottle());
}
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.ThrottleUsageSnapshot m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.parser(),
extensionRegistry);
if (tpsThrottlesBuilder_ == null) {
ensureTpsThrottlesIsMutable();
tpsThrottles_.add(m);
} else {
tpsThrottlesBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getGasThrottleFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 tpsThrottles_ =
java.util.Collections.emptyList();
private void ensureTpsThrottlesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
tpsThrottles_ = new java.util.ArrayList(tpsThrottles_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder> tpsThrottlesBuilder_;
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public java.util.List getTpsThrottlesList() {
if (tpsThrottlesBuilder_ == null) {
return java.util.Collections.unmodifiableList(tpsThrottles_);
} else {
return tpsThrottlesBuilder_.getMessageList();
}
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public int getTpsThrottlesCount() {
if (tpsThrottlesBuilder_ == null) {
return tpsThrottles_.size();
} else {
return tpsThrottlesBuilder_.getCount();
}
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot getTpsThrottles(int index) {
if (tpsThrottlesBuilder_ == null) {
return tpsThrottles_.get(index);
} else {
return tpsThrottlesBuilder_.getMessage(index);
}
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public Builder setTpsThrottles(
int index, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot value) {
if (tpsThrottlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTpsThrottlesIsMutable();
tpsThrottles_.set(index, value);
onChanged();
} else {
tpsThrottlesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public Builder setTpsThrottles(
int index, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder builderForValue) {
if (tpsThrottlesBuilder_ == null) {
ensureTpsThrottlesIsMutable();
tpsThrottles_.set(index, builderForValue.build());
onChanged();
} else {
tpsThrottlesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public Builder addTpsThrottles(com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot value) {
if (tpsThrottlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTpsThrottlesIsMutable();
tpsThrottles_.add(value);
onChanged();
} else {
tpsThrottlesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public Builder addTpsThrottles(
int index, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot value) {
if (tpsThrottlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTpsThrottlesIsMutable();
tpsThrottles_.add(index, value);
onChanged();
} else {
tpsThrottlesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public Builder addTpsThrottles(
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder builderForValue) {
if (tpsThrottlesBuilder_ == null) {
ensureTpsThrottlesIsMutable();
tpsThrottles_.add(builderForValue.build());
onChanged();
} else {
tpsThrottlesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public Builder addTpsThrottles(
int index, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder builderForValue) {
if (tpsThrottlesBuilder_ == null) {
ensureTpsThrottlesIsMutable();
tpsThrottles_.add(index, builderForValue.build());
onChanged();
} else {
tpsThrottlesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public Builder addAllTpsThrottles(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot> values) {
if (tpsThrottlesBuilder_ == null) {
ensureTpsThrottlesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tpsThrottles_);
onChanged();
} else {
tpsThrottlesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public Builder clearTpsThrottles() {
if (tpsThrottlesBuilder_ == null) {
tpsThrottles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
tpsThrottlesBuilder_.clear();
}
return this;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public Builder removeTpsThrottles(int index) {
if (tpsThrottlesBuilder_ == null) {
ensureTpsThrottlesIsMutable();
tpsThrottles_.remove(index);
onChanged();
} else {
tpsThrottlesBuilder_.remove(index);
}
return this;
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder getTpsThrottlesBuilder(
int index) {
return getTpsThrottlesFieldBuilder().getBuilder(index);
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder getTpsThrottlesOrBuilder(
int index) {
if (tpsThrottlesBuilder_ == null) {
return tpsThrottles_.get(index); } else {
return tpsThrottlesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder>
getTpsThrottlesOrBuilderList() {
if (tpsThrottlesBuilder_ != null) {
return tpsThrottlesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tpsThrottles_);
}
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder addTpsThrottlesBuilder() {
return getTpsThrottlesFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.getDefaultInstance());
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder addTpsThrottlesBuilder(
int index) {
return getTpsThrottlesFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.getDefaultInstance());
}
/**
*
**
* Snapshots for TPS throttles.
*
*
* repeated .proto.ThrottleUsageSnapshot tps_throttles = 1;
*/
public java.util.List
getTpsThrottlesBuilderList() {
return getTpsThrottlesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder>
getTpsThrottlesFieldBuilder() {
if (tpsThrottlesBuilder_ == null) {
tpsThrottlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder>(
tpsThrottles_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
tpsThrottles_ = null;
}
return tpsThrottlesBuilder_;
}
private com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot gasThrottle_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder> gasThrottleBuilder_;
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
* @return Whether the gasThrottle field is set.
*/
public boolean hasGasThrottle() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
* @return The gasThrottle.
*/
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot getGasThrottle() {
if (gasThrottleBuilder_ == null) {
return gasThrottle_ == null ? com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.getDefaultInstance() : gasThrottle_;
} else {
return gasThrottleBuilder_.getMessage();
}
}
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
*/
public Builder setGasThrottle(com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot value) {
if (gasThrottleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gasThrottle_ = value;
} else {
gasThrottleBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
*/
public Builder setGasThrottle(
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder builderForValue) {
if (gasThrottleBuilder_ == null) {
gasThrottle_ = builderForValue.build();
} else {
gasThrottleBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
*/
public Builder mergeGasThrottle(com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot value) {
if (gasThrottleBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
gasThrottle_ != null &&
gasThrottle_ != com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.getDefaultInstance()) {
getGasThrottleBuilder().mergeFrom(value);
} else {
gasThrottle_ = value;
}
} else {
gasThrottleBuilder_.mergeFrom(value);
}
if (gasThrottle_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
*/
public Builder clearGasThrottle() {
bitField0_ = (bitField0_ & ~0x00000002);
gasThrottle_ = null;
if (gasThrottleBuilder_ != null) {
gasThrottleBuilder_.dispose();
gasThrottleBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder getGasThrottleBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getGasThrottleFieldBuilder().getBuilder();
}
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
*/
public com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder getGasThrottleOrBuilder() {
if (gasThrottleBuilder_ != null) {
return gasThrottleBuilder_.getMessageOrBuilder();
} else {
return gasThrottle_ == null ?
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.getDefaultInstance() : gasThrottle_;
}
}
/**
*
**
* Snapshots for gas throttle.
*
*
* .proto.ThrottleUsageSnapshot gas_throttle = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder>
getGasThrottleFieldBuilder() {
if (gasThrottleBuilder_ == null) {
gasThrottleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshot.Builder, com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshotOrBuilder>(
getGasThrottle(),
getParentForChildren(),
isClean());
gasThrottle_ = null;
}
return gasThrottleBuilder_;
}
@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.ThrottleUsageSnapshots)
}
// @@protoc_insertion_point(class_scope:proto.ThrottleUsageSnapshots)
private static final com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots();
}
public static com.hedera.hashgraph.sdk.proto.ThrottleUsageSnapshots getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ThrottleUsageSnapshots 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.ThrottleUsageSnapshots getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}