java.lang.Object
com.google.protobuf.AbstractMessageLite<NftTransfer,NftTransfer.Builder>
com.google.protobuf.GeneratedMessageLite<NftTransfer,NftTransfer.Builder>
com.hedera.hashgraph.sdk.proto.NftTransfer
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,NftTransferOrBuilder
@Generated
public final class NftTransfer
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* 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.static enumstatic enumNested 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 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 NftTransferboolean* 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.static NftTransfer.Builderstatic NftTransfer.BuildernewBuilder(NftTransfer prototype) static NftTransferparseDelimitedFrom(InputStream input) static NftTransferparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NftTransferparseFrom(byte[] data) static NftTransferparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NftTransferparseFrom(com.google.protobuf.ByteString data) static NftTransferparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NftTransferparseFrom(com.google.protobuf.CodedInputStream input) static NftTransferparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NftTransferparseFrom(InputStream input) static NftTransferparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NftTransferparseFrom(ByteBuffer data) static NftTransferparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<NftTransfer> 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
-
SENDERACCOUNTID_FIELD_NUMBER
public static final int SENDERACCOUNTID_FIELD_NUMBER- See Also:
-
RECEIVERACCOUNTID_FIELD_NUMBER
public static final int RECEIVERACCOUNTID_FIELD_NUMBER- See Also:
-
SERIALNUMBER_FIELD_NUMBER
public static final int SERIALNUMBER_FIELD_NUMBER- See Also:
-
IS_APPROVAL_FIELD_NUMBER
public static final int IS_APPROVAL_FIELD_NUMBER- See Also:
-
PRE_TX_SENDER_ALLOWANCE_HOOK_FIELD_NUMBER
public static final int PRE_TX_SENDER_ALLOWANCE_HOOK_FIELD_NUMBER- See Also:
-
PRE_POST_TX_SENDER_ALLOWANCE_HOOK_FIELD_NUMBER
public static final int PRE_POST_TX_SENDER_ALLOWANCE_HOOK_FIELD_NUMBER- See Also:
-
PRE_TX_RECEIVER_ALLOWANCE_HOOK_FIELD_NUMBER
public static final int PRE_TX_RECEIVER_ALLOWANCE_HOOK_FIELD_NUMBER- See Also:
-
PRE_POST_TX_RECEIVER_ALLOWANCE_HOOK_FIELD_NUMBER
public static final int PRE_POST_TX_RECEIVER_ALLOWANCE_HOOK_FIELD_NUMBER- See Also:
-
-
Method Details
-
getSenderAllowanceHookCallCase
- Specified by:
getSenderAllowanceHookCallCasein interfaceNftTransferOrBuilder
-
getReceiverAllowanceHookCallCase
- Specified by:
getReceiverAllowanceHookCallCasein interfaceNftTransferOrBuilder
-
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.
-
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.
-
getSerialNumber
public long getSerialNumber()* A serial number for the NFT to transfer.
int64 serialNumber = 3;- Specified by:
getSerialNumberin interfaceNftTransferOrBuilder- Returns:
- The serialNumber.
-
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.
-
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.
-
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.
-
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.
-
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.
-
parseFrom
public static NftTransfer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NftTransfer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NftTransfer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NftTransfer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NftTransfer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NftTransfer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NftTransfer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static NftTransfer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NftTransfer 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<NftTransfer,NftTransfer.Builder>
-
getDefaultInstance
-
parser
-