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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* 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.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.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.mergeMintTime(Timestamp value) * The consensus time of the TokenMint that created this NFT as offset from the epoch.mergeNftId(NftID value) * The id of this NFT, consisting of a Token ID and serial number.mergeOwnerId(AccountID value) * The account or contract id that owns this NFT.mergeOwnerNextNftId(NftID value) * The NFT ID of the next entry in the current owner's "virtual double-linked list" of owned NFTs.mergeOwnerPreviousNftId(NftID value) * The NFT ID of the previous entry in the current owner's "virtual double-linked list" of owned NFTs.mergeSpenderId(AccountID value) * The account or contract id approved to spend this NFT.setMetadata(com.google.protobuf.ByteString value) * The metadata bytes for this NFT.setMintTime(Timestamp value) * The consensus time of the TokenMint that created this NFT as offset from the epoch.setMintTime(Timestamp.Builder builderForValue) * 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.setNftId(NftID.Builder builderForValue) * The id of this NFT, consisting of a Token ID and serial number.setOwnerId(AccountID value) * The account or contract id that owns this NFT.setOwnerId(AccountID.Builder builderForValue) * The account or contract id that owns this NFT.setOwnerNextNftId(NftID value) * The NFT ID of the next entry in the current owner's "virtual double-linked list" of owned NFTs.setOwnerNextNftId(NftID.Builder builderForValue) * The NFT ID of the next entry in the current owner's "virtual double-linked list" of owned NFTs.setOwnerPreviousNftId(NftID value) * The NFT ID of the previous entry in the current owner's "virtual double-linked list" of owned NFTs.setOwnerPreviousNftId(NftID.Builder builderForValue) * The NFT ID of the previous entry in the current owner's "virtual double-linked list" of owned NFTs.setSpenderId(AccountID value) * The account or contract id approved to spend this NFT.setSpenderId(AccountID.Builder builderForValue) * The account or contract id approved to spend this NFT.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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.
-
setNftId
* The id of this NFT, consisting of a Token ID and serial number.
.proto.NftID nft_id = 1; -
setNftId
* The id of this NFT, consisting of a Token ID and serial number.
.proto.NftID nft_id = 1; -
mergeNftId
* The id of this NFT, consisting of a Token ID and serial number.
.proto.NftID nft_id = 1; -
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:
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.
-
setOwnerId
* 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
* 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
* 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
* 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:
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.
-
setSpenderId
* 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
* 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
* 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
* 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:
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.
-
setMintTime
* 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
* 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
* 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
* 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:
getMetadatain interfaceNftOrBuilder- Returns:
- The metadata.
-
setMetadata
* 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
* 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:
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.
-
setOwnerPreviousNftId
* 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
* 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
* 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
* 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:
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.
-
setOwnerNextNftId
* 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
* 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
* 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
* 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;
-