Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class CryptoGetAccountBalanceQuery
java.lang.Object
com.google.protobuf.AbstractMessageLite<CryptoGetAccountBalanceQuery,CryptoGetAccountBalanceQuery.Builder>
com.google.protobuf.GeneratedMessageLite<CryptoGetAccountBalanceQuery,CryptoGetAccountBalanceQuery.Builder>
com.hedera.hashgraph.sdk.proto.CryptoGetAccountBalanceQuery
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,CryptoGetAccountBalanceQueryOrBuilder
@Generated
public final class CryptoGetAccountBalanceQuery
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final class* Query to read the HBAR balance of an 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 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 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.static CryptoGetAccountBalanceQuery* 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).newBuilder(CryptoGetAccountBalanceQuery prototype) static CryptoGetAccountBalanceQueryparseDelimitedFrom(InputStream input) static CryptoGetAccountBalanceQueryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CryptoGetAccountBalanceQueryparseFrom(byte[] data) static CryptoGetAccountBalanceQueryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CryptoGetAccountBalanceQueryparseFrom(com.google.protobuf.ByteString data) static CryptoGetAccountBalanceQueryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CryptoGetAccountBalanceQueryparseFrom(com.google.protobuf.CodedInputStream input) static CryptoGetAccountBalanceQueryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CryptoGetAccountBalanceQueryparseFrom(InputStream input) static CryptoGetAccountBalanceQueryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CryptoGetAccountBalanceQueryparseFrom(ByteBuffer data) static CryptoGetAccountBalanceQueryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CryptoGetAccountBalanceQuery> 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:
-
CONTRACTID_FIELD_NUMBER
public static final int CONTRACTID_FIELD_NUMBER- See Also:
-
-
Method Details
-
getBalanceSourceCase
- Specified by:
getBalanceSourceCasein interfaceCryptoGetAccountBalanceQueryOrBuilder
-
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.
-
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.
-
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.
-
parseFrom
public static CryptoGetAccountBalanceQuery parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoGetAccountBalanceQuery parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoGetAccountBalanceQuery parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoGetAccountBalanceQuery parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoGetAccountBalanceQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoGetAccountBalanceQuery parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CryptoGetAccountBalanceQuery parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CryptoGetAccountBalanceQuery parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CryptoGetAccountBalanceQuery parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CryptoGetAccountBalanceQuery parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static CryptoGetAccountBalanceQuery.Builder newBuilder(CryptoGetAccountBalanceQuery prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<CryptoGetAccountBalanceQuery,CryptoGetAccountBalanceQuery.Builder>
-
getDefaultInstance
-
parser
-