com.hedera.hashgraph.sdk.proto.CustomFee 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: custom_fees.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* A transfer fee to assess during a CryptoTransfer that transfers units of the token to which the
* fee is attached. A custom fee may be either fixed or fractional, and must specify a fee collector
* account to receive the assessed fees. Only positive fees may be assessed.
*
*
* Protobuf type {@code proto.CustomFee}
*/
public final class CustomFee extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.CustomFee)
CustomFeeOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomFee.newBuilder() to construct.
private CustomFee(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomFee() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CustomFee();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.CustomFees.internal_static_proto_CustomFee_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.CustomFees.internal_static_proto_CustomFee_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.CustomFee.class, com.hedera.hashgraph.sdk.proto.CustomFee.Builder.class);
}
private int bitField0_;
private int feeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object fee_;
public enum FeeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
FIXED_FEE(1),
FRACTIONAL_FEE(2),
ROYALTY_FEE(4),
FEE_NOT_SET(0);
private final int value;
private FeeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FeeCase valueOf(int value) {
return forNumber(value);
}
public static FeeCase forNumber(int value) {
switch (value) {
case 1: return FIXED_FEE;
case 2: return FRACTIONAL_FEE;
case 4: return ROYALTY_FEE;
case 0: return FEE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FeeCase
getFeeCase() {
return FeeCase.forNumber(
feeCase_);
}
public static final int FIXED_FEE_FIELD_NUMBER = 1;
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
* @return Whether the fixedFee field is set.
*/
@java.lang.Override
public boolean hasFixedFee() {
return feeCase_ == 1;
}
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
* @return The fixedFee.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FixedFee getFixedFee() {
if (feeCase_ == 1) {
return (com.hedera.hashgraph.sdk.proto.FixedFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.FixedFee.getDefaultInstance();
}
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FixedFeeOrBuilder getFixedFeeOrBuilder() {
if (feeCase_ == 1) {
return (com.hedera.hashgraph.sdk.proto.FixedFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.FixedFee.getDefaultInstance();
}
public static final int FRACTIONAL_FEE_FIELD_NUMBER = 2;
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
* @return Whether the fractionalFee field is set.
*/
@java.lang.Override
public boolean hasFractionalFee() {
return feeCase_ == 2;
}
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
* @return The fractionalFee.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FractionalFee getFractionalFee() {
if (feeCase_ == 2) {
return (com.hedera.hashgraph.sdk.proto.FractionalFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.FractionalFee.getDefaultInstance();
}
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FractionalFeeOrBuilder getFractionalFeeOrBuilder() {
if (feeCase_ == 2) {
return (com.hedera.hashgraph.sdk.proto.FractionalFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.FractionalFee.getDefaultInstance();
}
public static final int ROYALTY_FEE_FIELD_NUMBER = 4;
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
* @return Whether the royaltyFee field is set.
*/
@java.lang.Override
public boolean hasRoyaltyFee() {
return feeCase_ == 4;
}
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
* @return The royaltyFee.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.RoyaltyFee getRoyaltyFee() {
if (feeCase_ == 4) {
return (com.hedera.hashgraph.sdk.proto.RoyaltyFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.RoyaltyFee.getDefaultInstance();
}
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.RoyaltyFeeOrBuilder getRoyaltyFeeOrBuilder() {
if (feeCase_ == 4) {
return (com.hedera.hashgraph.sdk.proto.RoyaltyFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.RoyaltyFee.getDefaultInstance();
}
public static final int FEE_COLLECTOR_ACCOUNT_ID_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.AccountID feeCollectorAccountId_;
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
* @return Whether the feeCollectorAccountId field is set.
*/
@java.lang.Override
public boolean hasFeeCollectorAccountId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
* @return The feeCollectorAccountId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getFeeCollectorAccountId() {
return feeCollectorAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : feeCollectorAccountId_;
}
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getFeeCollectorAccountIdOrBuilder() {
return feeCollectorAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : feeCollectorAccountId_;
}
public static final int ALL_COLLECTORS_ARE_EXEMPT_FIELD_NUMBER = 5;
private boolean allCollectorsAreExempt_ = false;
/**
*
**
* If true, exempts all the token's fee collection accounts from this fee.
* (The token's treasury and the above fee_collector_account_id will always
* be exempt. Please see <a href="https://hips.hedera.com/hip/hip-573">HIP-573</a>
* for details.)
*
*
* bool all_collectors_are_exempt = 5;
* @return The allCollectorsAreExempt.
*/
@java.lang.Override
public boolean getAllCollectorsAreExempt() {
return allCollectorsAreExempt_;
}
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 (feeCase_ == 1) {
output.writeMessage(1, (com.hedera.hashgraph.sdk.proto.FixedFee) fee_);
}
if (feeCase_ == 2) {
output.writeMessage(2, (com.hedera.hashgraph.sdk.proto.FractionalFee) fee_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getFeeCollectorAccountId());
}
if (feeCase_ == 4) {
output.writeMessage(4, (com.hedera.hashgraph.sdk.proto.RoyaltyFee) fee_);
}
if (allCollectorsAreExempt_ != false) {
output.writeBool(5, allCollectorsAreExempt_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (feeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.hedera.hashgraph.sdk.proto.FixedFee) fee_);
}
if (feeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.hedera.hashgraph.sdk.proto.FractionalFee) fee_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getFeeCollectorAccountId());
}
if (feeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.hedera.hashgraph.sdk.proto.RoyaltyFee) fee_);
}
if (allCollectorsAreExempt_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, allCollectorsAreExempt_);
}
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.CustomFee)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.CustomFee other = (com.hedera.hashgraph.sdk.proto.CustomFee) obj;
if (hasFeeCollectorAccountId() != other.hasFeeCollectorAccountId()) return false;
if (hasFeeCollectorAccountId()) {
if (!getFeeCollectorAccountId()
.equals(other.getFeeCollectorAccountId())) return false;
}
if (getAllCollectorsAreExempt()
!= other.getAllCollectorsAreExempt()) return false;
if (!getFeeCase().equals(other.getFeeCase())) return false;
switch (feeCase_) {
case 1:
if (!getFixedFee()
.equals(other.getFixedFee())) return false;
break;
case 2:
if (!getFractionalFee()
.equals(other.getFractionalFee())) return false;
break;
case 4:
if (!getRoyaltyFee()
.equals(other.getRoyaltyFee())) return false;
break;
case 0:
default:
}
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 (hasFeeCollectorAccountId()) {
hash = (37 * hash) + FEE_COLLECTOR_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getFeeCollectorAccountId().hashCode();
}
hash = (37 * hash) + ALL_COLLECTORS_ARE_EXEMPT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllCollectorsAreExempt());
switch (feeCase_) {
case 1:
hash = (37 * hash) + FIXED_FEE_FIELD_NUMBER;
hash = (53 * hash) + getFixedFee().hashCode();
break;
case 2:
hash = (37 * hash) + FRACTIONAL_FEE_FIELD_NUMBER;
hash = (53 * hash) + getFractionalFee().hashCode();
break;
case 4:
hash = (37 * hash) + ROYALTY_FEE_FIELD_NUMBER;
hash = (53 * hash) + getRoyaltyFee().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.CustomFee parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CustomFee 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.CustomFee parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CustomFee 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.CustomFee parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CustomFee 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.CustomFee parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CustomFee 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.CustomFee parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CustomFee 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.CustomFee 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.CustomFee 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.CustomFee 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;
}
/**
*
**
* A transfer fee to assess during a CryptoTransfer that transfers units of the token to which the
* fee is attached. A custom fee may be either fixed or fractional, and must specify a fee collector
* account to receive the assessed fees. Only positive fees may be assessed.
*
*
* Protobuf type {@code proto.CustomFee}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.CustomFee)
com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.CustomFees.internal_static_proto_CustomFee_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.CustomFees.internal_static_proto_CustomFee_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.CustomFee.class, com.hedera.hashgraph.sdk.proto.CustomFee.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.CustomFee.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFeeCollectorAccountIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (fixedFeeBuilder_ != null) {
fixedFeeBuilder_.clear();
}
if (fractionalFeeBuilder_ != null) {
fractionalFeeBuilder_.clear();
}
if (royaltyFeeBuilder_ != null) {
royaltyFeeBuilder_.clear();
}
feeCollectorAccountId_ = null;
if (feeCollectorAccountIdBuilder_ != null) {
feeCollectorAccountIdBuilder_.dispose();
feeCollectorAccountIdBuilder_ = null;
}
allCollectorsAreExempt_ = false;
feeCase_ = 0;
fee_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.CustomFees.internal_static_proto_CustomFee_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CustomFee getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.CustomFee.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CustomFee build() {
com.hedera.hashgraph.sdk.proto.CustomFee result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CustomFee buildPartial() {
com.hedera.hashgraph.sdk.proto.CustomFee result = new com.hedera.hashgraph.sdk.proto.CustomFee(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.CustomFee result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.feeCollectorAccountId_ = feeCollectorAccountIdBuilder_ == null
? feeCollectorAccountId_
: feeCollectorAccountIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.allCollectorsAreExempt_ = allCollectorsAreExempt_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.hedera.hashgraph.sdk.proto.CustomFee result) {
result.feeCase_ = feeCase_;
result.fee_ = this.fee_;
if (feeCase_ == 1 &&
fixedFeeBuilder_ != null) {
result.fee_ = fixedFeeBuilder_.build();
}
if (feeCase_ == 2 &&
fractionalFeeBuilder_ != null) {
result.fee_ = fractionalFeeBuilder_.build();
}
if (feeCase_ == 4 &&
royaltyFeeBuilder_ != null) {
result.fee_ = royaltyFeeBuilder_.build();
}
}
@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.CustomFee) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.CustomFee)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.CustomFee other) {
if (other == com.hedera.hashgraph.sdk.proto.CustomFee.getDefaultInstance()) return this;
if (other.hasFeeCollectorAccountId()) {
mergeFeeCollectorAccountId(other.getFeeCollectorAccountId());
}
if (other.getAllCollectorsAreExempt() != false) {
setAllCollectorsAreExempt(other.getAllCollectorsAreExempt());
}
switch (other.getFeeCase()) {
case FIXED_FEE: {
mergeFixedFee(other.getFixedFee());
break;
}
case FRACTIONAL_FEE: {
mergeFractionalFee(other.getFractionalFee());
break;
}
case ROYALTY_FEE: {
mergeRoyaltyFee(other.getRoyaltyFee());
break;
}
case FEE_NOT_SET: {
break;
}
}
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: {
input.readMessage(
getFixedFeeFieldBuilder().getBuilder(),
extensionRegistry);
feeCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getFractionalFeeFieldBuilder().getBuilder(),
extensionRegistry);
feeCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getFeeCollectorAccountIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 26
case 34: {
input.readMessage(
getRoyaltyFeeFieldBuilder().getBuilder(),
extensionRegistry);
feeCase_ = 4;
break;
} // case 34
case 40: {
allCollectorsAreExempt_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
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 feeCase_ = 0;
private java.lang.Object fee_;
public FeeCase
getFeeCase() {
return FeeCase.forNumber(
feeCase_);
}
public Builder clearFee() {
feeCase_ = 0;
fee_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FixedFee, com.hedera.hashgraph.sdk.proto.FixedFee.Builder, com.hedera.hashgraph.sdk.proto.FixedFeeOrBuilder> fixedFeeBuilder_;
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
* @return Whether the fixedFee field is set.
*/
@java.lang.Override
public boolean hasFixedFee() {
return feeCase_ == 1;
}
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
* @return The fixedFee.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FixedFee getFixedFee() {
if (fixedFeeBuilder_ == null) {
if (feeCase_ == 1) {
return (com.hedera.hashgraph.sdk.proto.FixedFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.FixedFee.getDefaultInstance();
} else {
if (feeCase_ == 1) {
return fixedFeeBuilder_.getMessage();
}
return com.hedera.hashgraph.sdk.proto.FixedFee.getDefaultInstance();
}
}
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
*/
public Builder setFixedFee(com.hedera.hashgraph.sdk.proto.FixedFee value) {
if (fixedFeeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fee_ = value;
onChanged();
} else {
fixedFeeBuilder_.setMessage(value);
}
feeCase_ = 1;
return this;
}
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
*/
public Builder setFixedFee(
com.hedera.hashgraph.sdk.proto.FixedFee.Builder builderForValue) {
if (fixedFeeBuilder_ == null) {
fee_ = builderForValue.build();
onChanged();
} else {
fixedFeeBuilder_.setMessage(builderForValue.build());
}
feeCase_ = 1;
return this;
}
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
*/
public Builder mergeFixedFee(com.hedera.hashgraph.sdk.proto.FixedFee value) {
if (fixedFeeBuilder_ == null) {
if (feeCase_ == 1 &&
fee_ != com.hedera.hashgraph.sdk.proto.FixedFee.getDefaultInstance()) {
fee_ = com.hedera.hashgraph.sdk.proto.FixedFee.newBuilder((com.hedera.hashgraph.sdk.proto.FixedFee) fee_)
.mergeFrom(value).buildPartial();
} else {
fee_ = value;
}
onChanged();
} else {
if (feeCase_ == 1) {
fixedFeeBuilder_.mergeFrom(value);
} else {
fixedFeeBuilder_.setMessage(value);
}
}
feeCase_ = 1;
return this;
}
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
*/
public Builder clearFixedFee() {
if (fixedFeeBuilder_ == null) {
if (feeCase_ == 1) {
feeCase_ = 0;
fee_ = null;
onChanged();
}
} else {
if (feeCase_ == 1) {
feeCase_ = 0;
fee_ = null;
}
fixedFeeBuilder_.clear();
}
return this;
}
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
*/
public com.hedera.hashgraph.sdk.proto.FixedFee.Builder getFixedFeeBuilder() {
return getFixedFeeFieldBuilder().getBuilder();
}
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FixedFeeOrBuilder getFixedFeeOrBuilder() {
if ((feeCase_ == 1) && (fixedFeeBuilder_ != null)) {
return fixedFeeBuilder_.getMessageOrBuilder();
} else {
if (feeCase_ == 1) {
return (com.hedera.hashgraph.sdk.proto.FixedFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.FixedFee.getDefaultInstance();
}
}
/**
*
**
* Fixed fee to be charged
*
*
* .proto.FixedFee fixed_fee = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FixedFee, com.hedera.hashgraph.sdk.proto.FixedFee.Builder, com.hedera.hashgraph.sdk.proto.FixedFeeOrBuilder>
getFixedFeeFieldBuilder() {
if (fixedFeeBuilder_ == null) {
if (!(feeCase_ == 1)) {
fee_ = com.hedera.hashgraph.sdk.proto.FixedFee.getDefaultInstance();
}
fixedFeeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FixedFee, com.hedera.hashgraph.sdk.proto.FixedFee.Builder, com.hedera.hashgraph.sdk.proto.FixedFeeOrBuilder>(
(com.hedera.hashgraph.sdk.proto.FixedFee) fee_,
getParentForChildren(),
isClean());
fee_ = null;
}
feeCase_ = 1;
onChanged();
return fixedFeeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FractionalFee, com.hedera.hashgraph.sdk.proto.FractionalFee.Builder, com.hedera.hashgraph.sdk.proto.FractionalFeeOrBuilder> fractionalFeeBuilder_;
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
* @return Whether the fractionalFee field is set.
*/
@java.lang.Override
public boolean hasFractionalFee() {
return feeCase_ == 2;
}
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
* @return The fractionalFee.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FractionalFee getFractionalFee() {
if (fractionalFeeBuilder_ == null) {
if (feeCase_ == 2) {
return (com.hedera.hashgraph.sdk.proto.FractionalFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.FractionalFee.getDefaultInstance();
} else {
if (feeCase_ == 2) {
return fractionalFeeBuilder_.getMessage();
}
return com.hedera.hashgraph.sdk.proto.FractionalFee.getDefaultInstance();
}
}
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
*/
public Builder setFractionalFee(com.hedera.hashgraph.sdk.proto.FractionalFee value) {
if (fractionalFeeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fee_ = value;
onChanged();
} else {
fractionalFeeBuilder_.setMessage(value);
}
feeCase_ = 2;
return this;
}
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
*/
public Builder setFractionalFee(
com.hedera.hashgraph.sdk.proto.FractionalFee.Builder builderForValue) {
if (fractionalFeeBuilder_ == null) {
fee_ = builderForValue.build();
onChanged();
} else {
fractionalFeeBuilder_.setMessage(builderForValue.build());
}
feeCase_ = 2;
return this;
}
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
*/
public Builder mergeFractionalFee(com.hedera.hashgraph.sdk.proto.FractionalFee value) {
if (fractionalFeeBuilder_ == null) {
if (feeCase_ == 2 &&
fee_ != com.hedera.hashgraph.sdk.proto.FractionalFee.getDefaultInstance()) {
fee_ = com.hedera.hashgraph.sdk.proto.FractionalFee.newBuilder((com.hedera.hashgraph.sdk.proto.FractionalFee) fee_)
.mergeFrom(value).buildPartial();
} else {
fee_ = value;
}
onChanged();
} else {
if (feeCase_ == 2) {
fractionalFeeBuilder_.mergeFrom(value);
} else {
fractionalFeeBuilder_.setMessage(value);
}
}
feeCase_ = 2;
return this;
}
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
*/
public Builder clearFractionalFee() {
if (fractionalFeeBuilder_ == null) {
if (feeCase_ == 2) {
feeCase_ = 0;
fee_ = null;
onChanged();
}
} else {
if (feeCase_ == 2) {
feeCase_ = 0;
fee_ = null;
}
fractionalFeeBuilder_.clear();
}
return this;
}
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
*/
public com.hedera.hashgraph.sdk.proto.FractionalFee.Builder getFractionalFeeBuilder() {
return getFractionalFeeFieldBuilder().getBuilder();
}
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.FractionalFeeOrBuilder getFractionalFeeOrBuilder() {
if ((feeCase_ == 2) && (fractionalFeeBuilder_ != null)) {
return fractionalFeeBuilder_.getMessageOrBuilder();
} else {
if (feeCase_ == 2) {
return (com.hedera.hashgraph.sdk.proto.FractionalFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.FractionalFee.getDefaultInstance();
}
}
/**
*
**
* Fractional fee to be charged
*
*
* .proto.FractionalFee fractional_fee = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FractionalFee, com.hedera.hashgraph.sdk.proto.FractionalFee.Builder, com.hedera.hashgraph.sdk.proto.FractionalFeeOrBuilder>
getFractionalFeeFieldBuilder() {
if (fractionalFeeBuilder_ == null) {
if (!(feeCase_ == 2)) {
fee_ = com.hedera.hashgraph.sdk.proto.FractionalFee.getDefaultInstance();
}
fractionalFeeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.FractionalFee, com.hedera.hashgraph.sdk.proto.FractionalFee.Builder, com.hedera.hashgraph.sdk.proto.FractionalFeeOrBuilder>(
(com.hedera.hashgraph.sdk.proto.FractionalFee) fee_,
getParentForChildren(),
isClean());
fee_ = null;
}
feeCase_ = 2;
onChanged();
return fractionalFeeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.RoyaltyFee, com.hedera.hashgraph.sdk.proto.RoyaltyFee.Builder, com.hedera.hashgraph.sdk.proto.RoyaltyFeeOrBuilder> royaltyFeeBuilder_;
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
* @return Whether the royaltyFee field is set.
*/
@java.lang.Override
public boolean hasRoyaltyFee() {
return feeCase_ == 4;
}
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
* @return The royaltyFee.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.RoyaltyFee getRoyaltyFee() {
if (royaltyFeeBuilder_ == null) {
if (feeCase_ == 4) {
return (com.hedera.hashgraph.sdk.proto.RoyaltyFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.RoyaltyFee.getDefaultInstance();
} else {
if (feeCase_ == 4) {
return royaltyFeeBuilder_.getMessage();
}
return com.hedera.hashgraph.sdk.proto.RoyaltyFee.getDefaultInstance();
}
}
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
*/
public Builder setRoyaltyFee(com.hedera.hashgraph.sdk.proto.RoyaltyFee value) {
if (royaltyFeeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fee_ = value;
onChanged();
} else {
royaltyFeeBuilder_.setMessage(value);
}
feeCase_ = 4;
return this;
}
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
*/
public Builder setRoyaltyFee(
com.hedera.hashgraph.sdk.proto.RoyaltyFee.Builder builderForValue) {
if (royaltyFeeBuilder_ == null) {
fee_ = builderForValue.build();
onChanged();
} else {
royaltyFeeBuilder_.setMessage(builderForValue.build());
}
feeCase_ = 4;
return this;
}
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
*/
public Builder mergeRoyaltyFee(com.hedera.hashgraph.sdk.proto.RoyaltyFee value) {
if (royaltyFeeBuilder_ == null) {
if (feeCase_ == 4 &&
fee_ != com.hedera.hashgraph.sdk.proto.RoyaltyFee.getDefaultInstance()) {
fee_ = com.hedera.hashgraph.sdk.proto.RoyaltyFee.newBuilder((com.hedera.hashgraph.sdk.proto.RoyaltyFee) fee_)
.mergeFrom(value).buildPartial();
} else {
fee_ = value;
}
onChanged();
} else {
if (feeCase_ == 4) {
royaltyFeeBuilder_.mergeFrom(value);
} else {
royaltyFeeBuilder_.setMessage(value);
}
}
feeCase_ = 4;
return this;
}
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
*/
public Builder clearRoyaltyFee() {
if (royaltyFeeBuilder_ == null) {
if (feeCase_ == 4) {
feeCase_ = 0;
fee_ = null;
onChanged();
}
} else {
if (feeCase_ == 4) {
feeCase_ = 0;
fee_ = null;
}
royaltyFeeBuilder_.clear();
}
return this;
}
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
*/
public com.hedera.hashgraph.sdk.proto.RoyaltyFee.Builder getRoyaltyFeeBuilder() {
return getRoyaltyFeeFieldBuilder().getBuilder();
}
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.RoyaltyFeeOrBuilder getRoyaltyFeeOrBuilder() {
if ((feeCase_ == 4) && (royaltyFeeBuilder_ != null)) {
return royaltyFeeBuilder_.getMessageOrBuilder();
} else {
if (feeCase_ == 4) {
return (com.hedera.hashgraph.sdk.proto.RoyaltyFee) fee_;
}
return com.hedera.hashgraph.sdk.proto.RoyaltyFee.getDefaultInstance();
}
}
/**
*
**
* Royalty fee to be charged
*
*
* .proto.RoyaltyFee royalty_fee = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.RoyaltyFee, com.hedera.hashgraph.sdk.proto.RoyaltyFee.Builder, com.hedera.hashgraph.sdk.proto.RoyaltyFeeOrBuilder>
getRoyaltyFeeFieldBuilder() {
if (royaltyFeeBuilder_ == null) {
if (!(feeCase_ == 4)) {
fee_ = com.hedera.hashgraph.sdk.proto.RoyaltyFee.getDefaultInstance();
}
royaltyFeeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.RoyaltyFee, com.hedera.hashgraph.sdk.proto.RoyaltyFee.Builder, com.hedera.hashgraph.sdk.proto.RoyaltyFeeOrBuilder>(
(com.hedera.hashgraph.sdk.proto.RoyaltyFee) fee_,
getParentForChildren(),
isClean());
fee_ = null;
}
feeCase_ = 4;
onChanged();
return royaltyFeeBuilder_;
}
private com.hedera.hashgraph.sdk.proto.AccountID feeCollectorAccountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> feeCollectorAccountIdBuilder_;
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
* @return Whether the feeCollectorAccountId field is set.
*/
public boolean hasFeeCollectorAccountId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
* @return The feeCollectorAccountId.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getFeeCollectorAccountId() {
if (feeCollectorAccountIdBuilder_ == null) {
return feeCollectorAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : feeCollectorAccountId_;
} else {
return feeCollectorAccountIdBuilder_.getMessage();
}
}
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
*/
public Builder setFeeCollectorAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (feeCollectorAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
feeCollectorAccountId_ = value;
} else {
feeCollectorAccountIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
*/
public Builder setFeeCollectorAccountId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (feeCollectorAccountIdBuilder_ == null) {
feeCollectorAccountId_ = builderForValue.build();
} else {
feeCollectorAccountIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
*/
public Builder mergeFeeCollectorAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (feeCollectorAccountIdBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
feeCollectorAccountId_ != null &&
feeCollectorAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getFeeCollectorAccountIdBuilder().mergeFrom(value);
} else {
feeCollectorAccountId_ = value;
}
} else {
feeCollectorAccountIdBuilder_.mergeFrom(value);
}
if (feeCollectorAccountId_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
*/
public Builder clearFeeCollectorAccountId() {
bitField0_ = (bitField0_ & ~0x00000008);
feeCollectorAccountId_ = null;
if (feeCollectorAccountIdBuilder_ != null) {
feeCollectorAccountIdBuilder_.dispose();
feeCollectorAccountIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getFeeCollectorAccountIdBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getFeeCollectorAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getFeeCollectorAccountIdOrBuilder() {
if (feeCollectorAccountIdBuilder_ != null) {
return feeCollectorAccountIdBuilder_.getMessageOrBuilder();
} else {
return feeCollectorAccountId_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : feeCollectorAccountId_;
}
}
/**
*
**
* The account to receive the custom fee
*
*
* .proto.AccountID fee_collector_account_id = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getFeeCollectorAccountIdFieldBuilder() {
if (feeCollectorAccountIdBuilder_ == null) {
feeCollectorAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getFeeCollectorAccountId(),
getParentForChildren(),
isClean());
feeCollectorAccountId_ = null;
}
return feeCollectorAccountIdBuilder_;
}
private boolean allCollectorsAreExempt_ ;
/**
*
**
* If true, exempts all the token's fee collection accounts from this fee.
* (The token's treasury and the above fee_collector_account_id will always
* be exempt. Please see <a href="https://hips.hedera.com/hip/hip-573">HIP-573</a>
* for details.)
*
*
* bool all_collectors_are_exempt = 5;
* @return The allCollectorsAreExempt.
*/
@java.lang.Override
public boolean getAllCollectorsAreExempt() {
return allCollectorsAreExempt_;
}
/**
*
**
* If true, exempts all the token's fee collection accounts from this fee.
* (The token's treasury and the above fee_collector_account_id will always
* be exempt. Please see <a href="https://hips.hedera.com/hip/hip-573">HIP-573</a>
* for details.)
*
*
* bool all_collectors_are_exempt = 5;
* @param value The allCollectorsAreExempt to set.
* @return This builder for chaining.
*/
public Builder setAllCollectorsAreExempt(boolean value) {
allCollectorsAreExempt_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* If true, exempts all the token's fee collection accounts from this fee.
* (The token's treasury and the above fee_collector_account_id will always
* be exempt. Please see <a href="https://hips.hedera.com/hip/hip-573">HIP-573</a>
* for details.)
*
*
* bool all_collectors_are_exempt = 5;
* @return This builder for chaining.
*/
public Builder clearAllCollectorsAreExempt() {
bitField0_ = (bitField0_ & ~0x00000010);
allCollectorsAreExempt_ = false;
onChanged();
return this;
}
@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.CustomFee)
}
// @@protoc_insertion_point(class_scope:proto.CustomFee)
private static final com.hedera.hashgraph.sdk.proto.CustomFee DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.CustomFee();
}
public static com.hedera.hashgraph.sdk.proto.CustomFee getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomFee 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.CustomFee getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}