java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<NftTransfer,NftTransfer.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<NftTransfer,NftTransfer.Builder>
com.hedera.hashgraph.sdk.proto.NftTransfer.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,NftTransferOrBuilder,Cloneable
- Enclosing class:
NftTransfer
public static final class NftTransfer.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<NftTransfer,NftTransfer.Builder>
implements NftTransferOrBuilder
* A NFT transfer.<br/> This refers to a sender account, a receiver account, and the serial number of an NFT to transfer from sender to receiver. Each `NftTransfer` SHALL be contained in another message (typically `TokenTransferList`) that details which `Token` type applies to this NFT transfer.Protobuf type
proto.NftTransfer-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* An approved allowance flag.<br/> If true then the transfer is expected to be an approved allowance.* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)* An Account identifier for the receiver.* An Account identifier for the sender.* A serial number for the NFT to transfer.boolean* An approved allowance flag.<br/> If true then the transfer is expected to be an approved allowance.* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)* An Account identifier for the receiver.* An Account identifier for the sender.long* A serial number for the NFT to transfer.boolean* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).boolean* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).boolean* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)boolean* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)boolean* An Account identifier for the receiver.boolean* An Account identifier for the sender.* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)mergeReceiverAccountID(AccountID value) * An Account identifier for the receiver.mergeSenderAccountID(AccountID value) * An Account identifier for the sender.setIsApproval(boolean value) * An approved allowance flag.<br/> If true then the transfer is expected to be an approved allowance.* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).setPrePostTxReceiverAllowanceHook(HookCall.Builder builderForValue) * Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).setPrePostTxSenderAllowanceHook(HookCall.Builder builderForValue) * Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)setPreTxReceiverAllowanceHook(HookCall.Builder builderForValue) * A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)setPreTxSenderAllowanceHook(HookCall.Builder builderForValue) * A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)setReceiverAccountID(AccountID value) * An Account identifier for the receiver.setReceiverAccountID(AccountID.Builder builderForValue) * An Account identifier for the receiver.setSenderAccountID(AccountID value) * An Account identifier for the sender.setSenderAccountID(AccountID.Builder builderForValue) * An Account identifier for the sender.setSerialNumber(long value) * A serial number for the NFT to transfer.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
-
getSenderAllowanceHookCallCase
- Specified by:
getSenderAllowanceHookCallCasein interfaceNftTransferOrBuilder
-
clearSenderAllowanceHookCall
-
getReceiverAllowanceHookCallCase
- Specified by:
getReceiverAllowanceHookCallCasein interfaceNftTransferOrBuilder
-
clearReceiverAllowanceHookCall
-
hasSenderAccountID
public boolean hasSenderAccountID()* An Account identifier for the sender.
.proto.AccountID senderAccountID = 1;- Specified by:
hasSenderAccountIDin interfaceNftTransferOrBuilder- Returns:
- Whether the senderAccountID field is set.
-
getSenderAccountID
* An Account identifier for the sender.
.proto.AccountID senderAccountID = 1;- Specified by:
getSenderAccountIDin interfaceNftTransferOrBuilder- Returns:
- The senderAccountID.
-
setSenderAccountID
* An Account identifier for the sender.
.proto.AccountID senderAccountID = 1; -
setSenderAccountID
* An Account identifier for the sender.
.proto.AccountID senderAccountID = 1; -
mergeSenderAccountID
* An Account identifier for the sender.
.proto.AccountID senderAccountID = 1; -
clearSenderAccountID
* An Account identifier for the sender.
.proto.AccountID senderAccountID = 1; -
hasReceiverAccountID
public boolean hasReceiverAccountID()* An Account identifier for the receiver.
.proto.AccountID receiverAccountID = 2;- Specified by:
hasReceiverAccountIDin interfaceNftTransferOrBuilder- Returns:
- Whether the receiverAccountID field is set.
-
getReceiverAccountID
* An Account identifier for the receiver.
.proto.AccountID receiverAccountID = 2;- Specified by:
getReceiverAccountIDin interfaceNftTransferOrBuilder- Returns:
- The receiverAccountID.
-
setReceiverAccountID
* An Account identifier for the receiver.
.proto.AccountID receiverAccountID = 2; -
setReceiverAccountID
* An Account identifier for the receiver.
.proto.AccountID receiverAccountID = 2; -
mergeReceiverAccountID
* An Account identifier for the receiver.
.proto.AccountID receiverAccountID = 2; -
clearReceiverAccountID
* An Account identifier for the receiver.
.proto.AccountID receiverAccountID = 2; -
getSerialNumber
public long getSerialNumber()* A serial number for the NFT to transfer.
int64 serialNumber = 3;- Specified by:
getSerialNumberin interfaceNftTransferOrBuilder- Returns:
- The serialNumber.
-
setSerialNumber
* A serial number for the NFT to transfer.
int64 serialNumber = 3;- Parameters:
value- The serialNumber to set.- Returns:
- This builder for chaining.
-
clearSerialNumber
* A serial number for the NFT to transfer.
int64 serialNumber = 3;- Returns:
- This builder for chaining.
-
getIsApproval
public boolean getIsApproval()* An approved allowance flag.<br/> If true then the transfer is expected to be an approved allowance. <p> If set, `senderAccountID` SHALL be the owner that previously approved the allowance.<br/> If set, the `senderAccountID` MUST be the "payer" account for the transaction <br/> The default value SHALL be false (unset).
bool is_approval = 4;- Specified by:
getIsApprovalin interfaceNftTransferOrBuilder- Returns:
- The isApproval.
-
setIsApproval
* An approved allowance flag.<br/> If true then the transfer is expected to be an approved allowance. <p> If set, `senderAccountID` SHALL be the owner that previously approved the allowance.<br/> If set, the `senderAccountID` MUST be the "payer" account for the transaction <br/> The default value SHALL be false (unset).
bool is_approval = 4;- Parameters:
value- The isApproval to set.- Returns:
- This builder for chaining.
-
clearIsApproval
* An approved allowance flag.<br/> If true then the transfer is expected to be an approved allowance. <p> If set, `senderAccountID` SHALL be the owner that previously approved the allowance.<br/> If set, the `senderAccountID` MUST be the "payer" account for the transaction <br/> The default value SHALL be false (unset).
bool is_approval = 4;- Returns:
- This builder for chaining.
-
hasPreTxSenderAllowanceHook
public boolean hasPreTxSenderAllowanceHook()* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_sender_allowance_hook = 5;- Specified by:
hasPreTxSenderAllowanceHookin interfaceNftTransferOrBuilder- Returns:
- Whether the preTxSenderAllowanceHook field is set.
-
getPreTxSenderAllowanceHook
* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_sender_allowance_hook = 5;- Specified by:
getPreTxSenderAllowanceHookin interfaceNftTransferOrBuilder- Returns:
- The preTxSenderAllowanceHook.
-
setPreTxSenderAllowanceHook
* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_sender_allowance_hook = 5; -
setPreTxSenderAllowanceHook
* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_sender_allowance_hook = 5; -
mergePreTxSenderAllowanceHook
* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_sender_allowance_hook = 5; -
clearPreTxSenderAllowanceHook
* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_sender_allowance_hook = 5; -
hasPrePostTxSenderAllowanceHook
public boolean hasPrePostTxSenderAllowanceHook()* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_sender_allowance_hook = 6;- Specified by:
hasPrePostTxSenderAllowanceHookin interfaceNftTransferOrBuilder- Returns:
- Whether the prePostTxSenderAllowanceHook field is set.
-
getPrePostTxSenderAllowanceHook
* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_sender_allowance_hook = 6;- Specified by:
getPrePostTxSenderAllowanceHookin interfaceNftTransferOrBuilder- Returns:
- The prePostTxSenderAllowanceHook.
-
setPrePostTxSenderAllowanceHook
* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_sender_allowance_hook = 6; -
setPrePostTxSenderAllowanceHook
* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_sender_allowance_hook = 6; -
mergePrePostTxSenderAllowanceHook
* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_sender_allowance_hook = 6; -
clearPrePostTxSenderAllowanceHook
* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_sender_allowance_hook = 6; -
hasPreTxReceiverAllowanceHook
public boolean hasPreTxReceiverAllowanceHook()* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_receiver_allowance_hook = 7;- Specified by:
hasPreTxReceiverAllowanceHookin interfaceNftTransferOrBuilder- Returns:
- Whether the preTxReceiverAllowanceHook field is set.
-
getPreTxReceiverAllowanceHook
* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_receiver_allowance_hook = 7;- Specified by:
getPreTxReceiverAllowanceHookin interfaceNftTransferOrBuilder- Returns:
- The preTxReceiverAllowanceHook.
-
setPreTxReceiverAllowanceHook
* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_receiver_allowance_hook = 7; -
setPreTxReceiverAllowanceHook
* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_receiver_allowance_hook = 7; -
mergePreTxReceiverAllowanceHook
* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_receiver_allowance_hook = 7; -
clearPreTxReceiverAllowanceHook
* A single call made before attempting the CryptoTransfer, to a method with logical signature allow(HookContext, ProposedTransfers)
.proto.HookCall pre_tx_receiver_allowance_hook = 7; -
hasPrePostTxReceiverAllowanceHook
public boolean hasPrePostTxReceiverAllowanceHook()* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_receiver_allowance_hook = 8;- Specified by:
hasPrePostTxReceiverAllowanceHookin interfaceNftTransferOrBuilder- Returns:
- Whether the prePostTxReceiverAllowanceHook field is set.
-
getPrePostTxReceiverAllowanceHook
* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_receiver_allowance_hook = 8;- Specified by:
getPrePostTxReceiverAllowanceHookin interfaceNftTransferOrBuilder- Returns:
- The prePostTxReceiverAllowanceHook.
-
setPrePostTxReceiverAllowanceHook
* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_receiver_allowance_hook = 8; -
setPrePostTxReceiverAllowanceHook
* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_receiver_allowance_hook = 8; -
mergePrePostTxReceiverAllowanceHook
* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_receiver_allowance_hook = 8; -
clearPrePostTxReceiverAllowanceHook
* Two calls, the first call before attempting the CryptoTransfer, to a method with logical signature allowPre(HookContext, ProposedTransfers); and the second call after attempting the CryptoTransfer, to a method with logical signature allowPost(HookContext, ProposedTransfers).
.proto.HookCall pre_post_tx_receiver_allowance_hook = 8;
-