Class TokenNftInfo.Builder

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

public static final class TokenNftInfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TokenNftInfo,TokenNftInfo.Builder> implements TokenNftInfoOrBuilder
 *
 Information for one non-fungible/unique token (NFT).
 
Protobuf type proto.TokenNftInfo
  • Method Details

    • hasNftID

      public boolean hasNftID()
       *
       A non-fungible/unique token (NFT) identifier.
       <p>
       This SHALL match the NFT requested.<br/>
       
      .proto.NftID nftID = 1;
      Specified by:
      hasNftID in interface TokenNftInfoOrBuilder
      Returns:
      Whether the nftID field is set.
    • getNftID

      public NftID getNftID()
       *
       A non-fungible/unique token (NFT) identifier.
       <p>
       This SHALL match the NFT requested.<br/>
       
      .proto.NftID nftID = 1;
      Specified by:
      getNftID in interface TokenNftInfoOrBuilder
      Returns:
      The nftID.
    • setNftID

      public TokenNftInfo.Builder setNftID(NftID value)
       *
       A non-fungible/unique token (NFT) identifier.
       <p>
       This SHALL match the NFT requested.<br/>
       
      .proto.NftID nftID = 1;
    • setNftID

      public TokenNftInfo.Builder setNftID(NftID.Builder builderForValue)
       *
       A non-fungible/unique token (NFT) identifier.
       <p>
       This SHALL match the NFT requested.<br/>
       
      .proto.NftID nftID = 1;
    • mergeNftID

      public TokenNftInfo.Builder mergeNftID(NftID value)
       *
       A non-fungible/unique token (NFT) identifier.
       <p>
       This SHALL match the NFT requested.<br/>
       
      .proto.NftID nftID = 1;
    • clearNftID

      public TokenNftInfo.Builder clearNftID()
       *
       A non-fungible/unique token (NFT) identifier.
       <p>
       This SHALL match the NFT requested.<br/>
       
      .proto.NftID nftID = 1;
    • hasAccountID

      public boolean hasAccountID()
       *
       The current owner of the NFT
       
      .proto.AccountID accountID = 2;
      Specified by:
      hasAccountID in interface TokenNftInfoOrBuilder
      Returns:
      Whether the accountID field is set.
    • getAccountID

      public AccountID getAccountID()
       *
       The current owner of the NFT
       
      .proto.AccountID accountID = 2;
      Specified by:
      getAccountID in interface TokenNftInfoOrBuilder
      Returns:
      The accountID.
    • setAccountID

      public TokenNftInfo.Builder setAccountID(AccountID value)
       *
       The current owner of the NFT
       
      .proto.AccountID accountID = 2;
    • setAccountID

      public TokenNftInfo.Builder setAccountID(AccountID.Builder builderForValue)
       *
       The current owner of the NFT
       
      .proto.AccountID accountID = 2;
    • mergeAccountID

      public TokenNftInfo.Builder mergeAccountID(AccountID value)
       *
       The current owner of the NFT
       
      .proto.AccountID accountID = 2;
    • clearAccountID

      public TokenNftInfo.Builder clearAccountID()
       *
       The current owner of the NFT
       
      .proto.AccountID accountID = 2;
    • hasCreationTime

      public boolean hasCreationTime()
       *
       The effective consensus timestamp at which the NFT was minted
       
      .proto.Timestamp creationTime = 3;
      Specified by:
      hasCreationTime in interface TokenNftInfoOrBuilder
      Returns:
      Whether the creationTime field is set.
    • getCreationTime

      public Timestamp getCreationTime()
       *
       The effective consensus timestamp at which the NFT was minted
       
      .proto.Timestamp creationTime = 3;
      Specified by:
      getCreationTime in interface TokenNftInfoOrBuilder
      Returns:
      The creationTime.
    • setCreationTime

      public TokenNftInfo.Builder setCreationTime(Timestamp value)
       *
       The effective consensus timestamp at which the NFT was minted
       
      .proto.Timestamp creationTime = 3;
    • setCreationTime

      public TokenNftInfo.Builder setCreationTime(Timestamp.Builder builderForValue)
       *
       The effective consensus timestamp at which the NFT was minted
       
      .proto.Timestamp creationTime = 3;
    • mergeCreationTime

      public TokenNftInfo.Builder mergeCreationTime(Timestamp value)
       *
       The effective consensus timestamp at which the NFT was minted
       
      .proto.Timestamp creationTime = 3;
    • clearCreationTime

      public TokenNftInfo.Builder clearCreationTime()
       *
       The effective consensus timestamp at which the NFT was minted
       
      .proto.Timestamp creationTime = 3;
    • getMetadata

      public com.google.protobuf.ByteString getMetadata()
       *
       Represents the unique metadata of the NFT
       
      bytes metadata = 4;
      Specified by:
      getMetadata in interface TokenNftInfoOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public TokenNftInfo.Builder setMetadata(com.google.protobuf.ByteString value)
       *
       Represents the unique metadata of the NFT
       
      bytes metadata = 4;
      Parameters:
      value - The metadata to set.
      Returns:
      This builder for chaining.
    • clearMetadata

      public TokenNftInfo.Builder clearMetadata()
       *
       Represents the unique metadata of the NFT
       
      bytes metadata = 4;
      Returns:
      This builder for chaining.
    • getLedgerId

      public com.google.protobuf.ByteString getLedgerId()
       *
       The ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 5;
      Specified by:
      getLedgerId in interface TokenNftInfoOrBuilder
      Returns:
      The ledgerId.
    • setLedgerId

      public TokenNftInfo.Builder setLedgerId(com.google.protobuf.ByteString value)
       *
       The ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 5;
      Parameters:
      value - The ledgerId to set.
      Returns:
      This builder for chaining.
    • clearLedgerId

      public TokenNftInfo.Builder clearLedgerId()
       *
       The ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 5;
      Returns:
      This builder for chaining.
    • hasSpenderId

      public boolean hasSpenderId()
       *
       If an allowance is granted for the NFT, its corresponding spender account
       
      .proto.AccountID spender_id = 6;
      Specified by:
      hasSpenderId in interface TokenNftInfoOrBuilder
      Returns:
      Whether the spenderId field is set.
    • getSpenderId

      public AccountID getSpenderId()
       *
       If an allowance is granted for the NFT, its corresponding spender account
       
      .proto.AccountID spender_id = 6;
      Specified by:
      getSpenderId in interface TokenNftInfoOrBuilder
      Returns:
      The spenderId.
    • setSpenderId

      public TokenNftInfo.Builder setSpenderId(AccountID value)
       *
       If an allowance is granted for the NFT, its corresponding spender account
       
      .proto.AccountID spender_id = 6;
    • setSpenderId

      public TokenNftInfo.Builder setSpenderId(AccountID.Builder builderForValue)
       *
       If an allowance is granted for the NFT, its corresponding spender account
       
      .proto.AccountID spender_id = 6;
    • mergeSpenderId

      public TokenNftInfo.Builder mergeSpenderId(AccountID value)
       *
       If an allowance is granted for the NFT, its corresponding spender account
       
      .proto.AccountID spender_id = 6;
    • clearSpenderId

      public TokenNftInfo.Builder clearSpenderId()
       *
       If an allowance is granted for the NFT, its corresponding spender account
       
      .proto.AccountID spender_id = 6;