com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse 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
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crypto_get_info.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Response when the client sends the node CryptoGetInfoQuery
*
*
* Protobuf type {@code proto.CryptoGetInfoResponse}
*/
public final class CryptoGetInfoResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.CryptoGetInfoResponse)
CryptoGetInfoResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CryptoGetInfoResponse.newBuilder() to construct.
private CryptoGetInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CryptoGetInfoResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CryptoGetInfoResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfo.internal_static_proto_CryptoGetInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfo.internal_static_proto_CryptoGetInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.class, com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.Builder.class);
}
public interface AccountInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto.CryptoGetInfoResponse.AccountInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID accountID = 1;
* @return Whether the accountID field is set.
*/
boolean hasAccountID();
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID accountID = 1;
* @return The accountID.
*/
com.hedera.hashgraph.sdk.proto.AccountID getAccountID();
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID accountID = 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 contractAccountID = 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 contractAccountID = 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 proxyAccountID = 4 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.proxyAccountID is deprecated.
* See crypto_get_info.proto;l=87
* @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 proxyAccountID = 4 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.proxyAccountID is deprecated.
* See crypto_get_info.proto;l=87
* @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 proxyAccountID = 4 [deprecated = true];
*/
@java.lang.Deprecated com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getProxyAccountIDOrBuilder();
/**
*
**
* The total number of tinybars proxy staked to this account
*
*
* int64 proxyReceived = 6;
* @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 = 7;
* @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 = 7;
* @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 = 7;
*/
com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKeyOrBuilder();
/**
*
**
* The current balance of account in tinybars
*
*
* uint64 balance = 8;
* @return The balance.
*/
long getBalance();
/**
*
**
* [Deprecated]. The threshold amount, in tinybars, at which a record is created of any
* transaction that decreases the balance of this account by more than the threshold
*
*
* uint64 generateSendRecordThreshold = 9 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.generateSendRecordThreshold is deprecated.
* See crypto_get_info.proto;l=109
* @return The generateSendRecordThreshold.
*/
@java.lang.Deprecated long getGenerateSendRecordThreshold();
/**
*
**
* [Deprecated]. The threshold amount, in tinybars, at which a record is created of any
* transaction that increases the balance of this account by more than the threshold
*
*
* uint64 generateReceiveRecordThreshold = 10 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.generateReceiveRecordThreshold is deprecated.
* See crypto_get_info.proto;l=115
* @return The generateReceiveRecordThreshold.
*/
@java.lang.Deprecated long getGenerateReceiveRecordThreshold();
/**
*
**
* If true, no transaction can transfer to this account unless signed by this account's key
*
*
* bool receiverSigRequired = 11;
* @return The receiverSigRequired.
*/
boolean getReceiverSigRequired();
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 12;
* @return Whether the expirationTime field is set.
*/
boolean hasExpirationTime();
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 12;
* @return The expirationTime.
*/
com.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime();
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 12;
*/
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 autoRenewPeriod = 13;
* @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 autoRenewPeriod = 13;
* @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 autoRenewPeriod = 13;
*/
com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder();
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
java.util.List
getLiveHashesList();
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
com.hedera.hashgraph.sdk.proto.LiveHash getLiveHashes(int index);
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
int getLiveHashesCount();
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
java.util.List extends com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder>
getLiveHashesOrBuilderList();
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder getLiveHashesOrBuilder(
int index);
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getTokenRelationshipsList();
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated com.hedera.hashgraph.sdk.proto.TokenRelationship getTokenRelationships(int index);
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated int getTokenRelationshipsCount();
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated java.util.List extends com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder>
getTokenRelationshipsOrBuilderList();
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder getTokenRelationshipsOrBuilder(
int index);
/**
*
**
* The memo associated with the account
*
*
* string memo = 16;
* @return The memo.
*/
java.lang.String getMemo();
/**
*
**
* The memo associated with the account
*
*
* string memo = 16;
* @return The bytes for memo.
*/
com.google.protobuf.ByteString
getMemoBytes();
/**
*
**
* The number of NFTs owned by this account
*
*
* int64 ownedNfts = 17;
* @return The ownedNfts.
*/
long getOwnedNfts();
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with.
*
*
* int32 max_automatic_token_associations = 18;
* @return The maxAutomaticTokenAssociations.
*/
int getMaxAutomaticTokenAssociations();
/**
*
**
* The alias of this account
*
*
* bytes alias = 19;
* @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 = 20;
* @return The ledgerId.
*/
com.google.protobuf.ByteString getLedgerId();
/**
*
**
* The ethereum transaction nonce associated with this account.
*
*
* int64 ethereum_nonce = 21;
* @return The ethereumNonce.
*/
long getEthereumNonce();
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
* @return Whether the stakingInfo field is set.
*/
boolean hasStakingInfo();
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
* @return The stakingInfo.
*/
com.hedera.hashgraph.sdk.proto.StakingInfo getStakingInfo();
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
*/
com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder getStakingInfoOrBuilder();
}
/**
* Protobuf type {@code proto.CryptoGetInfoResponse.AccountInfo}
*/
public static final class AccountInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.CryptoGetInfoResponse.AccountInfo)
AccountInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccountInfo.newBuilder() to construct.
private AccountInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccountInfo() {
contractAccountID_ = "";
liveHashes_ = java.util.Collections.emptyList();
tokenRelationships_ = java.util.Collections.emptyList();
memo_ = "";
alias_ = com.google.protobuf.ByteString.EMPTY;
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccountInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfo.internal_static_proto_CryptoGetInfoResponse_AccountInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfo.internal_static_proto_CryptoGetInfoResponse_AccountInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.class, com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.Builder.class);
}
private int bitField0_;
public static final int ACCOUNTID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.AccountID accountID_;
/**
*
**
* The account ID for which this information applies
*
*
* .proto.AccountID accountID = 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 accountID = 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 accountID = 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 CONTRACTACCOUNTID_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 contractAccountID = 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 contractAccountID = 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 PROXYACCOUNTID_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 proxyAccountID = 4 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.proxyAccountID is deprecated.
* See crypto_get_info.proto;l=87
* @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 proxyAccountID = 4 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.proxyAccountID is deprecated.
* See crypto_get_info.proto;l=87
* @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 proxyAccountID = 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 PROXYRECEIVED_FIELD_NUMBER = 6;
private long proxyReceived_ = 0L;
/**
*
**
* The total number of tinybars proxy staked to this account
*
*
* int64 proxyReceived = 6;
* @return The proxyReceived.
*/
@java.lang.Override
public long getProxyReceived() {
return proxyReceived_;
}
public static final int KEY_FIELD_NUMBER = 7;
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 = 7;
* @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 = 7;
* @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 = 7;
*/
@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 = 8;
private long balance_ = 0L;
/**
*
**
* The current balance of account in tinybars
*
*
* uint64 balance = 8;
* @return The balance.
*/
@java.lang.Override
public long getBalance() {
return balance_;
}
public static final int GENERATESENDRECORDTHRESHOLD_FIELD_NUMBER = 9;
private long generateSendRecordThreshold_ = 0L;
/**
*
**
* [Deprecated]. The threshold amount, in tinybars, at which a record is created of any
* transaction that decreases the balance of this account by more than the threshold
*
*
* uint64 generateSendRecordThreshold = 9 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.generateSendRecordThreshold is deprecated.
* See crypto_get_info.proto;l=109
* @return The generateSendRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getGenerateSendRecordThreshold() {
return generateSendRecordThreshold_;
}
public static final int GENERATERECEIVERECORDTHRESHOLD_FIELD_NUMBER = 10;
private long generateReceiveRecordThreshold_ = 0L;
/**
*
**
* [Deprecated]. The threshold amount, in tinybars, at which a record is created of any
* transaction that increases the balance of this account by more than the threshold
*
*
* uint64 generateReceiveRecordThreshold = 10 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.generateReceiveRecordThreshold is deprecated.
* See crypto_get_info.proto;l=115
* @return The generateReceiveRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getGenerateReceiveRecordThreshold() {
return generateReceiveRecordThreshold_;
}
public static final int RECEIVERSIGREQUIRED_FIELD_NUMBER = 11;
private boolean receiverSigRequired_ = false;
/**
*
**
* If true, no transaction can transfer to this account unless signed by this account's key
*
*
* bool receiverSigRequired = 11;
* @return The receiverSigRequired.
*/
@java.lang.Override
public boolean getReceiverSigRequired() {
return receiverSigRequired_;
}
public static final int EXPIRATIONTIME_FIELD_NUMBER = 12;
private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_;
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 12;
* @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 expirationTime = 12;
* @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 expirationTime = 12;
*/
@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 AUTORENEWPERIOD_FIELD_NUMBER = 13;
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 autoRenewPeriod = 13;
* @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 autoRenewPeriod = 13;
* @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 autoRenewPeriod = 13;
*/
@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 LIVEHASHES_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private java.util.List liveHashes_;
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
@java.lang.Override
public java.util.List getLiveHashesList() {
return liveHashes_;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder>
getLiveHashesOrBuilderList() {
return liveHashes_;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
@java.lang.Override
public int getLiveHashesCount() {
return liveHashes_.size();
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.LiveHash getLiveHashes(int index) {
return liveHashes_.get(index);
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder getLiveHashesOrBuilder(
int index) {
return liveHashes_.get(index);
}
public static final int TOKENRELATIONSHIPS_FIELD_NUMBER = 15;
@SuppressWarnings("serial")
private java.util.List tokenRelationships_;
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getTokenRelationshipsList() {
return tokenRelationships_;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder>
getTokenRelationshipsOrBuilderList() {
return tokenRelationships_;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public int getTokenRelationshipsCount() {
return tokenRelationships_.size();
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationship getTokenRelationships(int index) {
return tokenRelationships_.get(index);
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder getTokenRelationshipsOrBuilder(
int index) {
return tokenRelationships_.get(index);
}
public static final int MEMO_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private volatile java.lang.Object memo_ = "";
/**
*
**
* The memo associated with the account
*
*
* string memo = 16;
* @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 = 16;
* @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 OWNEDNFTS_FIELD_NUMBER = 17;
private long ownedNfts_ = 0L;
/**
*
**
* The number of NFTs owned by this account
*
*
* int64 ownedNfts = 17;
* @return The ownedNfts.
*/
@java.lang.Override
public long getOwnedNfts() {
return ownedNfts_;
}
public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER = 18;
private int maxAutomaticTokenAssociations_ = 0;
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with.
*
*
* int32 max_automatic_token_associations = 18;
* @return The maxAutomaticTokenAssociations.
*/
@java.lang.Override
public int getMaxAutomaticTokenAssociations() {
return maxAutomaticTokenAssociations_;
}
public static final int ALIAS_FIELD_NUMBER = 19;
private com.google.protobuf.ByteString alias_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The alias of this account
*
*
* bytes alias = 19;
* @return The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return alias_;
}
public static final int LEDGER_ID_FIELD_NUMBER = 20;
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 = 20;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
public static final int ETHEREUM_NONCE_FIELD_NUMBER = 21;
private long ethereumNonce_ = 0L;
/**
*
**
* The ethereum transaction nonce associated with this account.
*
*
* int64 ethereum_nonce = 21;
* @return The ethereumNonce.
*/
@java.lang.Override
public long getEthereumNonce() {
return ethereumNonce_;
}
public static final int STAKING_INFO_FIELD_NUMBER = 22;
private com.hedera.hashgraph.sdk.proto.StakingInfo stakingInfo_;
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
* @return Whether the stakingInfo field is set.
*/
@java.lang.Override
public boolean hasStakingInfo() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
* @return The stakingInfo.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.StakingInfo getStakingInfo() {
return stakingInfo_ == null ? com.hedera.hashgraph.sdk.proto.StakingInfo.getDefaultInstance() : stakingInfo_;
}
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder getStakingInfoOrBuilder() {
return stakingInfo_ == null ? com.hedera.hashgraph.sdk.proto.StakingInfo.getDefaultInstance() : stakingInfo_;
}
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(6, proxyReceived_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getKey());
}
if (balance_ != 0L) {
output.writeUInt64(8, balance_);
}
if (generateSendRecordThreshold_ != 0L) {
output.writeUInt64(9, generateSendRecordThreshold_);
}
if (generateReceiveRecordThreshold_ != 0L) {
output.writeUInt64(10, generateReceiveRecordThreshold_);
}
if (receiverSigRequired_ != false) {
output.writeBool(11, receiverSigRequired_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(12, getExpirationTime());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(13, getAutoRenewPeriod());
}
for (int i = 0; i < liveHashes_.size(); i++) {
output.writeMessage(14, liveHashes_.get(i));
}
for (int i = 0; i < tokenRelationships_.size(); i++) {
output.writeMessage(15, tokenRelationships_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, memo_);
}
if (ownedNfts_ != 0L) {
output.writeInt64(17, ownedNfts_);
}
if (maxAutomaticTokenAssociations_ != 0) {
output.writeInt32(18, maxAutomaticTokenAssociations_);
}
if (!alias_.isEmpty()) {
output.writeBytes(19, alias_);
}
if (!ledgerId_.isEmpty()) {
output.writeBytes(20, ledgerId_);
}
if (ethereumNonce_ != 0L) {
output.writeInt64(21, ethereumNonce_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(22, getStakingInfo());
}
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(6, proxyReceived_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getKey());
}
if (balance_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, balance_);
}
if (generateSendRecordThreshold_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(9, generateSendRecordThreshold_);
}
if (generateReceiveRecordThreshold_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(10, generateReceiveRecordThreshold_);
}
if (receiverSigRequired_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, receiverSigRequired_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getExpirationTime());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getAutoRenewPeriod());
}
for (int i = 0; i < liveHashes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, liveHashes_.get(i));
}
for (int i = 0; i < tokenRelationships_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, tokenRelationships_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, memo_);
}
if (ownedNfts_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(17, ownedNfts_);
}
if (maxAutomaticTokenAssociations_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(18, maxAutomaticTokenAssociations_);
}
if (!alias_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(19, alias_);
}
if (!ledgerId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(20, ledgerId_);
}
if (ethereumNonce_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(21, ethereumNonce_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, getStakingInfo());
}
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.CryptoGetInfoResponse.AccountInfo)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo other = (com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo) 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 (getGenerateSendRecordThreshold()
!= other.getGenerateSendRecordThreshold()) return false;
if (getGenerateReceiveRecordThreshold()
!= other.getGenerateReceiveRecordThreshold()) 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 (!getLiveHashesList()
.equals(other.getLiveHashesList())) 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 (getEthereumNonce()
!= other.getEthereumNonce()) return false;
if (hasStakingInfo() != other.hasStakingInfo()) return false;
if (hasStakingInfo()) {
if (!getStakingInfo()
.equals(other.getStakingInfo())) 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) + ACCOUNTID_FIELD_NUMBER;
hash = (53 * hash) + getAccountID().hashCode();
}
hash = (37 * hash) + CONTRACTACCOUNTID_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) + PROXYACCOUNTID_FIELD_NUMBER;
hash = (53 * hash) + getProxyAccountID().hashCode();
}
hash = (37 * hash) + PROXYRECEIVED_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) + GENERATESENDRECORDTHRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGenerateSendRecordThreshold());
hash = (37 * hash) + GENERATERECEIVERECORDTHRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGenerateReceiveRecordThreshold());
hash = (37 * hash) + RECEIVERSIGREQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReceiverSigRequired());
if (hasExpirationTime()) {
hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getExpirationTime().hashCode();
}
if (hasAutoRenewPeriod()) {
hash = (37 * hash) + AUTORENEWPERIOD_FIELD_NUMBER;
hash = (53 * hash) + getAutoRenewPeriod().hashCode();
}
if (getLiveHashesCount() > 0) {
hash = (37 * hash) + LIVEHASHES_FIELD_NUMBER;
hash = (53 * hash) + getLiveHashesList().hashCode();
}
if (getTokenRelationshipsCount() > 0) {
hash = (37 * hash) + TOKENRELATIONSHIPS_FIELD_NUMBER;
hash = (53 * hash) + getTokenRelationshipsList().hashCode();
}
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (37 * hash) + OWNEDNFTS_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();
hash = (37 * hash) + ETHEREUM_NONCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEthereumNonce());
if (hasStakingInfo()) {
hash = (37 * hash) + STAKING_INFO_FIELD_NUMBER;
hash = (53 * hash) + getStakingInfo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo 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.CryptoGetInfoResponse.AccountInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo 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.CryptoGetInfoResponse.AccountInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo 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.CryptoGetInfoResponse.AccountInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo 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.CryptoGetInfoResponse.AccountInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo 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.CryptoGetInfoResponse.AccountInfo 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.CryptoGetInfoResponse.AccountInfo 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.CryptoGetInfoResponse.AccountInfo 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.CryptoGetInfoResponse.AccountInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.CryptoGetInfoResponse.AccountInfo)
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfo.internal_static_proto_CryptoGetInfoResponse_AccountInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfo.internal_static_proto_CryptoGetInfoResponse_AccountInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.class, com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.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();
getLiveHashesFieldBuilder();
getTokenRelationshipsFieldBuilder();
getStakingInfoFieldBuilder();
}
}
@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;
generateSendRecordThreshold_ = 0L;
generateReceiveRecordThreshold_ = 0L;
receiverSigRequired_ = false;
expirationTime_ = null;
if (expirationTimeBuilder_ != null) {
expirationTimeBuilder_.dispose();
expirationTimeBuilder_ = null;
}
autoRenewPeriod_ = null;
if (autoRenewPeriodBuilder_ != null) {
autoRenewPeriodBuilder_.dispose();
autoRenewPeriodBuilder_ = null;
}
if (liveHashesBuilder_ == null) {
liveHashes_ = java.util.Collections.emptyList();
} else {
liveHashes_ = null;
liveHashesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
if (tokenRelationshipsBuilder_ == null) {
tokenRelationships_ = java.util.Collections.emptyList();
} else {
tokenRelationships_ = null;
tokenRelationshipsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
memo_ = "";
ownedNfts_ = 0L;
maxAutomaticTokenAssociations_ = 0;
alias_ = com.google.protobuf.ByteString.EMPTY;
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
ethereumNonce_ = 0L;
stakingInfo_ = null;
if (stakingInfoBuilder_ != null) {
stakingInfoBuilder_.dispose();
stakingInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfo.internal_static_proto_CryptoGetInfoResponse_AccountInfo_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo build() {
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo buildPartial() {
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo result = new com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo result) {
if (liveHashesBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)) {
liveHashes_ = java.util.Collections.unmodifiableList(liveHashes_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.liveHashes_ = liveHashes_;
} else {
result.liveHashes_ = liveHashesBuilder_.build();
}
if (tokenRelationshipsBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0)) {
tokenRelationships_ = java.util.Collections.unmodifiableList(tokenRelationships_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.tokenRelationships_ = tokenRelationships_;
} else {
result.tokenRelationships_ = tokenRelationshipsBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo 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.generateSendRecordThreshold_ = generateSendRecordThreshold_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.generateReceiveRecordThreshold_ = generateReceiveRecordThreshold_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.receiverSigRequired_ = receiverSigRequired_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.expirationTime_ = expirationTimeBuilder_ == null
? expirationTime_
: expirationTimeBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.autoRenewPeriod_ = autoRenewPeriodBuilder_ == null
? autoRenewPeriod_
: autoRenewPeriodBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.memo_ = memo_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.ownedNfts_ = ownedNfts_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.maxAutomaticTokenAssociations_ = maxAutomaticTokenAssociations_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.alias_ = alias_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.ledgerId_ = ledgerId_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.ethereumNonce_ = ethereumNonce_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.stakingInfo_ = stakingInfoBuilder_ == null
? stakingInfo_
: stakingInfoBuilder_.build();
to_bitField0_ |= 0x00000020;
}
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.CryptoGetInfoResponse.AccountInfo) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo other) {
if (other == com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.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.getGenerateSendRecordThreshold() != 0L) {
setGenerateSendRecordThreshold(other.getGenerateSendRecordThreshold());
}
if (other.getGenerateReceiveRecordThreshold() != 0L) {
setGenerateReceiveRecordThreshold(other.getGenerateReceiveRecordThreshold());
}
if (other.getReceiverSigRequired() != false) {
setReceiverSigRequired(other.getReceiverSigRequired());
}
if (other.hasExpirationTime()) {
mergeExpirationTime(other.getExpirationTime());
}
if (other.hasAutoRenewPeriod()) {
mergeAutoRenewPeriod(other.getAutoRenewPeriod());
}
if (liveHashesBuilder_ == null) {
if (!other.liveHashes_.isEmpty()) {
if (liveHashes_.isEmpty()) {
liveHashes_ = other.liveHashes_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureLiveHashesIsMutable();
liveHashes_.addAll(other.liveHashes_);
}
onChanged();
}
} else {
if (!other.liveHashes_.isEmpty()) {
if (liveHashesBuilder_.isEmpty()) {
liveHashesBuilder_.dispose();
liveHashesBuilder_ = null;
liveHashes_ = other.liveHashes_;
bitField0_ = (bitField0_ & ~0x00001000);
liveHashesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLiveHashesFieldBuilder() : null;
} else {
liveHashesBuilder_.addAllMessages(other.liveHashes_);
}
}
}
if (tokenRelationshipsBuilder_ == null) {
if (!other.tokenRelationships_.isEmpty()) {
if (tokenRelationships_.isEmpty()) {
tokenRelationships_ = other.tokenRelationships_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureTokenRelationshipsIsMutable();
tokenRelationships_.addAll(other.tokenRelationships_);
}
onChanged();
}
} else {
if (!other.tokenRelationships_.isEmpty()) {
if (tokenRelationshipsBuilder_.isEmpty()) {
tokenRelationshipsBuilder_.dispose();
tokenRelationshipsBuilder_ = null;
tokenRelationships_ = other.tokenRelationships_;
bitField0_ = (bitField0_ & ~0x00002000);
tokenRelationshipsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTokenRelationshipsFieldBuilder() : null;
} else {
tokenRelationshipsBuilder_.addAllMessages(other.tokenRelationships_);
}
}
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
bitField0_ |= 0x00004000;
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 (other.getEthereumNonce() != 0L) {
setEthereumNonce(other.getEthereumNonce());
}
if (other.hasStakingInfo()) {
mergeStakingInfo(other.getStakingInfo());
}
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 48: {
proxyReceived_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 48
case 58: {
input.readMessage(
getKeyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 58
case 64: {
balance_ = input.readUInt64();
bitField0_ |= 0x00000040;
break;
} // case 64
case 72: {
generateSendRecordThreshold_ = input.readUInt64();
bitField0_ |= 0x00000080;
break;
} // case 72
case 80: {
generateReceiveRecordThreshold_ = input.readUInt64();
bitField0_ |= 0x00000100;
break;
} // case 80
case 88: {
receiverSigRequired_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 88
case 98: {
input.readMessage(
getExpirationTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 98
case 106: {
input.readMessage(
getAutoRenewPeriodFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 106
case 114: {
com.hedera.hashgraph.sdk.proto.LiveHash m =
input.readMessage(
com.hedera.hashgraph.sdk.proto.LiveHash.parser(),
extensionRegistry);
if (liveHashesBuilder_ == null) {
ensureLiveHashesIsMutable();
liveHashes_.add(m);
} else {
liveHashesBuilder_.addMessage(m);
}
break;
} // case 114
case 122: {
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 122
case 130: {
memo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00004000;
break;
} // case 130
case 136: {
ownedNfts_ = input.readInt64();
bitField0_ |= 0x00008000;
break;
} // case 136
case 144: {
maxAutomaticTokenAssociations_ = input.readInt32();
bitField0_ |= 0x00010000;
break;
} // case 144
case 154: {
alias_ = input.readBytes();
bitField0_ |= 0x00020000;
break;
} // case 154
case 162: {
ledgerId_ = input.readBytes();
bitField0_ |= 0x00040000;
break;
} // case 162
case 168: {
ethereumNonce_ = input.readInt64();
bitField0_ |= 0x00080000;
break;
} // case 168
case 178: {
input.readMessage(
getStakingInfoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00100000;
break;
} // case 178
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 accountID = 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 accountID = 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 accountID = 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 accountID = 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 accountID = 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 accountID = 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 accountID = 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 accountID = 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 accountID = 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 contractAccountID = 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 contractAccountID = 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 contractAccountID = 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 contractAccountID = 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 contractAccountID = 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 proxyAccountID = 4 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.proxyAccountID is deprecated.
* See crypto_get_info.proto;l=87
* @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 proxyAccountID = 4 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.proxyAccountID is deprecated.
* See crypto_get_info.proto;l=87
* @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 proxyAccountID = 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 proxyAccountID = 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 proxyAccountID = 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 proxyAccountID = 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 proxyAccountID = 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 proxyAccountID = 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 proxyAccountID = 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 proxyReceived = 6;
* @return The proxyReceived.
*/
@java.lang.Override
public long getProxyReceived() {
return proxyReceived_;
}
/**
*
**
* The total number of tinybars proxy staked to this account
*
*
* int64 proxyReceived = 6;
* @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 proxyReceived = 6;
* @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 = 7;
* @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 = 7;
* @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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 8;
* @return The balance.
*/
@java.lang.Override
public long getBalance() {
return balance_;
}
/**
*
**
* The current balance of account in tinybars
*
*
* uint64 balance = 8;
* @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 = 8;
* @return This builder for chaining.
*/
public Builder clearBalance() {
bitField0_ = (bitField0_ & ~0x00000040);
balance_ = 0L;
onChanged();
return this;
}
private long generateSendRecordThreshold_ ;
/**
*
**
* [Deprecated]. The threshold amount, in tinybars, at which a record is created of any
* transaction that decreases the balance of this account by more than the threshold
*
*
* uint64 generateSendRecordThreshold = 9 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.generateSendRecordThreshold is deprecated.
* See crypto_get_info.proto;l=109
* @return The generateSendRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getGenerateSendRecordThreshold() {
return generateSendRecordThreshold_;
}
/**
*
**
* [Deprecated]. The threshold amount, in tinybars, at which a record is created of any
* transaction that decreases the balance of this account by more than the threshold
*
*
* uint64 generateSendRecordThreshold = 9 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.generateSendRecordThreshold is deprecated.
* See crypto_get_info.proto;l=109
* @param value The generateSendRecordThreshold to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setGenerateSendRecordThreshold(long value) {
generateSendRecordThreshold_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
**
* [Deprecated]. The threshold amount, in tinybars, at which a record is created of any
* transaction that decreases the balance of this account by more than the threshold
*
*
* uint64 generateSendRecordThreshold = 9 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.generateSendRecordThreshold is deprecated.
* See crypto_get_info.proto;l=109
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearGenerateSendRecordThreshold() {
bitField0_ = (bitField0_ & ~0x00000080);
generateSendRecordThreshold_ = 0L;
onChanged();
return this;
}
private long generateReceiveRecordThreshold_ ;
/**
*
**
* [Deprecated]. The threshold amount, in tinybars, at which a record is created of any
* transaction that increases the balance of this account by more than the threshold
*
*
* uint64 generateReceiveRecordThreshold = 10 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.generateReceiveRecordThreshold is deprecated.
* See crypto_get_info.proto;l=115
* @return The generateReceiveRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getGenerateReceiveRecordThreshold() {
return generateReceiveRecordThreshold_;
}
/**
*
**
* [Deprecated]. The threshold amount, in tinybars, at which a record is created of any
* transaction that increases the balance of this account by more than the threshold
*
*
* uint64 generateReceiveRecordThreshold = 10 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.generateReceiveRecordThreshold is deprecated.
* See crypto_get_info.proto;l=115
* @param value The generateReceiveRecordThreshold to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setGenerateReceiveRecordThreshold(long value) {
generateReceiveRecordThreshold_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
**
* [Deprecated]. The threshold amount, in tinybars, at which a record is created of any
* transaction that increases the balance of this account by more than the threshold
*
*
* uint64 generateReceiveRecordThreshold = 10 [deprecated = true];
* @deprecated proto.CryptoGetInfoResponse.AccountInfo.generateReceiveRecordThreshold is deprecated.
* See crypto_get_info.proto;l=115
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearGenerateReceiveRecordThreshold() {
bitField0_ = (bitField0_ & ~0x00000100);
generateReceiveRecordThreshold_ = 0L;
onChanged();
return this;
}
private boolean receiverSigRequired_ ;
/**
*
**
* If true, no transaction can transfer to this account unless signed by this account's key
*
*
* bool receiverSigRequired = 11;
* @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 receiverSigRequired = 11;
* @param value The receiverSigRequired to set.
* @return This builder for chaining.
*/
public Builder setReceiverSigRequired(boolean value) {
receiverSigRequired_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
**
* If true, no transaction can transfer to this account unless signed by this account's key
*
*
* bool receiverSigRequired = 11;
* @return This builder for chaining.
*/
public Builder clearReceiverSigRequired() {
bitField0_ = (bitField0_ & ~0x00000200);
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 expirationTime = 12;
* @return Whether the expirationTime field is set.
*/
public boolean hasExpirationTime() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 12;
* @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 expirationTime = 12;
*/
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_ |= 0x00000400;
onChanged();
return this;
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 12;
*/
public Builder setExpirationTime(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 12;
*/
public Builder mergeExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 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_ |= 0x00000400;
onChanged();
}
return this;
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 12;
*/
public Builder clearExpirationTime() {
bitField0_ = (bitField0_ & ~0x00000400);
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 expirationTime = 12;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getExpirationTimeBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
**
* The TimeStamp time at which this account is set to expire
*
*
* .proto.Timestamp expirationTime = 12;
*/
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 expirationTime = 12;
*/
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 autoRenewPeriod = 13;
* @return Whether the autoRenewPeriod field is set.
*/
public boolean hasAutoRenewPeriod() {
return ((bitField0_ & 0x00000800) != 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 autoRenewPeriod = 13;
* @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 autoRenewPeriod = 13;
*/
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_ |= 0x00000800;
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 autoRenewPeriod = 13;
*/
public Builder setAutoRenewPeriod(
com.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = builderForValue.build();
} else {
autoRenewPeriodBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
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 autoRenewPeriod = 13;
*/
public Builder mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 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_ |= 0x00000800;
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 autoRenewPeriod = 13;
*/
public Builder clearAutoRenewPeriod() {
bitField0_ = (bitField0_ & ~0x00000800);
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 autoRenewPeriod = 13;
*/
public com.hedera.hashgraph.sdk.proto.Duration.Builder getAutoRenewPeriodBuilder() {
bitField0_ |= 0x00000800;
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 autoRenewPeriod = 13;
*/
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 autoRenewPeriod = 13;
*/
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 liveHashes_ =
java.util.Collections.emptyList();
private void ensureLiveHashesIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
liveHashes_ = new java.util.ArrayList(liveHashes_);
bitField0_ |= 0x00001000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.LiveHash, com.hedera.hashgraph.sdk.proto.LiveHash.Builder, com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder> liveHashesBuilder_;
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public java.util.List getLiveHashesList() {
if (liveHashesBuilder_ == null) {
return java.util.Collections.unmodifiableList(liveHashes_);
} else {
return liveHashesBuilder_.getMessageList();
}
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public int getLiveHashesCount() {
if (liveHashesBuilder_ == null) {
return liveHashes_.size();
} else {
return liveHashesBuilder_.getCount();
}
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public com.hedera.hashgraph.sdk.proto.LiveHash getLiveHashes(int index) {
if (liveHashesBuilder_ == null) {
return liveHashes_.get(index);
} else {
return liveHashesBuilder_.getMessage(index);
}
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public Builder setLiveHashes(
int index, com.hedera.hashgraph.sdk.proto.LiveHash value) {
if (liveHashesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLiveHashesIsMutable();
liveHashes_.set(index, value);
onChanged();
} else {
liveHashesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public Builder setLiveHashes(
int index, com.hedera.hashgraph.sdk.proto.LiveHash.Builder builderForValue) {
if (liveHashesBuilder_ == null) {
ensureLiveHashesIsMutable();
liveHashes_.set(index, builderForValue.build());
onChanged();
} else {
liveHashesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public Builder addLiveHashes(com.hedera.hashgraph.sdk.proto.LiveHash value) {
if (liveHashesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLiveHashesIsMutable();
liveHashes_.add(value);
onChanged();
} else {
liveHashesBuilder_.addMessage(value);
}
return this;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public Builder addLiveHashes(
int index, com.hedera.hashgraph.sdk.proto.LiveHash value) {
if (liveHashesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLiveHashesIsMutable();
liveHashes_.add(index, value);
onChanged();
} else {
liveHashesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public Builder addLiveHashes(
com.hedera.hashgraph.sdk.proto.LiveHash.Builder builderForValue) {
if (liveHashesBuilder_ == null) {
ensureLiveHashesIsMutable();
liveHashes_.add(builderForValue.build());
onChanged();
} else {
liveHashesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public Builder addLiveHashes(
int index, com.hedera.hashgraph.sdk.proto.LiveHash.Builder builderForValue) {
if (liveHashesBuilder_ == null) {
ensureLiveHashesIsMutable();
liveHashes_.add(index, builderForValue.build());
onChanged();
} else {
liveHashesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public Builder addAllLiveHashes(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.LiveHash> values) {
if (liveHashesBuilder_ == null) {
ensureLiveHashesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, liveHashes_);
onChanged();
} else {
liveHashesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public Builder clearLiveHashes() {
if (liveHashesBuilder_ == null) {
liveHashes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
} else {
liveHashesBuilder_.clear();
}
return this;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public Builder removeLiveHashes(int index) {
if (liveHashesBuilder_ == null) {
ensureLiveHashesIsMutable();
liveHashes_.remove(index);
onChanged();
} else {
liveHashesBuilder_.remove(index);
}
return this;
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public com.hedera.hashgraph.sdk.proto.LiveHash.Builder getLiveHashesBuilder(
int index) {
return getLiveHashesFieldBuilder().getBuilder(index);
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder getLiveHashesOrBuilder(
int index) {
if (liveHashesBuilder_ == null) {
return liveHashes_.get(index); } else {
return liveHashesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder>
getLiveHashesOrBuilderList() {
if (liveHashesBuilder_ != null) {
return liveHashesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(liveHashes_);
}
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public com.hedera.hashgraph.sdk.proto.LiveHash.Builder addLiveHashesBuilder() {
return getLiveHashesFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance());
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public com.hedera.hashgraph.sdk.proto.LiveHash.Builder addLiveHashesBuilder(
int index) {
return getLiveHashesFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.LiveHash.getDefaultInstance());
}
/**
*
**
* All of the livehashes attached to the account (each of which is a hash along with the
* keys that authorized it and can delete it)
*
*
* repeated .proto.LiveHash liveHashes = 14;
*/
public java.util.List
getLiveHashesBuilderList() {
return getLiveHashesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.LiveHash, com.hedera.hashgraph.sdk.proto.LiveHash.Builder, com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder>
getLiveHashesFieldBuilder() {
if (liveHashesBuilder_ == null) {
liveHashesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.LiveHash, com.hedera.hashgraph.sdk.proto.LiveHash.Builder, com.hedera.hashgraph.sdk.proto.LiveHashOrBuilder>(
liveHashes_,
((bitField0_ & 0x00001000) != 0),
getParentForChildren(),
isClean());
liveHashes_ = null;
}
return liveHashesBuilder_;
}
private java.util.List tokenRelationships_ =
java.util.Collections.emptyList();
private void ensureTokenRelationshipsIsMutable() {
if (!((bitField0_ & 0x00002000) != 0)) {
tokenRelationships_ = new java.util.ArrayList(tokenRelationships_);
bitField0_ |= 0x00002000;
}
}
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_;
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List getTokenRelationshipsList() {
if (tokenRelationshipsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tokenRelationships_);
} else {
return tokenRelationshipsBuilder_.getMessageList();
}
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated public int getTokenRelationshipsCount() {
if (tokenRelationshipsBuilder_ == null) {
return tokenRelationships_.size();
} else {
return tokenRelationshipsBuilder_.getCount();
}
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationship getTokenRelationships(int index) {
if (tokenRelationshipsBuilder_ == null) {
return tokenRelationships_.get(index);
} else {
return tokenRelationshipsBuilder_.getMessage(index);
}
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearTokenRelationships() {
if (tokenRelationshipsBuilder_ == null) {
tokenRelationships_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
} else {
tokenRelationshipsBuilder_.clear();
}
return this;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated public Builder removeTokenRelationships(int index) {
if (tokenRelationshipsBuilder_ == null) {
ensureTokenRelationshipsIsMutable();
tokenRelationships_.remove(index);
onChanged();
} else {
tokenRelationshipsBuilder_.remove(index);
}
return this;
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder getTokenRelationshipsBuilder(
int index) {
return getTokenRelationshipsFieldBuilder().getBuilder(index);
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationshipOrBuilder getTokenRelationshipsOrBuilder(
int index) {
if (tokenRelationshipsBuilder_ == null) {
return tokenRelationships_.get(index); } else {
return tokenRelationshipsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated 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_);
}
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder addTokenRelationshipsBuilder() {
return getTokenRelationshipsFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.TokenRelationship.getDefaultInstance());
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.TokenRelationship.Builder addTokenRelationshipsBuilder(
int index) {
return getTokenRelationshipsFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.TokenRelationship.getDefaultInstance());
}
/**
*
**
* [DEPRECATED] The metadata of the tokens associated to the account. This field was
* deprecated by <a href="https://hips.hedera.com/hip/hip-367">HIP-367</a>, which allowed
* an account to be associated to an unlimited number of tokens. This scale makes it more
* efficient for users to consult mirror nodes to review their token associations.
*
*
* repeated .proto.TokenRelationship tokenRelationships = 15 [deprecated = true];
*/
@java.lang.Deprecated 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_ & 0x00002000) != 0),
getParentForChildren(),
isClean());
tokenRelationships_ = null;
}
return tokenRelationshipsBuilder_;
}
private java.lang.Object memo_ = "";
/**
*
**
* The memo associated with the account
*
*
* string memo = 16;
* @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 = 16;
* @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 = 16;
* @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_ |= 0x00004000;
onChanged();
return this;
}
/**
*
**
* The memo associated with the account
*
*
* string memo = 16;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
**
* The memo associated with the account
*
*
* string memo = 16;
* @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_ |= 0x00004000;
onChanged();
return this;
}
private long ownedNfts_ ;
/**
*
**
* The number of NFTs owned by this account
*
*
* int64 ownedNfts = 17;
* @return The ownedNfts.
*/
@java.lang.Override
public long getOwnedNfts() {
return ownedNfts_;
}
/**
*
**
* The number of NFTs owned by this account
*
*
* int64 ownedNfts = 17;
* @param value The ownedNfts to set.
* @return This builder for chaining.
*/
public Builder setOwnedNfts(long value) {
ownedNfts_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
**
* The number of NFTs owned by this account
*
*
* int64 ownedNfts = 17;
* @return This builder for chaining.
*/
public Builder clearOwnedNfts() {
bitField0_ = (bitField0_ & ~0x00008000);
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 = 18;
* @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 = 18;
* @param value The maxAutomaticTokenAssociations to set.
* @return This builder for chaining.
*/
public Builder setMaxAutomaticTokenAssociations(int value) {
maxAutomaticTokenAssociations_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with.
*
*
* int32 max_automatic_token_associations = 18;
* @return This builder for chaining.
*/
public Builder clearMaxAutomaticTokenAssociations() {
bitField0_ = (bitField0_ & ~0x00010000);
maxAutomaticTokenAssociations_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString alias_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The alias of this account
*
*
* bytes alias = 19;
* @return The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return alias_;
}
/**
*
**
* The alias of this account
*
*
* bytes alias = 19;
* @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_ |= 0x00020000;
onChanged();
return this;
}
/**
*
**
* The alias of this account
*
*
* bytes alias = 19;
* @return This builder for chaining.
*/
public Builder clearAlias() {
bitField0_ = (bitField0_ & ~0x00020000);
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 = 20;
* @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 = 20;
* @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_ |= 0x00040000;
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 = 20;
* @return This builder for chaining.
*/
public Builder clearLedgerId() {
bitField0_ = (bitField0_ & ~0x00040000);
ledgerId_ = getDefaultInstance().getLedgerId();
onChanged();
return this;
}
private long ethereumNonce_ ;
/**
*
**
* The ethereum transaction nonce associated with this account.
*
*
* int64 ethereum_nonce = 21;
* @return The ethereumNonce.
*/
@java.lang.Override
public long getEthereumNonce() {
return ethereumNonce_;
}
/**
*
**
* The ethereum transaction nonce associated with this account.
*
*
* int64 ethereum_nonce = 21;
* @param value The ethereumNonce to set.
* @return This builder for chaining.
*/
public Builder setEthereumNonce(long value) {
ethereumNonce_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
**
* The ethereum transaction nonce associated with this account.
*
*
* int64 ethereum_nonce = 21;
* @return This builder for chaining.
*/
public Builder clearEthereumNonce() {
bitField0_ = (bitField0_ & ~0x00080000);
ethereumNonce_ = 0L;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.StakingInfo stakingInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.StakingInfo, com.hedera.hashgraph.sdk.proto.StakingInfo.Builder, com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder> stakingInfoBuilder_;
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
* @return Whether the stakingInfo field is set.
*/
public boolean hasStakingInfo() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
* @return The stakingInfo.
*/
public com.hedera.hashgraph.sdk.proto.StakingInfo getStakingInfo() {
if (stakingInfoBuilder_ == null) {
return stakingInfo_ == null ? com.hedera.hashgraph.sdk.proto.StakingInfo.getDefaultInstance() : stakingInfo_;
} else {
return stakingInfoBuilder_.getMessage();
}
}
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
*/
public Builder setStakingInfo(com.hedera.hashgraph.sdk.proto.StakingInfo value) {
if (stakingInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stakingInfo_ = value;
} else {
stakingInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
*/
public Builder setStakingInfo(
com.hedera.hashgraph.sdk.proto.StakingInfo.Builder builderForValue) {
if (stakingInfoBuilder_ == null) {
stakingInfo_ = builderForValue.build();
} else {
stakingInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
*/
public Builder mergeStakingInfo(com.hedera.hashgraph.sdk.proto.StakingInfo value) {
if (stakingInfoBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0) &&
stakingInfo_ != null &&
stakingInfo_ != com.hedera.hashgraph.sdk.proto.StakingInfo.getDefaultInstance()) {
getStakingInfoBuilder().mergeFrom(value);
} else {
stakingInfo_ = value;
}
} else {
stakingInfoBuilder_.mergeFrom(value);
}
if (stakingInfo_ != null) {
bitField0_ |= 0x00100000;
onChanged();
}
return this;
}
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
*/
public Builder clearStakingInfo() {
bitField0_ = (bitField0_ & ~0x00100000);
stakingInfo_ = null;
if (stakingInfoBuilder_ != null) {
stakingInfoBuilder_.dispose();
stakingInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
*/
public com.hedera.hashgraph.sdk.proto.StakingInfo.Builder getStakingInfoBuilder() {
bitField0_ |= 0x00100000;
onChanged();
return getStakingInfoFieldBuilder().getBuilder();
}
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
*/
public com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder getStakingInfoOrBuilder() {
if (stakingInfoBuilder_ != null) {
return stakingInfoBuilder_.getMessageOrBuilder();
} else {
return stakingInfo_ == null ?
com.hedera.hashgraph.sdk.proto.StakingInfo.getDefaultInstance() : stakingInfo_;
}
}
/**
*
**
* Staking metadata for this account.
*
*
* .proto.StakingInfo staking_info = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.StakingInfo, com.hedera.hashgraph.sdk.proto.StakingInfo.Builder, com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder>
getStakingInfoFieldBuilder() {
if (stakingInfoBuilder_ == null) {
stakingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.StakingInfo, com.hedera.hashgraph.sdk.proto.StakingInfo.Builder, com.hedera.hashgraph.sdk.proto.StakingInfoOrBuilder>(
getStakingInfo(),
getParentForChildren(),
isClean());
stakingInfo_ = null;
}
return stakingInfoBuilder_;
}
@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.CryptoGetInfoResponse.AccountInfo)
}
// @@protoc_insertion_point(class_scope:proto.CryptoGetInfoResponse.AccountInfo)
private static final com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo();
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccountInfo 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.CryptoGetInfoResponse.AccountInfo 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 ACCOUNTINFO_FIELD_NUMBER = 2;
private com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo accountInfo_;
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
* @return Whether the accountInfo field is set.
*/
@java.lang.Override
public boolean hasAccountInfo() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
* @return The accountInfo.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo getAccountInfo() {
return accountInfo_ == null ? com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.getDefaultInstance() : accountInfo_;
}
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfoOrBuilder getAccountInfoOrBuilder() {
return accountInfo_ == null ? com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.getDefaultInstance() : accountInfo_;
}
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, getAccountInfo());
}
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, getAccountInfo());
}
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.CryptoGetInfoResponse)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse other = (com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse) obj;
if (hasHeader() != other.hasHeader()) return false;
if (hasHeader()) {
if (!getHeader()
.equals(other.getHeader())) return false;
}
if (hasAccountInfo() != other.hasAccountInfo()) return false;
if (hasAccountInfo()) {
if (!getAccountInfo()
.equals(other.getAccountInfo())) 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 (hasAccountInfo()) {
hash = (37 * hash) + ACCOUNTINFO_FIELD_NUMBER;
hash = (53 * hash) + getAccountInfo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse 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.CryptoGetInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse 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.CryptoGetInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse 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.CryptoGetInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse 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.CryptoGetInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse 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.CryptoGetInfoResponse 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.CryptoGetInfoResponse 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.CryptoGetInfoResponse 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 CryptoGetInfoQuery
*
*
* Protobuf type {@code proto.CryptoGetInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.CryptoGetInfoResponse)
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfo.internal_static_proto_CryptoGetInfoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfo.internal_static_proto_CryptoGetInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.class, com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.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();
getAccountInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
header_ = null;
if (headerBuilder_ != null) {
headerBuilder_.dispose();
headerBuilder_ = null;
}
accountInfo_ = null;
if (accountInfoBuilder_ != null) {
accountInfoBuilder_.dispose();
accountInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfo.internal_static_proto_CryptoGetInfoResponse_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse build() {
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse buildPartial() {
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse result = new com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse 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.accountInfo_ = accountInfoBuilder_ == null
? accountInfo_
: accountInfoBuilder_.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.CryptoGetInfoResponse) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse other) {
if (other == com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (other.hasAccountInfo()) {
mergeAccountInfo(other.getAccountInfo());
}
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(
getAccountInfoFieldBuilder().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.CryptoGetInfoResponse.AccountInfo accountInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo, com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.Builder, com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfoOrBuilder> accountInfoBuilder_;
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
* @return Whether the accountInfo field is set.
*/
public boolean hasAccountInfo() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
* @return The accountInfo.
*/
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo getAccountInfo() {
if (accountInfoBuilder_ == null) {
return accountInfo_ == null ? com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.getDefaultInstance() : accountInfo_;
} else {
return accountInfoBuilder_.getMessage();
}
}
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
*/
public Builder setAccountInfo(com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo value) {
if (accountInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountInfo_ = value;
} else {
accountInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
*/
public Builder setAccountInfo(
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.Builder builderForValue) {
if (accountInfoBuilder_ == null) {
accountInfo_ = builderForValue.build();
} else {
accountInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
*/
public Builder mergeAccountInfo(com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo value) {
if (accountInfoBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
accountInfo_ != null &&
accountInfo_ != com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.getDefaultInstance()) {
getAccountInfoBuilder().mergeFrom(value);
} else {
accountInfo_ = value;
}
} else {
accountInfoBuilder_.mergeFrom(value);
}
if (accountInfo_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
*/
public Builder clearAccountInfo() {
bitField0_ = (bitField0_ & ~0x00000002);
accountInfo_ = null;
if (accountInfoBuilder_ != null) {
accountInfoBuilder_.dispose();
accountInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
*/
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.Builder getAccountInfoBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAccountInfoFieldBuilder().getBuilder();
}
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
*/
public com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfoOrBuilder getAccountInfoOrBuilder() {
if (accountInfoBuilder_ != null) {
return accountInfoBuilder_.getMessageOrBuilder();
} else {
return accountInfo_ == null ?
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.getDefaultInstance() : accountInfo_;
}
}
/**
*
**
* Info about the account (a state proof can be generated for this)
*
*
* .proto.CryptoGetInfoResponse.AccountInfo accountInfo = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo, com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.Builder, com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfoOrBuilder>
getAccountInfoFieldBuilder() {
if (accountInfoBuilder_ == null) {
accountInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo, com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfo.Builder, com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse.AccountInfoOrBuilder>(
getAccountInfo(),
getParentForChildren(),
isClean());
accountInfo_ = null;
}
return accountInfoBuilder_;
}
@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.CryptoGetInfoResponse)
}
// @@protoc_insertion_point(class_scope:proto.CryptoGetInfoResponse)
private static final com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse();
}
public static com.hedera.hashgraph.sdk.proto.CryptoGetInfoResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CryptoGetInfoResponse 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.CryptoGetInfoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}