Class TokenAssociation.Builder

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

public static final class TokenAssociation.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TokenAssociation,TokenAssociation.Builder> implements TokenAssociationOrBuilder
 *
 An association between a token and an account.

 An account must be associated with a token before that account can transact
 in (send or receive) that token.
 
Protobuf type proto.TokenAssociation
  • Method Details

    • hasTokenId

      public boolean hasTokenId()
       *
       A token identifier for the associated token.
       
      .proto.TokenID token_id = 1;
      Specified by:
      hasTokenId in interface TokenAssociationOrBuilder
      Returns:
      Whether the tokenId field is set.
    • getTokenId

      public TokenID getTokenId()
       *
       A token identifier for the associated token.
       
      .proto.TokenID token_id = 1;
      Specified by:
      getTokenId in interface TokenAssociationOrBuilder
      Returns:
      The tokenId.
    • setTokenId

      public TokenAssociation.Builder setTokenId(TokenID value)
       *
       A token identifier for the associated token.
       
      .proto.TokenID token_id = 1;
    • setTokenId

      public TokenAssociation.Builder setTokenId(TokenID.Builder builderForValue)
       *
       A token identifier for the associated token.
       
      .proto.TokenID token_id = 1;
    • mergeTokenId

      public TokenAssociation.Builder mergeTokenId(TokenID value)
       *
       A token identifier for the associated token.
       
      .proto.TokenID token_id = 1;
    • clearTokenId

      public TokenAssociation.Builder clearTokenId()
       *
       A token identifier for the associated token.
       
      .proto.TokenID token_id = 1;
    • hasAccountId

      public boolean hasAccountId()
       *
       An account identifier for the associated account.
       
      .proto.AccountID account_id = 2;
      Specified by:
      hasAccountId in interface TokenAssociationOrBuilder
      Returns:
      Whether the accountId field is set.
    • getAccountId

      public AccountID getAccountId()
       *
       An account identifier for the associated account.
       
      .proto.AccountID account_id = 2;
      Specified by:
      getAccountId in interface TokenAssociationOrBuilder
      Returns:
      The accountId.
    • setAccountId

      public TokenAssociation.Builder setAccountId(AccountID value)
       *
       An account identifier for the associated account.
       
      .proto.AccountID account_id = 2;
    • setAccountId

      public TokenAssociation.Builder setAccountId(AccountID.Builder builderForValue)
       *
       An account identifier for the associated account.
       
      .proto.AccountID account_id = 2;
    • mergeAccountId

      public TokenAssociation.Builder mergeAccountId(AccountID value)
       *
       An account identifier for the associated account.
       
      .proto.AccountID account_id = 2;
    • clearAccountId

      public TokenAssociation.Builder clearAccountId()
       *
       An account identifier for the associated account.
       
      .proto.AccountID account_id = 2;