com.hedera.hashgraph.sdk.proto.CongestionLevelStarts 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: congestion_level_starts.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
* Protobuf type {@code proto.CongestionLevelStarts}
*/
public final class CongestionLevelStarts extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.CongestionLevelStarts)
CongestionLevelStartsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CongestionLevelStarts.newBuilder() to construct.
private CongestionLevelStarts(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CongestionLevelStarts() {
genericLevelStarts_ = java.util.Collections.emptyList();
gasLevelStarts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CongestionLevelStarts();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.CongestionLevelStartsOuterClass.internal_static_proto_CongestionLevelStarts_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.CongestionLevelStartsOuterClass.internal_static_proto_CongestionLevelStarts_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.CongestionLevelStarts.class, com.hedera.hashgraph.sdk.proto.CongestionLevelStarts.Builder.class);
}
public static final int GENERIC_LEVEL_STARTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List genericLevelStarts_;
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
@java.lang.Override
public java.util.List getGenericLevelStartsList() {
return genericLevelStarts_;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getGenericLevelStartsOrBuilderList() {
return genericLevelStarts_;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
@java.lang.Override
public int getGenericLevelStartsCount() {
return genericLevelStarts_.size();
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getGenericLevelStarts(int index) {
return genericLevelStarts_.get(index);
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getGenericLevelStartsOrBuilder(
int index) {
return genericLevelStarts_.get(index);
}
public static final int GAS_LEVEL_STARTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List gasLevelStarts_;
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
@java.lang.Override
public java.util.List getGasLevelStartsList() {
return gasLevelStarts_;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getGasLevelStartsOrBuilderList() {
return gasLevelStarts_;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
@java.lang.Override
public int getGasLevelStartsCount() {
return gasLevelStarts_.size();
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getGasLevelStarts(int index) {
return gasLevelStarts_.get(index);
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getGasLevelStartsOrBuilder(
int index) {
return gasLevelStarts_.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 < genericLevelStarts_.size(); i++) {
output.writeMessage(1, genericLevelStarts_.get(i));
}
for (int i = 0; i < gasLevelStarts_.size(); i++) {
output.writeMessage(2, gasLevelStarts_.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 < genericLevelStarts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, genericLevelStarts_.get(i));
}
for (int i = 0; i < gasLevelStarts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, gasLevelStarts_.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.CongestionLevelStarts)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.CongestionLevelStarts other = (com.hedera.hashgraph.sdk.proto.CongestionLevelStarts) obj;
if (!getGenericLevelStartsList()
.equals(other.getGenericLevelStartsList())) return false;
if (!getGasLevelStartsList()
.equals(other.getGasLevelStartsList())) 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 (getGenericLevelStartsCount() > 0) {
hash = (37 * hash) + GENERIC_LEVEL_STARTS_FIELD_NUMBER;
hash = (53 * hash) + getGenericLevelStartsList().hashCode();
}
if (getGasLevelStartsCount() > 0) {
hash = (37 * hash) + GAS_LEVEL_STARTS_FIELD_NUMBER;
hash = (53 * hash) + getGasLevelStartsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.CongestionLevelStarts parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CongestionLevelStarts 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.CongestionLevelStarts parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CongestionLevelStarts 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.CongestionLevelStarts parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CongestionLevelStarts 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.CongestionLevelStarts parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CongestionLevelStarts 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.CongestionLevelStarts parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CongestionLevelStarts 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.CongestionLevelStarts 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.CongestionLevelStarts 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.CongestionLevelStarts 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.CongestionLevelStarts}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.CongestionLevelStarts)
com.hedera.hashgraph.sdk.proto.CongestionLevelStartsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.CongestionLevelStartsOuterClass.internal_static_proto_CongestionLevelStarts_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.CongestionLevelStartsOuterClass.internal_static_proto_CongestionLevelStarts_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.CongestionLevelStarts.class, com.hedera.hashgraph.sdk.proto.CongestionLevelStarts.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.CongestionLevelStarts.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (genericLevelStartsBuilder_ == null) {
genericLevelStarts_ = java.util.Collections.emptyList();
} else {
genericLevelStarts_ = null;
genericLevelStartsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (gasLevelStartsBuilder_ == null) {
gasLevelStarts_ = java.util.Collections.emptyList();
} else {
gasLevelStarts_ = null;
gasLevelStartsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.CongestionLevelStartsOuterClass.internal_static_proto_CongestionLevelStarts_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CongestionLevelStarts getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.CongestionLevelStarts.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CongestionLevelStarts build() {
com.hedera.hashgraph.sdk.proto.CongestionLevelStarts result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CongestionLevelStarts buildPartial() {
com.hedera.hashgraph.sdk.proto.CongestionLevelStarts result = new com.hedera.hashgraph.sdk.proto.CongestionLevelStarts(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.CongestionLevelStarts result) {
if (genericLevelStartsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
genericLevelStarts_ = java.util.Collections.unmodifiableList(genericLevelStarts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.genericLevelStarts_ = genericLevelStarts_;
} else {
result.genericLevelStarts_ = genericLevelStartsBuilder_.build();
}
if (gasLevelStartsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
gasLevelStarts_ = java.util.Collections.unmodifiableList(gasLevelStarts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.gasLevelStarts_ = gasLevelStarts_;
} else {
result.gasLevelStarts_ = gasLevelStartsBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.CongestionLevelStarts 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.CongestionLevelStarts) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.CongestionLevelStarts)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.CongestionLevelStarts other) {
if (other == com.hedera.hashgraph.sdk.proto.CongestionLevelStarts.getDefaultInstance()) return this;
if (genericLevelStartsBuilder_ == null) {
if (!other.genericLevelStarts_.isEmpty()) {
if (genericLevelStarts_.isEmpty()) {
genericLevelStarts_ = other.genericLevelStarts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGenericLevelStartsIsMutable();
genericLevelStarts_.addAll(other.genericLevelStarts_);
}
onChanged();
}
} else {
if (!other.genericLevelStarts_.isEmpty()) {
if (genericLevelStartsBuilder_.isEmpty()) {
genericLevelStartsBuilder_.dispose();
genericLevelStartsBuilder_ = null;
genericLevelStarts_ = other.genericLevelStarts_;
bitField0_ = (bitField0_ & ~0x00000001);
genericLevelStartsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGenericLevelStartsFieldBuilder() : null;
} else {
genericLevelStartsBuilder_.addAllMessages(other.genericLevelStarts_);
}
}
}
if (gasLevelStartsBuilder_ == null) {
if (!other.gasLevelStarts_.isEmpty()) {
if (gasLevelStarts_.isEmpty()) {
gasLevelStarts_ = other.gasLevelStarts_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureGasLevelStartsIsMutable();
gasLevelStarts_.addAll(other.gasLevelStarts_);
}
onChanged();
}
} else {
if (!other.gasLevelStarts_.isEmpty()) {
if (gasLevelStartsBuilder_.isEmpty()) {
gasLevelStartsBuilder_.dispose();
gasLevelStartsBuilder_ = null;
gasLevelStarts_ = other.gasLevelStarts_;
bitField0_ = (bitField0_ & ~0x00000002);
gasLevelStartsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGasLevelStartsFieldBuilder() : null;
} else {
gasLevelStartsBuilder_.addAllMessages(other.gasLevelStarts_);
}
}
}
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.Timestamp m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.Timestamp.parser(),
extensionRegistry);
if (genericLevelStartsBuilder_ == null) {
ensureGenericLevelStartsIsMutable();
genericLevelStarts_.add(m);
} else {
genericLevelStartsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.hedera.hashgraph.sdk.proto.Timestamp m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.Timestamp.parser(),
extensionRegistry);
if (gasLevelStartsBuilder_ == null) {
ensureGasLevelStartsIsMutable();
gasLevelStarts_.add(m);
} else {
gasLevelStartsBuilder_.addMessage(m);
}
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 genericLevelStarts_ =
java.util.Collections.emptyList();
private void ensureGenericLevelStartsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
genericLevelStarts_ = new java.util.ArrayList(genericLevelStarts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> genericLevelStartsBuilder_;
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public java.util.List getGenericLevelStartsList() {
if (genericLevelStartsBuilder_ == null) {
return java.util.Collections.unmodifiableList(genericLevelStarts_);
} else {
return genericLevelStartsBuilder_.getMessageList();
}
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public int getGenericLevelStartsCount() {
if (genericLevelStartsBuilder_ == null) {
return genericLevelStarts_.size();
} else {
return genericLevelStartsBuilder_.getCount();
}
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getGenericLevelStarts(int index) {
if (genericLevelStartsBuilder_ == null) {
return genericLevelStarts_.get(index);
} else {
return genericLevelStartsBuilder_.getMessage(index);
}
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public Builder setGenericLevelStarts(
int index, com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (genericLevelStartsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenericLevelStartsIsMutable();
genericLevelStarts_.set(index, value);
onChanged();
} else {
genericLevelStartsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public Builder setGenericLevelStarts(
int index, com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (genericLevelStartsBuilder_ == null) {
ensureGenericLevelStartsIsMutable();
genericLevelStarts_.set(index, builderForValue.build());
onChanged();
} else {
genericLevelStartsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public Builder addGenericLevelStarts(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (genericLevelStartsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenericLevelStartsIsMutable();
genericLevelStarts_.add(value);
onChanged();
} else {
genericLevelStartsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public Builder addGenericLevelStarts(
int index, com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (genericLevelStartsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenericLevelStartsIsMutable();
genericLevelStarts_.add(index, value);
onChanged();
} else {
genericLevelStartsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public Builder addGenericLevelStarts(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (genericLevelStartsBuilder_ == null) {
ensureGenericLevelStartsIsMutable();
genericLevelStarts_.add(builderForValue.build());
onChanged();
} else {
genericLevelStartsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public Builder addGenericLevelStarts(
int index, com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (genericLevelStartsBuilder_ == null) {
ensureGenericLevelStartsIsMutable();
genericLevelStarts_.add(index, builderForValue.build());
onChanged();
} else {
genericLevelStartsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public Builder addAllGenericLevelStarts(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.Timestamp> values) {
if (genericLevelStartsBuilder_ == null) {
ensureGenericLevelStartsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, genericLevelStarts_);
onChanged();
} else {
genericLevelStartsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public Builder clearGenericLevelStarts() {
if (genericLevelStartsBuilder_ == null) {
genericLevelStarts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
genericLevelStartsBuilder_.clear();
}
return this;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public Builder removeGenericLevelStarts(int index) {
if (genericLevelStartsBuilder_ == null) {
ensureGenericLevelStartsIsMutable();
genericLevelStarts_.remove(index);
onChanged();
} else {
genericLevelStartsBuilder_.remove(index);
}
return this;
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getGenericLevelStartsBuilder(
int index) {
return getGenericLevelStartsFieldBuilder().getBuilder(index);
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getGenericLevelStartsOrBuilder(
int index) {
if (genericLevelStartsBuilder_ == null) {
return genericLevelStarts_.get(index); } else {
return genericLevelStartsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getGenericLevelStartsOrBuilderList() {
if (genericLevelStartsBuilder_ != null) {
return genericLevelStartsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(genericLevelStarts_);
}
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder addGenericLevelStartsBuilder() {
return getGenericLevelStartsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance());
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder addGenericLevelStartsBuilder(
int index) {
return getGenericLevelStartsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance());
}
/**
*
**
* Timestamps defining generic congestion levels.
*
*
* repeated .proto.Timestamp generic_level_starts = 1;
*/
public java.util.List
getGenericLevelStartsBuilderList() {
return getGenericLevelStartsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getGenericLevelStartsFieldBuilder() {
if (genericLevelStartsBuilder_ == null) {
genericLevelStartsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>(
genericLevelStarts_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
genericLevelStarts_ = null;
}
return genericLevelStartsBuilder_;
}
private java.util.List gasLevelStarts_ =
java.util.Collections.emptyList();
private void ensureGasLevelStartsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
gasLevelStarts_ = new java.util.ArrayList(gasLevelStarts_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> gasLevelStartsBuilder_;
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public java.util.List getGasLevelStartsList() {
if (gasLevelStartsBuilder_ == null) {
return java.util.Collections.unmodifiableList(gasLevelStarts_);
} else {
return gasLevelStartsBuilder_.getMessageList();
}
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public int getGasLevelStartsCount() {
if (gasLevelStartsBuilder_ == null) {
return gasLevelStarts_.size();
} else {
return gasLevelStartsBuilder_.getCount();
}
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getGasLevelStarts(int index) {
if (gasLevelStartsBuilder_ == null) {
return gasLevelStarts_.get(index);
} else {
return gasLevelStartsBuilder_.getMessage(index);
}
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public Builder setGasLevelStarts(
int index, com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (gasLevelStartsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGasLevelStartsIsMutable();
gasLevelStarts_.set(index, value);
onChanged();
} else {
gasLevelStartsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public Builder setGasLevelStarts(
int index, com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (gasLevelStartsBuilder_ == null) {
ensureGasLevelStartsIsMutable();
gasLevelStarts_.set(index, builderForValue.build());
onChanged();
} else {
gasLevelStartsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public Builder addGasLevelStarts(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (gasLevelStartsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGasLevelStartsIsMutable();
gasLevelStarts_.add(value);
onChanged();
} else {
gasLevelStartsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public Builder addGasLevelStarts(
int index, com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (gasLevelStartsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGasLevelStartsIsMutable();
gasLevelStarts_.add(index, value);
onChanged();
} else {
gasLevelStartsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public Builder addGasLevelStarts(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (gasLevelStartsBuilder_ == null) {
ensureGasLevelStartsIsMutable();
gasLevelStarts_.add(builderForValue.build());
onChanged();
} else {
gasLevelStartsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public Builder addGasLevelStarts(
int index, com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (gasLevelStartsBuilder_ == null) {
ensureGasLevelStartsIsMutable();
gasLevelStarts_.add(index, builderForValue.build());
onChanged();
} else {
gasLevelStartsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public Builder addAllGasLevelStarts(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.Timestamp> values) {
if (gasLevelStartsBuilder_ == null) {
ensureGasLevelStartsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, gasLevelStarts_);
onChanged();
} else {
gasLevelStartsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public Builder clearGasLevelStarts() {
if (gasLevelStartsBuilder_ == null) {
gasLevelStarts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
gasLevelStartsBuilder_.clear();
}
return this;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public Builder removeGasLevelStarts(int index) {
if (gasLevelStartsBuilder_ == null) {
ensureGasLevelStartsIsMutable();
gasLevelStarts_.remove(index);
onChanged();
} else {
gasLevelStartsBuilder_.remove(index);
}
return this;
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getGasLevelStartsBuilder(
int index) {
return getGasLevelStartsFieldBuilder().getBuilder(index);
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getGasLevelStartsOrBuilder(
int index) {
if (gasLevelStartsBuilder_ == null) {
return gasLevelStarts_.get(index); } else {
return gasLevelStartsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getGasLevelStartsOrBuilderList() {
if (gasLevelStartsBuilder_ != null) {
return gasLevelStartsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(gasLevelStarts_);
}
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder addGasLevelStartsBuilder() {
return getGasLevelStartsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance());
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder addGasLevelStartsBuilder(
int index) {
return getGasLevelStartsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance());
}
/**
*
**
* Timestamps defining gas congestion levels.
*
*
* repeated .proto.Timestamp gas_level_starts = 2;
*/
public java.util.List
getGasLevelStartsBuilderList() {
return getGasLevelStartsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getGasLevelStartsFieldBuilder() {
if (gasLevelStartsBuilder_ == null) {
gasLevelStartsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>(
gasLevelStarts_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
gasLevelStarts_ = null;
}
return gasLevelStartsBuilder_;
}
@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.CongestionLevelStarts)
}
// @@protoc_insertion_point(class_scope:proto.CongestionLevelStarts)
private static final com.hedera.hashgraph.sdk.proto.CongestionLevelStarts DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.CongestionLevelStarts();
}
public static com.hedera.hashgraph.sdk.proto.CongestionLevelStarts getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CongestionLevelStarts 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.CongestionLevelStarts getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}