Class Account.Builder

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

public static final class Account.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Account,Account.Builder> implements AccountOrBuilder
 *
 A single Account in the Hedera distributed ledger.

 Each Account SHALL have a unique three-part identifier, a Key, and one
 or more token balances.<br/>
 Each Account SHALL have an alias, which has multiple forms, and MAY be set automatically.<br/>
 Several additional items SHALL be associated with the Account to enable
 full functionality.<br/>
 Assets SHALL be represented as linked-lists with only the "head" item
 referenced directly in the Account, and the remaining items SHALL be
 accessible via the token relation or unique tokens maps.<br/>
 Accounts, as most items in the network, SHALL have an expiration time,
 recorded as seconds since the epoch, and MUST be "renewed" for a small fee
 at expiration. This helps to reduce the amount of inactive accounts retained
 in state.<br/>
 Another account MAY be designated to pay any renewal fees and automatically
 renew an account for (by default) 30-90 days at a time as a means to
 optionally ensure important accounts remain active.<br/>
 Accounts MAY participate in securing the network by "staking" the account
 balances to a particular network node, and receive a portion of network
 fees as a reward. An account MAY optionally decline these rewards but still
 stake its balances.<br/>
 An account MAY optionally require that inbound transfer transactions be
 signed by that account as receiver
 (in addition to the sender's signature).<br/>
 As with all network entities, Account ID SHALL be represented as
 shard.realm.X.<br/>
 Alias and contractId SHALL be additional identifiers used to connect accounts
 to transactions before the account is fully enabled,
 or in EVM contracts.<br/>

 ---

 #### Alias
 There is considerable complexity with `alias` (aka `evm_address`) for
 Accounts. Much of this comes from the existence of a "hidden" alias for
 almost all accounts, and the reuse of the alias field for both EVM reference
 and "automatic" account creation.

 For the purposes of this specification, we will use the following terms for
 clarity.
 - `key_alias` is the account public key as a protobuf serialized message
 and used for auto-creation and subsequent lookup. This is only valid if
 the account key is a
 single `primitive` key, either ED25519 or ECDSA_SECP256K1.
 - `evm_address` exists for every account and is one of
 - `contract_address`, which is the 20 byte EVM contract address per
 EIP-1014
 - `evm_key_address`, which is the keccak-256 hash of a ECDSA_SECP256K1
 `primitive` key.
 - This is for accounts lazy-created from EVM public keys, when the
 corresponding ECDSA_SECP256K1 public key is presented in a
 transaction signed by the private key for that public key, the
 account is created that key assigned, and the protobuf-serialized
 form is set as the account alias.
 - `long_zero`, is a synthetic 20 byte address inferred for "normally"
 created accounts. It is constructed from the "standard" AccountID as
 follows.
 - 4 byte big-endian shard number
 - 8 byte big-endian realm number
 - 8 byte big-endian entity number

 The `alias` field in the `Account` message SHALL contain one of four values
 for any given account.
 - The `key_alias`, if the account was created by transferring HBAR to the
 account referenced by `key_alias`.
 - The `evm_key_address` if the account was created from an EVM public key
 - The `contract_address` if the account belongs to an EVM contract
 - Not-Set/null/Bytes.EMPTY (collectively `null`) if the account was
 created normally

 If the `alias` field of an `Account` is any form of `null`, then the account
 MAY be referenced by `alias` in an `AccountID` by using the `long_zero`
 address for the account. This "hidden default" alias SHALL NOT be stored,
 but is synthesized by the node software as needed, and may be synthesized by
 an EVM contract or client software as well.

 An AccountID in a transaction MAY reference an `Account` with
 `shard`.`realm`.`alias`.<br/>
 If the account `alias` field is set for an Account, that value SHALL be the
 account alias.<br/>
 If the account `alias` field is not set for an Account, the `long_zero`
 alias SHALL be the account alias.
 
Protobuf type proto.Account
  • Method Details

    • getStakedIdCase

      public Account.StakedIdCase getStakedIdCase()
      Specified by:
      getStakedIdCase in interface AccountOrBuilder
    • clearStakedId

      public Account.Builder clearStakedId()
    • hasAccountId

      public boolean hasAccountId()
       *
       The unique ID of this account.
       <p>
       An account ID, when assigned to this field, SHALL be of
       the form `shard.realm.number`.<br/>
       Transactions MAY reference the account by alias, but the account itself
       MUST always have a purely numeric identifier. This numeric ID is the
       value used to reference the account in query responses, transaction
       receipts, transaction records, and the block stream.
       
      .proto.AccountID account_id = 1;
      Specified by:
      hasAccountId in interface AccountOrBuilder
      Returns:
      Whether the accountId field is set.
    • getAccountId

      public AccountID getAccountId()
       *
       The unique ID of this account.
       <p>
       An account ID, when assigned to this field, SHALL be of
       the form `shard.realm.number`.<br/>
       Transactions MAY reference the account by alias, but the account itself
       MUST always have a purely numeric identifier. This numeric ID is the
       value used to reference the account in query responses, transaction
       receipts, transaction records, and the block stream.
       
      .proto.AccountID account_id = 1;
      Specified by:
      getAccountId in interface AccountOrBuilder
      Returns:
      The accountId.
    • setAccountId

      public Account.Builder setAccountId(AccountID value)
       *
       The unique ID of this account.
       <p>
       An account ID, when assigned to this field, SHALL be of
       the form `shard.realm.number`.<br/>
       Transactions MAY reference the account by alias, but the account itself
       MUST always have a purely numeric identifier. This numeric ID is the
       value used to reference the account in query responses, transaction
       receipts, transaction records, and the block stream.
       
      .proto.AccountID account_id = 1;
    • setAccountId

      public Account.Builder setAccountId(AccountID.Builder builderForValue)
       *
       The unique ID of this account.
       <p>
       An account ID, when assigned to this field, SHALL be of
       the form `shard.realm.number`.<br/>
       Transactions MAY reference the account by alias, but the account itself
       MUST always have a purely numeric identifier. This numeric ID is the
       value used to reference the account in query responses, transaction
       receipts, transaction records, and the block stream.
       
      .proto.AccountID account_id = 1;
    • mergeAccountId

      public Account.Builder mergeAccountId(AccountID value)
       *
       The unique ID of this account.
       <p>
       An account ID, when assigned to this field, SHALL be of
       the form `shard.realm.number`.<br/>
       Transactions MAY reference the account by alias, but the account itself
       MUST always have a purely numeric identifier. This numeric ID is the
       value used to reference the account in query responses, transaction
       receipts, transaction records, and the block stream.
       
      .proto.AccountID account_id = 1;
    • clearAccountId

      public Account.Builder clearAccountId()
       *
       The unique ID of this account.
       <p>
       An account ID, when assigned to this field, SHALL be of
       the form `shard.realm.number`.<br/>
       Transactions MAY reference the account by alias, but the account itself
       MUST always have a purely numeric identifier. This numeric ID is the
       value used to reference the account in query responses, transaction
       receipts, transaction records, and the block stream.
       
      .proto.AccountID account_id = 1;
    • getAlias

      public com.google.protobuf.ByteString getAlias()
       *
       An account EVM alias.
       <p>
       This is a value used in some contexts to reference an account when the
       numeric account identifier is not available.<br/>
       This field, when set to a non-default value, is immutable and
       SHALL NOT be changed.
       
      bytes alias = 2;
      Specified by:
      getAlias in interface AccountOrBuilder
      Returns:
      The alias.
    • setAlias

      public Account.Builder setAlias(com.google.protobuf.ByteString value)
       *
       An account EVM alias.
       <p>
       This is a value used in some contexts to reference an account when the
       numeric account identifier is not available.<br/>
       This field, when set to a non-default value, is immutable and
       SHALL NOT be changed.
       
      bytes alias = 2;
      Parameters:
      value - The alias to set.
      Returns:
      This builder for chaining.
    • clearAlias

      public Account.Builder clearAlias()
       *
       An account EVM alias.
       <p>
       This is a value used in some contexts to reference an account when the
       numeric account identifier is not available.<br/>
       This field, when set to a non-default value, is immutable and
       SHALL NOT be changed.
       
      bytes alias = 2;
      Returns:
      This builder for chaining.
    • hasKey

      public boolean hasKey()
       *
       The key to be used to sign transactions from this account, if any.
       <p>
       This key SHALL NOT be set for hollow accounts until the account
       is finalized.<br/>
       This key SHALL be set on all other accounts, except for certain
       immutable accounts (0.0.800 and 0.0.801) necessary for network function
       and otherwise secured by the governing council.
       
      .proto.Key key = 3;
      Specified by:
      hasKey in interface AccountOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public Key getKey()
       *
       The key to be used to sign transactions from this account, if any.
       <p>
       This key SHALL NOT be set for hollow accounts until the account
       is finalized.<br/>
       This key SHALL be set on all other accounts, except for certain
       immutable accounts (0.0.800 and 0.0.801) necessary for network function
       and otherwise secured by the governing council.
       
      .proto.Key key = 3;
      Specified by:
      getKey in interface AccountOrBuilder
      Returns:
      The key.
    • setKey

      public Account.Builder setKey(Key value)
       *
       The key to be used to sign transactions from this account, if any.
       <p>
       This key SHALL NOT be set for hollow accounts until the account
       is finalized.<br/>
       This key SHALL be set on all other accounts, except for certain
       immutable accounts (0.0.800 and 0.0.801) necessary for network function
       and otherwise secured by the governing council.
       
      .proto.Key key = 3;
    • setKey

      public Account.Builder setKey(Key.Builder builderForValue)
       *
       The key to be used to sign transactions from this account, if any.
       <p>
       This key SHALL NOT be set for hollow accounts until the account
       is finalized.<br/>
       This key SHALL be set on all other accounts, except for certain
       immutable accounts (0.0.800 and 0.0.801) necessary for network function
       and otherwise secured by the governing council.
       
      .proto.Key key = 3;
    • mergeKey

      public Account.Builder mergeKey(Key value)
       *
       The key to be used to sign transactions from this account, if any.
       <p>
       This key SHALL NOT be set for hollow accounts until the account
       is finalized.<br/>
       This key SHALL be set on all other accounts, except for certain
       immutable accounts (0.0.800 and 0.0.801) necessary for network function
       and otherwise secured by the governing council.
       
      .proto.Key key = 3;
    • clearKey

      public Account.Builder clearKey()
       *
       The key to be used to sign transactions from this account, if any.
       <p>
       This key SHALL NOT be set for hollow accounts until the account
       is finalized.<br/>
       This key SHALL be set on all other accounts, except for certain
       immutable accounts (0.0.800 and 0.0.801) necessary for network function
       and otherwise secured by the governing council.
       
      .proto.Key key = 3;
    • getExpirationSecond

      public long getExpirationSecond()
       *
       The current expiration time of this account, in seconds since the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch
       with 0 at `1970-01-01T00:00:00.000Z`.<br/>
       This account SHALL be due standard renewal fees when the network
       consensus time exceeds this time.<br/>
       If rent and expiration are enabled for the network, and automatic
       renewal is enabled for this account, renewal fees SHALL be charged
       after this time, and, if charged, the expiration time SHALL be
       extended for another renewal period.<br/>
       This account MAY be expired and removed from state at any point
       after this time if not renewed.<br/>
       An account holder MAY extend this time by submitting an account
       update transaction to modify expiration time, subject to the current
       maximum expiration time for the network.
       
      int64 expiration_second = 4;
      Specified by:
      getExpirationSecond in interface AccountOrBuilder
      Returns:
      The expirationSecond.
    • setExpirationSecond

      public Account.Builder setExpirationSecond(long value)
       *
       The current expiration time of this account, in seconds since the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch
       with 0 at `1970-01-01T00:00:00.000Z`.<br/>
       This account SHALL be due standard renewal fees when the network
       consensus time exceeds this time.<br/>
       If rent and expiration are enabled for the network, and automatic
       renewal is enabled for this account, renewal fees SHALL be charged
       after this time, and, if charged, the expiration time SHALL be
       extended for another renewal period.<br/>
       This account MAY be expired and removed from state at any point
       after this time if not renewed.<br/>
       An account holder MAY extend this time by submitting an account
       update transaction to modify expiration time, subject to the current
       maximum expiration time for the network.
       
      int64 expiration_second = 4;
      Parameters:
      value - The expirationSecond to set.
      Returns:
      This builder for chaining.
    • clearExpirationSecond

      public Account.Builder clearExpirationSecond()
       *
       The current expiration time of this account, in seconds since the epoch.
       <p>
       For this purpose, `epoch` SHALL be the UNIX epoch
       with 0 at `1970-01-01T00:00:00.000Z`.<br/>
       This account SHALL be due standard renewal fees when the network
       consensus time exceeds this time.<br/>
       If rent and expiration are enabled for the network, and automatic
       renewal is enabled for this account, renewal fees SHALL be charged
       after this time, and, if charged, the expiration time SHALL be
       extended for another renewal period.<br/>
       This account MAY be expired and removed from state at any point
       after this time if not renewed.<br/>
       An account holder MAY extend this time by submitting an account
       update transaction to modify expiration time, subject to the current
       maximum expiration time for the network.
       
      int64 expiration_second = 4;
      Returns:
      This builder for chaining.
    • getTinybarBalance

      public long getTinybarBalance()
       *
       The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR).
       <p>
       This value is a signed integer for efficiency, but MUST always
       be a whole number.
       
      int64 tinybar_balance = 5;
      Specified by:
      getTinybarBalance in interface AccountOrBuilder
      Returns:
      The tinybarBalance.
    • setTinybarBalance

      public Account.Builder setTinybarBalance(long value)
       *
       The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR).
       <p>
       This value is a signed integer for efficiency, but MUST always
       be a whole number.
       
      int64 tinybar_balance = 5;
      Parameters:
      value - The tinybarBalance to set.
      Returns:
      This builder for chaining.
    • clearTinybarBalance

      public Account.Builder clearTinybarBalance()
       *
       The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR).
       <p>
       This value is a signed integer for efficiency, but MUST always
       be a whole number.
       
      int64 tinybar_balance = 5;
      Returns:
      This builder for chaining.
    • getMemo

      public String getMemo()
       *
       A short description of this account.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 6;
      Specified by:
      getMemo in interface AccountOrBuilder
      Returns:
      The memo.
    • getMemoBytes

      public com.google.protobuf.ByteString getMemoBytes()
       *
       A short description of this account.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 6;
      Specified by:
      getMemoBytes in interface AccountOrBuilder
      Returns:
      The bytes for memo.
    • setMemo

      public Account.Builder setMemo(String value)
       *
       A short description of this account.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 6;
      Parameters:
      value - The memo to set.
      Returns:
      This builder for chaining.
    • clearMemo

      public Account.Builder clearMemo()
       *
       A short description of this account.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 6;
      Returns:
      This builder for chaining.
    • setMemoBytes

      public Account.Builder setMemoBytes(com.google.protobuf.ByteString value)
       *
       A short description of this account.
       <p>
       This value, if set, MUST NOT exceed `transaction.maxMemoUtf8Bytes`
       (default 100) bytes when encoded as UTF-8.
       
      string memo = 6;
      Parameters:
      value - The bytes for memo to set.
      Returns:
      This builder for chaining.
    • getDeleted

      public boolean getDeleted()
       *
       A boolean indicating that this account is deleted.
       
      bool deleted = 7;
      Specified by:
      getDeleted in interface AccountOrBuilder
      Returns:
      The deleted.
    • setDeleted

      public Account.Builder setDeleted(boolean value)
       *
       A boolean indicating that this account is deleted.
       
      bool deleted = 7;
      Parameters:
      value - The deleted to set.
      Returns:
      This builder for chaining.
    • clearDeleted

      public Account.Builder clearDeleted()
       *
       A boolean indicating that this account is deleted.
       
      bool deleted = 7;
      Returns:
      This builder for chaining.
    • getStakedToMe

      public long getStakedToMe()
       *
       The amount of HBAR staked to this account by others.
       
      int64 staked_to_me = 8;
      Specified by:
      getStakedToMe in interface AccountOrBuilder
      Returns:
      The stakedToMe.
    • setStakedToMe

      public Account.Builder setStakedToMe(long value)
       *
       The amount of HBAR staked to this account by others.
       
      int64 staked_to_me = 8;
      Parameters:
      value - The stakedToMe to set.
      Returns:
      This builder for chaining.
    • clearStakedToMe

      public Account.Builder clearStakedToMe()
       *
       The amount of HBAR staked to this account by others.
       
      int64 staked_to_me = 8;
      Returns:
      This builder for chaining.
    • getStakePeriodStart

      public long getStakePeriodStart()
       *
       If this account stakes to another account, this value SHALL be set to
       the time when the current period for staking and reward
       calculations began.
       
      int64 stake_period_start = 9;
      Specified by:
      getStakePeriodStart in interface AccountOrBuilder
      Returns:
      The stakePeriodStart.
    • setStakePeriodStart

      public Account.Builder setStakePeriodStart(long value)
       *
       If this account stakes to another account, this value SHALL be set to
       the time when the current period for staking and reward
       calculations began.
       
      int64 stake_period_start = 9;
      Parameters:
      value - The stakePeriodStart to set.
      Returns:
      This builder for chaining.
    • clearStakePeriodStart

      public Account.Builder clearStakePeriodStart()
       *
       If this account stakes to another account, this value SHALL be set to
       the time when the current period for staking and reward
       calculations began.
       
      int64 stake_period_start = 9;
      Returns:
      This builder for chaining.
    • hasStakedAccountId

      public boolean hasStakedAccountId()
       *
       An identifier for the account to which this account is
       staking its balances as a proxy.
       <p>
       If this account is not currently staking its balances, then this
       field, if set, SHALL be the sentinel value of `0.0.0`.
       
      .proto.AccountID staked_account_id = 10;
      Specified by:
      hasStakedAccountId in interface AccountOrBuilder
      Returns:
      Whether the stakedAccountId field is set.
    • getStakedAccountId

      public AccountID getStakedAccountId()
       *
       An identifier for the account to which this account is
       staking its balances as a proxy.
       <p>
       If this account is not currently staking its balances, then this
       field, if set, SHALL be the sentinel value of `0.0.0`.
       
      .proto.AccountID staked_account_id = 10;
      Specified by:
      getStakedAccountId in interface AccountOrBuilder
      Returns:
      The stakedAccountId.
    • setStakedAccountId

      public Account.Builder setStakedAccountId(AccountID value)
       *
       An identifier for the account to which this account is
       staking its balances as a proxy.
       <p>
       If this account is not currently staking its balances, then this
       field, if set, SHALL be the sentinel value of `0.0.0`.
       
      .proto.AccountID staked_account_id = 10;
    • setStakedAccountId

      public Account.Builder setStakedAccountId(AccountID.Builder builderForValue)
       *
       An identifier for the account to which this account is
       staking its balances as a proxy.
       <p>
       If this account is not currently staking its balances, then this
       field, if set, SHALL be the sentinel value of `0.0.0`.
       
      .proto.AccountID staked_account_id = 10;
    • mergeStakedAccountId

      public Account.Builder mergeStakedAccountId(AccountID value)
       *
       An identifier for the account to which this account is
       staking its balances as a proxy.
       <p>
       If this account is not currently staking its balances, then this
       field, if set, SHALL be the sentinel value of `0.0.0`.
       
      .proto.AccountID staked_account_id = 10;
    • clearStakedAccountId

      public Account.Builder clearStakedAccountId()
       *
       An identifier for the account to which this account is
       staking its balances as a proxy.
       <p>
       If this account is not currently staking its balances, then this
       field, if set, SHALL be the sentinel value of `0.0.0`.
       
      .proto.AccountID staked_account_id = 10;
    • hasStakedNodeId

      public boolean hasStakedNodeId()
       *
       An identifier for the node this account is staked to.
       <p>
       If this account is not currently staking its balances, then this
       field, if set, SHALL be the sentinel value of `-1`.
       Wallet software SHOULD surface staking issues to users and provide a
       simple mechanism to update staking to a new node ID in the event the
       prior staked node ID ceases to be valid.
       <p>
       <blockquote>Note: node IDs do fluctuate as node operators change.
       The Account owner MUST submit a new transaction to change this value
       if the current node ID changes or ceases to operate as a node. An
       account with an invalid `staked_node_id` SHALL NOT participate in
       staking until the `staked_node_id` is updated to a valid node ID.
       </blockquote>
       
      int64 staked_node_id = 11;
      Specified by:
      hasStakedNodeId in interface AccountOrBuilder
      Returns:
      Whether the stakedNodeId field is set.
    • getStakedNodeId

      public long getStakedNodeId()
       *
       An identifier for the node this account is staked to.
       <p>
       If this account is not currently staking its balances, then this
       field, if set, SHALL be the sentinel value of `-1`.
       Wallet software SHOULD surface staking issues to users and provide a
       simple mechanism to update staking to a new node ID in the event the
       prior staked node ID ceases to be valid.
       <p>
       <blockquote>Note: node IDs do fluctuate as node operators change.
       The Account owner MUST submit a new transaction to change this value
       if the current node ID changes or ceases to operate as a node. An
       account with an invalid `staked_node_id` SHALL NOT participate in
       staking until the `staked_node_id` is updated to a valid node ID.
       </blockquote>
       
      int64 staked_node_id = 11;
      Specified by:
      getStakedNodeId in interface AccountOrBuilder
      Returns:
      The stakedNodeId.
    • setStakedNodeId

      public Account.Builder setStakedNodeId(long value)
       *
       An identifier for the node this account is staked to.
       <p>
       If this account is not currently staking its balances, then this
       field, if set, SHALL be the sentinel value of `-1`.
       Wallet software SHOULD surface staking issues to users and provide a
       simple mechanism to update staking to a new node ID in the event the
       prior staked node ID ceases to be valid.
       <p>
       <blockquote>Note: node IDs do fluctuate as node operators change.
       The Account owner MUST submit a new transaction to change this value
       if the current node ID changes or ceases to operate as a node. An
       account with an invalid `staked_node_id` SHALL NOT participate in
       staking until the `staked_node_id` is updated to a valid node ID.
       </blockquote>
       
      int64 staked_node_id = 11;
      Parameters:
      value - The stakedNodeId to set.
      Returns:
      This builder for chaining.
    • clearStakedNodeId

      public Account.Builder clearStakedNodeId()
       *
       An identifier for the node this account is staked to.
       <p>
       If this account is not currently staking its balances, then this
       field, if set, SHALL be the sentinel value of `-1`.
       Wallet software SHOULD surface staking issues to users and provide a
       simple mechanism to update staking to a new node ID in the event the
       prior staked node ID ceases to be valid.
       <p>
       <blockquote>Note: node IDs do fluctuate as node operators change.
       The Account owner MUST submit a new transaction to change this value
       if the current node ID changes or ceases to operate as a node. An
       account with an invalid `staked_node_id` SHALL NOT participate in
       staking until the `staked_node_id` is updated to a valid node ID.
       </blockquote>
       
      int64 staked_node_id = 11;
      Returns:
      This builder for chaining.
    • getDeclineReward

      public boolean getDeclineReward()
       *
       A boolean indicating that this account has chosen to decline rewards for
       staking its balances.
       <p>
       This account MAY still stake its balances, but SHALL NOT receive reward
       payments for doing so.
       
      bool decline_reward = 12;
      Specified by:
      getDeclineReward in interface AccountOrBuilder
      Returns:
      The declineReward.
    • setDeclineReward

      public Account.Builder setDeclineReward(boolean value)
       *
       A boolean indicating that this account has chosen to decline rewards for
       staking its balances.
       <p>
       This account MAY still stake its balances, but SHALL NOT receive reward
       payments for doing so.
       
      bool decline_reward = 12;
      Parameters:
      value - The declineReward to set.
      Returns:
      This builder for chaining.
    • clearDeclineReward

      public Account.Builder clearDeclineReward()
       *
       A boolean indicating that this account has chosen to decline rewards for
       staking its balances.
       <p>
       This account MAY still stake its balances, but SHALL NOT receive reward
       payments for doing so.
       
      bool decline_reward = 12;
      Returns:
      This builder for chaining.
    • getReceiverSigRequired

      public boolean getReceiverSigRequired()
       *
       A boolean indicating that the account requires a receiver signature for
       inbound token transfer transactions.
       <p>
       If this value is `true` then a transaction to transfer tokens to this
       account SHALL NOT succeed unless this account has signed the transfer
       transaction.
       
      bool receiver_sig_required = 13;
      Specified by:
      getReceiverSigRequired in interface AccountOrBuilder
      Returns:
      The receiverSigRequired.
    • setReceiverSigRequired

      public Account.Builder setReceiverSigRequired(boolean value)
       *
       A boolean indicating that the account requires a receiver signature for
       inbound token transfer transactions.
       <p>
       If this value is `true` then a transaction to transfer tokens to this
       account SHALL NOT succeed unless this account has signed the transfer
       transaction.
       
      bool receiver_sig_required = 13;
      Parameters:
      value - The receiverSigRequired to set.
      Returns:
      This builder for chaining.
    • clearReceiverSigRequired

      public Account.Builder clearReceiverSigRequired()
       *
       A boolean indicating that the account requires a receiver signature for
       inbound token transfer transactions.
       <p>
       If this value is `true` then a transaction to transfer tokens to this
       account SHALL NOT succeed unless this account has signed the transfer
       transaction.
       
      bool receiver_sig_required = 13;
      Returns:
      This builder for chaining.
    • hasHeadTokenId

      public boolean hasHeadTokenId()
       *
       A token ID at the head of the linked list for this account from the
       token relations map.<br/>
       The token relations are connected by including the "next" and "previous"
       TokenID in each TokenRelation message. The "head" item in that list is
       found by looking up the TokenRelation with this Account's account_id and
       this head_token_id. Each subsequent item in the list is found via
       similar lookup with both an AccountID and a TokenID.
       
      .proto.TokenID head_token_id = 14;
      Specified by:
      hasHeadTokenId in interface AccountOrBuilder
      Returns:
      Whether the headTokenId field is set.
    • getHeadTokenId

      public TokenID getHeadTokenId()
       *
       A token ID at the head of the linked list for this account from the
       token relations map.<br/>
       The token relations are connected by including the "next" and "previous"
       TokenID in each TokenRelation message. The "head" item in that list is
       found by looking up the TokenRelation with this Account's account_id and
       this head_token_id. Each subsequent item in the list is found via
       similar lookup with both an AccountID and a TokenID.
       
      .proto.TokenID head_token_id = 14;
      Specified by:
      getHeadTokenId in interface AccountOrBuilder
      Returns:
      The headTokenId.
    • setHeadTokenId

      public Account.Builder setHeadTokenId(TokenID value)
       *
       A token ID at the head of the linked list for this account from the
       token relations map.<br/>
       The token relations are connected by including the "next" and "previous"
       TokenID in each TokenRelation message. The "head" item in that list is
       found by looking up the TokenRelation with this Account's account_id and
       this head_token_id. Each subsequent item in the list is found via
       similar lookup with both an AccountID and a TokenID.
       
      .proto.TokenID head_token_id = 14;
    • setHeadTokenId

      public Account.Builder setHeadTokenId(TokenID.Builder builderForValue)
       *
       A token ID at the head of the linked list for this account from the
       token relations map.<br/>
       The token relations are connected by including the "next" and "previous"
       TokenID in each TokenRelation message. The "head" item in that list is
       found by looking up the TokenRelation with this Account's account_id and
       this head_token_id. Each subsequent item in the list is found via
       similar lookup with both an AccountID and a TokenID.
       
      .proto.TokenID head_token_id = 14;
    • mergeHeadTokenId

      public Account.Builder mergeHeadTokenId(TokenID value)
       *
       A token ID at the head of the linked list for this account from the
       token relations map.<br/>
       The token relations are connected by including the "next" and "previous"
       TokenID in each TokenRelation message. The "head" item in that list is
       found by looking up the TokenRelation with this Account's account_id and
       this head_token_id. Each subsequent item in the list is found via
       similar lookup with both an AccountID and a TokenID.
       
      .proto.TokenID head_token_id = 14;
    • clearHeadTokenId

      public Account.Builder clearHeadTokenId()
       *
       A token ID at the head of the linked list for this account from the
       token relations map.<br/>
       The token relations are connected by including the "next" and "previous"
       TokenID in each TokenRelation message. The "head" item in that list is
       found by looking up the TokenRelation with this Account's account_id and
       this head_token_id. Each subsequent item in the list is found via
       similar lookup with both an AccountID and a TokenID.
       
      .proto.TokenID head_token_id = 14;
    • hasHeadNftId

      public boolean hasHeadNftId()
       *
       A NftID at the head of the linked list for this account from
       the unique tokens map.<br/>
       The unique token relations are connected by including the "next" and
       "previous" NftID in each Nft message. The "head" item in that list is
       found by looking up the Nft with ID matching this head_nft_id. Each
       subsequent item in the list is found via similar lookup with the next
       or previous NftID.
       
      .proto.NftID head_nft_id = 15;
      Specified by:
      hasHeadNftId in interface AccountOrBuilder
      Returns:
      Whether the headNftId field is set.
    • getHeadNftId

      public NftID getHeadNftId()
       *
       A NftID at the head of the linked list for this account from
       the unique tokens map.<br/>
       The unique token relations are connected by including the "next" and
       "previous" NftID in each Nft message. The "head" item in that list is
       found by looking up the Nft with ID matching this head_nft_id. Each
       subsequent item in the list is found via similar lookup with the next
       or previous NftID.
       
      .proto.NftID head_nft_id = 15;
      Specified by:
      getHeadNftId in interface AccountOrBuilder
      Returns:
      The headNftId.
    • setHeadNftId

      public Account.Builder setHeadNftId(NftID value)
       *
       A NftID at the head of the linked list for this account from
       the unique tokens map.<br/>
       The unique token relations are connected by including the "next" and
       "previous" NftID in each Nft message. The "head" item in that list is
       found by looking up the Nft with ID matching this head_nft_id. Each
       subsequent item in the list is found via similar lookup with the next
       or previous NftID.
       
      .proto.NftID head_nft_id = 15;
    • setHeadNftId

      public Account.Builder setHeadNftId(NftID.Builder builderForValue)
       *
       A NftID at the head of the linked list for this account from
       the unique tokens map.<br/>
       The unique token relations are connected by including the "next" and
       "previous" NftID in each Nft message. The "head" item in that list is
       found by looking up the Nft with ID matching this head_nft_id. Each
       subsequent item in the list is found via similar lookup with the next
       or previous NftID.
       
      .proto.NftID head_nft_id = 15;
    • mergeHeadNftId

      public Account.Builder mergeHeadNftId(NftID value)
       *
       A NftID at the head of the linked list for this account from
       the unique tokens map.<br/>
       The unique token relations are connected by including the "next" and
       "previous" NftID in each Nft message. The "head" item in that list is
       found by looking up the Nft with ID matching this head_nft_id. Each
       subsequent item in the list is found via similar lookup with the next
       or previous NftID.
       
      .proto.NftID head_nft_id = 15;
    • clearHeadNftId

      public Account.Builder clearHeadNftId()
       *
       A NftID at the head of the linked list for this account from
       the unique tokens map.<br/>
       The unique token relations are connected by including the "next" and
       "previous" NftID in each Nft message. The "head" item in that list is
       found by looking up the Nft with ID matching this head_nft_id. Each
       subsequent item in the list is found via similar lookup with the next
       or previous NftID.
       
      .proto.NftID head_nft_id = 15;
    • getHeadNftSerialNumber

      public long getHeadNftSerialNumber()
       *
       A serial number in the NftID at the head of the linked list for this
       account from unique tokens map.
       <p>
       This MUST match the `serial_number` field of `head_nft_id`.
       
      int64 head_nft_serial_number = 16;
      Specified by:
      getHeadNftSerialNumber in interface AccountOrBuilder
      Returns:
      The headNftSerialNumber.
    • setHeadNftSerialNumber

      public Account.Builder setHeadNftSerialNumber(long value)
       *
       A serial number in the NftID at the head of the linked list for this
       account from unique tokens map.
       <p>
       This MUST match the `serial_number` field of `head_nft_id`.
       
      int64 head_nft_serial_number = 16;
      Parameters:
      value - The headNftSerialNumber to set.
      Returns:
      This builder for chaining.
    • clearHeadNftSerialNumber

      public Account.Builder clearHeadNftSerialNumber()
       *
       A serial number in the NftID at the head of the linked list for this
       account from unique tokens map.
       <p>
       This MUST match the `serial_number` field of `head_nft_id`.
       
      int64 head_nft_serial_number = 16;
      Returns:
      This builder for chaining.
    • getNumberOwnedNfts

      public long getNumberOwnedNfts()
       *
       A number of non-fungible tokens (NTFs) owned by the account.
       
      int64 number_owned_nfts = 17;
      Specified by:
      getNumberOwnedNfts in interface AccountOrBuilder
      Returns:
      The numberOwnedNfts.
    • setNumberOwnedNfts

      public Account.Builder setNumberOwnedNfts(long value)
       *
       A number of non-fungible tokens (NTFs) owned by the account.
       
      int64 number_owned_nfts = 17;
      Parameters:
      value - The numberOwnedNfts to set.
      Returns:
      This builder for chaining.
    • clearNumberOwnedNfts

      public Account.Builder clearNumberOwnedNfts()
       *
       A number of non-fungible tokens (NTFs) owned by the account.
       
      int64 number_owned_nfts = 17;
      Returns:
      This builder for chaining.
    • getMaxAutoAssociations

      public int getMaxAutoAssociations()
       *
       A maximum for the number of tokens that can be automatically
       associated with this account.
       <p>
       If this is less than or equal to `used_auto_associations` (or 0), then
       this account MUST manually associate with a token before transacting in
       that token.<br/>
       This value may also be `-1` to indicate no limit.<br/>
       This value MUST NOT be less than `-1`.
       
      int32 max_auto_associations = 18;
      Specified by:
      getMaxAutoAssociations in interface AccountOrBuilder
      Returns:
      The maxAutoAssociations.
    • setMaxAutoAssociations

      public Account.Builder setMaxAutoAssociations(int value)
       *
       A maximum for the number of tokens that can be automatically
       associated with this account.
       <p>
       If this is less than or equal to `used_auto_associations` (or 0), then
       this account MUST manually associate with a token before transacting in
       that token.<br/>
       This value may also be `-1` to indicate no limit.<br/>
       This value MUST NOT be less than `-1`.
       
      int32 max_auto_associations = 18;
      Parameters:
      value - The maxAutoAssociations to set.
      Returns:
      This builder for chaining.
    • clearMaxAutoAssociations

      public Account.Builder clearMaxAutoAssociations()
       *
       A maximum for the number of tokens that can be automatically
       associated with this account.
       <p>
       If this is less than or equal to `used_auto_associations` (or 0), then
       this account MUST manually associate with a token before transacting in
       that token.<br/>
       This value may also be `-1` to indicate no limit.<br/>
       This value MUST NOT be less than `-1`.
       
      int32 max_auto_associations = 18;
      Returns:
      This builder for chaining.
    • getUsedAutoAssociations

      public int getUsedAutoAssociations()
       *
       A count of used auto-association slots.
       <p>
       If this is greater than, or equal to, the current value of
       `max_auto_associations`, then this account MUST manually associate with
       a new token before transacting in that token.
       
      int32 used_auto_associations = 19;
      Specified by:
      getUsedAutoAssociations in interface AccountOrBuilder
      Returns:
      The usedAutoAssociations.
    • setUsedAutoAssociations

      public Account.Builder setUsedAutoAssociations(int value)
       *
       A count of used auto-association slots.
       <p>
       If this is greater than, or equal to, the current value of
       `max_auto_associations`, then this account MUST manually associate with
       a new token before transacting in that token.
       
      int32 used_auto_associations = 19;
      Parameters:
      value - The usedAutoAssociations to set.
      Returns:
      This builder for chaining.
    • clearUsedAutoAssociations

      public Account.Builder clearUsedAutoAssociations()
       *
       A count of used auto-association slots.
       <p>
       If this is greater than, or equal to, the current value of
       `max_auto_associations`, then this account MUST manually associate with
       a new token before transacting in that token.
       
      int32 used_auto_associations = 19;
      Returns:
      This builder for chaining.
    • getNumberAssociations

      public int getNumberAssociations()
       *
       A count of tokens associated with this account.
       <p>
       This value determines a portion of the renewal fee for this account.
       
      int32 number_associations = 20;
      Specified by:
      getNumberAssociations in interface AccountOrBuilder
      Returns:
      The numberAssociations.
    • setNumberAssociations

      public Account.Builder setNumberAssociations(int value)
       *
       A count of tokens associated with this account.
       <p>
       This value determines a portion of the renewal fee for this account.
       
      int32 number_associations = 20;
      Parameters:
      value - The numberAssociations to set.
      Returns:
      This builder for chaining.
    • clearNumberAssociations

      public Account.Builder clearNumberAssociations()
       *
       A count of tokens associated with this account.
       <p>
       This value determines a portion of the renewal fee for this account.
       
      int32 number_associations = 20;
      Returns:
      This builder for chaining.
    • getSmartContract

      public boolean getSmartContract()
       *
       A boolean indicating that this account is owned by a smart contract.
       
      bool smart_contract = 21;
      Specified by:
      getSmartContract in interface AccountOrBuilder
      Returns:
      The smartContract.
    • setSmartContract

      public Account.Builder setSmartContract(boolean value)
       *
       A boolean indicating that this account is owned by a smart contract.
       
      bool smart_contract = 21;
      Parameters:
      value - The smartContract to set.
      Returns:
      This builder for chaining.
    • clearSmartContract

      public Account.Builder clearSmartContract()
       *
       A boolean indicating that this account is owned by a smart contract.
       
      bool smart_contract = 21;
      Returns:
      This builder for chaining.
    • getNumberPositiveBalances

      public int getNumberPositiveBalances()
       *
       A count of tokens with a positive balance associated with this account.
       <p>
       If the account has a positive balance in any token,
       it SHALL NOT be deleted.
       
      int32 number_positive_balances = 22;
      Specified by:
      getNumberPositiveBalances in interface AccountOrBuilder
      Returns:
      The numberPositiveBalances.
    • setNumberPositiveBalances

      public Account.Builder setNumberPositiveBalances(int value)
       *
       A count of tokens with a positive balance associated with this account.
       <p>
       If the account has a positive balance in any token,
       it SHALL NOT be deleted.
       
      int32 number_positive_balances = 22;
      Parameters:
      value - The numberPositiveBalances to set.
      Returns:
      This builder for chaining.
    • clearNumberPositiveBalances

      public Account.Builder clearNumberPositiveBalances()
       *
       A count of tokens with a positive balance associated with this account.
       <p>
       If the account has a positive balance in any token,
       it SHALL NOT be deleted.
       
      int32 number_positive_balances = 22;
      Returns:
      This builder for chaining.
    • getEthereumNonce

      public long getEthereumNonce()
       *
       A nonce of this account for Ethereum interoperability.
       
      int64 ethereum_nonce = 23;
      Specified by:
      getEthereumNonce in interface AccountOrBuilder
      Returns:
      The ethereumNonce.
    • setEthereumNonce

      public Account.Builder setEthereumNonce(long value)
       *
       A nonce of this account for Ethereum interoperability.
       
      int64 ethereum_nonce = 23;
      Parameters:
      value - The ethereumNonce to set.
      Returns:
      This builder for chaining.
    • clearEthereumNonce

      public Account.Builder clearEthereumNonce()
       *
       A nonce of this account for Ethereum interoperability.
       
      int64 ethereum_nonce = 23;
      Returns:
      This builder for chaining.
    • getStakeAtStartOfLastRewardedPeriod

      public long getStakeAtStartOfLastRewardedPeriod()
       *
       An amount of HBAR staked by this account at the start of
       the last reward period.
       
      int64 stake_at_start_of_last_rewarded_period = 24;
      Specified by:
      getStakeAtStartOfLastRewardedPeriod in interface AccountOrBuilder
      Returns:
      The stakeAtStartOfLastRewardedPeriod.
    • setStakeAtStartOfLastRewardedPeriod

      public Account.Builder setStakeAtStartOfLastRewardedPeriod(long value)
       *
       An amount of HBAR staked by this account at the start of
       the last reward period.
       
      int64 stake_at_start_of_last_rewarded_period = 24;
      Parameters:
      value - The stakeAtStartOfLastRewardedPeriod to set.
      Returns:
      This builder for chaining.
    • clearStakeAtStartOfLastRewardedPeriod

      public Account.Builder clearStakeAtStartOfLastRewardedPeriod()
       *
       An amount of HBAR staked by this account at the start of
       the last reward period.
       
      int64 stake_at_start_of_last_rewarded_period = 24;
      Returns:
      This builder for chaining.
    • hasAutoRenewAccountId

      public boolean hasAutoRenewAccountId()
       *
       An account identifier for automatic renewal.<br/>
       This is the identifier of another account, in the same shard and
       realm as this account, that has signed a transaction allowing the
       network to use its balance, if needed, to automatically extend this
       account's expiration time during automatic renewal processing.
       <p>
       If this is set, and this account lack sufficient HBAR balance to pay
       renewal fees when due, then the network SHALL deduct the necessary fees
       from the designated auto renew account, if that account has sufficient
       balance.
       
      .proto.AccountID auto_renew_account_id = 25;
      Specified by:
      hasAutoRenewAccountId in interface AccountOrBuilder
      Returns:
      Whether the autoRenewAccountId field is set.
    • getAutoRenewAccountId

      public AccountID getAutoRenewAccountId()
       *
       An account identifier for automatic renewal.<br/>
       This is the identifier of another account, in the same shard and
       realm as this account, that has signed a transaction allowing the
       network to use its balance, if needed, to automatically extend this
       account's expiration time during automatic renewal processing.
       <p>
       If this is set, and this account lack sufficient HBAR balance to pay
       renewal fees when due, then the network SHALL deduct the necessary fees
       from the designated auto renew account, if that account has sufficient
       balance.
       
      .proto.AccountID auto_renew_account_id = 25;
      Specified by:
      getAutoRenewAccountId in interface AccountOrBuilder
      Returns:
      The autoRenewAccountId.
    • setAutoRenewAccountId

      public Account.Builder setAutoRenewAccountId(AccountID value)
       *
       An account identifier for automatic renewal.<br/>
       This is the identifier of another account, in the same shard and
       realm as this account, that has signed a transaction allowing the
       network to use its balance, if needed, to automatically extend this
       account's expiration time during automatic renewal processing.
       <p>
       If this is set, and this account lack sufficient HBAR balance to pay
       renewal fees when due, then the network SHALL deduct the necessary fees
       from the designated auto renew account, if that account has sufficient
       balance.
       
      .proto.AccountID auto_renew_account_id = 25;
    • setAutoRenewAccountId

      public Account.Builder setAutoRenewAccountId(AccountID.Builder builderForValue)
       *
       An account identifier for automatic renewal.<br/>
       This is the identifier of another account, in the same shard and
       realm as this account, that has signed a transaction allowing the
       network to use its balance, if needed, to automatically extend this
       account's expiration time during automatic renewal processing.
       <p>
       If this is set, and this account lack sufficient HBAR balance to pay
       renewal fees when due, then the network SHALL deduct the necessary fees
       from the designated auto renew account, if that account has sufficient
       balance.
       
      .proto.AccountID auto_renew_account_id = 25;
    • mergeAutoRenewAccountId

      public Account.Builder mergeAutoRenewAccountId(AccountID value)
       *
       An account identifier for automatic renewal.<br/>
       This is the identifier of another account, in the same shard and
       realm as this account, that has signed a transaction allowing the
       network to use its balance, if needed, to automatically extend this
       account's expiration time during automatic renewal processing.
       <p>
       If this is set, and this account lack sufficient HBAR balance to pay
       renewal fees when due, then the network SHALL deduct the necessary fees
       from the designated auto renew account, if that account has sufficient
       balance.
       
      .proto.AccountID auto_renew_account_id = 25;
    • clearAutoRenewAccountId

      public Account.Builder clearAutoRenewAccountId()
       *
       An account identifier for automatic renewal.<br/>
       This is the identifier of another account, in the same shard and
       realm as this account, that has signed a transaction allowing the
       network to use its balance, if needed, to automatically extend this
       account's expiration time during automatic renewal processing.
       <p>
       If this is set, and this account lack sufficient HBAR balance to pay
       renewal fees when due, then the network SHALL deduct the necessary fees
       from the designated auto renew account, if that account has sufficient
       balance.
       
      .proto.AccountID auto_renew_account_id = 25;
    • getAutoRenewSeconds

      public long getAutoRenewSeconds()
       *
       A count of the number of seconds to extend this account's expiration.
       <p>
       The network SHALL extend the account's expiration by this number of
       seconds, if funds are available, upon automatic renewal.<br/>
       This SHALL NOT apply if the account is already deleted
       upon expiration.<br/>
       If this is not provided in an allowed range on account creation, the
       transaction SHALL fail with INVALID_AUTO_RENEWAL_PERIOD. The default
       values for the minimum period and maximum period are currently 30 days
       and 90 days, respectively.
       
      int64 auto_renew_seconds = 26;
      Specified by:
      getAutoRenewSeconds in interface AccountOrBuilder
      Returns:
      The autoRenewSeconds.
    • setAutoRenewSeconds

      public Account.Builder setAutoRenewSeconds(long value)
       *
       A count of the number of seconds to extend this account's expiration.
       <p>
       The network SHALL extend the account's expiration by this number of
       seconds, if funds are available, upon automatic renewal.<br/>
       This SHALL NOT apply if the account is already deleted
       upon expiration.<br/>
       If this is not provided in an allowed range on account creation, the
       transaction SHALL fail with INVALID_AUTO_RENEWAL_PERIOD. The default
       values for the minimum period and maximum period are currently 30 days
       and 90 days, respectively.
       
      int64 auto_renew_seconds = 26;
      Parameters:
      value - The autoRenewSeconds to set.
      Returns:
      This builder for chaining.
    • clearAutoRenewSeconds

      public Account.Builder clearAutoRenewSeconds()
       *
       A count of the number of seconds to extend this account's expiration.
       <p>
       The network SHALL extend the account's expiration by this number of
       seconds, if funds are available, upon automatic renewal.<br/>
       This SHALL NOT apply if the account is already deleted
       upon expiration.<br/>
       If this is not provided in an allowed range on account creation, the
       transaction SHALL fail with INVALID_AUTO_RENEWAL_PERIOD. The default
       values for the minimum period and maximum period are currently 30 days
       and 90 days, respectively.
       
      int64 auto_renew_seconds = 26;
      Returns:
      This builder for chaining.
    • getContractKvPairsNumber

      public int getContractKvPairsNumber()
       *
       A count of smart contract key-value pairs.<br/>
       If this account is a smart-contract, this is the number of key-value
       pairs stored on the contract.
       <p>
       If this account is not a smart contract, this field
       SHALL NOT be used.<br/>
       This value SHALL determine a portion of the storage rental
       fees for the contract.
       
      int32 contract_kv_pairs_number = 27;
      Specified by:
      getContractKvPairsNumber in interface AccountOrBuilder
      Returns:
      The contractKvPairsNumber.
    • setContractKvPairsNumber

      public Account.Builder setContractKvPairsNumber(int value)
       *
       A count of smart contract key-value pairs.<br/>
       If this account is a smart-contract, this is the number of key-value
       pairs stored on the contract.
       <p>
       If this account is not a smart contract, this field
       SHALL NOT be used.<br/>
       This value SHALL determine a portion of the storage rental
       fees for the contract.
       
      int32 contract_kv_pairs_number = 27;
      Parameters:
      value - The contractKvPairsNumber to set.
      Returns:
      This builder for chaining.
    • clearContractKvPairsNumber

      public Account.Builder clearContractKvPairsNumber()
       *
       A count of smart contract key-value pairs.<br/>
       If this account is a smart-contract, this is the number of key-value
       pairs stored on the contract.
       <p>
       If this account is not a smart contract, this field
       SHALL NOT be used.<br/>
       This value SHALL determine a portion of the storage rental
       fees for the contract.
       
      int32 contract_kv_pairs_number = 27;
      Returns:
      This builder for chaining.
    • getCryptoAllowancesList

      public List<AccountCryptoAllowance> getCryptoAllowancesList()
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
      Specified by:
      getCryptoAllowancesList in interface AccountOrBuilder
    • getCryptoAllowancesCount

      public int getCryptoAllowancesCount()
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
      Specified by:
      getCryptoAllowancesCount in interface AccountOrBuilder
    • getCryptoAllowances

      public AccountCryptoAllowance getCryptoAllowances(int index)
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
      Specified by:
      getCryptoAllowances in interface AccountOrBuilder
    • setCryptoAllowances

      public Account.Builder setCryptoAllowances(int index, AccountCryptoAllowance value)
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
    • setCryptoAllowances

      public Account.Builder setCryptoAllowances(int index, AccountCryptoAllowance.Builder builderForValue)
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
    • addCryptoAllowances

      public Account.Builder addCryptoAllowances(AccountCryptoAllowance value)
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
    • addCryptoAllowances

      public Account.Builder addCryptoAllowances(int index, AccountCryptoAllowance value)
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
    • addCryptoAllowances

      public Account.Builder addCryptoAllowances(AccountCryptoAllowance.Builder builderForValue)
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
    • addCryptoAllowances

      public Account.Builder addCryptoAllowances(int index, AccountCryptoAllowance.Builder builderForValue)
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
    • addAllCryptoAllowances

      public Account.Builder addAllCryptoAllowances(Iterable<? extends AccountCryptoAllowance> values)
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
    • clearCryptoAllowances

      public Account.Builder clearCryptoAllowances()
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
    • removeCryptoAllowances

      public Account.Builder removeCryptoAllowances(int index)
       *
       A list of crypto (HBAR) allowances approved by this account.
       <p>
       If this is not empty, each allowance SHALL permit a specified "spender"
       account to spend this account's HBAR balance, up to a designated
       limit.<br/>
       This field SHALL permit spending only HBAR balance, not other tokens the
       account may hold. Allowances for other tokens SHALL be listed in the
       `token_allowances` field or the `approve_for_all_nft_allowances` field.
       
      repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
    • getApproveForAllNftAllowancesList

      public List<AccountApprovalForAllAllowance> getApproveForAllNftAllowancesList()
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
      Specified by:
      getApproveForAllNftAllowancesList in interface AccountOrBuilder
    • getApproveForAllNftAllowancesCount

      public int getApproveForAllNftAllowancesCount()
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
      Specified by:
      getApproveForAllNftAllowancesCount in interface AccountOrBuilder
    • getApproveForAllNftAllowances

      public AccountApprovalForAllAllowance getApproveForAllNftAllowances(int index)
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
      Specified by:
      getApproveForAllNftAllowances in interface AccountOrBuilder
    • setApproveForAllNftAllowances

      public Account.Builder setApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance value)
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
    • setApproveForAllNftAllowances

      public Account.Builder setApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance.Builder builderForValue)
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
    • addApproveForAllNftAllowances

      public Account.Builder addApproveForAllNftAllowances(AccountApprovalForAllAllowance value)
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
    • addApproveForAllNftAllowances

      public Account.Builder addApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance value)
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
    • addApproveForAllNftAllowances

      public Account.Builder addApproveForAllNftAllowances(AccountApprovalForAllAllowance.Builder builderForValue)
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
    • addApproveForAllNftAllowances

      public Account.Builder addApproveForAllNftAllowances(int index, AccountApprovalForAllAllowance.Builder builderForValue)
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
    • addAllApproveForAllNftAllowances

      public Account.Builder addAllApproveForAllNftAllowances(Iterable<? extends AccountApprovalForAllAllowance> values)
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
    • clearApproveForAllNftAllowances

      public Account.Builder clearApproveForAllNftAllowances()
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
    • removeApproveForAllNftAllowances

      public Account.Builder removeApproveForAllNftAllowances(int index)
       *
       A list of non-fungible token (NFT) allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender"
       account to transfer _all_ of this account's non-fungible tokens from a
       particular collection.<br/>
       Allowances for a specific serial number MUST be directly associated with
       that specific non-fungible token, rather than the holding account.
       
      repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
    • getTokenAllowancesList

      public List<AccountFungibleTokenAllowance> getTokenAllowancesList()
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
      Specified by:
      getTokenAllowancesList in interface AccountOrBuilder
    • getTokenAllowancesCount

      public int getTokenAllowancesCount()
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
      Specified by:
      getTokenAllowancesCount in interface AccountOrBuilder
    • getTokenAllowances

      public AccountFungibleTokenAllowance getTokenAllowances(int index)
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
      Specified by:
      getTokenAllowances in interface AccountOrBuilder
    • setTokenAllowances

      public Account.Builder setTokenAllowances(int index, AccountFungibleTokenAllowance value)
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
    • setTokenAllowances

      public Account.Builder setTokenAllowances(int index, AccountFungibleTokenAllowance.Builder builderForValue)
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
    • addTokenAllowances

      public Account.Builder addTokenAllowances(AccountFungibleTokenAllowance value)
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
    • addTokenAllowances

      public Account.Builder addTokenAllowances(int index, AccountFungibleTokenAllowance value)
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
    • addTokenAllowances

      public Account.Builder addTokenAllowances(AccountFungibleTokenAllowance.Builder builderForValue)
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
    • addTokenAllowances

      public Account.Builder addTokenAllowances(int index, AccountFungibleTokenAllowance.Builder builderForValue)
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
    • addAllTokenAllowances

      public Account.Builder addAllTokenAllowances(Iterable<? extends AccountFungibleTokenAllowance> values)
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
    • clearTokenAllowances

      public Account.Builder clearTokenAllowances()
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
    • removeTokenAllowances

      public Account.Builder removeTokenAllowances(int index)
       *
       A list of fungible token allowances approved by this account.
       <p>
       If this is not empty, each allowance permits a specified "spender" to
       spend this account's fungible tokens, of the designated type, up to a
       designated limit.
       
      repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
    • getNumberTreasuryTitles

      public int getNumberTreasuryTitles()
       *
       A count of tokens for which this account is the treasury account.
       <p>
       Each native token is initially created with all tokens held by its
       treasury, and the owner of that account (which may be a smart contract)
       determines how those tokens are distributed.
       
      uint32 number_treasury_titles = 31;
      Specified by:
      getNumberTreasuryTitles in interface AccountOrBuilder
      Returns:
      The numberTreasuryTitles.
    • setNumberTreasuryTitles

      public Account.Builder setNumberTreasuryTitles(int value)
       *
       A count of tokens for which this account is the treasury account.
       <p>
       Each native token is initially created with all tokens held by its
       treasury, and the owner of that account (which may be a smart contract)
       determines how those tokens are distributed.
       
      uint32 number_treasury_titles = 31;
      Parameters:
      value - The numberTreasuryTitles to set.
      Returns:
      This builder for chaining.
    • clearNumberTreasuryTitles

      public Account.Builder clearNumberTreasuryTitles()
       *
       A count of tokens for which this account is the treasury account.
       <p>
       Each native token is initially created with all tokens held by its
       treasury, and the owner of that account (which may be a smart contract)
       determines how those tokens are distributed.
       
      uint32 number_treasury_titles = 31;
      Returns:
      This builder for chaining.
    • getExpiredAndPendingRemoval

      public boolean getExpiredAndPendingRemoval()
       *
       A flag indicating that the account is expired and pending removal.
       <p>
       When the network checks for entity expiration, it SHALL set this flag if
       the account expiration time has past and the account has no HBAR
       sufficient to pay current renewal fees.<br/>
       If the account has an auto-renew account set with an HBAR balance that
       could pay for an auto-renewal, then this flag SHALL NOT be set. This
       ensures the account is not encumbered during the time between expiration
       and when the auto-renewal processing renews the account.
       
      bool expired_and_pending_removal = 32;
      Specified by:
      getExpiredAndPendingRemoval in interface AccountOrBuilder
      Returns:
      The expiredAndPendingRemoval.
    • setExpiredAndPendingRemoval

      public Account.Builder setExpiredAndPendingRemoval(boolean value)
       *
       A flag indicating that the account is expired and pending removal.
       <p>
       When the network checks for entity expiration, it SHALL set this flag if
       the account expiration time has past and the account has no HBAR
       sufficient to pay current renewal fees.<br/>
       If the account has an auto-renew account set with an HBAR balance that
       could pay for an auto-renewal, then this flag SHALL NOT be set. This
       ensures the account is not encumbered during the time between expiration
       and when the auto-renewal processing renews the account.
       
      bool expired_and_pending_removal = 32;
      Parameters:
      value - The expiredAndPendingRemoval to set.
      Returns:
      This builder for chaining.
    • clearExpiredAndPendingRemoval

      public Account.Builder clearExpiredAndPendingRemoval()
       *
       A flag indicating that the account is expired and pending removal.
       <p>
       When the network checks for entity expiration, it SHALL set this flag if
       the account expiration time has past and the account has no HBAR
       sufficient to pay current renewal fees.<br/>
       If the account has an auto-renew account set with an HBAR balance that
       could pay for an auto-renewal, then this flag SHALL NOT be set. This
       ensures the account is not encumbered during the time between expiration
       and when the auto-renewal processing renews the account.
       
      bool expired_and_pending_removal = 32;
      Returns:
      This builder for chaining.
    • getFirstContractStorageKey

      public com.google.protobuf.ByteString getFirstContractStorageKey()
       *
       A contract storage key.<br/>
       This is the first key in the doubly-linked list of this
       contract's storage mappings.
       <p>
       This value SHALL be empty if the account is not a contract or the
       contract has no storage mappings.
       
      bytes first_contract_storage_key = 33;
      Specified by:
      getFirstContractStorageKey in interface AccountOrBuilder
      Returns:
      The firstContractStorageKey.
    • setFirstContractStorageKey

      public Account.Builder setFirstContractStorageKey(com.google.protobuf.ByteString value)
       *
       A contract storage key.<br/>
       This is the first key in the doubly-linked list of this
       contract's storage mappings.
       <p>
       This value SHALL be empty if the account is not a contract or the
       contract has no storage mappings.
       
      bytes first_contract_storage_key = 33;
      Parameters:
      value - The firstContractStorageKey to set.
      Returns:
      This builder for chaining.
    • clearFirstContractStorageKey

      public Account.Builder clearFirstContractStorageKey()
       *
       A contract storage key.<br/>
       This is the first key in the doubly-linked list of this
       contract's storage mappings.
       <p>
       This value SHALL be empty if the account is not a contract or the
       contract has no storage mappings.
       
      bytes first_contract_storage_key = 33;
      Returns:
      This builder for chaining.
    • hasHeadPendingAirdropId

      public boolean hasHeadPendingAirdropId()
       *
       A pending airdrop ID.<br/>
       This is the head of the linked list for this account from the
       account airdrops map.<br/>
       <p>
       The account airdrops SHALL be connected by including the "next" and
       "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/>
       This value SHALL NOT be empty if this account is "sender" for any
       pending airdrop, and SHALL be empty otherwise.
       
      .proto.PendingAirdropId head_pending_airdrop_id = 34;
      Specified by:
      hasHeadPendingAirdropId in interface AccountOrBuilder
      Returns:
      Whether the headPendingAirdropId field is set.
    • getHeadPendingAirdropId

      public PendingAirdropId getHeadPendingAirdropId()
       *
       A pending airdrop ID.<br/>
       This is the head of the linked list for this account from the
       account airdrops map.<br/>
       <p>
       The account airdrops SHALL be connected by including the "next" and
       "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/>
       This value SHALL NOT be empty if this account is "sender" for any
       pending airdrop, and SHALL be empty otherwise.
       
      .proto.PendingAirdropId head_pending_airdrop_id = 34;
      Specified by:
      getHeadPendingAirdropId in interface AccountOrBuilder
      Returns:
      The headPendingAirdropId.
    • setHeadPendingAirdropId

      public Account.Builder setHeadPendingAirdropId(PendingAirdropId value)
       *
       A pending airdrop ID.<br/>
       This is the head of the linked list for this account from the
       account airdrops map.<br/>
       <p>
       The account airdrops SHALL be connected by including the "next" and
       "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/>
       This value SHALL NOT be empty if this account is "sender" for any
       pending airdrop, and SHALL be empty otherwise.
       
      .proto.PendingAirdropId head_pending_airdrop_id = 34;
    • setHeadPendingAirdropId

      public Account.Builder setHeadPendingAirdropId(PendingAirdropId.Builder builderForValue)
       *
       A pending airdrop ID.<br/>
       This is the head of the linked list for this account from the
       account airdrops map.<br/>
       <p>
       The account airdrops SHALL be connected by including the "next" and
       "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/>
       This value SHALL NOT be empty if this account is "sender" for any
       pending airdrop, and SHALL be empty otherwise.
       
      .proto.PendingAirdropId head_pending_airdrop_id = 34;
    • mergeHeadPendingAirdropId

      public Account.Builder mergeHeadPendingAirdropId(PendingAirdropId value)
       *
       A pending airdrop ID.<br/>
       This is the head of the linked list for this account from the
       account airdrops map.<br/>
       <p>
       The account airdrops SHALL be connected by including the "next" and
       "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/>
       This value SHALL NOT be empty if this account is "sender" for any
       pending airdrop, and SHALL be empty otherwise.
       
      .proto.PendingAirdropId head_pending_airdrop_id = 34;
    • clearHeadPendingAirdropId

      public Account.Builder clearHeadPendingAirdropId()
       *
       A pending airdrop ID.<br/>
       This is the head of the linked list for this account from the
       account airdrops map.<br/>
       <p>
       The account airdrops SHALL be connected by including the "next" and
       "previous" `PendingAirdropID` in each `AccountAirdrop` message.<br/>
       This value SHALL NOT be empty if this account is "sender" for any
       pending airdrop, and SHALL be empty otherwise.
       
      .proto.PendingAirdropId head_pending_airdrop_id = 34;
    • getNumberPendingAirdrops

      public long getNumberPendingAirdrops()
       *
       A number of pending airdrops.
       <p>
       This count SHALL be used to calculate rent _without_ walking the linked
       list of pending airdrops associated to this account via the
       `head_pending_airdrop_id` field.<br/>
       This value MUST be updated for every airdrop, clam, or cancel transaction
       that designates this account as a receiver.<br/>
       This number MUST always match the count of entries in the "list"
       identified by `head_pending_airdrop_id`.
       
      uint64 number_pending_airdrops = 35;
      Specified by:
      getNumberPendingAirdrops in interface AccountOrBuilder
      Returns:
      The numberPendingAirdrops.
    • setNumberPendingAirdrops

      public Account.Builder setNumberPendingAirdrops(long value)
       *
       A number of pending airdrops.
       <p>
       This count SHALL be used to calculate rent _without_ walking the linked
       list of pending airdrops associated to this account via the
       `head_pending_airdrop_id` field.<br/>
       This value MUST be updated for every airdrop, clam, or cancel transaction
       that designates this account as a receiver.<br/>
       This number MUST always match the count of entries in the "list"
       identified by `head_pending_airdrop_id`.
       
      uint64 number_pending_airdrops = 35;
      Parameters:
      value - The numberPendingAirdrops to set.
      Returns:
      This builder for chaining.
    • clearNumberPendingAirdrops

      public Account.Builder clearNumberPendingAirdrops()
       *
       A number of pending airdrops.
       <p>
       This count SHALL be used to calculate rent _without_ walking the linked
       list of pending airdrops associated to this account via the
       `head_pending_airdrop_id` field.<br/>
       This value MUST be updated for every airdrop, clam, or cancel transaction
       that designates this account as a receiver.<br/>
       This number MUST always match the count of entries in the "list"
       identified by `head_pending_airdrop_id`.
       
      uint64 number_pending_airdrops = 35;
      Returns:
      This builder for chaining.
    • getNumberHooksInUse

      public long getNumberHooksInUse()
       *
       The number of hooks currently in use on this account.
       
      uint64 number_hooks_in_use = 36;
      Specified by:
      getNumberHooksInUse in interface AccountOrBuilder
      Returns:
      The numberHooksInUse.
    • setNumberHooksInUse

      public Account.Builder setNumberHooksInUse(long value)
       *
       The number of hooks currently in use on this account.
       
      uint64 number_hooks_in_use = 36;
      Parameters:
      value - The numberHooksInUse to set.
      Returns:
      This builder for chaining.
    • clearNumberHooksInUse

      public Account.Builder clearNumberHooksInUse()
       *
       The number of hooks currently in use on this account.
       
      uint64 number_hooks_in_use = 36;
      Returns:
      This builder for chaining.
    • getFirstHookId

      public long getFirstHookId()
       *
       If the account has more than zero hooks in use, the id of the first hook in its
       doubly-linked list of hooks.
       
      int64 first_hook_id = 37;
      Specified by:
      getFirstHookId in interface AccountOrBuilder
      Returns:
      The firstHookId.
    • setFirstHookId

      public Account.Builder setFirstHookId(long value)
       *
       If the account has more than zero hooks in use, the id of the first hook in its
       doubly-linked list of hooks.
       
      int64 first_hook_id = 37;
      Parameters:
      value - The firstHookId to set.
      Returns:
      This builder for chaining.
    • clearFirstHookId

      public Account.Builder clearFirstHookId()
       *
       If the account has more than zero hooks in use, the id of the first hook in its
       doubly-linked list of hooks.
       
      int64 first_hook_id = 37;
      Returns:
      This builder for chaining.
    • getNumberEvmHookStorageSlots

      public long getNumberEvmHookStorageSlots()
       *
       The number of storage slots in use by this account's EVM hooks.
       
      uint64 number_evm_hook_storage_slots = 38;
      Specified by:
      getNumberEvmHookStorageSlots in interface AccountOrBuilder
      Returns:
      The numberEvmHookStorageSlots.
    • setNumberEvmHookStorageSlots

      public Account.Builder setNumberEvmHookStorageSlots(long value)
       *
       The number of storage slots in use by this account's EVM hooks.
       
      uint64 number_evm_hook_storage_slots = 38;
      Parameters:
      value - The numberEvmHookStorageSlots to set.
      Returns:
      This builder for chaining.
    • clearNumberEvmHookStorageSlots

      public Account.Builder clearNumberEvmHookStorageSlots()
       *
       The number of storage slots in use by this account's EVM hooks.
       
      uint64 number_evm_hook_storage_slots = 38;
      Returns:
      This builder for chaining.
    • getDelegationAddress

      public com.google.protobuf.ByteString getDelegationAddress()
       *
       The delegated contract address set for this account.
       <p>
       If this field is set on the account, anytime a call is made to the account's address
       (either an EVM call within HSCS or a child call dispatched by CryptoTransfer)
       the EVM code of the contract referenced by `delegation_address` will be
       executed in the context of the account.
       
      bytes delegation_address = 39;
      Specified by:
      getDelegationAddress in interface AccountOrBuilder
      Returns:
      The delegationAddress.
    • setDelegationAddress

      public Account.Builder setDelegationAddress(com.google.protobuf.ByteString value)
       *
       The delegated contract address set for this account.
       <p>
       If this field is set on the account, anytime a call is made to the account's address
       (either an EVM call within HSCS or a child call dispatched by CryptoTransfer)
       the EVM code of the contract referenced by `delegation_address` will be
       executed in the context of the account.
       
      bytes delegation_address = 39;
      Parameters:
      value - The delegationAddress to set.
      Returns:
      This builder for chaining.
    • clearDelegationAddress

      public Account.Builder clearDelegationAddress()
       *
       The delegated contract address set for this account.
       <p>
       If this field is set on the account, anytime a call is made to the account's address
       (either an EVM call within HSCS or a child call dispatched by CryptoTransfer)
       the EVM code of the contract referenced by `delegation_address` will be
       executed in the context of the account.
       
      bytes delegation_address = 39;
      Returns:
      This builder for chaining.