Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crypto_get_account_balance.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* Response when the client sends the node CryptoGetAccountBalanceQuery
*
*
* Protobuf type {@code proto.CryptoGetAccountBalanceResponse}
*/
public final class CryptoGetAccountBalanceResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.CryptoGetAccountBalanceResponse)
CryptoGetAccountBalanceResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CryptoGetAccountBalanceResponse.newBuilder() to construct.
private CryptoGetAccountBalanceResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CryptoGetAccountBalanceResponse() {
tokenBalances_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CryptoGetAccountBalanceResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CryptoGetAccountBalanceResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.hederahashgraph.api.proto.java.ResponseHeader.Builder subBuilder = null;
if (header_ != null) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(com.hederahashgraph.api.proto.java.ResponseHeader.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (accountID_ != null) {
subBuilder = accountID_.toBuilder();
}
accountID_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(accountID_);
accountID_ = subBuilder.buildPartial();
}
break;
}
case 24: {
balance_ = input.readUInt64();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
tokenBalances_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
tokenBalances_.add(
input.readMessage(com.hederahashgraph.api.proto.java.TokenBalance.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
tokenBalances_ = java.util.Collections.unmodifiableList(tokenBalances_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.CryptoGetAccountBalance.internal_static_proto_CryptoGetAccountBalanceResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.CryptoGetAccountBalance.internal_static_proto_CryptoGetAccountBalanceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse.class, com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse.Builder.class);
}
public static final int HEADER_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.ResponseHeader header_;
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither.
*
*
* .proto.ResponseHeader header = 1;
* @return Whether the header field is set.
*/
@java.lang.Override
public boolean hasHeader() {
return header_ != null;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither.
*
**
* The account ID that is being described (this is useful with state proofs, for proving to a
* third party)
*
*
* .proto.AccountID accountID = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIDOrBuilder() {
return getAccountID();
}
public static final int BALANCE_FIELD_NUMBER = 3;
private long balance_;
/**
*
**
* The current balance, in tinybars.
*
*
* uint64 balance = 3;
* @return The balance.
*/
@java.lang.Override
public long getBalance() {
return balance_;
}
public static final int TOKENBALANCES_FIELD_NUMBER = 4;
private java.util.List tokenBalances_;
/**
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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];
*/
@java.lang.Override
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.TokenBalanceOrBuilder getTokenBalancesOrBuilder(
int index) {
return tokenBalances_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (header_ != null) {
output.writeMessage(1, getHeader());
}
if (accountID_ != null) {
output.writeMessage(2, getAccountID());
}
if (balance_ != 0L) {
output.writeUInt64(3, balance_);
}
for (int i = 0; i < tokenBalances_.size(); i++) {
output.writeMessage(4, tokenBalances_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (header_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (accountID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccountID());
}
if (balance_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, balance_);
}
for (int i = 0; i < tokenBalances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, tokenBalances_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse other = (com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasAccountID() != other.hasAccountID()) return false;
if (hasAccountID()) {
if (!getAccountID()
.equals(other.getAccountID())) return false;
}
if (getBalance()
!= other.getBalance()) return false;
if (!getTokenBalancesList()
.equals(other.getTokenBalancesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
if (hasAccountID()) {
hash = (37 * hash) + ACCOUNTID_FIELD_NUMBER;
hash = (53 * hash) + getAccountID().hashCode();
}
hash = (37 * hash) + BALANCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBalance());
if (getTokenBalancesCount() > 0) {
hash = (37 * hash) + TOKENBALANCES_FIELD_NUMBER;
hash = (53 * hash) + getTokenBalancesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* Response when the client sends the node CryptoGetAccountBalanceQuery
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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];
*/
@java.lang.Deprecated public Builder setTokenBalances(
int index, com.hederahashgraph.api.proto.java.TokenBalance value) {
if (tokenBalancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenBalancesIsMutable();
tokenBalances_.set(index, value);
onChanged();
} else {
tokenBalancesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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];
*/
@java.lang.Deprecated public Builder addTokenBalances(
int index, com.hederahashgraph.api.proto.java.TokenBalance value) {
if (tokenBalancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenBalancesIsMutable();
tokenBalances_.add(index, value);
onChanged();
} else {
tokenBalancesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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.
*
**
* [DEPRECATED] The balances of the tokens associated to the account. 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];
*/
@java.lang.Deprecated public java.util.List
getTokenBalancesBuilderList() {
return getTokenBalancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenBalance, com.hederahashgraph.api.proto.java.TokenBalance.Builder, com.hederahashgraph.api.proto.java.TokenBalanceOrBuilder>
getTokenBalancesFieldBuilder() {
if (tokenBalancesBuilder_ == null) {
tokenBalancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenBalance, com.hederahashgraph.api.proto.java.TokenBalance.Builder, com.hederahashgraph.api.proto.java.TokenBalanceOrBuilder>(
tokenBalances_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
tokenBalances_ = null;
}
return tokenBalancesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.CryptoGetAccountBalanceResponse)
}
// @@protoc_insertion_point(class_scope:proto.CryptoGetAccountBalanceResponse)
private static final com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse();
}
public static com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CryptoGetAccountBalanceResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CryptoGetAccountBalanceResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.CryptoGetAccountBalanceResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}