Class AccountApprovalForAllAllowance.Builder

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

public static final class AccountApprovalForAllAllowance.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<AccountApprovalForAllAllowance,AccountApprovalForAllAllowance.Builder> implements AccountApprovalForAllAllowanceOrBuilder
 *
 Permission granted by one account (the "funding" account) to another account
 (the "spender" account) that allows the spender to transfer all serial
 numbers of a specific non-fungible token (NFT) collection owned by the
 funding account.<br/>
 This is a broad permission, as it does not matter how many NFTs of the
 specified collection the funding account owns, the spender MAY dispose of
 any or all of them with this allowance.<br/>
 Each token type (typically a collection of NFTs) SHALL require a separate
 allowance.<br/>
 Allowances for a specific serial number MUST be directly associated with
 that specific non-fungible token, rather than the holding account.

 An allowance SHALL NOT transfer any tokens directly, it only permits
 transactions signed only by the spender account to transfer any non-fungible
 tokens of the specified type owned by the funding account.
 
Protobuf type proto.AccountApprovalForAllAllowance
  • Method Details

    • hasTokenId

      public boolean hasTokenId()
       *
       The identifier for the token associated with this allowance.
       <p>
       This token MUST be a non-fungible/unique token.
       
      .proto.TokenID token_id = 1;
      Specified by:
      hasTokenId in interface AccountApprovalForAllAllowanceOrBuilder
      Returns:
      Whether the tokenId field is set.
    • getTokenId

      public TokenID getTokenId()
       *
       The identifier for the token associated with this allowance.
       <p>
       This token MUST be a non-fungible/unique token.
       
      .proto.TokenID token_id = 1;
      Specified by:
      getTokenId in interface AccountApprovalForAllAllowanceOrBuilder
      Returns:
      The tokenId.
    • setTokenId

       *
       The identifier for the token associated with this allowance.
       <p>
       This token MUST be a non-fungible/unique token.
       
      .proto.TokenID token_id = 1;
    • setTokenId

      public AccountApprovalForAllAllowance.Builder setTokenId(TokenID.Builder builderForValue)
       *
       The identifier for the token associated with this allowance.
       <p>
       This token MUST be a non-fungible/unique token.
       
      .proto.TokenID token_id = 1;
    • mergeTokenId

      public AccountApprovalForAllAllowance.Builder mergeTokenId(TokenID value)
       *
       The identifier for the token associated with this allowance.
       <p>
       This token MUST be a non-fungible/unique token.
       
      .proto.TokenID token_id = 1;
    • clearTokenId

       *
       The identifier for the token associated with this allowance.
       <p>
       This token MUST be a non-fungible/unique token.
       
      .proto.TokenID token_id = 1;
    • hasSpenderId

      public boolean hasSpenderId()
       *
       The identifier for the spending account associated with this allowance.
       <p>
       This account SHALL be permitted to sign transactions to spend tokens of
       the associated token type from the funding/allowing account.
       
      .proto.AccountID spender_id = 2;
      Specified by:
      hasSpenderId in interface AccountApprovalForAllAllowanceOrBuilder
      Returns:
      Whether the spenderId field is set.
    • getSpenderId

      public AccountID getSpenderId()
       *
       The identifier for the spending account associated with this allowance.
       <p>
       This account SHALL be permitted to sign transactions to spend tokens of
       the associated token type from the funding/allowing account.
       
      .proto.AccountID spender_id = 2;
      Specified by:
      getSpenderId in interface AccountApprovalForAllAllowanceOrBuilder
      Returns:
      The spenderId.
    • setSpenderId

       *
       The identifier for the spending account associated with this allowance.
       <p>
       This account SHALL be permitted to sign transactions to spend tokens of
       the associated token type from the funding/allowing account.
       
      .proto.AccountID spender_id = 2;
    • setSpenderId

      public AccountApprovalForAllAllowance.Builder setSpenderId(AccountID.Builder builderForValue)
       *
       The identifier for the spending account associated with this allowance.
       <p>
       This account SHALL be permitted to sign transactions to spend tokens of
       the associated token type from the funding/allowing account.
       
      .proto.AccountID spender_id = 2;
    • mergeSpenderId

      public AccountApprovalForAllAllowance.Builder mergeSpenderId(AccountID value)
       *
       The identifier for the spending account associated with this allowance.
       <p>
       This account SHALL be permitted to sign transactions to spend tokens of
       the associated token type from the funding/allowing account.
       
      .proto.AccountID spender_id = 2;
    • clearSpenderId

      public AccountApprovalForAllAllowance.Builder clearSpenderId()
       *
       The identifier for the spending account associated with this allowance.
       <p>
       This account SHALL be permitted to sign transactions to spend tokens of
       the associated token type from the funding/allowing account.
       
      .proto.AccountID spender_id = 2;