Class NftTransfer.Builder

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
  • Method Details

    • getSenderAllowanceHookCallCase

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

      public NftTransfer.Builder clearSenderAllowanceHookCall()
    • getReceiverAllowanceHookCallCase

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

      public NftTransfer.Builder clearReceiverAllowanceHookCall()
    • 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.
    • setSenderAccountID

      public NftTransfer.Builder setSenderAccountID(AccountID value)
       *
       An Account identifier for the sender.
       
      .proto.AccountID senderAccountID = 1;
    • setSenderAccountID

      public NftTransfer.Builder setSenderAccountID(AccountID.Builder builderForValue)
       *
       An Account identifier for the sender.
       
      .proto.AccountID senderAccountID = 1;
    • mergeSenderAccountID

      public NftTransfer.Builder mergeSenderAccountID(AccountID value)
       *
       An Account identifier for the sender.
       
      .proto.AccountID senderAccountID = 1;
    • clearSenderAccountID

      public NftTransfer.Builder 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:
      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.
    • setReceiverAccountID

      public NftTransfer.Builder setReceiverAccountID(AccountID value)
       *
       An Account identifier for the receiver.
       
      .proto.AccountID receiverAccountID = 2;
    • setReceiverAccountID

      public NftTransfer.Builder setReceiverAccountID(AccountID.Builder builderForValue)
       *
       An Account identifier for the receiver.
       
      .proto.AccountID receiverAccountID = 2;
    • mergeReceiverAccountID

      public NftTransfer.Builder mergeReceiverAccountID(AccountID value)
       *
       An Account identifier for the receiver.
       
      .proto.AccountID receiverAccountID = 2;
    • clearReceiverAccountID

      public NftTransfer.Builder 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:
      getSerialNumber in interface NftTransferOrBuilder
      Returns:
      The serialNumber.
    • setSerialNumber

      public NftTransfer.Builder setSerialNumber(long value)
       *
       A serial number for the NFT to transfer.
       
      int64 serialNumber = 3;
      Parameters:
      value - The serialNumber to set.
      Returns:
      This builder for chaining.
    • clearSerialNumber

      public NftTransfer.Builder 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:
      getIsApproval in interface NftTransferOrBuilder
      Returns:
      The isApproval.
    • setIsApproval

      public NftTransfer.Builder setIsApproval(boolean value)
       *
       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

      public NftTransfer.Builder 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:
      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.
    • setPreTxSenderAllowanceHook

      public NftTransfer.Builder setPreTxSenderAllowanceHook(HookCall value)
       *
       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

      public NftTransfer.Builder setPreTxSenderAllowanceHook(HookCall.Builder builderForValue)
       *
       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

      public NftTransfer.Builder mergePreTxSenderAllowanceHook(HookCall value)
       *
       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

      public NftTransfer.Builder 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:
      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.
    • setPrePostTxSenderAllowanceHook

      public NftTransfer.Builder setPrePostTxSenderAllowanceHook(HookCall value)
       *
       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

      public NftTransfer.Builder 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).
       
      .proto.HookCall pre_post_tx_sender_allowance_hook = 6;
    • mergePrePostTxSenderAllowanceHook

      public NftTransfer.Builder mergePrePostTxSenderAllowanceHook(HookCall value)
       *
       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

      public NftTransfer.Builder 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:
      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.
    • setPreTxReceiverAllowanceHook

      public NftTransfer.Builder setPreTxReceiverAllowanceHook(HookCall value)
       *
       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

      public NftTransfer.Builder setPreTxReceiverAllowanceHook(HookCall.Builder builderForValue)
       *
       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

      public NftTransfer.Builder mergePreTxReceiverAllowanceHook(HookCall value)
       *
       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

      public NftTransfer.Builder 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:
      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.
    • setPrePostTxReceiverAllowanceHook

      public NftTransfer.Builder setPrePostTxReceiverAllowanceHook(HookCall value)
       *
       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

      public NftTransfer.Builder 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).
       
      .proto.HookCall pre_post_tx_receiver_allowance_hook = 8;
    • mergePrePostTxReceiverAllowanceHook

      public NftTransfer.Builder mergePrePostTxReceiverAllowanceHook(HookCall value)
       *
       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

      public NftTransfer.Builder 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;