Class CryptoGetAccountBalanceQuery.Builder

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

public static final class CryptoGetAccountBalanceQuery.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<CryptoGetAccountBalanceQuery,CryptoGetAccountBalanceQuery.Builder> implements CryptoGetAccountBalanceQueryOrBuilder
 *
 Query to read the HBAR balance of an account or contract.

 This query SHALL return _only_ the HBAR balance for an account
 or smart contract. Early releases of the network would return all
 fungible/common token balances, but HIP-367 made it infeasible to
 return all such balances. This query SHALL NOT return any information
 beyond the current HBAR balance.
 
Protobuf type proto.CryptoGetAccountBalanceQuery
  • Method Details

    • getBalanceSourceCase

      public CryptoGetAccountBalanceQuery.BalanceSourceCase getBalanceSourceCase()
      Specified by:
      getBalanceSourceCase in interface CryptoGetAccountBalanceQueryOrBuilder
    • clearBalanceSource

      public CryptoGetAccountBalanceQuery.Builder clearBalanceSource()
    • hasHeader

      public boolean hasHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
      Specified by:
      hasHeader in interface CryptoGetAccountBalanceQueryOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public QueryHeader getHeader()
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
      Specified by:
      getHeader in interface CryptoGetAccountBalanceQueryOrBuilder
      Returns:
      The header.
    • setHeader

       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • setHeader

      public CryptoGetAccountBalanceQuery.Builder setHeader(QueryHeader.Builder builderForValue)
       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • mergeHeader

       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • clearHeader

       *
       Standard information sent with every query operation.<br/>
       This includes the signed payment and what kind of response is requested
       (cost, state proof, both, or neither).
       
      .proto.QueryHeader header = 1;
    • hasAccountID

      public boolean hasAccountID()
       *
       An account identifier.<br/>
       This identifies an account for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.AccountID accountID = 2;
      Specified by:
      hasAccountID in interface CryptoGetAccountBalanceQueryOrBuilder
      Returns:
      Whether the accountID field is set.
    • getAccountID

      public AccountID getAccountID()
       *
       An account identifier.<br/>
       This identifies an account for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.AccountID accountID = 2;
      Specified by:
      getAccountID in interface CryptoGetAccountBalanceQueryOrBuilder
      Returns:
      The accountID.
    • setAccountID

      public CryptoGetAccountBalanceQuery.Builder setAccountID(AccountID value)
       *
       An account identifier.<br/>
       This identifies an account for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.AccountID accountID = 2;
    • setAccountID

      public CryptoGetAccountBalanceQuery.Builder setAccountID(AccountID.Builder builderForValue)
       *
       An account identifier.<br/>
       This identifies an account for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.AccountID accountID = 2;
    • mergeAccountID

      public CryptoGetAccountBalanceQuery.Builder mergeAccountID(AccountID value)
       *
       An account identifier.<br/>
       This identifies an account for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.AccountID accountID = 2;
    • clearAccountID

      public CryptoGetAccountBalanceQuery.Builder clearAccountID()
       *
       An account identifier.<br/>
       This identifies an account for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.AccountID accountID = 2;
    • hasContractID

      public boolean hasContractID()
       *
       A smart contract identifier.<br/>
       This identifies a smart contract for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.ContractID contractID = 3;
      Specified by:
      hasContractID in interface CryptoGetAccountBalanceQueryOrBuilder
      Returns:
      Whether the contractID field is set.
    • getContractID

      public ContractID getContractID()
       *
       A smart contract identifier.<br/>
       This identifies a smart contract for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.ContractID contractID = 3;
      Specified by:
      getContractID in interface CryptoGetAccountBalanceQueryOrBuilder
      Returns:
      The contractID.
    • setContractID

      public CryptoGetAccountBalanceQuery.Builder setContractID(ContractID value)
       *
       A smart contract identifier.<br/>
       This identifies a smart contract for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.ContractID contractID = 3;
    • setContractID

      public CryptoGetAccountBalanceQuery.Builder setContractID(ContractID.Builder builderForValue)
       *
       A smart contract identifier.<br/>
       This identifies a smart contract for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.ContractID contractID = 3;
    • mergeContractID

      public CryptoGetAccountBalanceQuery.Builder mergeContractID(ContractID value)
       *
       A smart contract identifier.<br/>
       This identifies a smart contract for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.ContractID contractID = 3;
    • clearContractID

      public CryptoGetAccountBalanceQuery.Builder clearContractID()
       *
       A smart contract identifier.<br/>
       This identifies a smart contract for which the balance is requested.
       <p>
       Exactly one identifier MUST be provided.
       
      .proto.ContractID contractID = 3;