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 ClassesModifier and TypeClassDescriptionstatic 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Nftcom.google.protobuf.ByteString* The metadata bytes for this NFT.* The consensus time of the TokenMint that created this NFT as offset from the epoch.getNftId()* 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.booleanhasNftId()* 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.static Nft.Builderstatic Nft.BuildernewBuilder(Nft prototype) static NftparseDelimitedFrom(InputStream input) static NftparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NftparseFrom(byte[] data) static NftparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NftparseFrom(com.google.protobuf.ByteString data) static NftparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NftparseFrom(com.google.protobuf.CodedInputStream input) static NftparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NftparseFrom(InputStream input) static NftparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NftparseFrom(ByteBuffer data) static NftparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Nft> parser()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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
hasNftIdin interfaceNftOrBuilder- Returns:
- Whether the nftId field is set.
-
getNftId
* The id of this NFT, consisting of a Token ID and serial number.
.proto.NftID nft_id = 1;- Specified by:
getNftIdin interfaceNftOrBuilder- 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:
hasOwnerIdin interfaceNftOrBuilder- Returns:
- Whether the ownerId field is set.
-
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:
getOwnerIdin interfaceNftOrBuilder- 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:
hasSpenderIdin interfaceNftOrBuilder- Returns:
- Whether the spenderId field is set.
-
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:
getSpenderIdin interfaceNftOrBuilder- 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:
hasMintTimein interfaceNftOrBuilder- Returns:
- Whether the mintTime field is set.
-
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:
getMintTimein interfaceNftOrBuilder- 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:
getMetadatain interfaceNftOrBuilder- 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:
hasOwnerPreviousNftIdin interfaceNftOrBuilder- Returns:
- Whether the ownerPreviousNftId field is set.
-
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:
getOwnerPreviousNftIdin interfaceNftOrBuilder- 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:
hasOwnerNextNftIdin interfaceNftOrBuilder- Returns:
- Whether the ownerNextNftId field is set.
-
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:
getOwnerNextNftIdin interfaceNftOrBuilder- 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
- 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
- Throws:
IOException
-
parseFrom
public static Nft parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Nft parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Nft parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Nft,Nft.Builder>
-
getDefaultInstance
-
parser
-