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

@Generated public final class Nft extends com.google.protobuf.GeneratedMessageLite<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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * An Hedera Token Service non-fungible token (NFT).<br/> Every NFT is a unique instance of a token with non-fungible type.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    static Nft
     
    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.
     
    newBuilder(Nft prototype)
     
    static Nft
     
    static Nft
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Nft
    parseFrom(byte[] data)
     
    static Nft
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Nft
    parseFrom(com.google.protobuf.ByteString data)
     
    static Nft
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Nft
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Nft
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Nft
     
    static Nft
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Nft
     
    static Nft
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Nft>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • NFT_ID_FIELD_NUMBER

      public static final int NFT_ID_FIELD_NUMBER
      See Also:
    • OWNER_ID_FIELD_NUMBER

      public static final int OWNER_ID_FIELD_NUMBER
      See Also:
    • SPENDER_ID_FIELD_NUMBER

      public static final int SPENDER_ID_FIELD_NUMBER
      See Also:
    • MINT_TIME_FIELD_NUMBER

      public static final int MINT_TIME_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_FIELD_NUMBER
      See Also:
    • OWNER_PREVIOUS_NFT_ID_FIELD_NUMBER

      public static final int OWNER_PREVIOUS_NFT_ID_FIELD_NUMBER
      See Also:
    • OWNER_NEXT_NFT_ID_FIELD_NUMBER

      public static final int OWNER_NEXT_NFT_ID_FIELD_NUMBER
      See Also:
  • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • parseFrom

      public static Nft parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Nft parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Nft parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Nft parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Nft parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Nft parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Nft parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Nft parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Nft parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Nft parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Nft parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Nft parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static Nft.Builder newBuilder()
    • newBuilder

      public static Nft.Builder newBuilder(Nft prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Nft,Nft.Builder>
    • getDefaultInstance

      public static Nft getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Nft> parser()