Class CryptoGetAccountBalanceResponse.Builder

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

public static final class CryptoGetAccountBalanceResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<CryptoGetAccountBalanceResponse,CryptoGetAccountBalanceResponse.Builder> implements CryptoGetAccountBalanceResponseOrBuilder
 *
 Response to a CryptoGetAccountBalanceQuery.<br/>

 This response SHALL contain only the information needed to
 identify the query request and the actual HBAR balance of the
 identified account or contract.
 
Protobuf type proto.CryptoGetAccountBalanceResponse
  • Method Details

    • hasHeader

      public boolean hasHeader()
       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
      Specified by:
      hasHeader in interface CryptoGetAccountBalanceResponseOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public ResponseHeader getHeader()
       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
      Specified by:
      getHeader in interface CryptoGetAccountBalanceResponseOrBuilder
      Returns:
      The header.
    • setHeader

       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
    • setHeader

       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
    • mergeHeader

       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
    • clearHeader

       *
       The standard response information for queries.<br/>
       This includes the values requested in the `QueryHeader`
       (cost, state proof, both, or neither).
       
      .proto.ResponseHeader header = 1;
    • hasAccountID

      public boolean hasAccountID()
       *
       An account identifier.<br/>
       This is the account ID queried. <br/>
       The inclusion of the account queried is useful with state proofs,
       when needed to prove an account balance to a third party.
       
      .proto.AccountID accountID = 2;
      Specified by:
      hasAccountID in interface CryptoGetAccountBalanceResponseOrBuilder
      Returns:
      Whether the accountID field is set.
    • getAccountID

      public AccountID getAccountID()
       *
       An account identifier.<br/>
       This is the account ID queried. <br/>
       The inclusion of the account queried is useful with state proofs,
       when needed to prove an account balance to a third party.
       
      .proto.AccountID accountID = 2;
      Specified by:
      getAccountID in interface CryptoGetAccountBalanceResponseOrBuilder
      Returns:
      The accountID.
    • setAccountID

       *
       An account identifier.<br/>
       This is the account ID queried. <br/>
       The inclusion of the account queried is useful with state proofs,
       when needed to prove an account balance to a third party.
       
      .proto.AccountID accountID = 2;
    • setAccountID

      public CryptoGetAccountBalanceResponse.Builder setAccountID(AccountID.Builder builderForValue)
       *
       An account identifier.<br/>
       This is the account ID queried. <br/>
       The inclusion of the account queried is useful with state proofs,
       when needed to prove an account balance to a third party.
       
      .proto.AccountID accountID = 2;
    • mergeAccountID

      public CryptoGetAccountBalanceResponse.Builder mergeAccountID(AccountID value)
       *
       An account identifier.<br/>
       This is the account ID queried. <br/>
       The inclusion of the account queried is useful with state proofs,
       when needed to prove an account balance to a third party.
       
      .proto.AccountID accountID = 2;
    • clearAccountID

      public CryptoGetAccountBalanceResponse.Builder clearAccountID()
       *
       An account identifier.<br/>
       This is the account ID queried. <br/>
       The inclusion of the account queried is useful with state proofs,
       when needed to prove an account balance to a third party.
       
      .proto.AccountID accountID = 2;
    • getBalance

      public long getBalance()
       *
       A current account balance.<br/>
       This is the current HBAR balance denominated in tinybar
       (10<sup>-8</sup> HBAR).
       
      uint64 balance = 3;
      Specified by:
      getBalance in interface CryptoGetAccountBalanceResponseOrBuilder
      Returns:
      The balance.
    • setBalance

      public CryptoGetAccountBalanceResponse.Builder setBalance(long value)
       *
       A current account balance.<br/>
       This is the current HBAR balance denominated in tinybar
       (10<sup>-8</sup> HBAR).
       
      uint64 balance = 3;
      Parameters:
      value - The balance to set.
      Returns:
      This builder for chaining.
    • clearBalance

       *
       A current account balance.<br/>
       This is the current HBAR balance denominated in tinybar
       (10<sup>-8</sup> HBAR).
       
      uint64 balance = 3;
      Returns:
      This builder for chaining.
    • getTokenBalancesList

      @Deprecated public List<TokenBalance> getTokenBalancesList()
      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
      Specified by:
      getTokenBalancesList in interface CryptoGetAccountBalanceResponseOrBuilder
    • getTokenBalancesCount

      @Deprecated public int getTokenBalancesCount()
      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
      Specified by:
      getTokenBalancesCount in interface CryptoGetAccountBalanceResponseOrBuilder
    • getTokenBalances

      @Deprecated public TokenBalance getTokenBalances(int index)
      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
      Specified by:
      getTokenBalances in interface CryptoGetAccountBalanceResponseOrBuilder
    • setTokenBalances

      @Deprecated public CryptoGetAccountBalanceResponse.Builder setTokenBalances(int index, TokenBalance value)
      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
    • setTokenBalances

      @Deprecated public CryptoGetAccountBalanceResponse.Builder setTokenBalances(int index, TokenBalance.Builder builderForValue)
      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
    • addTokenBalances

      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
    • addTokenBalances

      @Deprecated public CryptoGetAccountBalanceResponse.Builder addTokenBalances(int index, TokenBalance value)
      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
    • addTokenBalances

      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
    • addTokenBalances

      @Deprecated public CryptoGetAccountBalanceResponse.Builder addTokenBalances(int index, TokenBalance.Builder builderForValue)
      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
    • addAllTokenBalances

      @Deprecated public CryptoGetAccountBalanceResponse.Builder addAllTokenBalances(Iterable<? extends TokenBalance> values)
      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
    • clearTokenBalances

      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];
    • removeTokenBalances

      @Deprecated public CryptoGetAccountBalanceResponse.Builder removeTokenBalances(int index)
      Deprecated.
       *
       This field became infeasible to support after HIP-367 removed limits on
       the number of associated tokens.<br/>
       A list of token balances for all tokens associated to the account.
       <p>
       This field was deprecated by
       <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which
       allowed an account to be associated to an unlimited number of tokens.
       This scale makes it more efficient for users to consult mirror nodes
       to review their token balances.
       
      repeated .proto.TokenBalance tokenBalances = 4 [deprecated = true];