Class GrantedNftAllowance.Builder

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

public static final class GrantedNftAllowance.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<GrantedNftAllowance,GrantedNftAllowance.Builder> implements GrantedNftAllowanceOrBuilder
 *
 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/unique 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/unique 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/unique tokens of the specified type owned by
 the funding account.
 
Protobuf type proto.GrantedNftAllowance
  • 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 GrantedNftAllowanceOrBuilder
      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 GrantedNftAllowanceOrBuilder
      Returns:
      The tokenId.
    • setTokenId

      public GrantedNftAllowance.Builder setTokenId(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;
    • setTokenId

      public GrantedNftAllowance.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 GrantedNftAllowance.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

      public GrantedNftAllowance.Builder 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;
    • hasSpender

      public boolean hasSpender()
       *
       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 = 2;
      Specified by:
      hasSpender in interface GrantedNftAllowanceOrBuilder
      Returns:
      Whether the spender field is set.
    • getSpender

      public AccountID getSpender()
       *
       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 = 2;
      Specified by:
      getSpender in interface GrantedNftAllowanceOrBuilder
      Returns:
      The spender.
    • setSpender

      public GrantedNftAllowance.Builder setSpender(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 = 2;
    • setSpender

      public GrantedNftAllowance.Builder setSpender(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 = 2;
    • mergeSpender

      public GrantedNftAllowance.Builder mergeSpender(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 = 2;
    • clearSpender

      public GrantedNftAllowance.Builder clearSpender()
       *
       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 = 2;