Class Nft.Builder

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

public static final class Nft.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Nft,Nft.Builder> implements NftOrBuilder
 *
 An Hedera Token Service non-fungible token (NFT).<br/>
 Every NFT is a unique instance of a token with non-fungible type.

 The NFT SHALL be identified by token ID and serial number.<br/>
 The token treasury account SHALL own all minted NFTs of that token type
 initially.<br/>
 NFTs owned by the token treasury SHALL NOT be linked into that account's
 virtual linked list of NFTs.<br/>
 NFTs not owned by the token treasury SHALL be linked into the owner
 account's virtual linked list of NFTs.
 
Protobuf type proto.Nft
  • Method Details

    • hasNftId

      public boolean hasNftId()
       *
       The id of this NFT, consisting of a Token ID and serial number.
       
      .proto.NftID nft_id = 1;
      Specified by:
      hasNftId in interface NftOrBuilder
      Returns:
      Whether the nftId field is set.
    • getNftId

      public NftID getNftId()
       *
       The id of this NFT, consisting of a Token ID and serial number.
       
      .proto.NftID nft_id = 1;
      Specified by:
      getNftId in interface NftOrBuilder
      Returns:
      The nftId.
    • setNftId

      public Nft.Builder setNftId(NftID value)
       *
       The id of this NFT, consisting of a Token ID and serial number.
       
      .proto.NftID nft_id = 1;
    • setNftId

      public Nft.Builder setNftId(NftID.Builder builderForValue)
       *
       The id of this NFT, consisting of a Token ID and serial number.
       
      .proto.NftID nft_id = 1;
    • mergeNftId

      public Nft.Builder mergeNftId(NftID value)
       *
       The id of this NFT, consisting of a Token ID and serial number.
       
      .proto.NftID nft_id = 1;
    • clearNftId

      public Nft.Builder clearNftId()
       *
       The id of this NFT, consisting of a Token ID and serial number.
       
      .proto.NftID nft_id = 1;
    • hasOwnerId

      public boolean hasOwnerId()
       *
       The account or contract id that owns this NFT.
       <p>
       If this NFT is owned by its token type's current treasury account,
       this value SHALL be zero.
       
      .proto.AccountID owner_id = 2;
      Specified by:
      hasOwnerId in interface NftOrBuilder
      Returns:
      Whether the ownerId field is set.
    • getOwnerId

      public AccountID getOwnerId()
       *
       The account or contract id that owns this NFT.
       <p>
       If this NFT is owned by its token type's current treasury account,
       this value SHALL be zero.
       
      .proto.AccountID owner_id = 2;
      Specified by:
      getOwnerId in interface NftOrBuilder
      Returns:
      The ownerId.
    • setOwnerId

      public Nft.Builder setOwnerId(AccountID value)
       *
       The account or contract id that owns this NFT.
       <p>
       If this NFT is owned by its token type's current treasury account,
       this value SHALL be zero.
       
      .proto.AccountID owner_id = 2;
    • setOwnerId

      public Nft.Builder setOwnerId(AccountID.Builder builderForValue)
       *
       The account or contract id that owns this NFT.
       <p>
       If this NFT is owned by its token type's current treasury account,
       this value SHALL be zero.
       
      .proto.AccountID owner_id = 2;
    • mergeOwnerId

      public Nft.Builder mergeOwnerId(AccountID value)
       *
       The account or contract id that owns this NFT.
       <p>
       If this NFT is owned by its token type's current treasury account,
       this value SHALL be zero.
       
      .proto.AccountID owner_id = 2;
    • clearOwnerId

      public Nft.Builder clearOwnerId()
       *
       The account or contract id that owns this NFT.
       <p>
       If this NFT is owned by its token type's current treasury account,
       this value SHALL be zero.
       
      .proto.AccountID owner_id = 2;
    • hasSpenderId

      public boolean hasSpenderId()
       *
       The account or contract id approved to spend this NFT.
       <p>
       If there is no approved spender, this value SHALL be null.
       
      .proto.AccountID spender_id = 3;
      Specified by:
      hasSpenderId in interface NftOrBuilder
      Returns:
      Whether the spenderId field is set.
    • getSpenderId

      public AccountID getSpenderId()
       *
       The account or contract id approved to spend this NFT.
       <p>
       If there is no approved spender, this value SHALL be null.
       
      .proto.AccountID spender_id = 3;
      Specified by:
      getSpenderId in interface NftOrBuilder
      Returns:
      The spenderId.
    • setSpenderId

      public Nft.Builder setSpenderId(AccountID value)
       *
       The account or contract id approved to spend this NFT.
       <p>
       If there is no approved spender, this value SHALL be null.
       
      .proto.AccountID spender_id = 3;
    • setSpenderId

      public Nft.Builder setSpenderId(AccountID.Builder builderForValue)
       *
       The account or contract id approved to spend this NFT.
       <p>
       If there is no approved spender, this value SHALL be null.
       
      .proto.AccountID spender_id = 3;
    • mergeSpenderId

      public Nft.Builder mergeSpenderId(AccountID value)
       *
       The account or contract id approved to spend this NFT.
       <p>
       If there is no approved spender, this value SHALL be null.
       
      .proto.AccountID spender_id = 3;
    • clearSpenderId

      public Nft.Builder clearSpenderId()
       *
       The account or contract id approved to spend this NFT.
       <p>
       If there is no approved spender, this value SHALL be null.
       
      .proto.AccountID spender_id = 3;
    • hasMintTime

      public boolean hasMintTime()
       *
       The consensus time of the TokenMint that created this NFT as
       offset from the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp mint_time = 4;
      Specified by:
      hasMintTime in interface NftOrBuilder
      Returns:
      Whether the mintTime field is set.
    • getMintTime

      public Timestamp getMintTime()
       *
       The consensus time of the TokenMint that created this NFT as
       offset from the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp mint_time = 4;
      Specified by:
      getMintTime in interface NftOrBuilder
      Returns:
      The mintTime.
    • setMintTime

      public Nft.Builder setMintTime(Timestamp value)
       *
       The consensus time of the TokenMint that created this NFT as
       offset from the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp mint_time = 4;
    • setMintTime

      public Nft.Builder setMintTime(Timestamp.Builder builderForValue)
       *
       The consensus time of the TokenMint that created this NFT as
       offset from the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp mint_time = 4;
    • mergeMintTime

      public Nft.Builder mergeMintTime(Timestamp value)
       *
       The consensus time of the TokenMint that created this NFT as
       offset from the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp mint_time = 4;
    • clearMintTime

      public Nft.Builder clearMintTime()
       *
       The consensus time of the TokenMint that created this NFT as
       offset from the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch with 0 at `1970-01-01T00:00:00.000Z`.
       
      .proto.Timestamp mint_time = 4;
    • getMetadata

      public com.google.protobuf.ByteString getMetadata()
       *
       The metadata bytes for this NFT. This is often a URI value.
       <p>
       This value, if set, SHALL NOT exceed 100 bytes.
       
      bytes metadata = 5;
      Specified by:
      getMetadata in interface NftOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public Nft.Builder setMetadata(com.google.protobuf.ByteString value)
       *
       The metadata bytes for this NFT. This is often a URI value.
       <p>
       This value, if set, SHALL NOT exceed 100 bytes.
       
      bytes metadata = 5;
      Parameters:
      value - The metadata to set.
      Returns:
      This builder for chaining.
    • clearMetadata

      public Nft.Builder clearMetadata()
       *
       The metadata bytes for this NFT. This is often a URI value.
       <p>
       This value, if set, SHALL NOT exceed 100 bytes.
       
      bytes metadata = 5;
      Returns:
      This builder for chaining.
    • hasOwnerPreviousNftId

      public boolean hasOwnerPreviousNftId()
       *
       The NFT ID of the previous entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_previous_nft_id = 6;
      Specified by:
      hasOwnerPreviousNftId in interface NftOrBuilder
      Returns:
      Whether the ownerPreviousNftId field is set.
    • getOwnerPreviousNftId

      public NftID getOwnerPreviousNftId()
       *
       The NFT ID of the previous entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_previous_nft_id = 6;
      Specified by:
      getOwnerPreviousNftId in interface NftOrBuilder
      Returns:
      The ownerPreviousNftId.
    • setOwnerPreviousNftId

      public Nft.Builder setOwnerPreviousNftId(NftID value)
       *
       The NFT ID of the previous entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_previous_nft_id = 6;
    • setOwnerPreviousNftId

      public Nft.Builder setOwnerPreviousNftId(NftID.Builder builderForValue)
       *
       The NFT ID of the previous entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_previous_nft_id = 6;
    • mergeOwnerPreviousNftId

      public Nft.Builder mergeOwnerPreviousNftId(NftID value)
       *
       The NFT ID of the previous entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_previous_nft_id = 6;
    • clearOwnerPreviousNftId

      public Nft.Builder clearOwnerPreviousNftId()
       *
       The NFT ID of the previous entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_previous_nft_id = 6;
    • hasOwnerNextNftId

      public boolean hasOwnerNextNftId()
       *
       The NFT ID of the next entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_next_nft_id = 7;
      Specified by:
      hasOwnerNextNftId in interface NftOrBuilder
      Returns:
      Whether the ownerNextNftId field is set.
    • getOwnerNextNftId

      public NftID getOwnerNextNftId()
       *
       The NFT ID of the next entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_next_nft_id = 7;
      Specified by:
      getOwnerNextNftId in interface NftOrBuilder
      Returns:
      The ownerNextNftId.
    • setOwnerNextNftId

      public Nft.Builder setOwnerNextNftId(NftID value)
       *
       The NFT ID of the next entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_next_nft_id = 7;
    • setOwnerNextNftId

      public Nft.Builder setOwnerNextNftId(NftID.Builder builderForValue)
       *
       The NFT ID of the next entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_next_nft_id = 7;
    • mergeOwnerNextNftId

      public Nft.Builder mergeOwnerNextNftId(NftID value)
       *
       The NFT ID of the next entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_next_nft_id = 7;
    • clearOwnerNextNftId

      public Nft.Builder clearOwnerNextNftId()
       *
       The NFT ID of the next entry in the current owner's "virtual
       double-linked list" of owned NFTs.
       <p>
       If the owner of this NFT is the token treasury, this SHALL be unset.
       
      .proto.NftID owner_next_nft_id = 7;