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
  • Field Details

  • 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:
      hasHeader in interface CryptoGetAccountBalanceResponseOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public ResponseHeader 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:
      getHeader in interface CryptoGetAccountBalanceResponseOrBuilder
      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:
      hasAccountID in interface CryptoGetAccountBalanceResponseOrBuilder
      Returns:
      Whether the accountID field is set.
    • getAccountID

      public AccountID 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:
      getAccountID in interface CryptoGetAccountBalanceResponseOrBuilder
      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:
      getBalance in interface CryptoGetAccountBalanceResponseOrBuilder
      Returns:
      The balance.
    • getTokenBalancesList

      @Deprecated public List<TokenBalance> 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:
      getTokenBalancesList in interface CryptoGetAccountBalanceResponseOrBuilder
    • getTokenBalancesOrBuilderList

      @Deprecated public List<? extends TokenBalanceOrBuilder> 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 public int 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:
      getTokenBalancesCount in interface CryptoGetAccountBalanceResponseOrBuilder
    • getTokenBalances

      @Deprecated public TokenBalance getTokenBalances(int index)
      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:
      getTokenBalances in interface CryptoGetAccountBalanceResponseOrBuilder
    • getTokenBalancesOrBuilder

      @Deprecated public TokenBalanceOrBuilder getTokenBalancesOrBuilder(int index)
      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

      public static CryptoGetAccountBalanceResponse parseFrom(InputStream input) throws IOException
      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

      public static CryptoGetAccountBalanceResponse.Builder newBuilder()
    • newBuilder

    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<CryptoGetAccountBalanceResponse,CryptoGetAccountBalanceResponse.Builder>
    • getDefaultInstance

      public static CryptoGetAccountBalanceResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CryptoGetAccountBalanceResponse> parser()