Class CryptoGetInfoResponse.AccountInfo.Builder

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

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

 #### Attributes
 Each Account may have a unique three-part identifier, a Key, and one or
 more token balances. Accounts also have an alias, which has multiple
 forms, and may be set automatically. Several additional items are
 associated with the Account to enable full functionality.

 #### Expiration
 Accounts, as most items in the network, have an expiration time, recorded
 as a `Timestamp`, and must be "renewed" for a small fee at expiration.
 This helps to reduce the amount of inactive accounts retained in state.
 Another account may be designated to pay any renewal fees and
 automatically renew the account for (by default) 30-90 days at a time as
 a means to optionally ensure important accounts remain active.

 ### Staking
 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.

 #### Transfer Restrictions
 An account may optionally require that inbound transfer transactions be
 signed by that account as receiver (in addition to any other signatures
 required, including sender).
 
Protobuf type proto.CryptoGetInfoResponse.AccountInfo
  • Method Details

    • hasAccountID

      public boolean hasAccountID()
       *
       a unique identifier for this account.
       <p>
       An account identifier, when assigned to this field, SHALL be of
       the form `shard.realm.number`.
       
      .proto.AccountID accountID = 1;
      Specified by:
      hasAccountID in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      Whether the accountID field is set.
    • getAccountID

      public AccountID getAccountID()
       *
       a unique identifier for this account.
       <p>
       An account identifier, when assigned to this field, SHALL be of
       the form `shard.realm.number`.
       
      .proto.AccountID accountID = 1;
      Specified by:
      getAccountID in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The accountID.
    • setAccountID

       *
       a unique identifier for this account.
       <p>
       An account identifier, when assigned to this field, SHALL be of
       the form `shard.realm.number`.
       
      .proto.AccountID accountID = 1;
    • setAccountID

      public CryptoGetInfoResponse.AccountInfo.Builder setAccountID(AccountID.Builder builderForValue)
       *
       a unique identifier for this account.
       <p>
       An account identifier, when assigned to this field, SHALL be of
       the form `shard.realm.number`.
       
      .proto.AccountID accountID = 1;
    • mergeAccountID

       *
       a unique identifier for this account.
       <p>
       An account identifier, when assigned to this field, SHALL be of
       the form `shard.realm.number`.
       
      .proto.AccountID accountID = 1;
    • clearAccountID

       *
       a unique identifier for this account.
       <p>
       An account identifier, when assigned to this field, SHALL be of
       the form `shard.realm.number`.
       
      .proto.AccountID accountID = 1;
    • getContractAccountID

      public String getContractAccountID()
       *
       A Solidity ID.
       <p>
       This SHALL be populated if this account is a smart contract, and
       SHALL NOT be populated otherwise.<br/>
       This SHALL be formatted as a string according to Solidity ID
       standards.
       
      string contractAccountID = 2;
      Specified by:
      getContractAccountID in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The contractAccountID.
    • getContractAccountIDBytes

      public com.google.protobuf.ByteString getContractAccountIDBytes()
       *
       A Solidity ID.
       <p>
       This SHALL be populated if this account is a smart contract, and
       SHALL NOT be populated otherwise.<br/>
       This SHALL be formatted as a string according to Solidity ID
       standards.
       
      string contractAccountID = 2;
      Specified by:
      getContractAccountIDBytes in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The bytes for contractAccountID.
    • setContractAccountID

      public CryptoGetInfoResponse.AccountInfo.Builder setContractAccountID(String value)
       *
       A Solidity ID.
       <p>
       This SHALL be populated if this account is a smart contract, and
       SHALL NOT be populated otherwise.<br/>
       This SHALL be formatted as a string according to Solidity ID
       standards.
       
      string contractAccountID = 2;
      Parameters:
      value - The contractAccountID to set.
      Returns:
      This builder for chaining.
    • clearContractAccountID

      public CryptoGetInfoResponse.AccountInfo.Builder clearContractAccountID()
       *
       A Solidity ID.
       <p>
       This SHALL be populated if this account is a smart contract, and
       SHALL NOT be populated otherwise.<br/>
       This SHALL be formatted as a string according to Solidity ID
       standards.
       
      string contractAccountID = 2;
      Returns:
      This builder for chaining.
    • setContractAccountIDBytes

      public CryptoGetInfoResponse.AccountInfo.Builder setContractAccountIDBytes(com.google.protobuf.ByteString value)
       *
       A Solidity ID.
       <p>
       This SHALL be populated if this account is a smart contract, and
       SHALL NOT be populated otherwise.<br/>
       This SHALL be formatted as a string according to Solidity ID
       standards.
       
      string contractAccountID = 2;
      Parameters:
      value - The bytes for contractAccountID to set.
      Returns:
      This builder for chaining.
    • getDeleted

      public boolean getDeleted()
       *
       A boolean indicating that this account is deleted.
       <p>
       Any transaction involving a deleted account SHALL fail.
       
      bool deleted = 3;
      Specified by:
      getDeleted in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The deleted.
    • setDeleted

      public CryptoGetInfoResponse.AccountInfo.Builder setDeleted(boolean value)
       *
       A boolean indicating that this account is deleted.
       <p>
       Any transaction involving a deleted account SHALL fail.
       
      bool deleted = 3;
      Parameters:
      value - The deleted to set.
      Returns:
      This builder for chaining.
    • clearDeleted

       *
       A boolean indicating that this account is deleted.
       <p>
       Any transaction involving a deleted account SHALL fail.
       
      bool deleted = 3;
      Returns:
      This builder for chaining.
    • hasProxyAccountID

      @Deprecated public boolean hasProxyAccountID()
      Deprecated.
       *
       Replaced by StakingInfo.<br/>
       ID of the account to which this account is staking its balances. 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 proxyAccountID = 4 [deprecated = true];
      Specified by:
      hasProxyAccountID in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      Whether the proxyAccountID field is set.
    • getProxyAccountID

      @Deprecated public AccountID getProxyAccountID()
      Deprecated.
       *
       Replaced by StakingInfo.<br/>
       ID of the account to which this account is staking its balances. 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 proxyAccountID = 4 [deprecated = true];
      Specified by:
      getProxyAccountID in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The proxyAccountID.
    • setProxyAccountID

      Deprecated.
       *
       Replaced by StakingInfo.<br/>
       ID of the account to which this account is staking its balances. 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 proxyAccountID = 4 [deprecated = true];
    • setProxyAccountID

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder setProxyAccountID(AccountID.Builder builderForValue)
      Deprecated.
       *
       Replaced by StakingInfo.<br/>
       ID of the account to which this account is staking its balances. 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 proxyAccountID = 4 [deprecated = true];
    • mergeProxyAccountID

      Deprecated.
       *
       Replaced by StakingInfo.<br/>
       ID of the account to which this account is staking its balances. 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 proxyAccountID = 4 [deprecated = true];
    • clearProxyAccountID

      Deprecated.
       *
       Replaced by StakingInfo.<br/>
       ID of the account to which this account is staking its balances. 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 proxyAccountID = 4 [deprecated = true];
    • getProxyReceived

      @Deprecated public long getProxyReceived()
      Deprecated.
      proto.CryptoGetInfoResponse.AccountInfo.proxyReceived is deprecated. See crypto_get_info.proto;l=130
       *
       Replaced by StakingInfo.<br/>
       The total amount of tinybar proxy staked to this account.
       
      int64 proxyReceived = 6 [deprecated = true];
      Specified by:
      getProxyReceived in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The proxyReceived.
    • setProxyReceived

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder setProxyReceived(long value)
      Deprecated.
      proto.CryptoGetInfoResponse.AccountInfo.proxyReceived is deprecated. See crypto_get_info.proto;l=130
       *
       Replaced by StakingInfo.<br/>
       The total amount of tinybar proxy staked to this account.
       
      int64 proxyReceived = 6 [deprecated = true];
      Parameters:
      value - The proxyReceived to set.
      Returns:
      This builder for chaining.
    • clearProxyReceived

      Deprecated.
      proto.CryptoGetInfoResponse.AccountInfo.proxyReceived is deprecated. See crypto_get_info.proto;l=130
       *
       Replaced by StakingInfo.<br/>
       The total amount of tinybar proxy staked to this account.
       
      int64 proxyReceived = 6 [deprecated = true];
      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 = 7;
      Specified by:
      hasKey in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      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 = 7;
      Specified by:
      getKey in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The key.
    • setKey

       *
       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 = 7;
    • setKey

      public CryptoGetInfoResponse.AccountInfo.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 = 7;
    • mergeKey

       *
       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 = 7;
    • 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 = 7;
    • getBalance

      public long getBalance()
       *
       The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR).
       <p>
       This value SHALL always be a whole number.
       
      uint64 balance = 8;
      Specified by:
      getBalance in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The balance.
    • setBalance

      public CryptoGetInfoResponse.AccountInfo.Builder setBalance(long value)
       *
       The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR).
       <p>
       This value SHALL always be a whole number.
       
      uint64 balance = 8;
      Parameters:
      value - The balance to set.
      Returns:
      This builder for chaining.
    • clearBalance

       *
       The HBAR balance of this account, in tinybar (10<sup>-8</sup> HBAR).
       <p>
       This value SHALL always be a whole number.
       
      uint64 balance = 8;
      Returns:
      This builder for chaining.
    • getGenerateSendRecordThreshold

      @Deprecated public long getGenerateSendRecordThreshold()
      Deprecated.
      proto.CryptoGetInfoResponse.AccountInfo.generateSendRecordThreshold is deprecated. See crypto_get_info.proto;l=155
       *
       Obsolete and unused.<br/>
       The threshold amount, in tinybars, at which a record was created for
       any transaction that decreased the balance of this account.
       
      uint64 generateSendRecordThreshold = 9 [deprecated = true];
      Specified by:
      getGenerateSendRecordThreshold in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The generateSendRecordThreshold.
    • setGenerateSendRecordThreshold

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder setGenerateSendRecordThreshold(long value)
      Deprecated.
      proto.CryptoGetInfoResponse.AccountInfo.generateSendRecordThreshold is deprecated. See crypto_get_info.proto;l=155
       *
       Obsolete and unused.<br/>
       The threshold amount, in tinybars, at which a record was created for
       any transaction that decreased the balance of this account.
       
      uint64 generateSendRecordThreshold = 9 [deprecated = true];
      Parameters:
      value - The generateSendRecordThreshold to set.
      Returns:
      This builder for chaining.
    • clearGenerateSendRecordThreshold

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder clearGenerateSendRecordThreshold()
      Deprecated.
      proto.CryptoGetInfoResponse.AccountInfo.generateSendRecordThreshold is deprecated. See crypto_get_info.proto;l=155
       *
       Obsolete and unused.<br/>
       The threshold amount, in tinybars, at which a record was created for
       any transaction that decreased the balance of this account.
       
      uint64 generateSendRecordThreshold = 9 [deprecated = true];
      Returns:
      This builder for chaining.
    • getGenerateReceiveRecordThreshold

      @Deprecated public long getGenerateReceiveRecordThreshold()
      Deprecated.
      proto.CryptoGetInfoResponse.AccountInfo.generateReceiveRecordThreshold is deprecated. See crypto_get_info.proto;l=162
       *
       Obsolete and unused.<br/>
       The threshold amount, in tinybars, at which a record was created for
       any transaction that increased the balance of this account.
       
      uint64 generateReceiveRecordThreshold = 10 [deprecated = true];
      Specified by:
      getGenerateReceiveRecordThreshold in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The generateReceiveRecordThreshold.
    • setGenerateReceiveRecordThreshold

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder setGenerateReceiveRecordThreshold(long value)
      Deprecated.
      proto.CryptoGetInfoResponse.AccountInfo.generateReceiveRecordThreshold is deprecated. See crypto_get_info.proto;l=162
       *
       Obsolete and unused.<br/>
       The threshold amount, in tinybars, at which a record was created for
       any transaction that increased the balance of this account.
       
      uint64 generateReceiveRecordThreshold = 10 [deprecated = true];
      Parameters:
      value - The generateReceiveRecordThreshold to set.
      Returns:
      This builder for chaining.
    • clearGenerateReceiveRecordThreshold

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder clearGenerateReceiveRecordThreshold()
      Deprecated.
      proto.CryptoGetInfoResponse.AccountInfo.generateReceiveRecordThreshold is deprecated. See crypto_get_info.proto;l=162
       *
       Obsolete and unused.<br/>
       The threshold amount, in tinybars, at which a record was created for
       any transaction that increased the balance of this account.
       
      uint64 generateReceiveRecordThreshold = 10 [deprecated = true];
      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 receiverSigRequired = 11;
      Specified by:
      getReceiverSigRequired in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The receiverSigRequired.
    • setReceiverSigRequired

      public CryptoGetInfoResponse.AccountInfo.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 receiverSigRequired = 11;
      Parameters:
      value - The receiverSigRequired to set.
      Returns:
      This builder for chaining.
    • clearReceiverSigRequired

      public CryptoGetInfoResponse.AccountInfo.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 receiverSigRequired = 11;
      Returns:
      This builder for chaining.
    • hasExpirationTime

      public boolean hasExpirationTime()
       *
       The current expiration time for this account.
       <p>
       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.
       
      .proto.Timestamp expirationTime = 12;
      Specified by:
      hasExpirationTime in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public Timestamp getExpirationTime()
       *
       The current expiration time for this account.
       <p>
       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.
       
      .proto.Timestamp expirationTime = 12;
      Specified by:
      getExpirationTime in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The expirationTime.
    • setExpirationTime

      public CryptoGetInfoResponse.AccountInfo.Builder setExpirationTime(Timestamp value)
       *
       The current expiration time for this account.
       <p>
       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.
       
      .proto.Timestamp expirationTime = 12;
    • setExpirationTime

      public CryptoGetInfoResponse.AccountInfo.Builder setExpirationTime(Timestamp.Builder builderForValue)
       *
       The current expiration time for this account.
       <p>
       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.
       
      .proto.Timestamp expirationTime = 12;
    • mergeExpirationTime

      public CryptoGetInfoResponse.AccountInfo.Builder mergeExpirationTime(Timestamp value)
       *
       The current expiration time for this account.
       <p>
       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.
       
      .proto.Timestamp expirationTime = 12;
    • clearExpirationTime

      public CryptoGetInfoResponse.AccountInfo.Builder clearExpirationTime()
       *
       The current expiration time for this account.
       <p>
       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.
       
      .proto.Timestamp expirationTime = 12;
    • hasAutoRenewPeriod

      public boolean hasAutoRenewPeriod()
       *
       A duration to extend this account's expiration.
       <p>
       The network SHALL extend the account's expiration by this
       duration, 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.
       
      .proto.Duration autoRenewPeriod = 13;
      Specified by:
      hasAutoRenewPeriod in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      Whether the autoRenewPeriod field is set.
    • getAutoRenewPeriod

      public Duration getAutoRenewPeriod()
       *
       A duration to extend this account's expiration.
       <p>
       The network SHALL extend the account's expiration by this
       duration, 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.
       
      .proto.Duration autoRenewPeriod = 13;
      Specified by:
      getAutoRenewPeriod in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The autoRenewPeriod.
    • setAutoRenewPeriod

      public CryptoGetInfoResponse.AccountInfo.Builder setAutoRenewPeriod(Duration value)
       *
       A duration to extend this account's expiration.
       <p>
       The network SHALL extend the account's expiration by this
       duration, 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.
       
      .proto.Duration autoRenewPeriod = 13;
    • setAutoRenewPeriod

      public CryptoGetInfoResponse.AccountInfo.Builder setAutoRenewPeriod(Duration.Builder builderForValue)
       *
       A duration to extend this account's expiration.
       <p>
       The network SHALL extend the account's expiration by this
       duration, 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.
       
      .proto.Duration autoRenewPeriod = 13;
    • mergeAutoRenewPeriod

      public CryptoGetInfoResponse.AccountInfo.Builder mergeAutoRenewPeriod(Duration value)
       *
       A duration to extend this account's expiration.
       <p>
       The network SHALL extend the account's expiration by this
       duration, 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.
       
      .proto.Duration autoRenewPeriod = 13;
    • clearAutoRenewPeriod

      public CryptoGetInfoResponse.AccountInfo.Builder clearAutoRenewPeriod()
       *
       A duration to extend this account's expiration.
       <p>
       The network SHALL extend the account's expiration by this
       duration, 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.
       
      .proto.Duration autoRenewPeriod = 13;
    • getLiveHashesList

      public List<LiveHash> getLiveHashesList()
       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
      Specified by:
      getLiveHashesList in interface CryptoGetInfoResponse.AccountInfoOrBuilder
    • getLiveHashesCount

      public int getLiveHashesCount()
       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
      Specified by:
      getLiveHashesCount in interface CryptoGetInfoResponse.AccountInfoOrBuilder
    • getLiveHashes

      public LiveHash getLiveHashes(int index)
       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
      Specified by:
      getLiveHashes in interface CryptoGetInfoResponse.AccountInfoOrBuilder
    • setLiveHashes

      public CryptoGetInfoResponse.AccountInfo.Builder setLiveHashes(int index, LiveHash value)
       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
    • setLiveHashes

      public CryptoGetInfoResponse.AccountInfo.Builder setLiveHashes(int index, LiveHash.Builder builderForValue)
       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
    • addLiveHashes

       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
    • addLiveHashes

      public CryptoGetInfoResponse.AccountInfo.Builder addLiveHashes(int index, LiveHash value)
       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
    • addLiveHashes

      public CryptoGetInfoResponse.AccountInfo.Builder addLiveHashes(LiveHash.Builder builderForValue)
       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
    • addLiveHashes

      public CryptoGetInfoResponse.AccountInfo.Builder addLiveHashes(int index, LiveHash.Builder builderForValue)
       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
    • addAllLiveHashes

      public CryptoGetInfoResponse.AccountInfo.Builder addAllLiveHashes(Iterable<? extends LiveHash> values)
       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
    • clearLiveHashes

       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
    • removeLiveHashes

      public CryptoGetInfoResponse.AccountInfo.Builder removeLiveHashes(int index)
       *
       All of the livehashes attached to the account (each of which is a
       hash along with the keys that authorized it and can delete it)
       
      repeated .proto.LiveHash liveHashes = 14;
    • getTokenRelationshipsList

      @Deprecated public List<TokenRelationship> getTokenRelationshipsList()
      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
      Specified by:
      getTokenRelationshipsList in interface CryptoGetInfoResponse.AccountInfoOrBuilder
    • getTokenRelationshipsCount

      @Deprecated public int getTokenRelationshipsCount()
      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
      Specified by:
      getTokenRelationshipsCount in interface CryptoGetInfoResponse.AccountInfoOrBuilder
    • getTokenRelationships

      @Deprecated public TokenRelationship getTokenRelationships(int index)
      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
      Specified by:
      getTokenRelationships in interface CryptoGetInfoResponse.AccountInfoOrBuilder
    • setTokenRelationships

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder setTokenRelationships(int index, TokenRelationship value)
      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
    • setTokenRelationships

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder setTokenRelationships(int index, TokenRelationship.Builder builderForValue)
      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
    • addTokenRelationships

      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
    • addTokenRelationships

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder addTokenRelationships(int index, TokenRelationship value)
      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
    • addTokenRelationships

      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
    • addTokenRelationships

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder addTokenRelationships(int index, TokenRelationship.Builder builderForValue)
      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
    • addAllTokenRelationships

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder addAllTokenRelationships(Iterable<? extends TokenRelationship> values)
      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
    • clearTokenRelationships

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder clearTokenRelationships()
      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
    • removeTokenRelationships

      @Deprecated public CryptoGetInfoResponse.AccountInfo.Builder removeTokenRelationships(int index)
      Deprecated.
       *
       As of `HIP-367`, which enabled unlimited token associations, the
       potential scale for this value requires that users consult a mirror
       node for this information.
       
      repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
    • 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 = 16;
      Specified by:
      getMemo in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      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 = 16;
      Specified by:
      getMemoBytes in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The bytes for memo.
    • setMemo

       *
       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 = 16;
      Parameters:
      value - The memo to set.
      Returns:
      This builder for chaining.
    • 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 = 16;
      Returns:
      This builder for chaining.
    • setMemoBytes

      public CryptoGetInfoResponse.AccountInfo.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 = 16;
      Parameters:
      value - The bytes for memo to set.
      Returns:
      This builder for chaining.
    • getOwnedNfts

      public long getOwnedNfts()
       *
       The total number of non-fungible/unique tokens owned by this account.
       
      int64 ownedNfts = 17;
      Specified by:
      getOwnedNfts in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The ownedNfts.
    • setOwnedNfts

      public CryptoGetInfoResponse.AccountInfo.Builder setOwnedNfts(long value)
       *
       The total number of non-fungible/unique tokens owned by this account.
       
      int64 ownedNfts = 17;
      Parameters:
      value - The ownedNfts to set.
      Returns:
      This builder for chaining.
    • clearOwnedNfts

       *
       The total number of non-fungible/unique tokens owned by this account.
       
      int64 ownedNfts = 17;
      Returns:
      This builder for chaining.
    • getMaxAutomaticTokenAssociations

      public int getMaxAutomaticTokenAssociations()
       *
       The maximum number of tokens that can be auto-associated with the
       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/>
       Following HIP-904 This value may also be `-1` to indicate no
       limit.<br/>
       This value MUST NOT be less than `-1`.
       
      int32 max_automatic_token_associations = 18;
      Specified by:
      getMaxAutomaticTokenAssociations in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The maxAutomaticTokenAssociations.
    • setMaxAutomaticTokenAssociations

      public CryptoGetInfoResponse.AccountInfo.Builder setMaxAutomaticTokenAssociations(int value)
       *
       The maximum number of tokens that can be auto-associated with the
       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/>
       Following HIP-904 This value may also be `-1` to indicate no
       limit.<br/>
       This value MUST NOT be less than `-1`.
       
      int32 max_automatic_token_associations = 18;
      Parameters:
      value - The maxAutomaticTokenAssociations to set.
      Returns:
      This builder for chaining.
    • clearMaxAutomaticTokenAssociations

      public CryptoGetInfoResponse.AccountInfo.Builder clearMaxAutomaticTokenAssociations()
       *
       The maximum number of tokens that can be auto-associated with the
       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/>
       Following HIP-904 This value may also be `-1` to indicate no
       limit.<br/>
       This value MUST NOT be less than `-1`.
       
      int32 max_automatic_token_associations = 18;
      Returns:
      This builder for chaining.
    • getAlias

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

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

       *
       An account alias.<br/>
       This is a value used in some contexts to reference an account when
       the tripartite account identifier is not available.
       <p>
       This field, when set to a non-default value, is immutable and
       SHALL NOT be changed.
       
      bytes alias = 19;
      Returns:
      This builder for chaining.
    • getLedgerId

      public com.google.protobuf.ByteString getLedgerId()
       *
       The ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 20;
      Specified by:
      getLedgerId in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The ledgerId.
    • setLedgerId

      public CryptoGetInfoResponse.AccountInfo.Builder setLedgerId(com.google.protobuf.ByteString value)
       *
       The ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 20;
      Parameters:
      value - The ledgerId to set.
      Returns:
      This builder for chaining.
    • clearLedgerId

       *
       The ledger ID of the network that generated this response.
       <p>
       This value SHALL identify the distributed ledger that responded to
       this query.
       
      bytes ledger_id = 20;
      Returns:
      This builder for chaining.
    • getEthereumNonce

      public long getEthereumNonce()
       *
       The ethereum transaction nonce associated with this account.
       
      int64 ethereum_nonce = 21;
      Specified by:
      getEthereumNonce in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The ethereumNonce.
    • setEthereumNonce

      public CryptoGetInfoResponse.AccountInfo.Builder setEthereumNonce(long value)
       *
       The ethereum transaction nonce associated with this account.
       
      int64 ethereum_nonce = 21;
      Parameters:
      value - The ethereumNonce to set.
      Returns:
      This builder for chaining.
    • clearEthereumNonce

      public CryptoGetInfoResponse.AccountInfo.Builder clearEthereumNonce()
       *
       The ethereum transaction nonce associated with this account.
       
      int64 ethereum_nonce = 21;
      Returns:
      This builder for chaining.
    • hasStakingInfo

      public boolean hasStakingInfo()
       *
       Staking information for this account.
       
      .proto.StakingInfo staking_info = 22;
      Specified by:
      hasStakingInfo in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      Whether the stakingInfo field is set.
    • getStakingInfo

      public StakingInfo getStakingInfo()
       *
       Staking information for this account.
       
      .proto.StakingInfo staking_info = 22;
      Specified by:
      getStakingInfo in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The stakingInfo.
    • setStakingInfo

       *
       Staking information for this account.
       
      .proto.StakingInfo staking_info = 22;
    • setStakingInfo

      public CryptoGetInfoResponse.AccountInfo.Builder setStakingInfo(StakingInfo.Builder builderForValue)
       *
       Staking information for this account.
       
      .proto.StakingInfo staking_info = 22;
    • mergeStakingInfo

      public CryptoGetInfoResponse.AccountInfo.Builder mergeStakingInfo(StakingInfo value)
       *
       Staking information for this account.
       
      .proto.StakingInfo staking_info = 22;
    • clearStakingInfo

      public CryptoGetInfoResponse.AccountInfo.Builder clearStakingInfo()
       *
       Staking information for this account.
       
      .proto.StakingInfo staking_info = 22;
    • 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 = 23;
      Specified by:
      getDelegationAddress in interface CryptoGetInfoResponse.AccountInfoOrBuilder
      Returns:
      The delegationAddress.
    • setDelegationAddress

      public CryptoGetInfoResponse.AccountInfo.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 = 23;
      Parameters:
      value - The delegationAddress to set.
      Returns:
      This builder for chaining.
    • clearDelegationAddress

      public CryptoGetInfoResponse.AccountInfo.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 = 23;
      Returns:
      This builder for chaining.