Class TokenDissociateTransactionBody

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

@Generated public final class TokenDissociateTransactionBody extends com.google.protobuf.GeneratedMessageLite<TokenDissociateTransactionBody,TokenDissociateTransactionBody.Builder> implements TokenDissociateTransactionBodyOrBuilder
 *
 Dissociate an account from one or more HTS tokens.

 If the identified account is not found,
 the transaction SHALL return `INVALID_ACCOUNT_ID`.<br/>
 If the identified account has been deleted,
 the transaction SHALL return `ACCOUNT_DELETED`.<br/>
 If any of the identified tokens is not found,
 the transaction SHALL return `INVALID_TOKEN_REF`.<br/>
 If any of the identified tokens has been deleted,
 the transaction SHALL return `TOKEN_WAS_DELETED`.<br/>
 If an association does not exist for any of the identified tokens,
 the transaction SHALL return `TOKEN_NOT_ASSOCIATED_TO_ACCOUNT`.<br/>
 If the identified account has a nonzero balance for any of the identified
 tokens, and that token is neither deleted nor expired, the
 transaction SHALL return `TRANSACTION_REQUIRES_ZERO_TOKEN_BALANCES`.<br/>
 If one of the identified tokens is a fungible/common token that is expired,
 the account MAY disassociate from that token, even if that token balance is
 not zero for that account.<br/>
 If one of the identified tokens is a non-fungible/unique token that is
 expired, the account MUST NOT disassociate if that account holds any
 individual NFT of that token. In this situation the transaction SHALL
 return `TRANSACTION_REQUIRED_ZERO_TOKEN_BALANCES`.<br/>
 The identified account MUST sign this transaction.

 ### Block Stream Effects
 None
 
Protobuf type proto.TokenDissociateTransactionBody
  • Field Details

  • Method Details

    • hasAccount

      public boolean hasAccount()
       *
       An account identifier.
       <p>
       The identified account SHALL be dissociated from each of the
       tokens identified in the `tokens` field.
       This field is REQUIRED and MUST be a valid account identifier.<br/>
       The identified account MUST exist in state.<br/>
       The identified account MUST NOT be deleted.<br/>
       The identified account MUST NOT be expired.
       
      .proto.AccountID account = 1;
      Specified by:
      hasAccount in interface TokenDissociateTransactionBodyOrBuilder
      Returns:
      Whether the account field is set.
    • getAccount

      public AccountID getAccount()
       *
       An account identifier.
       <p>
       The identified account SHALL be dissociated from each of the
       tokens identified in the `tokens` field.
       This field is REQUIRED and MUST be a valid account identifier.<br/>
       The identified account MUST exist in state.<br/>
       The identified account MUST NOT be deleted.<br/>
       The identified account MUST NOT be expired.
       
      .proto.AccountID account = 1;
      Specified by:
      getAccount in interface TokenDissociateTransactionBodyOrBuilder
      Returns:
      The account.
    • getTokensList

      public List<TokenID> getTokensList()
       *
       A list of token identifiers.
       <p>
       Each token identified in this list SHALL be dissociated from
       the account identified in the `account` field.<br/>
       This list MUST NOT be empty.
       Each entry in this list MUST be a valid token identifier.<br/>
       Each entry in this list MUST be currently associated to the
       account identified in `account`.<br/>
       Entries in this list MAY be expired, if the token type is
       fungible/common.<br/>
       Each entry in this list MUST NOT be deleted.
       
      repeated .proto.TokenID tokens = 2;
      Specified by:
      getTokensList in interface TokenDissociateTransactionBodyOrBuilder
    • getTokensOrBuilderList

      public List<? extends TokenIDOrBuilder> getTokensOrBuilderList()
       *
       A list of token identifiers.
       <p>
       Each token identified in this list SHALL be dissociated from
       the account identified in the `account` field.<br/>
       This list MUST NOT be empty.
       Each entry in this list MUST be a valid token identifier.<br/>
       Each entry in this list MUST be currently associated to the
       account identified in `account`.<br/>
       Entries in this list MAY be expired, if the token type is
       fungible/common.<br/>
       Each entry in this list MUST NOT be deleted.
       
      repeated .proto.TokenID tokens = 2;
    • getTokensCount

      public int getTokensCount()
       *
       A list of token identifiers.
       <p>
       Each token identified in this list SHALL be dissociated from
       the account identified in the `account` field.<br/>
       This list MUST NOT be empty.
       Each entry in this list MUST be a valid token identifier.<br/>
       Each entry in this list MUST be currently associated to the
       account identified in `account`.<br/>
       Entries in this list MAY be expired, if the token type is
       fungible/common.<br/>
       Each entry in this list MUST NOT be deleted.
       
      repeated .proto.TokenID tokens = 2;
      Specified by:
      getTokensCount in interface TokenDissociateTransactionBodyOrBuilder
    • getTokens

      public TokenID getTokens(int index)
       *
       A list of token identifiers.
       <p>
       Each token identified in this list SHALL be dissociated from
       the account identified in the `account` field.<br/>
       This list MUST NOT be empty.
       Each entry in this list MUST be a valid token identifier.<br/>
       Each entry in this list MUST be currently associated to the
       account identified in `account`.<br/>
       Entries in this list MAY be expired, if the token type is
       fungible/common.<br/>
       Each entry in this list MUST NOT be deleted.
       
      repeated .proto.TokenID tokens = 2;
      Specified by:
      getTokens in interface TokenDissociateTransactionBodyOrBuilder
    • getTokensOrBuilder

      public TokenIDOrBuilder getTokensOrBuilder(int index)
       *
       A list of token identifiers.
       <p>
       Each token identified in this list SHALL be dissociated from
       the account identified in the `account` field.<br/>
       This list MUST NOT be empty.
       Each entry in this list MUST be a valid token identifier.<br/>
       Each entry in this list MUST be currently associated to the
       account identified in `account`.<br/>
       Entries in this list MAY be expired, if the token type is
       fungible/common.<br/>
       Each entry in this list MUST NOT be deleted.
       
      repeated .proto.TokenID tokens = 2;
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static TokenDissociateTransactionBody.Builder 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<TokenDissociateTransactionBody,TokenDissociateTransactionBody.Builder>
    • getDefaultInstance

      public static TokenDissociateTransactionBody getDefaultInstance()
    • parser

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