Class CryptoDeleteTransactionBody.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<CryptoDeleteTransactionBody,CryptoDeleteTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<CryptoDeleteTransactionBody,CryptoDeleteTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.CryptoDeleteTransactionBody.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, CryptoDeleteTransactionBodyOrBuilder, Cloneable
Enclosing class:
CryptoDeleteTransactionBody

public static final class CryptoDeleteTransactionBody.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<CryptoDeleteTransactionBody,CryptoDeleteTransactionBody.Builder> implements CryptoDeleteTransactionBodyOrBuilder
 *
 Delete an account.<br/>
 This will mark an account deleted, and transfer all tokens to a "sweep"
 account.

 A deleted account SHALL NOT hold a balance in any token type.<br/>
 A deleted account SHALL remain in state until it expires.<br/>
 Transfers that would increase the balance of a deleted account
 SHALL fail.<br/>
 A deleted account MAY be subject of a `cryptoUpdate` transaction to extend
 its expiration.<br/>
 When a deleted account expires it SHALL be removed entirely, and SHALL NOT
 be archived.

 ### Block Stream Effects
 None
 
Protobuf type proto.CryptoDeleteTransactionBody
  • Method Details

    • hasTransferAccountID

      public boolean hasTransferAccountID()
       *
       An account identifier.
       <p>
       The identified account SHALL receive all tokens, token balances,
       and non-fungible/unique from the deleted account.<br/>
       The identified account MUST sign this transaction.<br/>
       If not set, the account to be deleted MUST NOT have a balance in any
       token, a balance in HBAR, or hold any NFT.
       
      .proto.AccountID transferAccountID = 1;
      Specified by:
      hasTransferAccountID in interface CryptoDeleteTransactionBodyOrBuilder
      Returns:
      Whether the transferAccountID field is set.
    • getTransferAccountID

      public AccountID getTransferAccountID()
       *
       An account identifier.
       <p>
       The identified account SHALL receive all tokens, token balances,
       and non-fungible/unique from the deleted account.<br/>
       The identified account MUST sign this transaction.<br/>
       If not set, the account to be deleted MUST NOT have a balance in any
       token, a balance in HBAR, or hold any NFT.
       
      .proto.AccountID transferAccountID = 1;
      Specified by:
      getTransferAccountID in interface CryptoDeleteTransactionBodyOrBuilder
      Returns:
      The transferAccountID.
    • setTransferAccountID

      public CryptoDeleteTransactionBody.Builder setTransferAccountID(AccountID value)
       *
       An account identifier.
       <p>
       The identified account SHALL receive all tokens, token balances,
       and non-fungible/unique from the deleted account.<br/>
       The identified account MUST sign this transaction.<br/>
       If not set, the account to be deleted MUST NOT have a balance in any
       token, a balance in HBAR, or hold any NFT.
       
      .proto.AccountID transferAccountID = 1;
    • setTransferAccountID

      public CryptoDeleteTransactionBody.Builder setTransferAccountID(AccountID.Builder builderForValue)
       *
       An account identifier.
       <p>
       The identified account SHALL receive all tokens, token balances,
       and non-fungible/unique from the deleted account.<br/>
       The identified account MUST sign this transaction.<br/>
       If not set, the account to be deleted MUST NOT have a balance in any
       token, a balance in HBAR, or hold any NFT.
       
      .proto.AccountID transferAccountID = 1;
    • mergeTransferAccountID

      public CryptoDeleteTransactionBody.Builder mergeTransferAccountID(AccountID value)
       *
       An account identifier.
       <p>
       The identified account SHALL receive all tokens, token balances,
       and non-fungible/unique from the deleted account.<br/>
       The identified account MUST sign this transaction.<br/>
       If not set, the account to be deleted MUST NOT have a balance in any
       token, a balance in HBAR, or hold any NFT.
       
      .proto.AccountID transferAccountID = 1;
    • clearTransferAccountID

      public CryptoDeleteTransactionBody.Builder clearTransferAccountID()
       *
       An account identifier.
       <p>
       The identified account SHALL receive all tokens, token balances,
       and non-fungible/unique from the deleted account.<br/>
       The identified account MUST sign this transaction.<br/>
       If not set, the account to be deleted MUST NOT have a balance in any
       token, a balance in HBAR, or hold any NFT.
       
      .proto.AccountID transferAccountID = 1;
    • hasDeleteAccountID

      public boolean hasDeleteAccountID()
       *
       An account identifier.
       <p>
       This account SHALL be deleted if this transaction succeeds.<br/>
       This account SHOULD NOT hold any balance other than HBAR.<br/>
       If this account _does_ hold balances, the `transferAccountID` value
       MUST be set to a valid transfer account.<br/>
       This account MUST sign this transaction.<br/>
       This field MUST be set to a valid account identifier.
       
      .proto.AccountID deleteAccountID = 2;
      Specified by:
      hasDeleteAccountID in interface CryptoDeleteTransactionBodyOrBuilder
      Returns:
      Whether the deleteAccountID field is set.
    • getDeleteAccountID

      public AccountID getDeleteAccountID()
       *
       An account identifier.
       <p>
       This account SHALL be deleted if this transaction succeeds.<br/>
       This account SHOULD NOT hold any balance other than HBAR.<br/>
       If this account _does_ hold balances, the `transferAccountID` value
       MUST be set to a valid transfer account.<br/>
       This account MUST sign this transaction.<br/>
       This field MUST be set to a valid account identifier.
       
      .proto.AccountID deleteAccountID = 2;
      Specified by:
      getDeleteAccountID in interface CryptoDeleteTransactionBodyOrBuilder
      Returns:
      The deleteAccountID.
    • setDeleteAccountID

      public CryptoDeleteTransactionBody.Builder setDeleteAccountID(AccountID value)
       *
       An account identifier.
       <p>
       This account SHALL be deleted if this transaction succeeds.<br/>
       This account SHOULD NOT hold any balance other than HBAR.<br/>
       If this account _does_ hold balances, the `transferAccountID` value
       MUST be set to a valid transfer account.<br/>
       This account MUST sign this transaction.<br/>
       This field MUST be set to a valid account identifier.
       
      .proto.AccountID deleteAccountID = 2;
    • setDeleteAccountID

      public CryptoDeleteTransactionBody.Builder setDeleteAccountID(AccountID.Builder builderForValue)
       *
       An account identifier.
       <p>
       This account SHALL be deleted if this transaction succeeds.<br/>
       This account SHOULD NOT hold any balance other than HBAR.<br/>
       If this account _does_ hold balances, the `transferAccountID` value
       MUST be set to a valid transfer account.<br/>
       This account MUST sign this transaction.<br/>
       This field MUST be set to a valid account identifier.
       
      .proto.AccountID deleteAccountID = 2;
    • mergeDeleteAccountID

      public CryptoDeleteTransactionBody.Builder mergeDeleteAccountID(AccountID value)
       *
       An account identifier.
       <p>
       This account SHALL be deleted if this transaction succeeds.<br/>
       This account SHOULD NOT hold any balance other than HBAR.<br/>
       If this account _does_ hold balances, the `transferAccountID` value
       MUST be set to a valid transfer account.<br/>
       This account MUST sign this transaction.<br/>
       This field MUST be set to a valid account identifier.
       
      .proto.AccountID deleteAccountID = 2;
    • clearDeleteAccountID

      public CryptoDeleteTransactionBody.Builder clearDeleteAccountID()
       *
       An account identifier.
       <p>
       This account SHALL be deleted if this transaction succeeds.<br/>
       This account SHOULD NOT hold any balance other than HBAR.<br/>
       If this account _does_ hold balances, the `transferAccountID` value
       MUST be set to a valid transfer account.<br/>
       This account MUST sign this transaction.<br/>
       This field MUST be set to a valid account identifier.
       
      .proto.AccountID deleteAccountID = 2;