Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* An account identifier.<br/> This identifies an account for which the balance is requested.* A smart contract identifier.<br/> This identifies a smart contract for which the balance is requested.* 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).* An account identifier.<br/> This identifies an account for which the balance is requested.* A smart contract identifier.<br/> This identifies a smart contract for which the balance is requested.* 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).boolean* An account identifier.<br/> This identifies an account for which the balance is requested.boolean* A smart contract identifier.<br/> This identifies a smart contract for which the balance is requested.boolean* 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).mergeAccountID(AccountID value) * An account identifier.<br/> This identifies an account for which the balance is requested.mergeContractID(ContractID value) * A smart contract identifier.<br/> This identifies a smart contract for which the balance is requested.mergeHeader(QueryHeader value) * 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).setAccountID(AccountID value) * An account identifier.<br/> This identifies an account for which the balance is requested.setAccountID(AccountID.Builder builderForValue) * An account identifier.<br/> This identifies an account for which the balance is requested.setContractID(ContractID value) * A smart contract identifier.<br/> This identifies a smart contract for which the balance is requested.setContractID(ContractID.Builder builderForValue) * A smart contract identifier.<br/> This identifies a smart contract for which the balance is requested.setHeader(QueryHeader value) * 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).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).Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getBalanceSourceCase
- Specified by:
getBalanceSourceCasein interfaceCryptoGetAccountBalanceQueryOrBuilder
-
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:
hasHeaderin interfaceCryptoGetAccountBalanceQueryOrBuilder- Returns:
- Whether the header field is set.
-
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:
getHeaderin interfaceCryptoGetAccountBalanceQueryOrBuilder- 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
* 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:
hasAccountIDin interfaceCryptoGetAccountBalanceQueryOrBuilder- Returns:
- Whether the accountID field is set.
-
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:
getAccountIDin interfaceCryptoGetAccountBalanceQueryOrBuilder- Returns:
- The accountID.
-
setAccountID
* 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
* 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
* 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
* 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:
hasContractIDin interfaceCryptoGetAccountBalanceQueryOrBuilder- Returns:
- Whether the contractID field is set.
-
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:
getContractIDin interfaceCryptoGetAccountBalanceQueryOrBuilder- Returns:
- The contractID.
-
setContractID
* 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
* 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
* 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
* 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;
-