Interface NftOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
Nft, Nft.Builder

@Generated public interface NftOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    * The metadata bytes for this NFT.
    * The consensus time of the TokenMint that created this NFT as offset from the epoch.
    * The id of this NFT, consisting of a Token ID and serial number.
    * The account or contract id that owns this NFT.
    * The NFT ID of the next entry in the current owner's "virtual double-linked list" of owned NFTs.
    * The NFT ID of the previous entry in the current owner's "virtual double-linked list" of owned NFTs.
    * The account or contract id approved to spend this NFT.
    boolean
    * The consensus time of the TokenMint that created this NFT as offset from the epoch.
    boolean
    * The id of this NFT, consisting of a Token ID and serial number.
    boolean
    * The account or contract id that owns this NFT.
    boolean
    * The NFT ID of the next entry in the current owner's "virtual double-linked list" of owned NFTs.
    boolean
    * The NFT ID of the previous entry in the current owner's "virtual double-linked list" of owned NFTs.
    boolean
    * The account or contract id approved to spend this NFT.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasNftId

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

      NftID getNftId()
       *
       The id of this NFT, consisting of a Token ID and serial number.
       
      .proto.NftID nft_id = 1;
      Returns:
      The nftId.
    • hasOwnerId

      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;
      Returns:
      Whether the ownerId field is set.
    • getOwnerId

      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;
      Returns:
      The ownerId.
    • hasSpenderId

      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;
      Returns:
      Whether the spenderId field is set.
    • getSpenderId

      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;
      Returns:
      The spenderId.
    • hasMintTime

      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;
      Returns:
      Whether the mintTime field is set.
    • getMintTime

      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;
      Returns:
      The mintTime.
    • getMetadata

      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;
      Returns:
      The metadata.
    • hasOwnerPreviousNftId

      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;
      Returns:
      Whether the ownerPreviousNftId field is set.
    • getOwnerPreviousNftId

      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;
      Returns:
      The ownerPreviousNftId.
    • hasOwnerNextNftId

      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;
      Returns:
      Whether the ownerNextNftId field is set.
    • getOwnerNextNftId

      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;
      Returns:
      The ownerNextNftId.