java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TokenNftInfo,TokenNftInfo.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TokenNftInfo,TokenNftInfo.Builder>
com.hedera.hashgraph.sdk.proto.TokenNftInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,TokenNftInfoOrBuilder,Cloneable
- Enclosing class:
TokenNftInfo
public static final class TokenNftInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<TokenNftInfo,TokenNftInfo.Builder>
implements TokenNftInfoOrBuilder
* Information for one non-fungible/unique token (NFT).Protobuf type
proto.TokenNftInfo-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The current owner of the NFT* The effective consensus timestamp at which the NFT was minted* The ledger ID of the network that generated this response.* Represents the unique metadata of the NFT* A non-fungible/unique token (NFT) identifier.* If an allowance is granted for the NFT, its corresponding spender account* The current owner of the NFT* The effective consensus timestamp at which the NFT was mintedcom.google.protobuf.ByteString* The ledger ID of the network that generated this response.com.google.protobuf.ByteString* Represents the unique metadata of the NFTgetNftID()* A non-fungible/unique token (NFT) identifier.* If an allowance is granted for the NFT, its corresponding spender accountboolean* The current owner of the NFTboolean* The effective consensus timestamp at which the NFT was mintedbooleanhasNftID()* A non-fungible/unique token (NFT) identifier.boolean* If an allowance is granted for the NFT, its corresponding spender accountmergeAccountID(AccountID value) * The current owner of the NFTmergeCreationTime(Timestamp value) * The effective consensus timestamp at which the NFT was mintedmergeNftID(NftID value) * A non-fungible/unique token (NFT) identifier.mergeSpenderId(AccountID value) * If an allowance is granted for the NFT, its corresponding spender accountsetAccountID(AccountID value) * The current owner of the NFTsetAccountID(AccountID.Builder builderForValue) * The current owner of the NFTsetCreationTime(Timestamp value) * The effective consensus timestamp at which the NFT was mintedsetCreationTime(Timestamp.Builder builderForValue) * The effective consensus timestamp at which the NFT was mintedsetLedgerId(com.google.protobuf.ByteString value) * The ledger ID of the network that generated this response.setMetadata(com.google.protobuf.ByteString value) * Represents the unique metadata of the NFT* A non-fungible/unique token (NFT) identifier.setNftID(NftID.Builder builderForValue) * A non-fungible/unique token (NFT) identifier.setSpenderId(AccountID value) * If an allowance is granted for the NFT, its corresponding spender accountsetSpenderId(AccountID.Builder builderForValue) * If an allowance is granted for the NFT, its corresponding spender accountMethods 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()* A non-fungible/unique token (NFT) identifier. <p> This SHALL match the NFT requested.<br/>
.proto.NftID nftID = 1;- Specified by:
hasNftIDin interfaceTokenNftInfoOrBuilder- Returns:
- Whether the nftID field is set.
-
getNftID
* A non-fungible/unique token (NFT) identifier. <p> This SHALL match the NFT requested.<br/>
.proto.NftID nftID = 1;- Specified by:
getNftIDin interfaceTokenNftInfoOrBuilder- Returns:
- The nftID.
-
setNftID
* A non-fungible/unique token (NFT) identifier. <p> This SHALL match the NFT requested.<br/>
.proto.NftID nftID = 1; -
setNftID
* A non-fungible/unique token (NFT) identifier. <p> This SHALL match the NFT requested.<br/>
.proto.NftID nftID = 1; -
mergeNftID
* A non-fungible/unique token (NFT) identifier. <p> This SHALL match the NFT requested.<br/>
.proto.NftID nftID = 1; -
clearNftID
* A non-fungible/unique token (NFT) identifier. <p> This SHALL match the NFT requested.<br/>
.proto.NftID nftID = 1; -
hasAccountID
public boolean hasAccountID()* The current owner of the NFT
.proto.AccountID accountID = 2;- Specified by:
hasAccountIDin interfaceTokenNftInfoOrBuilder- Returns:
- Whether the accountID field is set.
-
getAccountID
* The current owner of the NFT
.proto.AccountID accountID = 2;- Specified by:
getAccountIDin interfaceTokenNftInfoOrBuilder- Returns:
- The accountID.
-
setAccountID
* The current owner of the NFT
.proto.AccountID accountID = 2; -
setAccountID
* The current owner of the NFT
.proto.AccountID accountID = 2; -
mergeAccountID
* The current owner of the NFT
.proto.AccountID accountID = 2; -
clearAccountID
* The current owner of the NFT
.proto.AccountID accountID = 2; -
hasCreationTime
public boolean hasCreationTime()* The effective consensus timestamp at which the NFT was minted
.proto.Timestamp creationTime = 3;- Specified by:
hasCreationTimein interfaceTokenNftInfoOrBuilder- Returns:
- Whether the creationTime field is set.
-
getCreationTime
* The effective consensus timestamp at which the NFT was minted
.proto.Timestamp creationTime = 3;- Specified by:
getCreationTimein interfaceTokenNftInfoOrBuilder- Returns:
- The creationTime.
-
setCreationTime
* The effective consensus timestamp at which the NFT was minted
.proto.Timestamp creationTime = 3; -
setCreationTime
* The effective consensus timestamp at which the NFT was minted
.proto.Timestamp creationTime = 3; -
mergeCreationTime
* The effective consensus timestamp at which the NFT was minted
.proto.Timestamp creationTime = 3; -
clearCreationTime
* The effective consensus timestamp at which the NFT was minted
.proto.Timestamp creationTime = 3; -
getMetadata
public com.google.protobuf.ByteString getMetadata()* Represents the unique metadata of the NFT
bytes metadata = 4;- Specified by:
getMetadatain interfaceTokenNftInfoOrBuilder- Returns:
- The metadata.
-
setMetadata
* Represents the unique metadata of the NFT
bytes metadata = 4;- Parameters:
value- The metadata to set.- Returns:
- This builder for chaining.
-
clearMetadata
* Represents the unique metadata of the NFT
bytes metadata = 4;- Returns:
- This builder for chaining.
-
getLedgerId
public com.google.protobuf.ByteString getLedgerId()* The ledger ID of the network that generated this response. <p> This value SHALL identify the distributed ledger that responded to this query.
bytes ledger_id = 5;- Specified by:
getLedgerIdin interfaceTokenNftInfoOrBuilder- Returns:
- The ledgerId.
-
setLedgerId
* The ledger ID of the network that generated this response. <p> This value SHALL identify the distributed ledger that responded to this query.
bytes ledger_id = 5;- Parameters:
value- The ledgerId to set.- Returns:
- This builder for chaining.
-
clearLedgerId
* The ledger ID of the network that generated this response. <p> This value SHALL identify the distributed ledger that responded to this query.
bytes ledger_id = 5;- Returns:
- This builder for chaining.
-
hasSpenderId
public boolean hasSpenderId()* If an allowance is granted for the NFT, its corresponding spender account
.proto.AccountID spender_id = 6;- Specified by:
hasSpenderIdin interfaceTokenNftInfoOrBuilder- Returns:
- Whether the spenderId field is set.
-
getSpenderId
* If an allowance is granted for the NFT, its corresponding spender account
.proto.AccountID spender_id = 6;- Specified by:
getSpenderIdin interfaceTokenNftInfoOrBuilder- Returns:
- The spenderId.
-
setSpenderId
* If an allowance is granted for the NFT, its corresponding spender account
.proto.AccountID spender_id = 6; -
setSpenderId
* If an allowance is granted for the NFT, its corresponding spender account
.proto.AccountID spender_id = 6; -
mergeSpenderId
* If an allowance is granted for the NFT, its corresponding spender account
.proto.AccountID spender_id = 6; -
clearSpenderId
* If an allowance is granted for the NFT, its corresponding spender account
.proto.AccountID spender_id = 6;
-