Class EntityIDPair.Builder

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

public static final class EntityIDPair.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<EntityIDPair,EntityIDPair.Builder> implements EntityIDPairOrBuilder
 *
 A Pair of AccountID and TokenID.<br/>
 This is used as a key in certain cases.

 Deprecated.<br/>
 The TokenAssociation message should be used instead of this message.
 
Protobuf type proto.EntityIDPair
  • Method Details

    • hasAccountId

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

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

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

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

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

      public EntityIDPair.Builder clearAccountId()
       *
       An account identifier for the associated account.
       
      .proto.AccountID account_id = 1;
    • hasTokenId

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

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

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

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

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

      public EntityIDPair.Builder clearTokenId()
       *
       A token identifier for the associated token.
       
      .proto.TokenID token_id = 2;