Class NftTransfer

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 Classes
    Modifier and Type
    Class
    Description
    static 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 enum 
     
    static enum 
     

    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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    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.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<NftTransfer>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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

      public NftTransfer.SenderAllowanceHookCallCase getSenderAllowanceHookCallCase()
      Specified by:
      getSenderAllowanceHookCallCase in interface NftTransferOrBuilder
    • getReceiverAllowanceHookCallCase

      public NftTransfer.ReceiverAllowanceHookCallCase getReceiverAllowanceHookCallCase()
      Specified by:
      getReceiverAllowanceHookCallCase in interface NftTransferOrBuilder
    • hasSenderAccountID

      public boolean hasSenderAccountID()
       *
       An Account identifier for the sender.
       
      .proto.AccountID senderAccountID = 1;
      Specified by:
      hasSenderAccountID in interface NftTransferOrBuilder
      Returns:
      Whether the senderAccountID field is set.
    • getSenderAccountID

      public AccountID getSenderAccountID()
       *
       An Account identifier for the sender.
       
      .proto.AccountID senderAccountID = 1;
      Specified by:
      getSenderAccountID in interface NftTransferOrBuilder
      Returns:
      The senderAccountID.
    • hasReceiverAccountID

      public boolean hasReceiverAccountID()
       *
       An Account identifier for the receiver.
       
      .proto.AccountID receiverAccountID = 2;
      Specified by:
      hasReceiverAccountID in interface NftTransferOrBuilder
      Returns:
      Whether the receiverAccountID field is set.
    • getReceiverAccountID

      public AccountID getReceiverAccountID()
       *
       An Account identifier for the receiver.
       
      .proto.AccountID receiverAccountID = 2;
      Specified by:
      getReceiverAccountID in interface NftTransferOrBuilder
      Returns:
      The receiverAccountID.
    • getSerialNumber

      public long getSerialNumber()
       *
       A serial number for the NFT to transfer.
       
      int64 serialNumber = 3;
      Specified by:
      getSerialNumber in interface NftTransferOrBuilder
      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:
      getIsApproval in interface NftTransferOrBuilder
      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:
      hasPreTxSenderAllowanceHook in interface NftTransferOrBuilder
      Returns:
      Whether the preTxSenderAllowanceHook field is set.
    • getPreTxSenderAllowanceHook

      public HookCall 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:
      getPreTxSenderAllowanceHook in interface NftTransferOrBuilder
      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:
      hasPrePostTxSenderAllowanceHook in interface NftTransferOrBuilder
      Returns:
      Whether the prePostTxSenderAllowanceHook field is set.
    • getPrePostTxSenderAllowanceHook

      public HookCall 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:
      getPrePostTxSenderAllowanceHook in interface NftTransferOrBuilder
      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:
      hasPreTxReceiverAllowanceHook in interface NftTransferOrBuilder
      Returns:
      Whether the preTxReceiverAllowanceHook field is set.
    • getPreTxReceiverAllowanceHook

      public HookCall 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:
      getPreTxReceiverAllowanceHook in interface NftTransferOrBuilder
      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:
      hasPrePostTxReceiverAllowanceHook in interface NftTransferOrBuilder
      Returns:
      Whether the prePostTxReceiverAllowanceHook field is set.
    • getPrePostTxReceiverAllowanceHook

      public HookCall 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:
      getPrePostTxReceiverAllowanceHook in interface NftTransferOrBuilder
      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

      public static NftTransfer parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NftTransfer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NftTransfer parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NftTransfer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NftTransfer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NftTransfer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static NftTransfer.Builder newBuilder()
    • newBuilder

      public static NftTransfer.Builder newBuilder(NftTransfer prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<NftTransfer,NftTransfer.Builder>
    • getDefaultInstance

      public static NftTransfer getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NftTransfer> parser()