com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule 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: basic_types.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* The fees for a specific transaction or query based on the fee data.
*
*
* Protobuf type {@code proto.TransactionFeeSchedule}
*/
public final class TransactionFeeSchedule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.TransactionFeeSchedule)
TransactionFeeScheduleOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransactionFeeSchedule.newBuilder() to construct.
private TransactionFeeSchedule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransactionFeeSchedule() {
hederaFunctionality_ = 0;
fees_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransactionFeeSchedule();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_TransactionFeeSchedule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_TransactionFeeSchedule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.class, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder.class);
}
private int bitField0_;
public static final int HEDERAFUNCTIONALITY_FIELD_NUMBER = 1;
private int hederaFunctionality_ = 0;
/**
*
**
* A particular transaction or query
*
*
* .proto.HederaFunctionality hederaFunctionality = 1;
* @return The enum numeric value on the wire for hederaFunctionality.
*/
@java.lang.Override public int getHederaFunctionalityValue() {
return hederaFunctionality_;
}
/**
*
**
* A particular transaction or query
*
*
* .proto.HederaFunctionality hederaFunctionality = 1;
* @return The hederaFunctionality.
*/
@java.lang.Override public com.hedera.hashgraph.sdk.proto.HederaFunctionality getHederaFunctionality() {
com.hedera.hashgraph.sdk.proto.HederaFunctionality result = com.hedera.hashgraph.sdk.proto.HederaFunctionality.forNumber(hederaFunctionality_);
return result == null ? com.hedera.hashgraph.sdk.proto.HederaFunctionality.UNRECOGNIZED : result;
}
public static final int FEEDATA_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.FeeData feeData_;
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
* @deprecated proto.TransactionFeeSchedule.feeData is deprecated.
* See basic_types.proto;l=1328
* @return Whether the feeData field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasFeeData() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
* @deprecated proto.TransactionFeeSchedule.feeData is deprecated.
* See basic_types.proto;l=1328
* @return The feeData.
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.FeeData getFeeData() {
return feeData_ == null ? com.hedera.hashgraph.sdk.proto.FeeData.getDefaultInstance() : feeData_;
}
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder getFeeDataOrBuilder() {
return feeData_ == null ? com.hedera.hashgraph.sdk.proto.FeeData.getDefaultInstance() : feeData_;
}
public static final int FEES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List fees_;
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
@java.lang.Override
public java.util.List getFeesList() {
return fees_;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder>
getFeesOrBuilderList() {
return fees_;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
@java.lang.Override
public int getFeesCount() {
return fees_.size();
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeData getFees(int index) {
return fees_.get(index);
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder getFeesOrBuilder(
int index) {
return fees_.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 {
if (hederaFunctionality_ != com.hedera.hashgraph.sdk.proto.HederaFunctionality.NONE.getNumber()) {
output.writeEnum(1, hederaFunctionality_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getFeeData());
}
for (int i = 0; i < fees_.size(); i++) {
output.writeMessage(3, fees_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (hederaFunctionality_ != com.hedera.hashgraph.sdk.proto.HederaFunctionality.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, hederaFunctionality_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFeeData());
}
for (int i = 0; i < fees_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, fees_.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.TransactionFeeSchedule)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule other = (com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule) obj;
if (hederaFunctionality_ != other.hederaFunctionality_) return false;
if (hasFeeData() != other.hasFeeData()) return false;
if (hasFeeData()) {
if (!getFeeData()
.equals(other.getFeeData())) return false;
}
if (!getFeesList()
.equals(other.getFeesList())) 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();
hash = (37 * hash) + HEDERAFUNCTIONALITY_FIELD_NUMBER;
hash = (53 * hash) + hederaFunctionality_;
if (hasFeeData()) {
hash = (37 * hash) + FEEDATA_FIELD_NUMBER;
hash = (53 * hash) + getFeeData().hashCode();
}
if (getFeesCount() > 0) {
hash = (37 * hash) + FEES_FIELD_NUMBER;
hash = (53 * hash) + getFeesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule 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.TransactionFeeSchedule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule 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.TransactionFeeSchedule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule 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.TransactionFeeSchedule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule 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.TransactionFeeSchedule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule 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.TransactionFeeSchedule 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.TransactionFeeSchedule 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.TransactionFeeSchedule 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;
}
/**
*
**
* The fees for a specific transaction or query based on the fee data.
*
*
* Protobuf type {@code proto.TransactionFeeSchedule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.TransactionFeeSchedule)
com.hedera.hashgraph.sdk.proto.TransactionFeeScheduleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_TransactionFeeSchedule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_TransactionFeeSchedule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.class, com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFeeDataFieldBuilder();
getFeesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hederaFunctionality_ = 0;
feeData_ = null;
if (feeDataBuilder_ != null) {
feeDataBuilder_.dispose();
feeDataBuilder_ = null;
}
if (feesBuilder_ == null) {
fees_ = java.util.Collections.emptyList();
} else {
fees_ = null;
feesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.BasicTypes.internal_static_proto_TransactionFeeSchedule_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule build() {
com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule buildPartial() {
com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule result = new com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule result) {
if (feesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
fees_ = java.util.Collections.unmodifiableList(fees_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.fees_ = fees_;
} else {
result.fees_ = feesBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hederaFunctionality_ = hederaFunctionality_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.feeData_ = feeDataBuilder_ == null
? feeData_
: feeDataBuilder_.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.TransactionFeeSchedule) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule other) {
if (other == com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.getDefaultInstance()) return this;
if (other.hederaFunctionality_ != 0) {
setHederaFunctionalityValue(other.getHederaFunctionalityValue());
}
if (other.hasFeeData()) {
mergeFeeData(other.getFeeData());
}
if (feesBuilder_ == null) {
if (!other.fees_.isEmpty()) {
if (fees_.isEmpty()) {
fees_ = other.fees_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFeesIsMutable();
fees_.addAll(other.fees_);
}
onChanged();
}
} else {
if (!other.fees_.isEmpty()) {
if (feesBuilder_.isEmpty()) {
feesBuilder_.dispose();
feesBuilder_ = null;
fees_ = other.fees_;
bitField0_ = (bitField0_ & ~0x00000004);
feesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFeesFieldBuilder() : null;
} else {
feesBuilder_.addAllMessages(other.fees_);
}
}
}
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 8: {
hederaFunctionality_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getFeeDataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
com.hedera.hashgraph.sdk.proto.FeeData m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.FeeData.parser(),
extensionRegistry);
if (feesBuilder_ == null) {
ensureFeesIsMutable();
fees_.add(m);
} else {
feesBuilder_.addMessage(m);
}
break;
} // case 26
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 int hederaFunctionality_ = 0;
/**
*
**
* A particular transaction or query
*
*
* .proto.HederaFunctionality hederaFunctionality = 1;
* @return The enum numeric value on the wire for hederaFunctionality.
*/
@java.lang.Override public int getHederaFunctionalityValue() {
return hederaFunctionality_;
}
/**
*
**
* A particular transaction or query
*
*
* .proto.HederaFunctionality hederaFunctionality = 1;
* @param value The enum numeric value on the wire for hederaFunctionality to set.
* @return This builder for chaining.
*/
public Builder setHederaFunctionalityValue(int value) {
hederaFunctionality_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* A particular transaction or query
*
*
* .proto.HederaFunctionality hederaFunctionality = 1;
* @return The hederaFunctionality.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.HederaFunctionality getHederaFunctionality() {
com.hedera.hashgraph.sdk.proto.HederaFunctionality result = com.hedera.hashgraph.sdk.proto.HederaFunctionality.forNumber(hederaFunctionality_);
return result == null ? com.hedera.hashgraph.sdk.proto.HederaFunctionality.UNRECOGNIZED : result;
}
/**
*
**
* A particular transaction or query
*
*
* .proto.HederaFunctionality hederaFunctionality = 1;
* @param value The hederaFunctionality to set.
* @return This builder for chaining.
*/
public Builder setHederaFunctionality(com.hedera.hashgraph.sdk.proto.HederaFunctionality value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
hederaFunctionality_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* A particular transaction or query
*
*
* .proto.HederaFunctionality hederaFunctionality = 1;
* @return This builder for chaining.
*/
public Builder clearHederaFunctionality() {
bitField0_ = (bitField0_ & ~0x00000001);
hederaFunctionality_ = 0;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.FeeData feeData_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeData, com.hedera.hashgraph.sdk.proto.FeeData.Builder, com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder> feeDataBuilder_;
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
* @deprecated proto.TransactionFeeSchedule.feeData is deprecated.
* See basic_types.proto;l=1328
* @return Whether the feeData field is set.
*/
@java.lang.Deprecated public boolean hasFeeData() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
* @deprecated proto.TransactionFeeSchedule.feeData is deprecated.
* See basic_types.proto;l=1328
* @return The feeData.
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.FeeData getFeeData() {
if (feeDataBuilder_ == null) {
return feeData_ == null ? com.hedera.hashgraph.sdk.proto.FeeData.getDefaultInstance() : feeData_;
} else {
return feeDataBuilder_.getMessage();
}
}
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder setFeeData(com.hedera.hashgraph.sdk.proto.FeeData value) {
if (feeDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
feeData_ = value;
} else {
feeDataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder setFeeData(
com.hedera.hashgraph.sdk.proto.FeeData.Builder builderForValue) {
if (feeDataBuilder_ == null) {
feeData_ = builderForValue.build();
} else {
feeDataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeFeeData(com.hedera.hashgraph.sdk.proto.FeeData value) {
if (feeDataBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
feeData_ != null &&
feeData_ != com.hedera.hashgraph.sdk.proto.FeeData.getDefaultInstance()) {
getFeeDataBuilder().mergeFrom(value);
} else {
feeData_ = value;
}
} else {
feeDataBuilder_.mergeFrom(value);
}
if (feeData_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearFeeData() {
bitField0_ = (bitField0_ & ~0x00000002);
feeData_ = null;
if (feeDataBuilder_ != null) {
feeDataBuilder_.dispose();
feeDataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.FeeData.Builder getFeeDataBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getFeeDataFieldBuilder().getBuilder();
}
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder getFeeDataOrBuilder() {
if (feeDataBuilder_ != null) {
return feeDataBuilder_.getMessageOrBuilder();
} else {
return feeData_ == null ?
com.hedera.hashgraph.sdk.proto.FeeData.getDefaultInstance() : feeData_;
}
}
/**
*
**
* Resource price coefficients
*
*
* .proto.FeeData feeData = 2 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeData, com.hedera.hashgraph.sdk.proto.FeeData.Builder, com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder>
getFeeDataFieldBuilder() {
if (feeDataBuilder_ == null) {
feeDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeData, com.hedera.hashgraph.sdk.proto.FeeData.Builder, com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder>(
getFeeData(),
getParentForChildren(),
isClean());
feeData_ = null;
}
return feeDataBuilder_;
}
private java.util.List fees_ =
java.util.Collections.emptyList();
private void ensureFeesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
fees_ = new java.util.ArrayList(fees_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeData, com.hedera.hashgraph.sdk.proto.FeeData.Builder, com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder> feesBuilder_;
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public java.util.List getFeesList() {
if (feesBuilder_ == null) {
return java.util.Collections.unmodifiableList(fees_);
} else {
return feesBuilder_.getMessageList();
}
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public int getFeesCount() {
if (feesBuilder_ == null) {
return fees_.size();
} else {
return feesBuilder_.getCount();
}
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public com.hedera.hashgraph.sdk.proto.FeeData getFees(int index) {
if (feesBuilder_ == null) {
return fees_.get(index);
} else {
return feesBuilder_.getMessage(index);
}
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public Builder setFees(
int index, com.hedera.hashgraph.sdk.proto.FeeData value) {
if (feesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeesIsMutable();
fees_.set(index, value);
onChanged();
} else {
feesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public Builder setFees(
int index, com.hedera.hashgraph.sdk.proto.FeeData.Builder builderForValue) {
if (feesBuilder_ == null) {
ensureFeesIsMutable();
fees_.set(index, builderForValue.build());
onChanged();
} else {
feesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public Builder addFees(com.hedera.hashgraph.sdk.proto.FeeData value) {
if (feesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeesIsMutable();
fees_.add(value);
onChanged();
} else {
feesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public Builder addFees(
int index, com.hedera.hashgraph.sdk.proto.FeeData value) {
if (feesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFeesIsMutable();
fees_.add(index, value);
onChanged();
} else {
feesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public Builder addFees(
com.hedera.hashgraph.sdk.proto.FeeData.Builder builderForValue) {
if (feesBuilder_ == null) {
ensureFeesIsMutable();
fees_.add(builderForValue.build());
onChanged();
} else {
feesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public Builder addFees(
int index, com.hedera.hashgraph.sdk.proto.FeeData.Builder builderForValue) {
if (feesBuilder_ == null) {
ensureFeesIsMutable();
fees_.add(index, builderForValue.build());
onChanged();
} else {
feesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public Builder addAllFees(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.FeeData> values) {
if (feesBuilder_ == null) {
ensureFeesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fees_);
onChanged();
} else {
feesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public Builder clearFees() {
if (feesBuilder_ == null) {
fees_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
feesBuilder_.clear();
}
return this;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public Builder removeFees(int index) {
if (feesBuilder_ == null) {
ensureFeesIsMutable();
fees_.remove(index);
onChanged();
} else {
feesBuilder_.remove(index);
}
return this;
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public com.hedera.hashgraph.sdk.proto.FeeData.Builder getFeesBuilder(
int index) {
return getFeesFieldBuilder().getBuilder(index);
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder getFeesOrBuilder(
int index) {
if (feesBuilder_ == null) {
return fees_.get(index); } else {
return feesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder>
getFeesOrBuilderList() {
if (feesBuilder_ != null) {
return feesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fees_);
}
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public com.hedera.hashgraph.sdk.proto.FeeData.Builder addFeesBuilder() {
return getFeesFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.FeeData.getDefaultInstance());
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public com.hedera.hashgraph.sdk.proto.FeeData.Builder addFeesBuilder(
int index) {
return getFeesFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.FeeData.getDefaultInstance());
}
/**
*
**
* Resource price coefficients. Supports subtype price definition.
*
*
* repeated .proto.FeeData fees = 3;
*/
public java.util.List
getFeesBuilderList() {
return getFeesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeData, com.hedera.hashgraph.sdk.proto.FeeData.Builder, com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder>
getFeesFieldBuilder() {
if (feesBuilder_ == null) {
feesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FeeData, com.hedera.hashgraph.sdk.proto.FeeData.Builder, com.hedera.hashgraph.sdk.proto.FeeDataOrBuilder>(
fees_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
fees_ = null;
}
return feesBuilder_;
}
@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.TransactionFeeSchedule)
}
// @@protoc_insertion_point(class_scope:proto.TransactionFeeSchedule)
private static final com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule();
}
public static com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransactionFeeSchedule 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.TransactionFeeSchedule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}