Class TokenFeeScheduleUpdateTransactionBody.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TokenFeeScheduleUpdateTransactionBody,TokenFeeScheduleUpdateTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TokenFeeScheduleUpdateTransactionBody,TokenFeeScheduleUpdateTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.TokenFeeScheduleUpdateTransactionBody.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, TokenFeeScheduleUpdateTransactionBodyOrBuilder, Cloneable
Enclosing class:
TokenFeeScheduleUpdateTransactionBody

public static final class TokenFeeScheduleUpdateTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TokenFeeScheduleUpdateTransactionBody,TokenFeeScheduleUpdateTransactionBody.Builder> implements TokenFeeScheduleUpdateTransactionBodyOrBuilder
 *
 Update the custom fee schedule for a token type.

 The token MUST have a `fee_schedule_key` set and that key MUST NOT
 be an empty `KeyList`.<br/>
 The token `fee_schedule_key` MUST sign this transaction.<br/>
 The token MUST exist, MUST NOT be deleted, and MUST NOT be expired.<br/>

 If the custom_fees list is empty, clears the fee schedule or resolves to
 CUSTOM_SCHEDULE_ALREADY_HAS_NO_FEES if the fee schedule was already empty.

 ### Block Stream Effects
 None
 
Protobuf type proto.TokenFeeScheduleUpdateTransactionBody
  • Method Details

    • hasTokenId

      public boolean hasTokenId()
       *
       A token identifier.
       <p>
       This SHALL identify the token type to modify with an updated
       custom fee schedule.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token_id = 1;
      Specified by:
      hasTokenId in interface TokenFeeScheduleUpdateTransactionBodyOrBuilder
      Returns:
      Whether the tokenId field is set.
    • getTokenId

      public TokenID getTokenId()
       *
       A token identifier.
       <p>
       This SHALL identify the token type to modify with an updated
       custom fee schedule.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token_id = 1;
      Specified by:
      getTokenId in interface TokenFeeScheduleUpdateTransactionBodyOrBuilder
      Returns:
      The tokenId.
    • setTokenId

       *
       A token identifier.
       <p>
       This SHALL identify the token type to modify with an updated
       custom fee schedule.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token_id = 1;
    • setTokenId

       *
       A token identifier.
       <p>
       This SHALL identify the token type to modify with an updated
       custom fee schedule.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token_id = 1;
    • mergeTokenId

       *
       A token identifier.
       <p>
       This SHALL identify the token type to modify with an updated
       custom fee schedule.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token_id = 1;
    • clearTokenId

       *
       A token identifier.
       <p>
       This SHALL identify the token type to modify with an updated
       custom fee schedule.<br/>
       The identified token MUST exist, and MUST NOT be deleted.
       
      .proto.TokenID token_id = 1;
    • getCustomFeesList

      public List<CustomFee> getCustomFeesList()
       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
      Specified by:
      getCustomFeesList in interface TokenFeeScheduleUpdateTransactionBodyOrBuilder
    • getCustomFeesCount

      public int getCustomFeesCount()
       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
      Specified by:
      getCustomFeesCount in interface TokenFeeScheduleUpdateTransactionBodyOrBuilder
    • getCustomFees

      public CustomFee getCustomFees(int index)
       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
      Specified by:
      getCustomFees in interface TokenFeeScheduleUpdateTransactionBodyOrBuilder
    • setCustomFees

      public TokenFeeScheduleUpdateTransactionBody.Builder setCustomFees(int index, CustomFee value)
       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
    • setCustomFees

      public TokenFeeScheduleUpdateTransactionBody.Builder setCustomFees(int index, CustomFee.Builder builderForValue)
       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
    • addCustomFees

       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
    • addCustomFees

      public TokenFeeScheduleUpdateTransactionBody.Builder addCustomFees(int index, CustomFee value)
       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
    • addCustomFees

      public TokenFeeScheduleUpdateTransactionBody.Builder addCustomFees(CustomFee.Builder builderForValue)
       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
    • addCustomFees

      public TokenFeeScheduleUpdateTransactionBody.Builder addCustomFees(int index, CustomFee.Builder builderForValue)
       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
    • addAllCustomFees

      public TokenFeeScheduleUpdateTransactionBody.Builder addAllCustomFees(Iterable<? extends CustomFee> values)
       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
    • clearCustomFees

       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;
    • removeCustomFees

      public TokenFeeScheduleUpdateTransactionBody.Builder removeCustomFees(int index)
       *
       A list of custom fees representing a fee schedule.
       <p>
       This list MAY be empty to remove custom fees from a token.<br/>
       If the identified token is a non-fungible/unique type, the entries
       in this list MUST NOT declare a `fractional_fee`.<br/>
       If the identified token is a fungible/common type, the entries in this
       list MUST NOT declare a `royalty_fee`.<br/>
       Any token type MAY include entries that declare a `fixed_fee`.
       
      repeated .proto.CustomFee custom_fees = 2;