java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<FixedCustomFee,FixedCustomFee.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<FixedCustomFee,FixedCustomFee.Builder>
com.hedera.hashgraph.sdk.proto.FixedCustomFee.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,FixedCustomFeeOrBuilder,Cloneable
- Enclosing class:
FixedCustomFee
public static final class FixedCustomFee.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<FixedCustomFee,FixedCustomFee.Builder>
implements FixedCustomFeeOrBuilder
* A custom fee definition for a consensus topic. <p> This fee definition is specific to an Hedera Consensus Service (HCS) topic and SHOULD NOT be used in any other context.<br/> All fields for this message are REQUIRED.<br/> Only "fixed" fee definitions are supported because there is no basis for a fractional fee on a consensus submit transaction.Protobuf type
proto.FixedCustomFee-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A collection account identifier.* A fixed custom fee.* A collection account identifier.* A fixed custom fee.boolean* A collection account identifier.boolean* A fixed custom fee.* A collection account identifier.mergeFixedFee(FixedFee value) * A fixed custom fee.* A collection account identifier.setFeeCollectorAccountId(AccountID.Builder builderForValue) * A collection account identifier.setFixedFee(FixedFee value) * A fixed custom fee.setFixedFee(FixedFee.Builder builderForValue) * A fixed custom fee.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasFixedFee
public boolean hasFixedFee()* A fixed custom fee. <p> The amount of HBAR or other token described by this `FixedFee` SHALL be charged to the transction payer for each message submitted to a topic that assigns this consensus custom fee.
.proto.FixedFee fixed_fee = 1;- Specified by:
hasFixedFeein interfaceFixedCustomFeeOrBuilder- Returns:
- Whether the fixedFee field is set.
-
getFixedFee
* A fixed custom fee. <p> The amount of HBAR or other token described by this `FixedFee` SHALL be charged to the transction payer for each message submitted to a topic that assigns this consensus custom fee.
.proto.FixedFee fixed_fee = 1;- Specified by:
getFixedFeein interfaceFixedCustomFeeOrBuilder- Returns:
- The fixedFee.
-
setFixedFee
* A fixed custom fee. <p> The amount of HBAR or other token described by this `FixedFee` SHALL be charged to the transction payer for each message submitted to a topic that assigns this consensus custom fee.
.proto.FixedFee fixed_fee = 1; -
setFixedFee
* A fixed custom fee. <p> The amount of HBAR or other token described by this `FixedFee` SHALL be charged to the transction payer for each message submitted to a topic that assigns this consensus custom fee.
.proto.FixedFee fixed_fee = 1; -
mergeFixedFee
* A fixed custom fee. <p> The amount of HBAR or other token described by this `FixedFee` SHALL be charged to the transction payer for each message submitted to a topic that assigns this consensus custom fee.
.proto.FixedFee fixed_fee = 1; -
clearFixedFee
* A fixed custom fee. <p> The amount of HBAR or other token described by this `FixedFee` SHALL be charged to the transction payer for each message submitted to a topic that assigns this consensus custom fee.
.proto.FixedFee fixed_fee = 1; -
hasFeeCollectorAccountId
public boolean hasFeeCollectorAccountId()* A collection account identifier. <p> All amounts collected for this consensus custom fee SHALL be transferred to the account identified by this field.
.proto.AccountID fee_collector_account_id = 2;- Specified by:
hasFeeCollectorAccountIdin interfaceFixedCustomFeeOrBuilder- Returns:
- Whether the feeCollectorAccountId field is set.
-
getFeeCollectorAccountId
* A collection account identifier. <p> All amounts collected for this consensus custom fee SHALL be transferred to the account identified by this field.
.proto.AccountID fee_collector_account_id = 2;- Specified by:
getFeeCollectorAccountIdin interfaceFixedCustomFeeOrBuilder- Returns:
- The feeCollectorAccountId.
-
setFeeCollectorAccountId
* A collection account identifier. <p> All amounts collected for this consensus custom fee SHALL be transferred to the account identified by this field.
.proto.AccountID fee_collector_account_id = 2; -
setFeeCollectorAccountId
* A collection account identifier. <p> All amounts collected for this consensus custom fee SHALL be transferred to the account identified by this field.
.proto.AccountID fee_collector_account_id = 2; -
mergeFeeCollectorAccountId
* A collection account identifier. <p> All amounts collected for this consensus custom fee SHALL be transferred to the account identified by this field.
.proto.AccountID fee_collector_account_id = 2; -
clearFeeCollectorAccountId
* A collection account identifier. <p> All amounts collected for this consensus custom fee SHALL be transferred to the account identified by this field.
.proto.AccountID fee_collector_account_id = 2;
-