Class PendingAirdropId.Builder

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

public static final class PendingAirdropId.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<PendingAirdropId,PendingAirdropId.Builder> implements PendingAirdropIdOrBuilder
 *
 A unique, composite, identifier for a pending airdrop.

 Each pending airdrop SHALL be uniquely identified by
 a `PendingAirdropId`.<br/>
 A `PendingAirdropId` SHALL be recorded when created and MUST be provided in
 any transaction that would modify that pending airdrop
 (such as a `claimAirdrop` or `cancelAirdrop`).
 
Protobuf type proto.PendingAirdropId
  • Method Details

    • getTokenReferenceCase

      public PendingAirdropId.TokenReferenceCase getTokenReferenceCase()
      Specified by:
      getTokenReferenceCase in interface PendingAirdropIdOrBuilder
    • clearTokenReference

      public PendingAirdropId.Builder clearTokenReference()
    • hasSenderId

      public boolean hasSenderId()
       *
       A sending account.
       <p>
       This is the account that initiated, and SHALL fund,
       this pending airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID sender_id = 1;
      Specified by:
      hasSenderId in interface PendingAirdropIdOrBuilder
      Returns:
      Whether the senderId field is set.
    • getSenderId

      public AccountID getSenderId()
       *
       A sending account.
       <p>
       This is the account that initiated, and SHALL fund,
       this pending airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID sender_id = 1;
      Specified by:
      getSenderId in interface PendingAirdropIdOrBuilder
      Returns:
      The senderId.
    • setSenderId

      public PendingAirdropId.Builder setSenderId(AccountID value)
       *
       A sending account.
       <p>
       This is the account that initiated, and SHALL fund,
       this pending airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID sender_id = 1;
    • setSenderId

      public PendingAirdropId.Builder setSenderId(AccountID.Builder builderForValue)
       *
       A sending account.
       <p>
       This is the account that initiated, and SHALL fund,
       this pending airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID sender_id = 1;
    • mergeSenderId

      public PendingAirdropId.Builder mergeSenderId(AccountID value)
       *
       A sending account.
       <p>
       This is the account that initiated, and SHALL fund,
       this pending airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID sender_id = 1;
    • clearSenderId

      public PendingAirdropId.Builder clearSenderId()
       *
       A sending account.
       <p>
       This is the account that initiated, and SHALL fund,
       this pending airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID sender_id = 1;
    • hasReceiverId

      public boolean hasReceiverId()
       *
       A receiving account.
       <p>
       This is the ID of the account that SHALL receive the airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID receiver_id = 2;
      Specified by:
      hasReceiverId in interface PendingAirdropIdOrBuilder
      Returns:
      Whether the receiverId field is set.
    • getReceiverId

      public AccountID getReceiverId()
       *
       A receiving account.
       <p>
       This is the ID of the account that SHALL receive the airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID receiver_id = 2;
      Specified by:
      getReceiverId in interface PendingAirdropIdOrBuilder
      Returns:
      The receiverId.
    • setReceiverId

      public PendingAirdropId.Builder setReceiverId(AccountID value)
       *
       A receiving account.
       <p>
       This is the ID of the account that SHALL receive the airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID receiver_id = 2;
    • setReceiverId

      public PendingAirdropId.Builder setReceiverId(AccountID.Builder builderForValue)
       *
       A receiving account.
       <p>
       This is the ID of the account that SHALL receive the airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID receiver_id = 2;
    • mergeReceiverId

      public PendingAirdropId.Builder mergeReceiverId(AccountID value)
       *
       A receiving account.
       <p>
       This is the ID of the account that SHALL receive the airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID receiver_id = 2;
    • clearReceiverId

      public PendingAirdropId.Builder clearReceiverId()
       *
       A receiving account.
       <p>
       This is the ID of the account that SHALL receive the airdrop.<br/>
       This field is REQUIRED.
       
      .proto.AccountID receiver_id = 2;
    • hasFungibleTokenType

      public boolean hasFungibleTokenType()
       *
       A token identifier.<br/>
       This is the type of token for a fungible/common token airdrop.
       <p>
       This field is REQUIRED for a fungible/common token and MUST NOT
       be used for a non-fungible/unique token.
       
      .proto.TokenID fungible_token_type = 3;
      Specified by:
      hasFungibleTokenType in interface PendingAirdropIdOrBuilder
      Returns:
      Whether the fungibleTokenType field is set.
    • getFungibleTokenType

      public TokenID getFungibleTokenType()
       *
       A token identifier.<br/>
       This is the type of token for a fungible/common token airdrop.
       <p>
       This field is REQUIRED for a fungible/common token and MUST NOT
       be used for a non-fungible/unique token.
       
      .proto.TokenID fungible_token_type = 3;
      Specified by:
      getFungibleTokenType in interface PendingAirdropIdOrBuilder
      Returns:
      The fungibleTokenType.
    • setFungibleTokenType

      public PendingAirdropId.Builder setFungibleTokenType(TokenID value)
       *
       A token identifier.<br/>
       This is the type of token for a fungible/common token airdrop.
       <p>
       This field is REQUIRED for a fungible/common token and MUST NOT
       be used for a non-fungible/unique token.
       
      .proto.TokenID fungible_token_type = 3;
    • setFungibleTokenType

      public PendingAirdropId.Builder setFungibleTokenType(TokenID.Builder builderForValue)
       *
       A token identifier.<br/>
       This is the type of token for a fungible/common token airdrop.
       <p>
       This field is REQUIRED for a fungible/common token and MUST NOT
       be used for a non-fungible/unique token.
       
      .proto.TokenID fungible_token_type = 3;
    • mergeFungibleTokenType

      public PendingAirdropId.Builder mergeFungibleTokenType(TokenID value)
       *
       A token identifier.<br/>
       This is the type of token for a fungible/common token airdrop.
       <p>
       This field is REQUIRED for a fungible/common token and MUST NOT
       be used for a non-fungible/unique token.
       
      .proto.TokenID fungible_token_type = 3;
    • clearFungibleTokenType

      public PendingAirdropId.Builder clearFungibleTokenType()
       *
       A token identifier.<br/>
       This is the type of token for a fungible/common token airdrop.
       <p>
       This field is REQUIRED for a fungible/common token and MUST NOT
       be used for a non-fungible/unique token.
       
      .proto.TokenID fungible_token_type = 3;
    • hasNonFungibleToken

      public boolean hasNonFungibleToken()
       *
       The id of a single NFT<br/>
       This is the type of token for a non-fungible/unique token airdrop
       and consists of a Token ID and serial number.
       <p>
       This field is REQUIRED for a non-fungible/unique token and
       MUST NOT be used for a fungible/common token.
       
      .proto.NftID non_fungible_token = 4;
      Specified by:
      hasNonFungibleToken in interface PendingAirdropIdOrBuilder
      Returns:
      Whether the nonFungibleToken field is set.
    • getNonFungibleToken

      public NftID getNonFungibleToken()
       *
       The id of a single NFT<br/>
       This is the type of token for a non-fungible/unique token airdrop
       and consists of a Token ID and serial number.
       <p>
       This field is REQUIRED for a non-fungible/unique token and
       MUST NOT be used for a fungible/common token.
       
      .proto.NftID non_fungible_token = 4;
      Specified by:
      getNonFungibleToken in interface PendingAirdropIdOrBuilder
      Returns:
      The nonFungibleToken.
    • setNonFungibleToken

      public PendingAirdropId.Builder setNonFungibleToken(NftID value)
       *
       The id of a single NFT<br/>
       This is the type of token for a non-fungible/unique token airdrop
       and consists of a Token ID and serial number.
       <p>
       This field is REQUIRED for a non-fungible/unique token and
       MUST NOT be used for a fungible/common token.
       
      .proto.NftID non_fungible_token = 4;
    • setNonFungibleToken

      public PendingAirdropId.Builder setNonFungibleToken(NftID.Builder builderForValue)
       *
       The id of a single NFT<br/>
       This is the type of token for a non-fungible/unique token airdrop
       and consists of a Token ID and serial number.
       <p>
       This field is REQUIRED for a non-fungible/unique token and
       MUST NOT be used for a fungible/common token.
       
      .proto.NftID non_fungible_token = 4;
    • mergeNonFungibleToken

      public PendingAirdropId.Builder mergeNonFungibleToken(NftID value)
       *
       The id of a single NFT<br/>
       This is the type of token for a non-fungible/unique token airdrop
       and consists of a Token ID and serial number.
       <p>
       This field is REQUIRED for a non-fungible/unique token and
       MUST NOT be used for a fungible/common token.
       
      .proto.NftID non_fungible_token = 4;
    • clearNonFungibleToken

      public PendingAirdropId.Builder clearNonFungibleToken()
       *
       The id of a single NFT<br/>
       This is the type of token for a non-fungible/unique token airdrop
       and consists of a Token ID and serial number.
       <p>
       This field is REQUIRED for a non-fungible/unique token and
       MUST NOT be used for a fungible/common token.
       
      .proto.NftID non_fungible_token = 4;