Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class CryptoGetAccountBalanceResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite<CryptoGetAccountBalanceResponse,CryptoGetAccountBalanceResponse.Builder>
com.google.protobuf.GeneratedMessageLite<CryptoGetAccountBalanceResponse,CryptoGetAccountBalanceResponse.Builder>
com.hedera.hashgraph.sdk.proto.CryptoGetAccountBalanceResponse
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,CryptoGetAccountBalanceResponseOrBuilder
@Generated
public final class CryptoGetAccountBalanceResponse
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* 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.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) * 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.getTokenBalancesOrBuilder(int index) Deprecated.List<? extends TokenBalanceOrBuilder> 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).newBuilder(CryptoGetAccountBalanceResponse prototype) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CryptoGetAccountBalanceResponse> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
HEADER_FIELD_NUMBER
public static final int HEADER_FIELD_NUMBER- See Also:
-
ACCOUNTID_FIELD_NUMBER
public static final int ACCOUNTID_FIELD_NUMBER- See Also:
-
BALANCE_FIELD_NUMBER
public static final int BALANCE_FIELD_NUMBER- See Also:
-
TOKENBALANCES_FIELD_NUMBER
public static final int TOKENBALANCES_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
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.
-
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
-
getTokenBalancesOrBuilderList
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]; -
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
-
getTokenBalancesOrBuilder
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]; -
parseFrom
public static CryptoGetAccountBalanceResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoGetAccountBalanceResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoGetAccountBalanceResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoGetAccountBalanceResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoGetAccountBalanceResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoGetAccountBalanceResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CryptoGetAccountBalanceResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static CryptoGetAccountBalanceResponse parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static CryptoGetAccountBalanceResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CryptoGetAccountBalanceResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CryptoGetAccountBalanceResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static CryptoGetAccountBalanceResponse.Builder newBuilder(CryptoGetAccountBalanceResponse prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<CryptoGetAccountBalanceResponse,CryptoGetAccountBalanceResponse.Builder>
-
getDefaultInstance
-
parser
-