Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllTokenBalances(Iterable<? extends TokenBalance> values) Deprecated.addTokenBalances(int index, TokenBalance value) Deprecated.addTokenBalances(int index, TokenBalance.Builder builderForValue) Deprecated.addTokenBalances(TokenBalance value) Deprecated.addTokenBalances(TokenBalance.Builder builderForValue) Deprecated.* An account identifier.<br/> This is the account ID queried.* A current account balance.<br/> This is the current HBAR balance denominated in tinybar (10<sup>-8</sup> HBAR).* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).Deprecated.* An account identifier.<br/> This is the account ID queried.long* A current account balance.<br/> This is the current HBAR balance denominated in tinybar (10<sup>-8</sup> HBAR).* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).getTokenBalances(int index) Deprecated.intDeprecated.Deprecated.boolean* An account identifier.<br/> This is the account ID queried.boolean* The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).mergeAccountID(AccountID value) * An account identifier.<br/> This is the account ID queried.mergeHeader(ResponseHeader value) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).removeTokenBalances(int index) Deprecated.setAccountID(AccountID value) * An account identifier.<br/> This is the account ID queried.setAccountID(AccountID.Builder builderForValue) * An account identifier.<br/> This is the account ID queried.setBalance(long value) * A current account balance.<br/> This is the current HBAR balance denominated in tinybar (10<sup>-8</sup> HBAR).setHeader(ResponseHeader value) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).setHeader(ResponseHeader.Builder builderForValue) * The standard response information for queries.<br/> This includes the values requested in the `QueryHeader` (cost, state proof, both, or neither).setTokenBalances(int index, TokenBalance value) Deprecated.setTokenBalances(int index, TokenBalance.Builder builderForValue) Deprecated.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
-
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:
hasHeaderin interfaceCryptoGetAccountBalanceResponseOrBuilder- Returns:
- Whether the header field is set.
-
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:
getHeaderin interfaceCryptoGetAccountBalanceResponseOrBuilder- 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:
hasAccountIDin interfaceCryptoGetAccountBalanceResponseOrBuilder- Returns:
- Whether the accountID field is set.
-
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:
getAccountIDin interfaceCryptoGetAccountBalanceResponseOrBuilder- 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
* 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
* 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
* 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:
getBalancein interfaceCryptoGetAccountBalanceResponseOrBuilder- Returns:
- The balance.
-
setBalance
* 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.* 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:
getTokenBalancesListin interfaceCryptoGetAccountBalanceResponseOrBuilder
-
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:
getTokenBalancesCountin interfaceCryptoGetAccountBalanceResponseOrBuilder
-
getTokenBalances
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:
getTokenBalancesin interfaceCryptoGetAccountBalanceResponseOrBuilder
-
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 public CryptoGetAccountBalanceResponse.Builder addTokenBalances(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 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.* 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];
-