Class FixedCustomFee.Builder

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
  • 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:
      hasFixedFee in interface FixedCustomFeeOrBuilder
      Returns:
      Whether the fixedFee field is set.
    • getFixedFee

      public FixedFee 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:
      getFixedFee in interface FixedCustomFeeOrBuilder
      Returns:
      The fixedFee.
    • setFixedFee

      public FixedCustomFee.Builder setFixedFee(FixedFee value)
       *
       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

      public FixedCustomFee.Builder setFixedFee(FixedFee.Builder builderForValue)
       *
       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

      public FixedCustomFee.Builder mergeFixedFee(FixedFee value)
       *
       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

      public FixedCustomFee.Builder 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:
      hasFeeCollectorAccountId in interface FixedCustomFeeOrBuilder
      Returns:
      Whether the feeCollectorAccountId field is set.
    • getFeeCollectorAccountId

      public AccountID 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:
      getFeeCollectorAccountId in interface FixedCustomFeeOrBuilder
      Returns:
      The feeCollectorAccountId.
    • setFeeCollectorAccountId

      public FixedCustomFee.Builder setFeeCollectorAccountId(AccountID value)
       *
       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

      public FixedCustomFee.Builder setFeeCollectorAccountId(AccountID.Builder builderForValue)
       *
       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

      public FixedCustomFee.Builder mergeFeeCollectorAccountId(AccountID value)
       *
       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

      public FixedCustomFee.Builder 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;