com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: get_account_details.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Response when the client sends the node GetAccountDetailsQuery
*
*
* Protobuf type {@code proto.GetAccountDetailsResponse}
*/
public final class GetAccountDetailsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.GetAccountDetailsResponse)
GetAccountDetailsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetAccountDetailsResponse.newBuilder() to construct.
private GetAccountDetailsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAccountDetailsResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetAccountDetailsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetails.internal_static_proto_GetAccountDetailsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetails.internal_static_proto_GetAccountDetailsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.class, com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.Builder.class);
}
public interface AccountDetailsOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto.GetAccountDetailsResponse.AccountDetails)
com.google.protobuf.MessageOrBuilder {
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
* @return Whether the accountId field is set.
*/
boolean hasAccountId();
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
* @return The accountId.
*/
com.hedera.hashgraph.sdk.proto.AccountID getAccountId();
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
*/
com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder();
/**
*
**
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
* account owned by the contract instance, in the format used by Solidity
*
*
* string contract_account_id = 2;
* @return The contractAccountId.
*/
java.lang.String getContractAccountId();
/**
*
**
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
* account owned by the contract instance, in the format used by Solidity
*
*
* string contract_account_id = 2;
* @return The bytes for contractAccountId.
*/
com.google.protobuf.ByteString
getContractAccountIdBytes();
/**
*
**
* If true, then this account has been deleted, it will disappear when it expires, and all
* transactions for it will fail except the transaction to extend its expiration date
*
*
* bool deleted = 3;
* @return The deleted.
*/
boolean getDeleted();
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
* @deprecated proto.GetAccountDetailsResponse.AccountDetails.proxy_account_id is deprecated.
* See get_account_details.proto;l=88
* @return Whether the proxyAccountId field is set.
*/
@java.lang.Deprecated boolean hasProxyAccountId();
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
* @deprecated proto.GetAccountDetailsResponse.AccountDetails.proxy_account_id is deprecated.
* See get_account_details.proto;l=88
* @return The proxyAccountId.
*/
@java.lang.Deprecated com.hedera.hashgraph.sdk.proto.AccountID getProxyAccountId();
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
*/
@java.lang.Deprecated com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getProxyAccountIdOrBuilder();
/**
*
**
* The total number of tinybars proxy staked to this account
*
*
* int64 proxy_received = 5;
* @return The proxyReceived.
*/
long getProxyReceived();
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
* @return The key.
*/
com.hedera.hashgraph.sdk.proto.Key getKey();
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
*/
com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKeyOrBuilder();
/**
*
**
* The current balance of account in tinybars
*
*
* uint64 balance = 7;
* @return The balance.
*/
long getBalance();
/**
*
**
* If true, no transaction can transfer to this account unless signed by this account's key
*
*
* bool receiver_sig_required = 8;
* @return The receiverSigRequired.
*/
boolean getReceiverSigRequired();
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
* @return Whether the expirationTime field is set.
*/
boolean hasExpirationTime();
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
* @return The expirationTime.
*/
com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime();
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
*/
com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder();
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
* @return Whether the autoRenewPeriod field is set.
*/
boolean hasAutoRenewPeriod();
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
* @return The autoRenewPeriod.
*/
com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod();
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
*/
com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder();
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
java.util.List
getTokenRelationshipsList();
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
com.hedera.hashgraph.sdk.proto.TokenRelationship getTokenRelationships(int index);
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
int getTokenRelationshipsCount();
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
java.util.List extends com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder>
getTokenRelationshipsOrBuilderList();
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder getTokenRelationshipsOrBuilder(
int index);
/**
*
**
* The memo associated with the account
*
*
* string memo = 12;
* @return The memo.
*/
java.lang.String getMemo();
/**
*
**
* The memo associated with the account
*
*
* string memo = 12;
* @return The bytes for memo.
*/
com.google.protobuf.ByteString
getMemoBytes();
/**
*
**
* The number of NFTs owned by this account
*
*
* int64 owned_nfts = 13;
* @return The ownedNfts.
*/
long getOwnedNfts();
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with.
*
*
* int32 max_automatic_token_associations = 14;
* @return The maxAutomaticTokenAssociations.
*/
int getMaxAutomaticTokenAssociations();
/**
*
**
* The alias of this account
*
*
* bytes alias = 15;
* @return The alias.
*/
com.google.protobuf.ByteString getAlias();
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 16;
* @return The ledgerId.
*/
com.google.protobuf.ByteString getLedgerId();
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
java.util.List
getGrantedCryptoAllowancesList();
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance getGrantedCryptoAllowances(int index);
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
int getGrantedCryptoAllowancesCount();
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
java.util.List extends com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowanceOrBuilder>
getGrantedCryptoAllowancesOrBuilderList();
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowanceOrBuilder getGrantedCryptoAllowancesOrBuilder(
int index);
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
java.util.List
getGrantedNftAllowancesList();
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
com.hedera.hashgraph.sdk.proto.GrantedNftAllowance getGrantedNftAllowances(int index);
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
int getGrantedNftAllowancesCount();
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
java.util.List extends com.hedera.hashgraph.sdk.proto.GrantedNftAllowanceOrBuilder>
getGrantedNftAllowancesOrBuilderList();
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
com.hedera.hashgraph.sdk.proto.GrantedNftAllowanceOrBuilder getGrantedNftAllowancesOrBuilder(
int index);
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
java.util.List
getGrantedTokenAllowancesList();
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance getGrantedTokenAllowances(int index);
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
int getGrantedTokenAllowancesCount();
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
java.util.List extends com.hedera.hashgraph.sdk.proto.GrantedTokenAllowanceOrBuilder>
getGrantedTokenAllowancesOrBuilderList();
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
com.hedera.hashgraph.sdk.proto.GrantedTokenAllowanceOrBuilder getGrantedTokenAllowancesOrBuilder(
int index);
}
/**
* Protobuf type {@code proto.GetAccountDetailsResponse.AccountDetails}
*/
public static final class AccountDetails extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.GetAccountDetailsResponse.AccountDetails)
AccountDetailsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccountDetails.newBuilder() to construct.
private AccountDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountDetails() {
contractAccountId_ = "";
tokenRelationships_ = java.util.Collections.emptyList();
memo_ = "";
alias_ = com.google.protobuf.ByteString.EMPTY;
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
grantedCryptoAllowances_ = java.util.Collections.emptyList();
grantedNftAllowances_ = java.util.Collections.emptyList();
grantedTokenAllowances_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccountDetails();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetails.internal_static_proto_GetAccountDetailsResponse_AccountDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetails.internal_static_proto_GetAccountDetailsResponse_AccountDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.class, com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.Builder.class);
}
private int bitField0_;
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.AccountID accountId_;
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
* @return Whether the accountId field is set.
*/
@java.lang.Override
public boolean hasAccountId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() {
return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_;
}
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder() {
return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_;
}
public static final int CONTRACT_ACCOUNT_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object contractAccountId_ = "";
/**
*
**
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
* account owned by the contract instance, in the format used by Solidity
*
*
* string contract_account_id = 2;
* @return The contractAccountId.
*/
@java.lang.Override
public java.lang.String getContractAccountId() {
java.lang.Object ref = contractAccountId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contractAccountId_ = s;
return s;
}
}
/**
*
**
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
* account owned by the contract instance, in the format used by Solidity
*
*
* string contract_account_id = 2;
* @return The bytes for contractAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContractAccountIdBytes() {
java.lang.Object ref = contractAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contractAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DELETED_FIELD_NUMBER = 3;
private boolean deleted_ = false;
/**
*
**
* If true, then this account has been deleted, it will disappear when it expires, and all
* transactions for it will fail except the transaction to extend its expiration date
*
*
* bool deleted = 3;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return deleted_;
}
public static final int PROXY_ACCOUNT_ID_FIELD_NUMBER = 4;
private com.hedera.hashgraph.sdk.proto.AccountID proxyAccountId_;
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
* @deprecated proto.GetAccountDetailsResponse.AccountDetails.proxy_account_id is deprecated.
* See get_account_details.proto;l=88
* @return Whether the proxyAccountId field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasProxyAccountId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
* @deprecated proto.GetAccountDetailsResponse.AccountDetails.proxy_account_id is deprecated.
* See get_account_details.proto;l=88
* @return The proxyAccountId.
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID getProxyAccountId() {
return proxyAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountId_;
}
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getProxyAccountIdOrBuilder() {
return proxyAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountId_;
}
public static final int PROXY_RECEIVED_FIELD_NUMBER = 5;
private long proxyReceived_ = 0L;
/**
*
**
* The total number of tinybars proxy staked to this account
*
*
* int64 proxy_received = 5;
* @return The proxyReceived.
*/
@java.lang.Override
public long getProxyReceived() {
return proxyReceived_;
}
public static final int KEY_FIELD_NUMBER = 6;
private com.hedera.hashgraph.sdk.proto.Key key_;
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
* @return The key.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getKey() {
return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_;
}
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKeyOrBuilder() {
return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_;
}
public static final int BALANCE_FIELD_NUMBER = 7;
private long balance_ = 0L;
/**
*
**
* The current balance of account in tinybars
*
*
* uint64 balance = 7;
* @return The balance.
*/
@java.lang.Override
public long getBalance() {
return balance_;
}
public static final int RECEIVER_SIG_REQUIRED_FIELD_NUMBER = 8;
private boolean receiverSigRequired_ = false;
/**
*
**
* If true, no transaction can transfer to this account unless signed by this account's key
*
*
* bool receiver_sig_required = 8;
* @return The receiverSigRequired.
*/
@java.lang.Override
public boolean getReceiverSigRequired() {
return receiverSigRequired_;
}
public static final int EXPIRATION_TIME_FIELD_NUMBER = 9;
private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_;
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
* @return Whether the expirationTime field is set.
*/
@java.lang.Override
public boolean hasExpirationTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
* @return The expirationTime.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
public static final int AUTO_RENEW_PERIOD_FIELD_NUMBER = 10;
private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_;
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
* @return Whether the autoRenewPeriod field is set.
*/
@java.lang.Override
public boolean hasAutoRenewPeriod() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
* @return The autoRenewPeriod.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
public static final int TOKEN_RELATIONSHIPS_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private java.util.List tokenRelationships_;
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
@java.lang.Override
public java.util.List getTokenRelationshipsList() {
return tokenRelationships_;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder>
getTokenRelationshipsOrBuilderList() {
return tokenRelationships_;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
@java.lang.Override
public int getTokenRelationshipsCount() {
return tokenRelationships_.size();
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenRelationship getTokenRelationships(int index) {
return tokenRelationships_.get(index);
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder getTokenRelationshipsOrBuilder(
int index) {
return tokenRelationships_.get(index);
}
public static final int MEMO_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object memo_ = "";
/**
*
**
* The memo associated with the account
*
*
* string memo = 12;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
}
}
/**
*
**
* The memo associated with the account
*
*
* string memo = 12;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OWNED_NFTS_FIELD_NUMBER = 13;
private long ownedNfts_ = 0L;
/**
*
**
* The number of NFTs owned by this account
*
*
* int64 owned_nfts = 13;
* @return The ownedNfts.
*/
@java.lang.Override
public long getOwnedNfts() {
return ownedNfts_;
}
public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER = 14;
private int maxAutomaticTokenAssociations_ = 0;
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with.
*
*
* int32 max_automatic_token_associations = 14;
* @return The maxAutomaticTokenAssociations.
*/
@java.lang.Override
public int getMaxAutomaticTokenAssociations() {
return maxAutomaticTokenAssociations_;
}
public static final int ALIAS_FIELD_NUMBER = 15;
private com.google.protobuf.ByteString alias_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The alias of this account
*
*
* bytes alias = 15;
* @return The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return alias_;
}
public static final int LEDGER_ID_FIELD_NUMBER = 16;
private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 16;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
public static final int GRANTED_CRYPTO_ALLOWANCES_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private java.util.List grantedCryptoAllowances_;
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
@java.lang.Override
public java.util.List getGrantedCryptoAllowancesList() {
return grantedCryptoAllowances_;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowanceOrBuilder>
getGrantedCryptoAllowancesOrBuilderList() {
return grantedCryptoAllowances_;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
@java.lang.Override
public int getGrantedCryptoAllowancesCount() {
return grantedCryptoAllowances_.size();
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance getGrantedCryptoAllowances(int index) {
return grantedCryptoAllowances_.get(index);
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowanceOrBuilder getGrantedCryptoAllowancesOrBuilder(
int index) {
return grantedCryptoAllowances_.get(index);
}
public static final int GRANTED_NFT_ALLOWANCES_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private java.util.List grantedNftAllowances_;
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
@java.lang.Override
public java.util.List getGrantedNftAllowancesList() {
return grantedNftAllowances_;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.GrantedNftAllowanceOrBuilder>
getGrantedNftAllowancesOrBuilderList() {
return grantedNftAllowances_;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
@java.lang.Override
public int getGrantedNftAllowancesCount() {
return grantedNftAllowances_.size();
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GrantedNftAllowance getGrantedNftAllowances(int index) {
return grantedNftAllowances_.get(index);
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GrantedNftAllowanceOrBuilder getGrantedNftAllowancesOrBuilder(
int index) {
return grantedNftAllowances_.get(index);
}
public static final int GRANTED_TOKEN_ALLOWANCES_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private java.util.List grantedTokenAllowances_;
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
@java.lang.Override
public java.util.List getGrantedTokenAllowancesList() {
return grantedTokenAllowances_;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.GrantedTokenAllowanceOrBuilder>
getGrantedTokenAllowancesOrBuilderList() {
return grantedTokenAllowances_;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
@java.lang.Override
public int getGrantedTokenAllowancesCount() {
return grantedTokenAllowances_.size();
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance getGrantedTokenAllowances(int index) {
return grantedTokenAllowances_.get(index);
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GrantedTokenAllowanceOrBuilder getGrantedTokenAllowancesOrBuilder(
int index) {
return grantedTokenAllowances_.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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAccountId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contractAccountId_);
}
if (deleted_ != false) {
output.writeBool(3, deleted_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getProxyAccountId());
}
if (proxyReceived_ != 0L) {
output.writeInt64(5, proxyReceived_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(6, getKey());
}
if (balance_ != 0L) {
output.writeUInt64(7, balance_);
}
if (receiverSigRequired_ != false) {
output.writeBool(8, receiverSigRequired_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(9, getExpirationTime());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(10, getAutoRenewPeriod());
}
for (int i = 0; i < tokenRelationships_.size(); i++) {
output.writeMessage(11, tokenRelationships_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, memo_);
}
if (ownedNfts_ != 0L) {
output.writeInt64(13, ownedNfts_);
}
if (maxAutomaticTokenAssociations_ != 0) {
output.writeInt32(14, maxAutomaticTokenAssociations_);
}
if (!alias_.isEmpty()) {
output.writeBytes(15, alias_);
}
if (!ledgerId_.isEmpty()) {
output.writeBytes(16, ledgerId_);
}
for (int i = 0; i < grantedCryptoAllowances_.size(); i++) {
output.writeMessage(17, grantedCryptoAllowances_.get(i));
}
for (int i = 0; i < grantedNftAllowances_.size(); i++) {
output.writeMessage(18, grantedNftAllowances_.get(i));
}
for (int i = 0; i < grantedTokenAllowances_.size(); i++) {
output.writeMessage(19, grantedTokenAllowances_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAccountId());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contractAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contractAccountId_);
}
if (deleted_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, deleted_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getProxyAccountId());
}
if (proxyReceived_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, proxyReceived_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getKey());
}
if (balance_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, balance_);
}
if (receiverSigRequired_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, receiverSigRequired_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getExpirationTime());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getAutoRenewPeriod());
}
for (int i = 0; i < tokenRelationships_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, tokenRelationships_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, memo_);
}
if (ownedNfts_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(13, ownedNfts_);
}
if (maxAutomaticTokenAssociations_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, maxAutomaticTokenAssociations_);
}
if (!alias_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, alias_);
}
if (!ledgerId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(16, ledgerId_);
}
for (int i = 0; i < grantedCryptoAllowances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, grantedCryptoAllowances_.get(i));
}
for (int i = 0; i < grantedNftAllowances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, grantedNftAllowances_.get(i));
}
for (int i = 0; i < grantedTokenAllowances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, grantedTokenAllowances_.get(i));
}
size += getUnknownFields().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.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails other = (com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails) obj;
if (hasAccountId() != other.hasAccountId()) return false;
if (hasAccountId()) {
if (!getAccountId()
.equals(other.getAccountId())) return false;
}
if (!getContractAccountId()
.equals(other.getContractAccountId())) return false;
if (getDeleted()
!= other.getDeleted()) return false;
if (hasProxyAccountId() != other.hasProxyAccountId()) return false;
if (hasProxyAccountId()) {
if (!getProxyAccountId()
.equals(other.getProxyAccountId())) return false;
}
if (getProxyReceived()
!= other.getProxyReceived()) return false;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (getBalance()
!= other.getBalance()) return false;
if (getReceiverSigRequired()
!= other.getReceiverSigRequired()) return false;
if (hasExpirationTime() != other.hasExpirationTime()) return false;
if (hasExpirationTime()) {
if (!getExpirationTime()
.equals(other.getExpirationTime())) return false;
}
if (hasAutoRenewPeriod() != other.hasAutoRenewPeriod()) return false;
if (hasAutoRenewPeriod()) {
if (!getAutoRenewPeriod()
.equals(other.getAutoRenewPeriod())) return false;
}
if (!getTokenRelationshipsList()
.equals(other.getTokenRelationshipsList())) return false;
if (!getMemo()
.equals(other.getMemo())) return false;
if (getOwnedNfts()
!= other.getOwnedNfts()) return false;
if (getMaxAutomaticTokenAssociations()
!= other.getMaxAutomaticTokenAssociations()) return false;
if (!getAlias()
.equals(other.getAlias())) return false;
if (!getLedgerId()
.equals(other.getLedgerId())) return false;
if (!getGrantedCryptoAllowancesList()
.equals(other.getGrantedCryptoAllowancesList())) return false;
if (!getGrantedNftAllowancesList()
.equals(other.getGrantedNftAllowancesList())) return false;
if (!getGrantedTokenAllowancesList()
.equals(other.getGrantedTokenAllowancesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAccountId()) {
hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAccountId().hashCode();
}
hash = (37 * hash) + CONTRACT_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContractAccountId().hashCode();
hash = (37 * hash) + DELETED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeleted());
if (hasProxyAccountId()) {
hash = (37 * hash) + PROXY_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProxyAccountId().hashCode();
}
hash = (37 * hash) + PROXY_RECEIVED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProxyReceived());
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
hash = (37 * hash) + BALANCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBalance());
hash = (37 * hash) + RECEIVER_SIG_REQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReceiverSigRequired());
if (hasExpirationTime()) {
hash = (37 * hash) + EXPIRATION_TIME_FIELD_NUMBER;
hash = (53 * hash) + getExpirationTime().hashCode();
}
if (hasAutoRenewPeriod()) {
hash = (37 * hash) + AUTO_RENEW_PERIOD_FIELD_NUMBER;
hash = (53 * hash) + getAutoRenewPeriod().hashCode();
}
if (getTokenRelationshipsCount() > 0) {
hash = (37 * hash) + TOKEN_RELATIONSHIPS_FIELD_NUMBER;
hash = (53 * hash) + getTokenRelationshipsList().hashCode();
}
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (37 * hash) + OWNED_NFTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOwnedNfts());
hash = (37 * hash) + MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER;
hash = (53 * hash) + getMaxAutomaticTokenAssociations();
hash = (37 * hash) + ALIAS_FIELD_NUMBER;
hash = (53 * hash) + getAlias().hashCode();
hash = (37 * hash) + LEDGER_ID_FIELD_NUMBER;
hash = (53 * hash) + getLedgerId().hashCode();
if (getGrantedCryptoAllowancesCount() > 0) {
hash = (37 * hash) + GRANTED_CRYPTO_ALLOWANCES_FIELD_NUMBER;
hash = (53 * hash) + getGrantedCryptoAllowancesList().hashCode();
}
if (getGrantedNftAllowancesCount() > 0) {
hash = (37 * hash) + GRANTED_NFT_ALLOWANCES_FIELD_NUMBER;
hash = (53 * hash) + getGrantedNftAllowancesList().hashCode();
}
if (getGrantedTokenAllowancesCount() > 0) {
hash = (37 * hash) + GRANTED_TOKEN_ALLOWANCES_FIELD_NUMBER;
hash = (53 * hash) + getGrantedTokenAllowancesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails 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.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails 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.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails 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.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails 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;
}
/**
* Protobuf type {@code proto.GetAccountDetailsResponse.AccountDetails}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.GetAccountDetailsResponse.AccountDetails)
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetailsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetails.internal_static_proto_GetAccountDetailsResponse_AccountDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetails.internal_static_proto_GetAccountDetailsResponse_AccountDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.class, com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAccountIdFieldBuilder();
getProxyAccountIdFieldBuilder();
getKeyFieldBuilder();
getExpirationTimeFieldBuilder();
getAutoRenewPeriodFieldBuilder();
getTokenRelationshipsFieldBuilder();
getGrantedCryptoAllowancesFieldBuilder();
getGrantedNftAllowancesFieldBuilder();
getGrantedTokenAllowancesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
accountId_ = null;
if (accountIdBuilder_ != null) {
accountIdBuilder_.dispose();
accountIdBuilder_ = null;
}
contractAccountId_ = "";
deleted_ = false;
proxyAccountId_ = null;
if (proxyAccountIdBuilder_ != null) {
proxyAccountIdBuilder_.dispose();
proxyAccountIdBuilder_ = null;
}
proxyReceived_ = 0L;
key_ = null;
if (keyBuilder_ != null) {
keyBuilder_.dispose();
keyBuilder_ = null;
}
balance_ = 0L;
receiverSigRequired_ = false;
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
autoRenewPeriod_ = null;
if (autoRenewPeriodBuilder_ != null) {
autoRenewPeriodBuilder_.dispose();
autoRenewPeriodBuilder_ = null;
}
if (tokenRelationshipsBuilder_ == null) {
tokenRelationships_ = java.util.Collections.emptyList();
} else {
tokenRelationships_ = null;
tokenRelationshipsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
memo_ = "";
ownedNfts_ = 0L;
maxAutomaticTokenAssociations_ = 0;
alias_ = com.google.protobuf.ByteString.EMPTY;
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
if (grantedCryptoAllowancesBuilder_ == null) {
grantedCryptoAllowances_ = java.util.Collections.emptyList();
} else {
grantedCryptoAllowances_ = null;
grantedCryptoAllowancesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00010000);
if (grantedNftAllowancesBuilder_ == null) {
grantedNftAllowances_ = java.util.Collections.emptyList();
} else {
grantedNftAllowances_ = null;
grantedNftAllowancesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00020000);
if (grantedTokenAllowancesBuilder_ == null) {
grantedTokenAllowances_ = java.util.Collections.emptyList();
} else {
grantedTokenAllowances_ = null;
grantedTokenAllowancesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00040000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetails.internal_static_proto_GetAccountDetailsResponse_AccountDetails_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails build() {
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails buildPartial() {
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails result = new com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails result) {
if (tokenRelationshipsBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0)) {
tokenRelationships_ = java.util.Collections.unmodifiableList(tokenRelationships_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.tokenRelationships_ = tokenRelationships_;
} else {
result.tokenRelationships_ = tokenRelationshipsBuilder_.build();
}
if (grantedCryptoAllowancesBuilder_ == null) {
if (((bitField0_ & 0x00010000) != 0)) {
grantedCryptoAllowances_ = java.util.Collections.unmodifiableList(grantedCryptoAllowances_);
bitField0_ = (bitField0_ & ~0x00010000);
}
result.grantedCryptoAllowances_ = grantedCryptoAllowances_;
} else {
result.grantedCryptoAllowances_ = grantedCryptoAllowancesBuilder_.build();
}
if (grantedNftAllowancesBuilder_ == null) {
if (((bitField0_ & 0x00020000) != 0)) {
grantedNftAllowances_ = java.util.Collections.unmodifiableList(grantedNftAllowances_);
bitField0_ = (bitField0_ & ~0x00020000);
}
result.grantedNftAllowances_ = grantedNftAllowances_;
} else {
result.grantedNftAllowances_ = grantedNftAllowancesBuilder_.build();
}
if (grantedTokenAllowancesBuilder_ == null) {
if (((bitField0_ & 0x00040000) != 0)) {
grantedTokenAllowances_ = java.util.Collections.unmodifiableList(grantedTokenAllowances_);
bitField0_ = (bitField0_ & ~0x00040000);
}
result.grantedTokenAllowances_ = grantedTokenAllowances_;
} else {
result.grantedTokenAllowances_ = grantedTokenAllowancesBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.accountId_ = accountIdBuilder_ == null
? accountId_
: accountIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.contractAccountId_ = contractAccountId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.deleted_ = deleted_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.proxyAccountId_ = proxyAccountIdBuilder_ == null
? proxyAccountId_
: proxyAccountIdBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.proxyReceived_ = proxyReceived_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.key_ = keyBuilder_ == null
? key_
: keyBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.balance_ = balance_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.receiverSigRequired_ = receiverSigRequired_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.expirationTime_ = expirationTimeBuilder_ == null
? expirationTime_
: expirationTimeBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.autoRenewPeriod_ = autoRenewPeriodBuilder_ == null
? autoRenewPeriod_
: autoRenewPeriodBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.memo_ = memo_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.ownedNfts_ = ownedNfts_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.maxAutomaticTokenAssociations_ = maxAutomaticTokenAssociations_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.alias_ = alias_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.ledgerId_ = ledgerId_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails other) {
if (other == com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.getDefaultInstance()) return this;
if (other.hasAccountId()) {
mergeAccountId(other.getAccountId());
}
if (!other.getContractAccountId().isEmpty()) {
contractAccountId_ = other.contractAccountId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getDeleted() != false) {
setDeleted(other.getDeleted());
}
if (other.hasProxyAccountId()) {
mergeProxyAccountId(other.getProxyAccountId());
}
if (other.getProxyReceived() != 0L) {
setProxyReceived(other.getProxyReceived());
}
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (other.getBalance() != 0L) {
setBalance(other.getBalance());
}
if (other.getReceiverSigRequired() != false) {
setReceiverSigRequired(other.getReceiverSigRequired());
}
if (other.hasExpirationTime()) {
mergeExpirationTime(other.getExpirationTime());
}
if (other.hasAutoRenewPeriod()) {
mergeAutoRenewPeriod(other.getAutoRenewPeriod());
}
if (tokenRelationshipsBuilder_ == null) {
if (!other.tokenRelationships_.isEmpty()) {
if (tokenRelationships_.isEmpty()) {
tokenRelationships_ = other.tokenRelationships_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureTokenRelationshipsIsMutable();
tokenRelationships_.addAll(other.tokenRelationships_);
}
onChanged();
}
} else {
if (!other.tokenRelationships_.isEmpty()) {
if (tokenRelationshipsBuilder_.isEmpty()) {
tokenRelationshipsBuilder_.dispose();
tokenRelationshipsBuilder_ = null;
tokenRelationships_ = other.tokenRelationships_;
bitField0_ = (bitField0_ & ~0x00000400);
tokenRelationshipsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTokenRelationshipsFieldBuilder() : null;
} else {
tokenRelationshipsBuilder_.addAllMessages(other.tokenRelationships_);
}
}
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
bitField0_ |= 0x00000800;
onChanged();
}
if (other.getOwnedNfts() != 0L) {
setOwnedNfts(other.getOwnedNfts());
}
if (other.getMaxAutomaticTokenAssociations() != 0) {
setMaxAutomaticTokenAssociations(other.getMaxAutomaticTokenAssociations());
}
if (other.getAlias() != com.google.protobuf.ByteString.EMPTY) {
setAlias(other.getAlias());
}
if (other.getLedgerId() != com.google.protobuf.ByteString.EMPTY) {
setLedgerId(other.getLedgerId());
}
if (grantedCryptoAllowancesBuilder_ == null) {
if (!other.grantedCryptoAllowances_.isEmpty()) {
if (grantedCryptoAllowances_.isEmpty()) {
grantedCryptoAllowances_ = other.grantedCryptoAllowances_;
bitField0_ = (bitField0_ & ~0x00010000);
} else {
ensureGrantedCryptoAllowancesIsMutable();
grantedCryptoAllowances_.addAll(other.grantedCryptoAllowances_);
}
onChanged();
}
} else {
if (!other.grantedCryptoAllowances_.isEmpty()) {
if (grantedCryptoAllowancesBuilder_.isEmpty()) {
grantedCryptoAllowancesBuilder_.dispose();
grantedCryptoAllowancesBuilder_ = null;
grantedCryptoAllowances_ = other.grantedCryptoAllowances_;
bitField0_ = (bitField0_ & ~0x00010000);
grantedCryptoAllowancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGrantedCryptoAllowancesFieldBuilder() : null;
} else {
grantedCryptoAllowancesBuilder_.addAllMessages(other.grantedCryptoAllowances_);
}
}
}
if (grantedNftAllowancesBuilder_ == null) {
if (!other.grantedNftAllowances_.isEmpty()) {
if (grantedNftAllowances_.isEmpty()) {
grantedNftAllowances_ = other.grantedNftAllowances_;
bitField0_ = (bitField0_ & ~0x00020000);
} else {
ensureGrantedNftAllowancesIsMutable();
grantedNftAllowances_.addAll(other.grantedNftAllowances_);
}
onChanged();
}
} else {
if (!other.grantedNftAllowances_.isEmpty()) {
if (grantedNftAllowancesBuilder_.isEmpty()) {
grantedNftAllowancesBuilder_.dispose();
grantedNftAllowancesBuilder_ = null;
grantedNftAllowances_ = other.grantedNftAllowances_;
bitField0_ = (bitField0_ & ~0x00020000);
grantedNftAllowancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGrantedNftAllowancesFieldBuilder() : null;
} else {
grantedNftAllowancesBuilder_.addAllMessages(other.grantedNftAllowances_);
}
}
}
if (grantedTokenAllowancesBuilder_ == null) {
if (!other.grantedTokenAllowances_.isEmpty()) {
if (grantedTokenAllowances_.isEmpty()) {
grantedTokenAllowances_ = other.grantedTokenAllowances_;
bitField0_ = (bitField0_ & ~0x00040000);
} else {
ensureGrantedTokenAllowancesIsMutable();
grantedTokenAllowances_.addAll(other.grantedTokenAllowances_);
}
onChanged();
}
} else {
if (!other.grantedTokenAllowances_.isEmpty()) {
if (grantedTokenAllowancesBuilder_.isEmpty()) {
grantedTokenAllowancesBuilder_.dispose();
grantedTokenAllowancesBuilder_ = null;
grantedTokenAllowances_ = other.grantedTokenAllowances_;
bitField0_ = (bitField0_ & ~0x00040000);
grantedTokenAllowancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGrantedTokenAllowancesFieldBuilder() : null;
} else {
grantedTokenAllowancesBuilder_.addAllMessages(other.grantedTokenAllowances_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getAccountIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
contractAccountId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
deleted_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getProxyAccountIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
proxyReceived_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
input.readMessage(
getKeyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
balance_ = input.readUInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
receiverSigRequired_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
case 74: {
input.readMessage(
getExpirationTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
input.readMessage(
getAutoRenewPeriodFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
com.hedera.hashgraph.sdk.proto.TokenRelationship m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.TokenRelationship.parser(),
extensionRegistry);
if (tokenRelationshipsBuilder_ == null) {
ensureTokenRelationshipsIsMutable();
tokenRelationships_.add(m);
} else {
tokenRelationshipsBuilder_.addMessage(m);
}
break;
} // case 90
case 98: {
memo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 98
case 104: {
ownedNfts_ = input.readInt64();
bitField0_ |= 0x00001000;
break;
} // case 104
case 112: {
maxAutomaticTokenAssociations_ = input.readInt32();
bitField0_ |= 0x00002000;
break;
} // case 112
case 122: {
alias_ = input.readBytes();
bitField0_ |= 0x00004000;
break;
} // case 122
case 130: {
ledgerId_ = input.readBytes();
bitField0_ |= 0x00008000;
break;
} // case 130
case 138: {
com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.parser(),
extensionRegistry);
if (grantedCryptoAllowancesBuilder_ == null) {
ensureGrantedCryptoAllowancesIsMutable();
grantedCryptoAllowances_.add(m);
} else {
grantedCryptoAllowancesBuilder_.addMessage(m);
}
break;
} // case 138
case 146: {
com.hedera.hashgraph.sdk.proto.GrantedNftAllowance m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.parser(),
extensionRegistry);
if (grantedNftAllowancesBuilder_ == null) {
ensureGrantedNftAllowancesIsMutable();
grantedNftAllowances_.add(m);
} else {
grantedNftAllowancesBuilder_.addMessage(m);
}
break;
} // case 146
case 154: {
com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.parser(),
extensionRegistry);
if (grantedTokenAllowancesBuilder_ == null) {
ensureGrantedTokenAllowancesIsMutable();
grantedTokenAllowances_.add(m);
} else {
grantedTokenAllowancesBuilder_.addMessage(m);
}
break;
} // case 154
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.hedera.hashgraph.sdk.proto.AccountID accountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIdBuilder_;
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
* @return Whether the accountId field is set.
*/
public boolean hasAccountId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
* @return The accountId.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() {
if (accountIdBuilder_ == null) {
return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_;
} else {
return accountIdBuilder_.getMessage();
}
}
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
*/
public Builder setAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (accountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountId_ = value;
} else {
accountIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
*/
public Builder setAccountId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (accountIdBuilder_ == null) {
accountId_ = builderForValue.build();
} else {
accountIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
*/
public Builder mergeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (accountIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
accountId_ != null &&
accountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getAccountIdBuilder().mergeFrom(value);
} else {
accountId_ = value;
}
} else {
accountIdBuilder_.mergeFrom(value);
}
if (accountId_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
*/
public Builder clearAccountId() {
bitField0_ = (bitField0_ & ~0x00000001);
accountId_ = null;
if (accountIdBuilder_ != null) {
accountIdBuilder_.dispose();
accountIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder() {
if (accountIdBuilder_ != null) {
return accountIdBuilder_.getMessageOrBuilder();
} else {
return accountId_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_;
}
}
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID account_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getAccountIdFieldBuilder() {
if (accountIdBuilder_ == null) {
accountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getAccountId(),
getParentForChildren(),
isClean());
accountId_ = null;
}
return accountIdBuilder_;
}
private java.lang.Object contractAccountId_ = "";
/**
*
**
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
* account owned by the contract instance, in the format used by Solidity
*
*
* string contract_account_id = 2;
* @return The contractAccountId.
*/
public java.lang.String getContractAccountId() {
java.lang.Object ref = contractAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contractAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
* account owned by the contract instance, in the format used by Solidity
*
*
* string contract_account_id = 2;
* @return The bytes for contractAccountId.
*/
public com.google.protobuf.ByteString
getContractAccountIdBytes() {
java.lang.Object ref = contractAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contractAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
* account owned by the contract instance, in the format used by Solidity
*
*
* string contract_account_id = 2;
* @param value The contractAccountId to set.
* @return This builder for chaining.
*/
public Builder setContractAccountId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
contractAccountId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
* account owned by the contract instance, in the format used by Solidity
*
*
* string contract_account_id = 2;
* @return This builder for chaining.
*/
public Builder clearContractAccountId() {
contractAccountId_ = getDefaultInstance().getContractAccountId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
* account owned by the contract instance, in the format used by Solidity
*
*
* string contract_account_id = 2;
* @param value The bytes for contractAccountId to set.
* @return This builder for chaining.
*/
public Builder setContractAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
contractAccountId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean deleted_ ;
/**
*
**
* If true, then this account has been deleted, it will disappear when it expires, and all
* transactions for it will fail except the transaction to extend its expiration date
*
*
* bool deleted = 3;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return deleted_;
}
/**
*
**
* If true, then this account has been deleted, it will disappear when it expires, and all
* transactions for it will fail except the transaction to extend its expiration date
*
*
* bool deleted = 3;
* @param value The deleted to set.
* @return This builder for chaining.
*/
public Builder setDeleted(boolean value) {
deleted_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* If true, then this account has been deleted, it will disappear when it expires, and all
* transactions for it will fail except the transaction to extend its expiration date
*
*
* bool deleted = 3;
* @return This builder for chaining.
*/
public Builder clearDeleted() {
bitField0_ = (bitField0_ & ~0x00000004);
deleted_ = false;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.AccountID proxyAccountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> proxyAccountIdBuilder_;
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
* @deprecated proto.GetAccountDetailsResponse.AccountDetails.proxy_account_id is deprecated.
* See get_account_details.proto;l=88
* @return Whether the proxyAccountId field is set.
*/
@java.lang.Deprecated public boolean hasProxyAccountId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
* @deprecated proto.GetAccountDetailsResponse.AccountDetails.proxy_account_id is deprecated.
* See get_account_details.proto;l=88
* @return The proxyAccountId.
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID getProxyAccountId() {
if (proxyAccountIdBuilder_ == null) {
return proxyAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountId_;
} else {
return proxyAccountIdBuilder_.getMessage();
}
}
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder setProxyAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (proxyAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proxyAccountId_ = value;
} else {
proxyAccountIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder setProxyAccountId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (proxyAccountIdBuilder_ == null) {
proxyAccountId_ = builderForValue.build();
} else {
proxyAccountIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeProxyAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (proxyAccountIdBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
proxyAccountId_ != null &&
proxyAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getProxyAccountIdBuilder().mergeFrom(value);
} else {
proxyAccountId_ = value;
}
} else {
proxyAccountIdBuilder_.mergeFrom(value);
}
if (proxyAccountId_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearProxyAccountId() {
bitField0_ = (bitField0_ & ~0x00000008);
proxyAccountId_ = null;
if (proxyAccountIdBuilder_ != null) {
proxyAccountIdBuilder_.dispose();
proxyAccountIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID.Builder getProxyAccountIdBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getProxyAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getProxyAccountIdOrBuilder() {
if (proxyAccountIdBuilder_ != null) {
return proxyAccountIdBuilder_.getMessageOrBuilder();
} else {
return proxyAccountId_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : proxyAccountId_;
}
}
/**
*
**
* [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
* or is an invalid account, or is an account that isn't a node, then this account is
* automatically proxy staked to a node chosen by the network, but without earning payments.
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
* running a node, then it will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxy_account_id = 4 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getProxyAccountIdFieldBuilder() {
if (proxyAccountIdBuilder_ == null) {
proxyAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getProxyAccountId(),
getParentForChildren(),
isClean());
proxyAccountId_ = null;
}
return proxyAccountIdBuilder_;
}
private long proxyReceived_ ;
/**
*
**
* The total number of tinybars proxy staked to this account
*
*
* int64 proxy_received = 5;
* @return The proxyReceived.
*/
@java.lang.Override
public long getProxyReceived() {
return proxyReceived_;
}
/**
*
**
* The total number of tinybars proxy staked to this account
*
*
* int64 proxy_received = 5;
* @param value The proxyReceived to set.
* @return This builder for chaining.
*/
public Builder setProxyReceived(long value) {
proxyReceived_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* The total number of tinybars proxy staked to this account
*
*
* int64 proxy_received = 5;
* @return This builder for chaining.
*/
public Builder clearProxyReceived() {
bitField0_ = (bitField0_ & ~0x00000010);
proxyReceived_ = 0L;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.Key key_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> keyBuilder_;
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
* @return The key.
*/
public com.hedera.hashgraph.sdk.proto.Key getKey() {
if (keyBuilder_ == null) {
return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
*/
public Builder setKey(com.hedera.hashgraph.sdk.proto.Key value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
} else {
keyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
*/
public Builder setKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
} else {
keyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
*/
public Builder mergeKey(com.hedera.hashgraph.sdk.proto.Key value) {
if (keyBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
key_ != null &&
key_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
getKeyBuilder().mergeFrom(value);
} else {
key_ = value;
}
} else {
keyBuilder_.mergeFrom(value);
}
if (key_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000020);
key_ = null;
if (keyBuilder_ != null) {
keyBuilder_.dispose();
keyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getKeyBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
*/
public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_;
}
}
/**
*
**
* The key for the account, which must sign in order to transfer out, or to modify the
* account in any way other than extending its expiration date.
*
*
* .proto.Key key = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private long balance_ ;
/**
*
**
* The current balance of account in tinybars
*
*
* uint64 balance = 7;
* @return The balance.
*/
@java.lang.Override
public long getBalance() {
return balance_;
}
/**
*
**
* The current balance of account in tinybars
*
*
* uint64 balance = 7;
* @param value The balance to set.
* @return This builder for chaining.
*/
public Builder setBalance(long value) {
balance_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* The current balance of account in tinybars
*
*
* uint64 balance = 7;
* @return This builder for chaining.
*/
public Builder clearBalance() {
bitField0_ = (bitField0_ & ~0x00000040);
balance_ = 0L;
onChanged();
return this;
}
private boolean receiverSigRequired_ ;
/**
*
**
* If true, no transaction can transfer to this account unless signed by this account's key
*
*
* bool receiver_sig_required = 8;
* @return The receiverSigRequired.
*/
@java.lang.Override
public boolean getReceiverSigRequired() {
return receiverSigRequired_;
}
/**
*
**
* If true, no transaction can transfer to this account unless signed by this account's key
*
*
* bool receiver_sig_required = 8;
* @param value The receiverSigRequired to set.
* @return This builder for chaining.
*/
public Builder setReceiverSigRequired(boolean value) {
receiverSigRequired_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* If true, no transaction can transfer to this account unless signed by this account's key
*
*
* bool receiver_sig_required = 8;
* @return This builder for chaining.
*/
public Builder clearReceiverSigRequired() {
bitField0_ = (bitField0_ & ~0x00000080);
receiverSigRequired_ = false;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> expirationTimeBuilder_;
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
* @return Whether the expirationTime field is set.
*/
public boolean hasExpirationTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
* @return The expirationTime.
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() {
if (expirationTimeBuilder_ == null) {
return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
} else {
return expirationTimeBuilder_.getMessage();
}
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
*/
public Builder setExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTime_ = value;
} else {
expirationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
*/
public Builder setExpirationTime(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
*/
public Builder mergeExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
expirationTime_ != null &&
expirationTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
getExpirationTimeBuilder().mergeFrom(value);
} else {
expirationTime_ = value;
}
} else {
expirationTimeBuilder_.mergeFrom(value);
}
if (expirationTime_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
*/
public Builder clearExpirationTime() {
bitField0_ = (bitField0_ & ~0x00000100);
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getExpirationTimeBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() {
if (expirationTimeBuilder_ != null) {
return expirationTimeBuilder_.getMessageOrBuilder();
} else {
return expirationTime_ == null ?
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_;
}
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expiration_time = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getExpirationTimeFieldBuilder() {
if (expirationTimeBuilder_ == null) {
expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>(
getExpirationTime(),
getParentForChildren(),
isClean());
expirationTime_ = null;
}
return expirationTimeBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder> autoRenewPeriodBuilder_;
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
* @return Whether the autoRenewPeriod field is set.
*/
public boolean hasAutoRenewPeriod() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
* @return The autoRenewPeriod.
*/
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
} else {
return autoRenewPeriodBuilder_.getMessage();
}
}
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
*/
public Builder setAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewPeriod_ = value;
} else {
autoRenewPeriodBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
*/
public Builder setAutoRenewPeriod(
com.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = builderForValue.build();
} else {
autoRenewPeriodBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
*/
public Builder mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
autoRenewPeriod_ != null &&
autoRenewPeriod_ != com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance()) {
getAutoRenewPeriodBuilder().mergeFrom(value);
} else {
autoRenewPeriod_ = value;
}
} else {
autoRenewPeriodBuilder_.mergeFrom(value);
}
if (autoRenewPeriod_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
*/
public Builder clearAutoRenewPeriod() {
bitField0_ = (bitField0_ & ~0x00000200);
autoRenewPeriod_ = null;
if (autoRenewPeriodBuilder_ != null) {
autoRenewPeriodBuilder_.dispose();
autoRenewPeriodBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
*/
public com.hedera.hashgraph.sdk.proto.Duration.Builder getAutoRenewPeriodBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getAutoRenewPeriodFieldBuilder().getBuilder();
}
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
*/
public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
if (autoRenewPeriodBuilder_ != null) {
return autoRenewPeriodBuilder_.getMessageOrBuilder();
} else {
return autoRenewPeriod_ == null ?
com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
}
/**
*
**
* The duration for expiration time will extend every this many seconds. If there are
* insufficient funds, then it extends as long as possible. If it is empty when it expires,
* then it is deleted.
*
*
* .proto.Duration auto_renew_period = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder>
getAutoRenewPeriodFieldBuilder() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder>(
getAutoRenewPeriod(),
getParentForChildren(),
isClean());
autoRenewPeriod_ = null;
}
return autoRenewPeriodBuilder_;
}
private java.util.List tokenRelationships_ =
java.util.Collections.emptyList();
private void ensureTokenRelationshipsIsMutable() {
if (!((bitField0_ & 0x00000400) != 0)) {
tokenRelationships_ = new java.util.ArrayList(tokenRelationships_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenRelationship, com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder, com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder> tokenRelationshipsBuilder_;
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public java.util.List getTokenRelationshipsList() {
if (tokenRelationshipsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tokenRelationships_);
} else {
return tokenRelationshipsBuilder_.getMessageList();
}
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public int getTokenRelationshipsCount() {
if (tokenRelationshipsBuilder_ == null) {
return tokenRelationships_.size();
} else {
return tokenRelationshipsBuilder_.getCount();
}
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public com.hedera.hashgraph.sdk.proto.TokenRelationship getTokenRelationships(int index) {
if (tokenRelationshipsBuilder_ == null) {
return tokenRelationships_.get(index);
} else {
return tokenRelationshipsBuilder_.getMessage(index);
}
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public Builder setTokenRelationships(
int index, com.hedera.hashgraph.sdk.proto.TokenRelationship value) {
if (tokenRelationshipsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenRelationshipsIsMutable();
tokenRelationships_.set(index, value);
onChanged();
} else {
tokenRelationshipsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public Builder setTokenRelationships(
int index, com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder builderForValue) {
if (tokenRelationshipsBuilder_ == null) {
ensureTokenRelationshipsIsMutable();
tokenRelationships_.set(index, builderForValue.build());
onChanged();
} else {
tokenRelationshipsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public Builder addTokenRelationships(com.hedera.hashgraph.sdk.proto.TokenRelationship value) {
if (tokenRelationshipsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenRelationshipsIsMutable();
tokenRelationships_.add(value);
onChanged();
} else {
tokenRelationshipsBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public Builder addTokenRelationships(
int index, com.hedera.hashgraph.sdk.proto.TokenRelationship value) {
if (tokenRelationshipsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenRelationshipsIsMutable();
tokenRelationships_.add(index, value);
onChanged();
} else {
tokenRelationshipsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public Builder addTokenRelationships(
com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder builderForValue) {
if (tokenRelationshipsBuilder_ == null) {
ensureTokenRelationshipsIsMutable();
tokenRelationships_.add(builderForValue.build());
onChanged();
} else {
tokenRelationshipsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public Builder addTokenRelationships(
int index, com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder builderForValue) {
if (tokenRelationshipsBuilder_ == null) {
ensureTokenRelationshipsIsMutable();
tokenRelationships_.add(index, builderForValue.build());
onChanged();
} else {
tokenRelationshipsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public Builder addAllTokenRelationships(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.TokenRelationship> values) {
if (tokenRelationshipsBuilder_ == null) {
ensureTokenRelationshipsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tokenRelationships_);
onChanged();
} else {
tokenRelationshipsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public Builder clearTokenRelationships() {
if (tokenRelationshipsBuilder_ == null) {
tokenRelationships_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
tokenRelationshipsBuilder_.clear();
}
return this;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public Builder removeTokenRelationships(int index) {
if (tokenRelationshipsBuilder_ == null) {
ensureTokenRelationshipsIsMutable();
tokenRelationships_.remove(index);
onChanged();
} else {
tokenRelationshipsBuilder_.remove(index);
}
return this;
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder getTokenRelationshipsBuilder(
int index) {
return getTokenRelationshipsFieldBuilder().getBuilder(index);
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder getTokenRelationshipsOrBuilder(
int index) {
if (tokenRelationshipsBuilder_ == null) {
return tokenRelationships_.get(index); } else {
return tokenRelationshipsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder>
getTokenRelationshipsOrBuilderList() {
if (tokenRelationshipsBuilder_ != null) {
return tokenRelationshipsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tokenRelationships_);
}
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder addTokenRelationshipsBuilder() {
return getTokenRelationshipsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.TokenRelationship.getDefaultInstance());
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder addTokenRelationshipsBuilder(
int index) {
return getTokenRelationshipsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.TokenRelationship.getDefaultInstance());
}
/**
*
**
* All tokens related to this account
*
*
* repeated .proto.TokenRelationship token_relationships = 11;
*/
public java.util.List
getTokenRelationshipsBuilderList() {
return getTokenRelationshipsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenRelationship, com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder, com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder>
getTokenRelationshipsFieldBuilder() {
if (tokenRelationshipsBuilder_ == null) {
tokenRelationshipsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.TokenRelationship, com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder, com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder>(
tokenRelationships_,
((bitField0_ & 0x00000400) != 0),
getParentForChildren(),
isClean());
tokenRelationships_ = null;
}
return tokenRelationshipsBuilder_;
}
private java.lang.Object memo_ = "";
/**
*
**
* The memo associated with the account
*
*
* string memo = 12;
* @return The memo.
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The memo associated with the account
*
*
* string memo = 12;
* @return The bytes for memo.
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The memo associated with the account
*
*
* string memo = 12;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
memo_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
**
* The memo associated with the account
*
*
* string memo = 12;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
**
* The memo associated with the account
*
*
* string memo = 12;
* @param value The bytes for memo to set.
* @return This builder for chaining.
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
memo_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private long ownedNfts_ ;
/**
*
**
* The number of NFTs owned by this account
*
*
* int64 owned_nfts = 13;
* @return The ownedNfts.
*/
@java.lang.Override
public long getOwnedNfts() {
return ownedNfts_;
}
/**
*
**
* The number of NFTs owned by this account
*
*
* int64 owned_nfts = 13;
* @param value The ownedNfts to set.
* @return This builder for chaining.
*/
public Builder setOwnedNfts(long value) {
ownedNfts_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
**
* The number of NFTs owned by this account
*
*
* int64 owned_nfts = 13;
* @return This builder for chaining.
*/
public Builder clearOwnedNfts() {
bitField0_ = (bitField0_ & ~0x00001000);
ownedNfts_ = 0L;
onChanged();
return this;
}
private int maxAutomaticTokenAssociations_ ;
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with.
*
*
* int32 max_automatic_token_associations = 14;
* @return The maxAutomaticTokenAssociations.
*/
@java.lang.Override
public int getMaxAutomaticTokenAssociations() {
return maxAutomaticTokenAssociations_;
}
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with.
*
*
* int32 max_automatic_token_associations = 14;
* @param value The maxAutomaticTokenAssociations to set.
* @return This builder for chaining.
*/
public Builder setMaxAutomaticTokenAssociations(int value) {
maxAutomaticTokenAssociations_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with.
*
*
* int32 max_automatic_token_associations = 14;
* @return This builder for chaining.
*/
public Builder clearMaxAutomaticTokenAssociations() {
bitField0_ = (bitField0_ & ~0x00002000);
maxAutomaticTokenAssociations_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString alias_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The alias of this account
*
*
* bytes alias = 15;
* @return The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return alias_;
}
/**
*
**
* The alias of this account
*
*
* bytes alias = 15;
* @param value The alias to set.
* @return This builder for chaining.
*/
public Builder setAlias(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
alias_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
**
* The alias of this account
*
*
* bytes alias = 15;
* @return This builder for chaining.
*/
public Builder clearAlias() {
bitField0_ = (bitField0_ & ~0x00004000);
alias_ = getDefaultInstance().getAlias();
onChanged();
return this;
}
private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 16;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 16;
* @param value The ledgerId to set.
* @return This builder for chaining.
*/
public Builder setLedgerId(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ledgerId_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 16;
* @return This builder for chaining.
*/
public Builder clearLedgerId() {
bitField0_ = (bitField0_ & ~0x00008000);
ledgerId_ = getDefaultInstance().getLedgerId();
onChanged();
return this;
}
private java.util.List grantedCryptoAllowances_ =
java.util.Collections.emptyList();
private void ensureGrantedCryptoAllowancesIsMutable() {
if (!((bitField0_ & 0x00010000) != 0)) {
grantedCryptoAllowances_ = new java.util.ArrayList(grantedCryptoAllowances_);
bitField0_ |= 0x00010000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.Builder, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowanceOrBuilder> grantedCryptoAllowancesBuilder_;
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public java.util.List getGrantedCryptoAllowancesList() {
if (grantedCryptoAllowancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(grantedCryptoAllowances_);
} else {
return grantedCryptoAllowancesBuilder_.getMessageList();
}
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public int getGrantedCryptoAllowancesCount() {
if (grantedCryptoAllowancesBuilder_ == null) {
return grantedCryptoAllowances_.size();
} else {
return grantedCryptoAllowancesBuilder_.getCount();
}
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance getGrantedCryptoAllowances(int index) {
if (grantedCryptoAllowancesBuilder_ == null) {
return grantedCryptoAllowances_.get(index);
} else {
return grantedCryptoAllowancesBuilder_.getMessage(index);
}
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public Builder setGrantedCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance value) {
if (grantedCryptoAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantedCryptoAllowancesIsMutable();
grantedCryptoAllowances_.set(index, value);
onChanged();
} else {
grantedCryptoAllowancesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public Builder setGrantedCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.Builder builderForValue) {
if (grantedCryptoAllowancesBuilder_ == null) {
ensureGrantedCryptoAllowancesIsMutable();
grantedCryptoAllowances_.set(index, builderForValue.build());
onChanged();
} else {
grantedCryptoAllowancesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public Builder addGrantedCryptoAllowances(com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance value) {
if (grantedCryptoAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantedCryptoAllowancesIsMutable();
grantedCryptoAllowances_.add(value);
onChanged();
} else {
grantedCryptoAllowancesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public Builder addGrantedCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance value) {
if (grantedCryptoAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantedCryptoAllowancesIsMutable();
grantedCryptoAllowances_.add(index, value);
onChanged();
} else {
grantedCryptoAllowancesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public Builder addGrantedCryptoAllowances(
com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.Builder builderForValue) {
if (grantedCryptoAllowancesBuilder_ == null) {
ensureGrantedCryptoAllowancesIsMutable();
grantedCryptoAllowances_.add(builderForValue.build());
onChanged();
} else {
grantedCryptoAllowancesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public Builder addGrantedCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.Builder builderForValue) {
if (grantedCryptoAllowancesBuilder_ == null) {
ensureGrantedCryptoAllowancesIsMutable();
grantedCryptoAllowances_.add(index, builderForValue.build());
onChanged();
} else {
grantedCryptoAllowancesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public Builder addAllGrantedCryptoAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance> values) {
if (grantedCryptoAllowancesBuilder_ == null) {
ensureGrantedCryptoAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, grantedCryptoAllowances_);
onChanged();
} else {
grantedCryptoAllowancesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public Builder clearGrantedCryptoAllowances() {
if (grantedCryptoAllowancesBuilder_ == null) {
grantedCryptoAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
} else {
grantedCryptoAllowancesBuilder_.clear();
}
return this;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public Builder removeGrantedCryptoAllowances(int index) {
if (grantedCryptoAllowancesBuilder_ == null) {
ensureGrantedCryptoAllowancesIsMutable();
grantedCryptoAllowances_.remove(index);
onChanged();
} else {
grantedCryptoAllowancesBuilder_.remove(index);
}
return this;
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.Builder getGrantedCryptoAllowancesBuilder(
int index) {
return getGrantedCryptoAllowancesFieldBuilder().getBuilder(index);
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowanceOrBuilder getGrantedCryptoAllowancesOrBuilder(
int index) {
if (grantedCryptoAllowancesBuilder_ == null) {
return grantedCryptoAllowances_.get(index); } else {
return grantedCryptoAllowancesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowanceOrBuilder>
getGrantedCryptoAllowancesOrBuilderList() {
if (grantedCryptoAllowancesBuilder_ != null) {
return grantedCryptoAllowancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(grantedCryptoAllowances_);
}
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.Builder addGrantedCryptoAllowancesBuilder() {
return getGrantedCryptoAllowancesFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.getDefaultInstance());
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.Builder addGrantedCryptoAllowancesBuilder(
int index) {
return getGrantedCryptoAllowancesFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.getDefaultInstance());
}
/**
*
**
* All of the hbar allowances approved by the account owner.
*
*
* repeated .proto.GrantedCryptoAllowance granted_crypto_allowances = 17;
*/
public java.util.List
getGrantedCryptoAllowancesBuilderList() {
return getGrantedCryptoAllowancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.Builder, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowanceOrBuilder>
getGrantedCryptoAllowancesFieldBuilder() {
if (grantedCryptoAllowancesBuilder_ == null) {
grantedCryptoAllowancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowance.Builder, com.hedera.hashgraph.sdk.proto.GrantedCryptoAllowanceOrBuilder>(
grantedCryptoAllowances_,
((bitField0_ & 0x00010000) != 0),
getParentForChildren(),
isClean());
grantedCryptoAllowances_ = null;
}
return grantedCryptoAllowancesBuilder_;
}
private java.util.List grantedNftAllowances_ =
java.util.Collections.emptyList();
private void ensureGrantedNftAllowancesIsMutable() {
if (!((bitField0_ & 0x00020000) != 0)) {
grantedNftAllowances_ = new java.util.ArrayList(grantedNftAllowances_);
bitField0_ |= 0x00020000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GrantedNftAllowance, com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.Builder, com.hedera.hashgraph.sdk.proto.GrantedNftAllowanceOrBuilder> grantedNftAllowancesBuilder_;
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public java.util.List getGrantedNftAllowancesList() {
if (grantedNftAllowancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(grantedNftAllowances_);
} else {
return grantedNftAllowancesBuilder_.getMessageList();
}
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public int getGrantedNftAllowancesCount() {
if (grantedNftAllowancesBuilder_ == null) {
return grantedNftAllowances_.size();
} else {
return grantedNftAllowancesBuilder_.getCount();
}
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public com.hedera.hashgraph.sdk.proto.GrantedNftAllowance getGrantedNftAllowances(int index) {
if (grantedNftAllowancesBuilder_ == null) {
return grantedNftAllowances_.get(index);
} else {
return grantedNftAllowancesBuilder_.getMessage(index);
}
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public Builder setGrantedNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedNftAllowance value) {
if (grantedNftAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantedNftAllowancesIsMutable();
grantedNftAllowances_.set(index, value);
onChanged();
} else {
grantedNftAllowancesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public Builder setGrantedNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.Builder builderForValue) {
if (grantedNftAllowancesBuilder_ == null) {
ensureGrantedNftAllowancesIsMutable();
grantedNftAllowances_.set(index, builderForValue.build());
onChanged();
} else {
grantedNftAllowancesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public Builder addGrantedNftAllowances(com.hedera.hashgraph.sdk.proto.GrantedNftAllowance value) {
if (grantedNftAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantedNftAllowancesIsMutable();
grantedNftAllowances_.add(value);
onChanged();
} else {
grantedNftAllowancesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public Builder addGrantedNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedNftAllowance value) {
if (grantedNftAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantedNftAllowancesIsMutable();
grantedNftAllowances_.add(index, value);
onChanged();
} else {
grantedNftAllowancesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public Builder addGrantedNftAllowances(
com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.Builder builderForValue) {
if (grantedNftAllowancesBuilder_ == null) {
ensureGrantedNftAllowancesIsMutable();
grantedNftAllowances_.add(builderForValue.build());
onChanged();
} else {
grantedNftAllowancesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public Builder addGrantedNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.Builder builderForValue) {
if (grantedNftAllowancesBuilder_ == null) {
ensureGrantedNftAllowancesIsMutable();
grantedNftAllowances_.add(index, builderForValue.build());
onChanged();
} else {
grantedNftAllowancesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public Builder addAllGrantedNftAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.GrantedNftAllowance> values) {
if (grantedNftAllowancesBuilder_ == null) {
ensureGrantedNftAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, grantedNftAllowances_);
onChanged();
} else {
grantedNftAllowancesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public Builder clearGrantedNftAllowances() {
if (grantedNftAllowancesBuilder_ == null) {
grantedNftAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
} else {
grantedNftAllowancesBuilder_.clear();
}
return this;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public Builder removeGrantedNftAllowances(int index) {
if (grantedNftAllowancesBuilder_ == null) {
ensureGrantedNftAllowancesIsMutable();
grantedNftAllowances_.remove(index);
onChanged();
} else {
grantedNftAllowancesBuilder_.remove(index);
}
return this;
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.Builder getGrantedNftAllowancesBuilder(
int index) {
return getGrantedNftAllowancesFieldBuilder().getBuilder(index);
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public com.hedera.hashgraph.sdk.proto.GrantedNftAllowanceOrBuilder getGrantedNftAllowancesOrBuilder(
int index) {
if (grantedNftAllowancesBuilder_ == null) {
return grantedNftAllowances_.get(index); } else {
return grantedNftAllowancesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.GrantedNftAllowanceOrBuilder>
getGrantedNftAllowancesOrBuilderList() {
if (grantedNftAllowancesBuilder_ != null) {
return grantedNftAllowancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(grantedNftAllowances_);
}
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.Builder addGrantedNftAllowancesBuilder() {
return getGrantedNftAllowancesFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.getDefaultInstance());
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.Builder addGrantedNftAllowancesBuilder(
int index) {
return getGrantedNftAllowancesFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.getDefaultInstance());
}
/**
*
**
* All of the non-fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedNftAllowance granted_nft_allowances = 18;
*/
public java.util.List
getGrantedNftAllowancesBuilderList() {
return getGrantedNftAllowancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GrantedNftAllowance, com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.Builder, com.hedera.hashgraph.sdk.proto.GrantedNftAllowanceOrBuilder>
getGrantedNftAllowancesFieldBuilder() {
if (grantedNftAllowancesBuilder_ == null) {
grantedNftAllowancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GrantedNftAllowance, com.hedera.hashgraph.sdk.proto.GrantedNftAllowance.Builder, com.hedera.hashgraph.sdk.proto.GrantedNftAllowanceOrBuilder>(
grantedNftAllowances_,
((bitField0_ & 0x00020000) != 0),
getParentForChildren(),
isClean());
grantedNftAllowances_ = null;
}
return grantedNftAllowancesBuilder_;
}
private java.util.List grantedTokenAllowances_ =
java.util.Collections.emptyList();
private void ensureGrantedTokenAllowancesIsMutable() {
if (!((bitField0_ & 0x00040000) != 0)) {
grantedTokenAllowances_ = new java.util.ArrayList(grantedTokenAllowances_);
bitField0_ |= 0x00040000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.Builder, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowanceOrBuilder> grantedTokenAllowancesBuilder_;
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public java.util.List getGrantedTokenAllowancesList() {
if (grantedTokenAllowancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(grantedTokenAllowances_);
} else {
return grantedTokenAllowancesBuilder_.getMessageList();
}
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public int getGrantedTokenAllowancesCount() {
if (grantedTokenAllowancesBuilder_ == null) {
return grantedTokenAllowances_.size();
} else {
return grantedTokenAllowancesBuilder_.getCount();
}
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance getGrantedTokenAllowances(int index) {
if (grantedTokenAllowancesBuilder_ == null) {
return grantedTokenAllowances_.get(index);
} else {
return grantedTokenAllowancesBuilder_.getMessage(index);
}
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public Builder setGrantedTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance value) {
if (grantedTokenAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantedTokenAllowancesIsMutable();
grantedTokenAllowances_.set(index, value);
onChanged();
} else {
grantedTokenAllowancesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public Builder setGrantedTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.Builder builderForValue) {
if (grantedTokenAllowancesBuilder_ == null) {
ensureGrantedTokenAllowancesIsMutable();
grantedTokenAllowances_.set(index, builderForValue.build());
onChanged();
} else {
grantedTokenAllowancesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public Builder addGrantedTokenAllowances(com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance value) {
if (grantedTokenAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantedTokenAllowancesIsMutable();
grantedTokenAllowances_.add(value);
onChanged();
} else {
grantedTokenAllowancesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public Builder addGrantedTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance value) {
if (grantedTokenAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGrantedTokenAllowancesIsMutable();
grantedTokenAllowances_.add(index, value);
onChanged();
} else {
grantedTokenAllowancesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public Builder addGrantedTokenAllowances(
com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.Builder builderForValue) {
if (grantedTokenAllowancesBuilder_ == null) {
ensureGrantedTokenAllowancesIsMutable();
grantedTokenAllowances_.add(builderForValue.build());
onChanged();
} else {
grantedTokenAllowancesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public Builder addGrantedTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.Builder builderForValue) {
if (grantedTokenAllowancesBuilder_ == null) {
ensureGrantedTokenAllowancesIsMutable();
grantedTokenAllowances_.add(index, builderForValue.build());
onChanged();
} else {
grantedTokenAllowancesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public Builder addAllGrantedTokenAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance> values) {
if (grantedTokenAllowancesBuilder_ == null) {
ensureGrantedTokenAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, grantedTokenAllowances_);
onChanged();
} else {
grantedTokenAllowancesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public Builder clearGrantedTokenAllowances() {
if (grantedTokenAllowancesBuilder_ == null) {
grantedTokenAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
} else {
grantedTokenAllowancesBuilder_.clear();
}
return this;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public Builder removeGrantedTokenAllowances(int index) {
if (grantedTokenAllowancesBuilder_ == null) {
ensureGrantedTokenAllowancesIsMutable();
grantedTokenAllowances_.remove(index);
onChanged();
} else {
grantedTokenAllowancesBuilder_.remove(index);
}
return this;
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.Builder getGrantedTokenAllowancesBuilder(
int index) {
return getGrantedTokenAllowancesFieldBuilder().getBuilder(index);
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public com.hedera.hashgraph.sdk.proto.GrantedTokenAllowanceOrBuilder getGrantedTokenAllowancesOrBuilder(
int index) {
if (grantedTokenAllowancesBuilder_ == null) {
return grantedTokenAllowances_.get(index); } else {
return grantedTokenAllowancesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.GrantedTokenAllowanceOrBuilder>
getGrantedTokenAllowancesOrBuilderList() {
if (grantedTokenAllowancesBuilder_ != null) {
return grantedTokenAllowancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(grantedTokenAllowances_);
}
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.Builder addGrantedTokenAllowancesBuilder() {
return getGrantedTokenAllowancesFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.getDefaultInstance());
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.Builder addGrantedTokenAllowancesBuilder(
int index) {
return getGrantedTokenAllowancesFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.getDefaultInstance());
}
/**
*
**
* All of the fungible token allowances approved by the account owner.
*
*
* repeated .proto.GrantedTokenAllowance granted_token_allowances = 19;
*/
public java.util.List
getGrantedTokenAllowancesBuilderList() {
return getGrantedTokenAllowancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.Builder, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowanceOrBuilder>
getGrantedTokenAllowancesFieldBuilder() {
if (grantedTokenAllowancesBuilder_ == null) {
grantedTokenAllowancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowance.Builder, com.hedera.hashgraph.sdk.proto.GrantedTokenAllowanceOrBuilder>(
grantedTokenAllowances_,
((bitField0_ & 0x00040000) != 0),
getParentForChildren(),
isClean());
grantedTokenAllowances_ = null;
}
return grantedTokenAllowancesBuilder_;
}
@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.GetAccountDetailsResponse.AccountDetails)
}
// @@protoc_insertion_point(class_scope:proto.GetAccountDetailsResponse.AccountDetails)
private static final com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails();
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccountDetails parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int HEADER_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
* @return The header.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ResponseHeader getHeader() {
return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder getHeaderOrBuilder() {
return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_;
}
public static final int ACCOUNT_DETAILS_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails accountDetails_;
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
* @return Whether the accountDetails field is set.
*/
@java.lang.Override
public boolean hasAccountDetails() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
* @return The accountDetails.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails getAccountDetails() {
return accountDetails_ == null ? com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.getDefaultInstance() : accountDetails_;
}
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetailsOrBuilder getAccountDetailsOrBuilder() {
return accountDetails_ == null ? com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.getDefaultInstance() : accountDetails_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getHeader());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getAccountDetails());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAccountDetails());
}
size += getUnknownFields().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.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse other = (com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasAccountDetails() != other.hasAccountDetails()) return false;
if (hasAccountDetails()) {
if (!getAccountDetails()
.equals(other.getAccountDetails())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasAccountDetails()) {
hash = (37 * hash) + ACCOUNT_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getAccountDetails().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse 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.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse 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.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse 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.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse 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 GetAccountDetailsQuery
*
*
* Protobuf type {@code proto.GetAccountDetailsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.GetAccountDetailsResponse)
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetails.internal_static_proto_GetAccountDetailsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetails.internal_static_proto_GetAccountDetailsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.class, com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHeaderFieldBuilder();
getAccountDetailsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
accountDetails_ = null;
if (accountDetailsBuilder_ != null) {
accountDetailsBuilder_.dispose();
accountDetailsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetails.internal_static_proto_GetAccountDetailsResponse_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse build() {
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse buildPartial() {
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse result = new com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.header_ = headerBuilder_ == null
? header_
: headerBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.accountDetails_ = accountDetailsBuilder_ == null
? accountDetails_
: accountDetailsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse other) {
if (other == com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasAccountDetails()) {
mergeAccountDetails(other.getAccountDetails());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getHeaderFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getAccountDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.hedera.hashgraph.sdk.proto.ResponseHeader header_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder> headerBuilder_;
/**
*
**
* 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.
*/
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
* @return The header.
*/
public com.hedera.hashgraph.sdk.proto.ResponseHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public Builder setHeader(com.hedera.hashgraph.sdk.proto.ResponseHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
} else {
headerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public Builder setHeader(
com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public Builder mergeHeader(com.hedera.hashgraph.sdk.proto.ResponseHeader value) {
if (headerBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
header_ != null &&
header_ != com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance()) {
getHeaderBuilder().mergeFrom(value);
} else {
header_ = value;
}
} else {
headerBuilder_.mergeFrom(value);
}
if (header_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public Builder clearHeader() {
bitField0_ = (bitField0_ & ~0x00000001);
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder getHeaderBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
public com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
com.hedera.hashgraph.sdk.proto.ResponseHeader.getDefaultInstance() : header_;
}
}
/**
*
**
* Standard response from node to client, including the requested fields: cost, or state proof,
* or both, or neither
*
*
* .proto.ResponseHeader header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.ResponseHeader, com.hedera.hashgraph.sdk.proto.ResponseHeader.Builder, com.hedera.hashgraph.sdk.proto.ResponseHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails accountDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails, com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.Builder, com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetailsOrBuilder> accountDetailsBuilder_;
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
* @return Whether the accountDetails field is set.
*/
public boolean hasAccountDetails() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
* @return The accountDetails.
*/
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails getAccountDetails() {
if (accountDetailsBuilder_ == null) {
return accountDetails_ == null ? com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.getDefaultInstance() : accountDetails_;
} else {
return accountDetailsBuilder_.getMessage();
}
}
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
*/
public Builder setAccountDetails(com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails value) {
if (accountDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountDetails_ = value;
} else {
accountDetailsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
*/
public Builder setAccountDetails(
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.Builder builderForValue) {
if (accountDetailsBuilder_ == null) {
accountDetails_ = builderForValue.build();
} else {
accountDetailsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
*/
public Builder mergeAccountDetails(com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails value) {
if (accountDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
accountDetails_ != null &&
accountDetails_ != com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.getDefaultInstance()) {
getAccountDetailsBuilder().mergeFrom(value);
} else {
accountDetails_ = value;
}
} else {
accountDetailsBuilder_.mergeFrom(value);
}
if (accountDetails_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
*/
public Builder clearAccountDetails() {
bitField0_ = (bitField0_ & ~0x00000002);
accountDetails_ = null;
if (accountDetailsBuilder_ != null) {
accountDetailsBuilder_.dispose();
accountDetailsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
*/
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.Builder getAccountDetailsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAccountDetailsFieldBuilder().getBuilder();
}
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
*/
public com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetailsOrBuilder getAccountDetailsOrBuilder() {
if (accountDetailsBuilder_ != null) {
return accountDetailsBuilder_.getMessageOrBuilder();
} else {
return accountDetails_ == null ?
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.getDefaultInstance() : accountDetails_;
}
}
/**
*
**
* Details of the account (a state proof can be generated for this)
*
*
* .proto.GetAccountDetailsResponse.AccountDetails account_details = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails, com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.Builder, com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetailsOrBuilder>
getAccountDetailsFieldBuilder() {
if (accountDetailsBuilder_ == null) {
accountDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails, com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetails.Builder, com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse.AccountDetailsOrBuilder>(
getAccountDetails(),
getParentForChildren(),
isClean());
accountDetails_ = null;
}
return accountDetailsBuilder_;
}
@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.GetAccountDetailsResponse)
}
// @@protoc_insertion_point(class_scope:proto.GetAccountDetailsResponse)
private static final com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse();
}
public static com.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetAccountDetailsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.hedera.hashgraph.sdk.proto.GetAccountDetailsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}