Class TokenFeeScheduleUpdateTransactionBody

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

@Generated public final class TokenFeeScheduleUpdateTransactionBody extends com.google.protobuf.GeneratedMessageLite<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
  • Field Details

    • TOKEN_ID_FIELD_NUMBER

      public static final int TOKEN_ID_FIELD_NUMBER
      See Also:
    • CUSTOM_FEES_FIELD_NUMBER

      public static final int CUSTOM_FEES_FIELD_NUMBER
      See Also:
  • 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.
    • 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
    • getCustomFeesOrBuilderList

      public List<? extends CustomFeeOrBuilder> getCustomFeesOrBuilderList()
       *
       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;
    • 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
    • getCustomFeesOrBuilder

      public CustomFeeOrBuilder getCustomFeesOrBuilder(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;
    • parseFrom

      public static TokenFeeScheduleUpdateTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TokenFeeScheduleUpdateTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TokenFeeScheduleUpdateTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TokenFeeScheduleUpdateTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TokenFeeScheduleUpdateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TokenFeeScheduleUpdateTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TokenFeeScheduleUpdateTransactionBody parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TokenFeeScheduleUpdateTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TokenFeeScheduleUpdateTransactionBody parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TokenFeeScheduleUpdateTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TokenFeeScheduleUpdateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TokenFeeScheduleUpdateTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

    • newBuilder

    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<TokenFeeScheduleUpdateTransactionBody,TokenFeeScheduleUpdateTransactionBody.Builder>
    • getDefaultInstance

      public static TokenFeeScheduleUpdateTransactionBody getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TokenFeeScheduleUpdateTransactionBody> parser()