Class TokenFreezeAccountTransactionBody.Builder

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

public static final class TokenFreezeAccountTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TokenFreezeAccountTransactionBody,TokenFreezeAccountTransactionBody.Builder> implements TokenFreezeAccountTransactionBodyOrBuilder
 *
 Block transfers of a token type for an account.<br/>
 This, effectively, freezes assets of one account with respect to
 one token type. While frozen, that account cannot send or receive tokens
 of the identified type.

 The token MUST have a `freeze_key` set and that key MUST NOT
 be an empty `KeyList`.<br/>
 The token `freeze_key` MUST sign this transaction.<br/>
 The identified token MUST exist, MUST NOT be deleted, MUST NOT be paused,
 and MUST NOT be expired.<br/>
 The identified account MUST exist, MUST NOT be deleted, and
 MUST NOT be expired.<br/>
 If the identified account is already frozen with respect to the identified
 token, the transaction SHALL succeed, but no change SHALL be made.<br/>
 An association between the identified account and the identified
 token MUST exist.

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

    • hasToken

      public boolean hasToken()
       *
       A token identifier.
       <p>
       This SHALL identify the token type to "freeze".<br/>
       The identified token MUST exist, MUST NOT be deleted, and MUST be
       associated to the identified account.
       
      .proto.TokenID token = 1;
      Specified by:
      hasToken in interface TokenFreezeAccountTransactionBodyOrBuilder
      Returns:
      Whether the token field is set.
    • getToken

      public TokenID getToken()
       *
       A token identifier.
       <p>
       This SHALL identify the token type to "freeze".<br/>
       The identified token MUST exist, MUST NOT be deleted, and MUST be
       associated to the identified account.
       
      .proto.TokenID token = 1;
      Specified by:
      getToken in interface TokenFreezeAccountTransactionBodyOrBuilder
      Returns:
      The token.
    • setToken

       *
       A token identifier.
       <p>
       This SHALL identify the token type to "freeze".<br/>
       The identified token MUST exist, MUST NOT be deleted, and MUST be
       associated to the identified account.
       
      .proto.TokenID token = 1;
    • setToken

       *
       A token identifier.
       <p>
       This SHALL identify the token type to "freeze".<br/>
       The identified token MUST exist, MUST NOT be deleted, and MUST be
       associated to the identified account.
       
      .proto.TokenID token = 1;
    • mergeToken

       *
       A token identifier.
       <p>
       This SHALL identify the token type to "freeze".<br/>
       The identified token MUST exist, MUST NOT be deleted, and MUST be
       associated to the identified account.
       
      .proto.TokenID token = 1;
    • clearToken

       *
       A token identifier.
       <p>
       This SHALL identify the token type to "freeze".<br/>
       The identified token MUST exist, MUST NOT be deleted, and MUST be
       associated to the identified account.
       
      .proto.TokenID token = 1;
    • hasAccount

      public boolean hasAccount()
       *
       An account identifier.
       <p>
       This shall identify the account to "freeze".<br/>
       The identified account MUST exist, MUST NOT be deleted, MUST NOT be
       expired, and MUST be associated to the identified token.<br/>
       The identified account SHOULD NOT be "frozen" with respect to the
       identified token.
       
      .proto.AccountID account = 2;
      Specified by:
      hasAccount in interface TokenFreezeAccountTransactionBodyOrBuilder
      Returns:
      Whether the account field is set.
    • getAccount

      public AccountID getAccount()
       *
       An account identifier.
       <p>
       This shall identify the account to "freeze".<br/>
       The identified account MUST exist, MUST NOT be deleted, MUST NOT be
       expired, and MUST be associated to the identified token.<br/>
       The identified account SHOULD NOT be "frozen" with respect to the
       identified token.
       
      .proto.AccountID account = 2;
      Specified by:
      getAccount in interface TokenFreezeAccountTransactionBodyOrBuilder
      Returns:
      The account.
    • setAccount

       *
       An account identifier.
       <p>
       This shall identify the account to "freeze".<br/>
       The identified account MUST exist, MUST NOT be deleted, MUST NOT be
       expired, and MUST be associated to the identified token.<br/>
       The identified account SHOULD NOT be "frozen" with respect to the
       identified token.
       
      .proto.AccountID account = 2;
    • setAccount

      public TokenFreezeAccountTransactionBody.Builder setAccount(AccountID.Builder builderForValue)
       *
       An account identifier.
       <p>
       This shall identify the account to "freeze".<br/>
       The identified account MUST exist, MUST NOT be deleted, MUST NOT be
       expired, and MUST be associated to the identified token.<br/>
       The identified account SHOULD NOT be "frozen" with respect to the
       identified token.
       
      .proto.AccountID account = 2;
    • mergeAccount

       *
       An account identifier.
       <p>
       This shall identify the account to "freeze".<br/>
       The identified account MUST exist, MUST NOT be deleted, MUST NOT be
       expired, and MUST be associated to the identified token.<br/>
       The identified account SHOULD NOT be "frozen" with respect to the
       identified token.
       
      .proto.AccountID account = 2;
    • clearAccount

       *
       An account identifier.
       <p>
       This shall identify the account to "freeze".<br/>
       The identified account MUST exist, MUST NOT be deleted, MUST NOT be
       expired, and MUST be associated to the identified token.<br/>
       The identified account SHOULD NOT be "frozen" with respect to the
       identified token.
       
      .proto.AccountID account = 2;