com.hedera.hashgraph.sdk.proto.Account Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: account.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
* Protobuf type {@code proto.Account}
*/
public final class Account extends
com.google.protobuf.GeneratedMessageLite<
Account, Account.Builder> implements
// @@protoc_insertion_point(message_implements:proto.Account)
AccountOrBuilder {
private Account() {
alias_ = com.google.protobuf.ByteString.EMPTY;
memo_ = "";
cryptoAllowances_ = emptyProtobufList();
approveForAllNftAllowances_ = emptyProtobufList();
tokenAllowances_ = emptyProtobufList();
firstContractStorageKey_ = com.google.protobuf.ByteString.EMPTY;
}
private int bitField0_;
private int stakedIdCase_ = 0;
private java.lang.Object stakedId_;
public enum StakedIdCase {
STAKED_ACCOUNT_ID(10),
STAKED_NODE_ID(11),
STAKEDID_NOT_SET(0);
private final int value;
private StakedIdCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StakedIdCase valueOf(int value) {
return forNumber(value);
}
public static StakedIdCase forNumber(int value) {
switch (value) {
case 10: return STAKED_ACCOUNT_ID;
case 11: return STAKED_NODE_ID;
case 0: return STAKEDID_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public StakedIdCase
getStakedIdCase() {
return StakedIdCase.forNumber(
stakedIdCase_);
}
private void clearStakedId() {
stakedIdCase_ = 0;
stakedId_ = null;
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.AccountID accountId_;
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
@java.lang.Override
public boolean hasAccountId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() {
return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
private void setAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
accountId_ = value;
bitField0_ |= 0x00000001;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
if (accountId_ != null &&
accountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
accountId_ =
com.hedera.hashgraph.sdk.proto.AccountID.newBuilder(accountId_).mergeFrom(value).buildPartial();
} else {
accountId_ = value;
}
bitField0_ |= 0x00000001;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
private void clearAccountId() { accountId_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int ALIAS_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString alias_;
/**
*
**
* The alias to use for this account, if any.
*
*
* bytes alias = 2;
* @return The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return alias_;
}
/**
*
**
* The alias to use for this account, if any.
*
*
* bytes alias = 2;
* @param value The alias to set.
*/
private void setAlias(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
alias_ = value;
}
/**
*
**
* The alias to use for this account, if any.
*
*
* bytes alias = 2;
*/
private void clearAlias() {
alias_ = getDefaultInstance().getAlias();
}
public static final int KEY_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.Key key_;
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getKey() {
return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_;
}
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
private void setKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
key_ = value;
bitField0_ |= 0x00000002;
}
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (key_ != null &&
key_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
key_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(key_).mergeFrom(value).buildPartial();
} else {
key_ = value;
}
bitField0_ |= 0x00000002;
}
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
private void clearKey() { key_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int EXPIRATION_SECOND_FIELD_NUMBER = 4;
private long expirationSecond_;
/**
*
**
* The expiration time of the account, in seconds since the epoch.
*
*
* int64 expiration_second = 4;
* @return The expirationSecond.
*/
@java.lang.Override
public long getExpirationSecond() {
return expirationSecond_;
}
/**
*
**
* The expiration time of the account, in seconds since the epoch.
*
*
* int64 expiration_second = 4;
* @param value The expirationSecond to set.
*/
private void setExpirationSecond(long value) {
expirationSecond_ = value;
}
/**
*
**
* The expiration time of the account, in seconds since the epoch.
*
*
* int64 expiration_second = 4;
*/
private void clearExpirationSecond() {
expirationSecond_ = 0L;
}
public static final int TINYBAR_BALANCE_FIELD_NUMBER = 5;
private long tinybarBalance_;
/**
*
**
* The balance of the account, in tiny-bars.
*
*
* int64 tinybar_balance = 5;
* @return The tinybarBalance.
*/
@java.lang.Override
public long getTinybarBalance() {
return tinybarBalance_;
}
/**
*
**
* The balance of the account, in tiny-bars.
*
*
* int64 tinybar_balance = 5;
* @param value The tinybarBalance to set.
*/
private void setTinybarBalance(long value) {
tinybarBalance_ = value;
}
/**
*
**
* The balance of the account, in tiny-bars.
*
*
* int64 tinybar_balance = 5;
*/
private void clearTinybarBalance() {
tinybarBalance_ = 0L;
}
public static final int MEMO_FIELD_NUMBER = 6;
private java.lang.String memo_;
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
return memo_;
}
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(memo_);
}
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @param value The memo to set.
*/
private void setMemo(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
memo_ = value;
}
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
*/
private void clearMemo() {
memo_ = getDefaultInstance().getMemo();
}
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @param value The bytes for memo to set.
*/
private void setMemoBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
memo_ = value.toStringUtf8();
}
public static final int DELETED_FIELD_NUMBER = 7;
private boolean deleted_;
/**
*
**
* A boolean marking if the account has been deleted.
*
*
* bool deleted = 7;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return deleted_;
}
/**
*
**
* A boolean marking if the account has been deleted.
*
*
* bool deleted = 7;
* @param value The deleted to set.
*/
private void setDeleted(boolean value) {
deleted_ = value;
}
/**
*
**
* A boolean marking if the account has been deleted.
*
*
* bool deleted = 7;
*/
private void clearDeleted() {
deleted_ = false;
}
public static final int STAKED_TO_ME_FIELD_NUMBER = 8;
private long stakedToMe_;
/**
*
**
* The amount of hbars staked to the account.
*
*
* int64 staked_to_me = 8;
* @return The stakedToMe.
*/
@java.lang.Override
public long getStakedToMe() {
return stakedToMe_;
}
/**
*
**
* The amount of hbars staked to the account.
*
*
* int64 staked_to_me = 8;
* @param value The stakedToMe to set.
*/
private void setStakedToMe(long value) {
stakedToMe_ = value;
}
/**
*
**
* The amount of hbars staked to the account.
*
*
* int64 staked_to_me = 8;
*/
private void clearStakedToMe() {
stakedToMe_ = 0L;
}
public static final int STAKE_PERIOD_START_FIELD_NUMBER = 9;
private long stakePeriodStart_;
/**
*
**
* If this account stakes to another account, its value will be -1. It will
* be set to the time when the account starts staking to a node.
*
*
* int64 stake_period_start = 9;
* @return The stakePeriodStart.
*/
@java.lang.Override
public long getStakePeriodStart() {
return stakePeriodStart_;
}
/**
*
**
* If this account stakes to another account, its value will be -1. It will
* be set to the time when the account starts staking to a node.
*
*
* int64 stake_period_start = 9;
* @param value The stakePeriodStart to set.
*/
private void setStakePeriodStart(long value) {
stakePeriodStart_ = value;
}
/**
*
**
* If this account stakes to another account, its value will be -1. It will
* be set to the time when the account starts staking to a node.
*
*
* int64 stake_period_start = 9;
*/
private void clearStakePeriodStart() {
stakePeriodStart_ = 0L;
}
public static final int STAKED_ACCOUNT_ID_FIELD_NUMBER = 10;
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
@java.lang.Override
public boolean hasStakedAccountId() {
return stakedIdCase_ == 10;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getStakedAccountId() {
if (stakedIdCase_ == 10) {
return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_;
}
return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance();
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
private void setStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
stakedId_ = value;
stakedIdCase_ = 10;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
private void mergeStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
if (stakedIdCase_ == 10 &&
stakedId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
stakedId_ = com.hedera.hashgraph.sdk.proto.AccountID.newBuilder((com.hedera.hashgraph.sdk.proto.AccountID) stakedId_)
.mergeFrom(value).buildPartial();
} else {
stakedId_ = value;
}
stakedIdCase_ = 10;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
private void clearStakedAccountId() {
if (stakedIdCase_ == 10) {
stakedIdCase_ = 0;
stakedId_ = null;
}
}
public static final int STAKED_NODE_ID_FIELD_NUMBER = 11;
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 11;
* @return Whether the stakedNodeId field is set.
*/
@java.lang.Override
public boolean hasStakedNodeId() {
return stakedIdCase_ == 11;
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 11;
* @return The stakedNodeId.
*/
@java.lang.Override
public long getStakedNodeId() {
if (stakedIdCase_ == 11) {
return (java.lang.Long) stakedId_;
}
return 0L;
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 11;
* @param value The stakedNodeId to set.
*/
private void setStakedNodeId(long value) {
stakedIdCase_ = 11;
stakedId_ = value;
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 11;
*/
private void clearStakedNodeId() {
if (stakedIdCase_ == 11) {
stakedIdCase_ = 0;
stakedId_ = null;
}
}
public static final int DECLINE_REWARD_FIELD_NUMBER = 12;
private boolean declineReward_;
/**
*
**
* A boolean marking if the account declines rewards.
*
*
* bool decline_reward = 12;
* @return The declineReward.
*/
@java.lang.Override
public boolean getDeclineReward() {
return declineReward_;
}
/**
*
**
* A boolean marking if the account declines rewards.
*
*
* bool decline_reward = 12;
* @param value The declineReward to set.
*/
private void setDeclineReward(boolean value) {
declineReward_ = value;
}
/**
*
**
* A boolean marking if the account declines rewards.
*
*
* bool decline_reward = 12;
*/
private void clearDeclineReward() {
declineReward_ = false;
}
public static final int RECEIVER_SIG_REQUIRED_FIELD_NUMBER = 13;
private boolean receiverSigRequired_;
/**
*
**
* A boolean marking if the account requires a receiver signature.
*
*
* bool receiver_sig_required = 13;
* @return The receiverSigRequired.
*/
@java.lang.Override
public boolean getReceiverSigRequired() {
return receiverSigRequired_;
}
/**
*
**
* A boolean marking if the account requires a receiver signature.
*
*
* bool receiver_sig_required = 13;
* @param value The receiverSigRequired to set.
*/
private void setReceiverSigRequired(boolean value) {
receiverSigRequired_ = value;
}
/**
*
**
* A boolean marking if the account requires a receiver signature.
*
*
* bool receiver_sig_required = 13;
*/
private void clearReceiverSigRequired() {
receiverSigRequired_ = false;
}
public static final int HEAD_TOKEN_ID_FIELD_NUMBER = 14;
private com.hedera.hashgraph.sdk.proto.TokenID headTokenId_;
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
@java.lang.Override
public boolean hasHeadTokenId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getHeadTokenId() {
return headTokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : headTokenId_;
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
private void setHeadTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
value.getClass();
headTokenId_ = value;
bitField0_ |= 0x00000004;
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeHeadTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
value.getClass();
if (headTokenId_ != null &&
headTokenId_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) {
headTokenId_ =
com.hedera.hashgraph.sdk.proto.TokenID.newBuilder(headTokenId_).mergeFrom(value).buildPartial();
} else {
headTokenId_ = value;
}
bitField0_ |= 0x00000004;
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
private void clearHeadTokenId() { headTokenId_ = null;
bitField0_ = (bitField0_ & ~0x00000004);
}
public static final int HEAD_NFT_ID_FIELD_NUMBER = 15;
private com.hedera.hashgraph.sdk.proto.NftID headNftId_;
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
@java.lang.Override
public boolean hasHeadNftId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftID getHeadNftId() {
return headNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : headNftId_;
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
private void setHeadNftId(com.hedera.hashgraph.sdk.proto.NftID value) {
value.getClass();
headNftId_ = value;
bitField0_ |= 0x00000008;
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeHeadNftId(com.hedera.hashgraph.sdk.proto.NftID value) {
value.getClass();
if (headNftId_ != null &&
headNftId_ != com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance()) {
headNftId_ =
com.hedera.hashgraph.sdk.proto.NftID.newBuilder(headNftId_).mergeFrom(value).buildPartial();
} else {
headNftId_ = value;
}
bitField0_ |= 0x00000008;
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
private void clearHeadNftId() { headNftId_ = null;
bitField0_ = (bitField0_ & ~0x00000008);
}
public static final int HEAD_NFT_SERIAL_NUMBER_FIELD_NUMBER = 16;
private long headNftSerialNumber_;
/**
*
**
* The serial number of the head NftID of the linked list from unique tokens map for the account.
*
*
* int64 head_nft_serial_number = 16;
* @return The headNftSerialNumber.
*/
@java.lang.Override
public long getHeadNftSerialNumber() {
return headNftSerialNumber_;
}
/**
*
**
* The serial number of the head NftID of the linked list from unique tokens map for the account.
*
*
* int64 head_nft_serial_number = 16;
* @param value The headNftSerialNumber to set.
*/
private void setHeadNftSerialNumber(long value) {
headNftSerialNumber_ = value;
}
/**
*
**
* The serial number of the head NftID of the linked list from unique tokens map for the account.
*
*
* int64 head_nft_serial_number = 16;
*/
private void clearHeadNftSerialNumber() {
headNftSerialNumber_ = 0L;
}
public static final int NUMBER_OWNED_NFTS_FIELD_NUMBER = 17;
private long numberOwnedNfts_;
/**
*
**
* The number of NFTs owned by the account.
*
*
* int64 number_owned_nfts = 17;
* @return The numberOwnedNfts.
*/
@java.lang.Override
public long getNumberOwnedNfts() {
return numberOwnedNfts_;
}
/**
*
**
* The number of NFTs owned by the account.
*
*
* int64 number_owned_nfts = 17;
* @param value The numberOwnedNfts to set.
*/
private void setNumberOwnedNfts(long value) {
numberOwnedNfts_ = value;
}
/**
*
**
* The number of NFTs owned by the account.
*
*
* int64 number_owned_nfts = 17;
*/
private void clearNumberOwnedNfts() {
numberOwnedNfts_ = 0L;
}
public static final int MAX_AUTO_ASSOCIATIONS_FIELD_NUMBER = 18;
private int maxAutoAssociations_;
/**
*
**
* The maximum number of tokens that can be auto-associated with the account.
*
*
* int32 max_auto_associations = 18;
* @return The maxAutoAssociations.
*/
@java.lang.Override
public int getMaxAutoAssociations() {
return maxAutoAssociations_;
}
/**
*
**
* The maximum number of tokens that can be auto-associated with the account.
*
*
* int32 max_auto_associations = 18;
* @param value The maxAutoAssociations to set.
*/
private void setMaxAutoAssociations(int value) {
maxAutoAssociations_ = value;
}
/**
*
**
* The maximum number of tokens that can be auto-associated with the account.
*
*
* int32 max_auto_associations = 18;
*/
private void clearMaxAutoAssociations() {
maxAutoAssociations_ = 0;
}
public static final int USED_AUTO_ASSOCIATIONS_FIELD_NUMBER = 19;
private int usedAutoAssociations_;
/**
*
**
* The number of used auto-association slots.
*
*
* int32 used_auto_associations = 19;
* @return The usedAutoAssociations.
*/
@java.lang.Override
public int getUsedAutoAssociations() {
return usedAutoAssociations_;
}
/**
*
**
* The number of used auto-association slots.
*
*
* int32 used_auto_associations = 19;
* @param value The usedAutoAssociations to set.
*/
private void setUsedAutoAssociations(int value) {
usedAutoAssociations_ = value;
}
/**
*
**
* The number of used auto-association slots.
*
*
* int32 used_auto_associations = 19;
*/
private void clearUsedAutoAssociations() {
usedAutoAssociations_ = 0;
}
public static final int NUMBER_ASSOCIATIONS_FIELD_NUMBER = 20;
private int numberAssociations_;
/**
*
**
* The number of tokens associated with the account. This number is used for
* fee calculation during renewal of the account.
*
*
* int32 number_associations = 20;
* @return The numberAssociations.
*/
@java.lang.Override
public int getNumberAssociations() {
return numberAssociations_;
}
/**
*
**
* The number of tokens associated with the account. This number is used for
* fee calculation during renewal of the account.
*
*
* int32 number_associations = 20;
* @param value The numberAssociations to set.
*/
private void setNumberAssociations(int value) {
numberAssociations_ = value;
}
/**
*
**
* The number of tokens associated with the account. This number is used for
* fee calculation during renewal of the account.
*
*
* int32 number_associations = 20;
*/
private void clearNumberAssociations() {
numberAssociations_ = 0;
}
public static final int SMART_CONTRACT_FIELD_NUMBER = 21;
private boolean smartContract_;
/**
*
**
* A boolean marking if the account is a smart contract.
*
*
* bool smart_contract = 21;
* @return The smartContract.
*/
@java.lang.Override
public boolean getSmartContract() {
return smartContract_;
}
/**
*
**
* A boolean marking if the account is a smart contract.
*
*
* bool smart_contract = 21;
* @param value The smartContract to set.
*/
private void setSmartContract(boolean value) {
smartContract_ = value;
}
/**
*
**
* A boolean marking if the account is a smart contract.
*
*
* bool smart_contract = 21;
*/
private void clearSmartContract() {
smartContract_ = false;
}
public static final int NUMBER_POSITIVE_BALANCES_FIELD_NUMBER = 22;
private int numberPositiveBalances_;
/**
*
**
* The number of tokens with a positive balance associated with the account.
* If the account has positive balance in a token, it can not be deleted.
*
*
* int32 number_positive_balances = 22;
* @return The numberPositiveBalances.
*/
@java.lang.Override
public int getNumberPositiveBalances() {
return numberPositiveBalances_;
}
/**
*
**
* The number of tokens with a positive balance associated with the account.
* If the account has positive balance in a token, it can not be deleted.
*
*
* int32 number_positive_balances = 22;
* @param value The numberPositiveBalances to set.
*/
private void setNumberPositiveBalances(int value) {
numberPositiveBalances_ = value;
}
/**
*
**
* The number of tokens with a positive balance associated with the account.
* If the account has positive balance in a token, it can not be deleted.
*
*
* int32 number_positive_balances = 22;
*/
private void clearNumberPositiveBalances() {
numberPositiveBalances_ = 0;
}
public static final int ETHEREUM_NONCE_FIELD_NUMBER = 23;
private long ethereumNonce_;
/**
*
**
* The nonce of the account, used for Ethereum interoperability.
*
*
* int64 ethereum_nonce = 23;
* @return The ethereumNonce.
*/
@java.lang.Override
public long getEthereumNonce() {
return ethereumNonce_;
}
/**
*
**
* The nonce of the account, used for Ethereum interoperability.
*
*
* int64 ethereum_nonce = 23;
* @param value The ethereumNonce to set.
*/
private void setEthereumNonce(long value) {
ethereumNonce_ = value;
}
/**
*
**
* The nonce of the account, used for Ethereum interoperability.
*
*
* int64 ethereum_nonce = 23;
*/
private void clearEthereumNonce() {
ethereumNonce_ = 0L;
}
public static final int STAKE_AT_START_OF_LAST_REWARDED_PERIOD_FIELD_NUMBER = 24;
private long stakeAtStartOfLastRewardedPeriod_;
/**
*
**
* The amount of hbars staked to the account at the start of the last rewarded period.
*
*
* int64 stake_at_start_of_last_rewarded_period = 24;
* @return The stakeAtStartOfLastRewardedPeriod.
*/
@java.lang.Override
public long getStakeAtStartOfLastRewardedPeriod() {
return stakeAtStartOfLastRewardedPeriod_;
}
/**
*
**
* The amount of hbars staked to the account at the start of the last rewarded period.
*
*
* int64 stake_at_start_of_last_rewarded_period = 24;
* @param value The stakeAtStartOfLastRewardedPeriod to set.
*/
private void setStakeAtStartOfLastRewardedPeriod(long value) {
stakeAtStartOfLastRewardedPeriod_ = value;
}
/**
*
**
* The amount of hbars staked to the account at the start of the last rewarded period.
*
*
* int64 stake_at_start_of_last_rewarded_period = 24;
*/
private void clearStakeAtStartOfLastRewardedPeriod() {
stakeAtStartOfLastRewardedPeriod_ = 0L;
}
public static final int AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER = 25;
private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccountId_;
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
@java.lang.Override
public boolean hasAutoRenewAccountId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccountId() {
return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_;
}
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
private void setAutoRenewAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
autoRenewAccountId_ = value;
bitField0_ |= 0x00000010;
}
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAutoRenewAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
if (autoRenewAccountId_ != null &&
autoRenewAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
autoRenewAccountId_ =
com.hedera.hashgraph.sdk.proto.AccountID.newBuilder(autoRenewAccountId_).mergeFrom(value).buildPartial();
} else {
autoRenewAccountId_ = value;
}
bitField0_ |= 0x00000010;
}
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
private void clearAutoRenewAccountId() { autoRenewAccountId_ = null;
bitField0_ = (bitField0_ & ~0x00000010);
}
public static final int AUTO_RENEW_SECONDS_FIELD_NUMBER = 26;
private long autoRenewSeconds_;
/**
*
**
* The number of seconds the network should automatically extend the account's expiration by, if the
* account has a valid auto-renew account, and is not deleted upon expiration.
* If this is not provided in an allowed range on account creation, the transaction will fail with INVALID_AUTO_RENEWAL_PERIOD.
* The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
*
*
* int64 auto_renew_seconds = 26;
* @return The autoRenewSeconds.
*/
@java.lang.Override
public long getAutoRenewSeconds() {
return autoRenewSeconds_;
}
/**
*
**
* The number of seconds the network should automatically extend the account's expiration by, if the
* account has a valid auto-renew account, and is not deleted upon expiration.
* If this is not provided in an allowed range on account creation, the transaction will fail with INVALID_AUTO_RENEWAL_PERIOD.
* The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
*
*
* int64 auto_renew_seconds = 26;
* @param value The autoRenewSeconds to set.
*/
private void setAutoRenewSeconds(long value) {
autoRenewSeconds_ = value;
}
/**
*
**
* The number of seconds the network should automatically extend the account's expiration by, if the
* account has a valid auto-renew account, and is not deleted upon expiration.
* If this is not provided in an allowed range on account creation, the transaction will fail with INVALID_AUTO_RENEWAL_PERIOD.
* The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
*
*
* int64 auto_renew_seconds = 26;
*/
private void clearAutoRenewSeconds() {
autoRenewSeconds_ = 0L;
}
public static final int CONTRACT_KV_PAIRS_NUMBER_FIELD_NUMBER = 27;
private int contractKvPairsNumber_;
/**
*
**
* If this account is a smart-contract, number of key-value pairs stored on the contract.
* This is used to determine the storage rent for the contract.
*
*
* int32 contract_kv_pairs_number = 27;
* @return The contractKvPairsNumber.
*/
@java.lang.Override
public int getContractKvPairsNumber() {
return contractKvPairsNumber_;
}
/**
*
**
* If this account is a smart-contract, number of key-value pairs stored on the contract.
* This is used to determine the storage rent for the contract.
*
*
* int32 contract_kv_pairs_number = 27;
* @param value The contractKvPairsNumber to set.
*/
private void setContractKvPairsNumber(int value) {
contractKvPairsNumber_ = value;
}
/**
*
**
* If this account is a smart-contract, number of key-value pairs stored on the contract.
* This is used to determine the storage rent for the contract.
*
*
* int32 contract_kv_pairs_number = 27;
*/
private void clearContractKvPairsNumber() {
contractKvPairsNumber_ = 0;
}
public static final int CRYPTO_ALLOWANCES_FIELD_NUMBER = 28;
private com.google.protobuf.Internal.ProtobufList cryptoAllowances_;
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
@java.lang.Override
public java.util.List getCryptoAllowancesList() {
return cryptoAllowances_;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.AccountCryptoAllowanceOrBuilder>
getCryptoAllowancesOrBuilderList() {
return cryptoAllowances_;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
@java.lang.Override
public int getCryptoAllowancesCount() {
return cryptoAllowances_.size();
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance getCryptoAllowances(int index) {
return cryptoAllowances_.get(index);
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public com.hedera.hashgraph.sdk.proto.AccountCryptoAllowanceOrBuilder getCryptoAllowancesOrBuilder(
int index) {
return cryptoAllowances_.get(index);
}
private void ensureCryptoAllowancesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = cryptoAllowances_;
if (!tmp.isModifiable()) {
cryptoAllowances_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
private void setCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance value) {
value.getClass();
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.set(index, value);
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
private void addCryptoAllowances(com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance value) {
value.getClass();
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.add(value);
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
private void addCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance value) {
value.getClass();
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.add(index, value);
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
private void addAllCryptoAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance> values) {
ensureCryptoAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, cryptoAllowances_);
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
private void clearCryptoAllowances() {
cryptoAllowances_ = emptyProtobufList();
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
private void removeCryptoAllowances(int index) {
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.remove(index);
}
public static final int APPROVE_FOR_ALL_NFT_ALLOWANCES_FIELD_NUMBER = 29;
private com.google.protobuf.Internal.ProtobufList approveForAllNftAllowances_;
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
@java.lang.Override
public java.util.List getApproveForAllNftAllowancesList() {
return approveForAllNftAllowances_;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowanceOrBuilder>
getApproveForAllNftAllowancesOrBuilderList() {
return approveForAllNftAllowances_;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
@java.lang.Override
public int getApproveForAllNftAllowancesCount() {
return approveForAllNftAllowances_.size();
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance getApproveForAllNftAllowances(int index) {
return approveForAllNftAllowances_.get(index);
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowanceOrBuilder getApproveForAllNftAllowancesOrBuilder(
int index) {
return approveForAllNftAllowances_.get(index);
}
private void ensureApproveForAllNftAllowancesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = approveForAllNftAllowances_;
if (!tmp.isModifiable()) {
approveForAllNftAllowances_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
private void setApproveForAllNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance value) {
value.getClass();
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.set(index, value);
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
private void addApproveForAllNftAllowances(com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance value) {
value.getClass();
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.add(value);
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
private void addApproveForAllNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance value) {
value.getClass();
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.add(index, value);
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
private void addAllApproveForAllNftAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance> values) {
ensureApproveForAllNftAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, approveForAllNftAllowances_);
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
private void clearApproveForAllNftAllowances() {
approveForAllNftAllowances_ = emptyProtobufList();
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
private void removeApproveForAllNftAllowances(int index) {
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.remove(index);
}
public static final int TOKEN_ALLOWANCES_FIELD_NUMBER = 30;
private com.google.protobuf.Internal.ProtobufList tokenAllowances_;
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
@java.lang.Override
public java.util.List getTokenAllowancesList() {
return tokenAllowances_;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowanceOrBuilder>
getTokenAllowancesOrBuilderList() {
return tokenAllowances_;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
@java.lang.Override
public int getTokenAllowancesCount() {
return tokenAllowances_.size();
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance getTokenAllowances(int index) {
return tokenAllowances_.get(index);
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowanceOrBuilder getTokenAllowancesOrBuilder(
int index) {
return tokenAllowances_.get(index);
}
private void ensureTokenAllowancesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = tokenAllowances_;
if (!tmp.isModifiable()) {
tokenAllowances_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
private void setTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance value) {
value.getClass();
ensureTokenAllowancesIsMutable();
tokenAllowances_.set(index, value);
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
private void addTokenAllowances(com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance value) {
value.getClass();
ensureTokenAllowancesIsMutable();
tokenAllowances_.add(value);
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
private void addTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance value) {
value.getClass();
ensureTokenAllowancesIsMutable();
tokenAllowances_.add(index, value);
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
private void addAllTokenAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance> values) {
ensureTokenAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, tokenAllowances_);
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
private void clearTokenAllowances() {
tokenAllowances_ = emptyProtobufList();
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
private void removeTokenAllowances(int index) {
ensureTokenAllowancesIsMutable();
tokenAllowances_.remove(index);
}
public static final int NUMBER_TREASURY_TITLES_FIELD_NUMBER = 31;
private int numberTreasuryTitles_;
/**
*
**
* The number of tokens for which this account is treasury
*
*
* uint32 number_treasury_titles = 31;
* @return The numberTreasuryTitles.
*/
@java.lang.Override
public int getNumberTreasuryTitles() {
return numberTreasuryTitles_;
}
/**
*
**
* The number of tokens for which this account is treasury
*
*
* uint32 number_treasury_titles = 31;
* @param value The numberTreasuryTitles to set.
*/
private void setNumberTreasuryTitles(int value) {
numberTreasuryTitles_ = value;
}
/**
*
**
* The number of tokens for which this account is treasury
*
*
* uint32 number_treasury_titles = 31;
*/
private void clearNumberTreasuryTitles() {
numberTreasuryTitles_ = 0;
}
public static final int EXPIRED_AND_PENDING_REMOVAL_FIELD_NUMBER = 32;
private boolean expiredAndPendingRemoval_;
/**
*
**
* A flag indicating if the account is expired and pending removal.
* Only the entity expiration system task toggles this flag when it reaches this account
* and finds it expired. Before setting the flag the system task checks if the account has
* an auto-renew account with balance. This is done to prevent a zero-balance account with a funded
* auto-renew account from being treated as expired in the interval between its expiration
* and the time the system task actually auto-renews it.
*
*
* bool expired_and_pending_removal = 32;
* @return The expiredAndPendingRemoval.
*/
@java.lang.Override
public boolean getExpiredAndPendingRemoval() {
return expiredAndPendingRemoval_;
}
/**
*
**
* A flag indicating if the account is expired and pending removal.
* Only the entity expiration system task toggles this flag when it reaches this account
* and finds it expired. Before setting the flag the system task checks if the account has
* an auto-renew account with balance. This is done to prevent a zero-balance account with a funded
* auto-renew account from being treated as expired in the interval between its expiration
* and the time the system task actually auto-renews it.
*
*
* bool expired_and_pending_removal = 32;
* @param value The expiredAndPendingRemoval to set.
*/
private void setExpiredAndPendingRemoval(boolean value) {
expiredAndPendingRemoval_ = value;
}
/**
*
**
* A flag indicating if the account is expired and pending removal.
* Only the entity expiration system task toggles this flag when it reaches this account
* and finds it expired. Before setting the flag the system task checks if the account has
* an auto-renew account with balance. This is done to prevent a zero-balance account with a funded
* auto-renew account from being treated as expired in the interval between its expiration
* and the time the system task actually auto-renews it.
*
*
* bool expired_and_pending_removal = 32;
*/
private void clearExpiredAndPendingRemoval() {
expiredAndPendingRemoval_ = false;
}
public static final int FIRST_CONTRACT_STORAGE_KEY_FIELD_NUMBER = 33;
private com.google.protobuf.ByteString firstContractStorageKey_;
/**
*
**
* The first key in the doubly-linked list of this contract's storage mappings;
* It will be null if if the account is not a contract or the contract has no storage mappings.
*
*
* bytes first_contract_storage_key = 33;
* @return The firstContractStorageKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFirstContractStorageKey() {
return firstContractStorageKey_;
}
/**
*
**
* The first key in the doubly-linked list of this contract's storage mappings;
* It will be null if if the account is not a contract or the contract has no storage mappings.
*
*
* bytes first_contract_storage_key = 33;
* @param value The firstContractStorageKey to set.
*/
private void setFirstContractStorageKey(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
firstContractStorageKey_ = value;
}
/**
*
**
* The first key in the doubly-linked list of this contract's storage mappings;
* It will be null if if the account is not a contract or the contract has no storage mappings.
*
*
* bytes first_contract_storage_key = 33;
*/
private void clearFirstContractStorageKey() {
firstContractStorageKey_ = getDefaultInstance().getFirstContractStorageKey();
}
public static final int HEAD_PENDING_AIRDROP_ID_FIELD_NUMBER = 34;
private com.hedera.hashgraph.sdk.proto.PendingAirdropId headPendingAirdropId_;
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
@java.lang.Override
public boolean hasHeadPendingAirdropId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.PendingAirdropId getHeadPendingAirdropId() {
return headPendingAirdropId_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : headPendingAirdropId_;
}
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
private void setHeadPendingAirdropId(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) {
value.getClass();
headPendingAirdropId_ = value;
bitField0_ |= 0x00000020;
}
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeHeadPendingAirdropId(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) {
value.getClass();
if (headPendingAirdropId_ != null &&
headPendingAirdropId_ != com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance()) {
headPendingAirdropId_ =
com.hedera.hashgraph.sdk.proto.PendingAirdropId.newBuilder(headPendingAirdropId_).mergeFrom(value).buildPartial();
} else {
headPendingAirdropId_ = value;
}
bitField0_ |= 0x00000020;
}
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
private void clearHeadPendingAirdropId() { headPendingAirdropId_ = null;
bitField0_ = (bitField0_ & ~0x00000020);
}
public static final int NUMBER_PENDING_AIRDROPS_FIELD_NUMBER = 35;
private long numberPendingAirdrops_;
/**
*
**
* The number of pending airdrops owned by the account. This number is used to collect rent
* for the account.
*
*
* uint64 number_pending_airdrops = 35;
* @return The numberPendingAirdrops.
*/
@java.lang.Override
public long getNumberPendingAirdrops() {
return numberPendingAirdrops_;
}
/**
*
**
* The number of pending airdrops owned by the account. This number is used to collect rent
* for the account.
*
*
* uint64 number_pending_airdrops = 35;
* @param value The numberPendingAirdrops to set.
*/
private void setNumberPendingAirdrops(long value) {
numberPendingAirdrops_ = value;
}
/**
*
**
* The number of pending airdrops owned by the account. This number is used to collect rent
* for the account.
*
*
* uint64 number_pending_airdrops = 35;
*/
private void clearNumberPendingAirdrops() {
numberPendingAirdrops_ = 0L;
}
public static com.hedera.hashgraph.sdk.proto.Account parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.Account parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.Account parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.Account parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.Account parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.Account parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.Account parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.Account parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.Account parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.Account parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.Account parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.Account parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.Account prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code proto.Account}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.Account, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.Account)
com.hedera.hashgraph.sdk.proto.AccountOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.Account.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public StakedIdCase
getStakedIdCase() {
return instance.getStakedIdCase();
}
public Builder clearStakedId() {
copyOnWrite();
instance.clearStakedId();
return this;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
@java.lang.Override
public boolean hasAccountId() {
return instance.hasAccountId();
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() {
return instance.getAccountId();
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
public Builder setAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.setAccountId(value);
return this;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
public Builder setAccountId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
copyOnWrite();
instance.setAccountId(builderForValue.build());
return this;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
public Builder mergeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.mergeAccountId(value);
return this;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
public Builder clearAccountId() { copyOnWrite();
instance.clearAccountId();
return this;
}
/**
*
**
* The alias to use for this account, if any.
*
*
* bytes alias = 2;
* @return The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return instance.getAlias();
}
/**
*
**
* The alias to use for this account, if any.
*
*
* bytes alias = 2;
* @param value The alias to set.
* @return This builder for chaining.
*/
public Builder setAlias(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setAlias(value);
return this;
}
/**
*
**
* The alias to use for this account, if any.
*
*
* bytes alias = 2;
* @return This builder for chaining.
*/
public Builder clearAlias() {
copyOnWrite();
instance.clearAlias();
return this;
}
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
@java.lang.Override
public boolean hasKey() {
return instance.hasKey();
}
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getKey() {
return instance.getKey();
}
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
public Builder setKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setKey(value);
return this;
}
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
public Builder setKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setKey(builderForValue.build());
return this;
}
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
public Builder mergeKey(com.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeKey(value);
return this;
}
/**
*
**
* (Optional) The key to be used to sign transactions from the account, if any.
* This key will not be set for hollow accounts until the account is finalized.
* This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
*
*
* .proto.Key key = 3;
*/
public Builder clearKey() { copyOnWrite();
instance.clearKey();
return this;
}
/**
*
**
* The expiration time of the account, in seconds since the epoch.
*
*
* int64 expiration_second = 4;
* @return The expirationSecond.
*/
@java.lang.Override
public long getExpirationSecond() {
return instance.getExpirationSecond();
}
/**
*
**
* The expiration time of the account, in seconds since the epoch.
*
*
* int64 expiration_second = 4;
* @param value The expirationSecond to set.
* @return This builder for chaining.
*/
public Builder setExpirationSecond(long value) {
copyOnWrite();
instance.setExpirationSecond(value);
return this;
}
/**
*
**
* The expiration time of the account, in seconds since the epoch.
*
*
* int64 expiration_second = 4;
* @return This builder for chaining.
*/
public Builder clearExpirationSecond() {
copyOnWrite();
instance.clearExpirationSecond();
return this;
}
/**
*
**
* The balance of the account, in tiny-bars.
*
*
* int64 tinybar_balance = 5;
* @return The tinybarBalance.
*/
@java.lang.Override
public long getTinybarBalance() {
return instance.getTinybarBalance();
}
/**
*
**
* The balance of the account, in tiny-bars.
*
*
* int64 tinybar_balance = 5;
* @param value The tinybarBalance to set.
* @return This builder for chaining.
*/
public Builder setTinybarBalance(long value) {
copyOnWrite();
instance.setTinybarBalance(value);
return this;
}
/**
*
**
* The balance of the account, in tiny-bars.
*
*
* int64 tinybar_balance = 5;
* @return This builder for chaining.
*/
public Builder clearTinybarBalance() {
copyOnWrite();
instance.clearTinybarBalance();
return this;
}
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
return instance.getMemo();
}
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
return instance.getMemoBytes();
}
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(
java.lang.String value) {
copyOnWrite();
instance.setMemo(value);
return this;
}
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @return This builder for chaining.
*/
public Builder clearMemo() {
copyOnWrite();
instance.clearMemo();
return this;
}
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @param value The bytes for memo to set.
* @return This builder for chaining.
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setMemoBytes(value);
return this;
}
/**
*
**
* A boolean marking if the account has been deleted.
*
*
* bool deleted = 7;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return instance.getDeleted();
}
/**
*
**
* A boolean marking if the account has been deleted.
*
*
* bool deleted = 7;
* @param value The deleted to set.
* @return This builder for chaining.
*/
public Builder setDeleted(boolean value) {
copyOnWrite();
instance.setDeleted(value);
return this;
}
/**
*
**
* A boolean marking if the account has been deleted.
*
*
* bool deleted = 7;
* @return This builder for chaining.
*/
public Builder clearDeleted() {
copyOnWrite();
instance.clearDeleted();
return this;
}
/**
*
**
* The amount of hbars staked to the account.
*
*
* int64 staked_to_me = 8;
* @return The stakedToMe.
*/
@java.lang.Override
public long getStakedToMe() {
return instance.getStakedToMe();
}
/**
*
**
* The amount of hbars staked to the account.
*
*
* int64 staked_to_me = 8;
* @param value The stakedToMe to set.
* @return This builder for chaining.
*/
public Builder setStakedToMe(long value) {
copyOnWrite();
instance.setStakedToMe(value);
return this;
}
/**
*
**
* The amount of hbars staked to the account.
*
*
* int64 staked_to_me = 8;
* @return This builder for chaining.
*/
public Builder clearStakedToMe() {
copyOnWrite();
instance.clearStakedToMe();
return this;
}
/**
*
**
* If this account stakes to another account, its value will be -1. It will
* be set to the time when the account starts staking to a node.
*
*
* int64 stake_period_start = 9;
* @return The stakePeriodStart.
*/
@java.lang.Override
public long getStakePeriodStart() {
return instance.getStakePeriodStart();
}
/**
*
**
* If this account stakes to another account, its value will be -1. It will
* be set to the time when the account starts staking to a node.
*
*
* int64 stake_period_start = 9;
* @param value The stakePeriodStart to set.
* @return This builder for chaining.
*/
public Builder setStakePeriodStart(long value) {
copyOnWrite();
instance.setStakePeriodStart(value);
return this;
}
/**
*
**
* If this account stakes to another account, its value will be -1. It will
* be set to the time when the account starts staking to a node.
*
*
* int64 stake_period_start = 9;
* @return This builder for chaining.
*/
public Builder clearStakePeriodStart() {
copyOnWrite();
instance.clearStakePeriodStart();
return this;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
@java.lang.Override
public boolean hasStakedAccountId() {
return instance.hasStakedAccountId();
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getStakedAccountId() {
return instance.getStakedAccountId();
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
public Builder setStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.setStakedAccountId(value);
return this;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
public Builder setStakedAccountId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
copyOnWrite();
instance.setStakedAccountId(builderForValue.build());
return this;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
public Builder mergeStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.mergeStakedAccountId(value);
return this;
}
/**
*
**
* ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
* this field removes this account's staked account ID.
*
*
* .proto.AccountID staked_account_id = 10;
*/
public Builder clearStakedAccountId() {
copyOnWrite();
instance.clearStakedAccountId();
return this;
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 11;
* @return Whether the stakedNodeId field is set.
*/
@java.lang.Override
public boolean hasStakedNodeId() {
return instance.hasStakedNodeId();
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 11;
* @return The stakedNodeId.
*/
@java.lang.Override
public long getStakedNodeId() {
return instance.getStakedNodeId();
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 11;
* @param value The stakedNodeId to set.
* @return This builder for chaining.
*/
public Builder setStakedNodeId(long value) {
copyOnWrite();
instance.setStakedNodeId(value);
return this;
}
/**
*
**
* ID of the new node this account is staked to. If set to the sentinel <tt>-1</tt>, this field
* removes this account's staked node ID.
*
*
* int64 staked_node_id = 11;
* @return This builder for chaining.
*/
public Builder clearStakedNodeId() {
copyOnWrite();
instance.clearStakedNodeId();
return this;
}
/**
*
**
* A boolean marking if the account declines rewards.
*
*
* bool decline_reward = 12;
* @return The declineReward.
*/
@java.lang.Override
public boolean getDeclineReward() {
return instance.getDeclineReward();
}
/**
*
**
* A boolean marking if the account declines rewards.
*
*
* bool decline_reward = 12;
* @param value The declineReward to set.
* @return This builder for chaining.
*/
public Builder setDeclineReward(boolean value) {
copyOnWrite();
instance.setDeclineReward(value);
return this;
}
/**
*
**
* A boolean marking if the account declines rewards.
*
*
* bool decline_reward = 12;
* @return This builder for chaining.
*/
public Builder clearDeclineReward() {
copyOnWrite();
instance.clearDeclineReward();
return this;
}
/**
*
**
* A boolean marking if the account requires a receiver signature.
*
*
* bool receiver_sig_required = 13;
* @return The receiverSigRequired.
*/
@java.lang.Override
public boolean getReceiverSigRequired() {
return instance.getReceiverSigRequired();
}
/**
*
**
* A boolean marking if the account requires a receiver signature.
*
*
* bool receiver_sig_required = 13;
* @param value The receiverSigRequired to set.
* @return This builder for chaining.
*/
public Builder setReceiverSigRequired(boolean value) {
copyOnWrite();
instance.setReceiverSigRequired(value);
return this;
}
/**
*
**
* A boolean marking if the account requires a receiver signature.
*
*
* bool receiver_sig_required = 13;
* @return This builder for chaining.
*/
public Builder clearReceiverSigRequired() {
copyOnWrite();
instance.clearReceiverSigRequired();
return this;
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
@java.lang.Override
public boolean hasHeadTokenId() {
return instance.hasHeadTokenId();
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenID getHeadTokenId() {
return instance.getHeadTokenId();
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
public Builder setHeadTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
copyOnWrite();
instance.setHeadTokenId(value);
return this;
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
public Builder setHeadTokenId(
com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) {
copyOnWrite();
instance.setHeadTokenId(builderForValue.build());
return this;
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
public Builder mergeHeadTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) {
copyOnWrite();
instance.mergeHeadTokenId(value);
return this;
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
public Builder clearHeadTokenId() { copyOnWrite();
instance.clearHeadTokenId();
return this;
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
@java.lang.Override
public boolean hasHeadNftId() {
return instance.hasHeadNftId();
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.NftID getHeadNftId() {
return instance.getHeadNftId();
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
public Builder setHeadNftId(com.hedera.hashgraph.sdk.proto.NftID value) {
copyOnWrite();
instance.setHeadNftId(value);
return this;
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
public Builder setHeadNftId(
com.hedera.hashgraph.sdk.proto.NftID.Builder builderForValue) {
copyOnWrite();
instance.setHeadNftId(builderForValue.build());
return this;
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
public Builder mergeHeadNftId(com.hedera.hashgraph.sdk.proto.NftID value) {
copyOnWrite();
instance.mergeHeadNftId(value);
return this;
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
public Builder clearHeadNftId() { copyOnWrite();
instance.clearHeadNftId();
return this;
}
/**
*
**
* The serial number of the head NftID of the linked list from unique tokens map for the account.
*
*
* int64 head_nft_serial_number = 16;
* @return The headNftSerialNumber.
*/
@java.lang.Override
public long getHeadNftSerialNumber() {
return instance.getHeadNftSerialNumber();
}
/**
*
**
* The serial number of the head NftID of the linked list from unique tokens map for the account.
*
*
* int64 head_nft_serial_number = 16;
* @param value The headNftSerialNumber to set.
* @return This builder for chaining.
*/
public Builder setHeadNftSerialNumber(long value) {
copyOnWrite();
instance.setHeadNftSerialNumber(value);
return this;
}
/**
*
**
* The serial number of the head NftID of the linked list from unique tokens map for the account.
*
*
* int64 head_nft_serial_number = 16;
* @return This builder for chaining.
*/
public Builder clearHeadNftSerialNumber() {
copyOnWrite();
instance.clearHeadNftSerialNumber();
return this;
}
/**
*
**
* The number of NFTs owned by the account.
*
*
* int64 number_owned_nfts = 17;
* @return The numberOwnedNfts.
*/
@java.lang.Override
public long getNumberOwnedNfts() {
return instance.getNumberOwnedNfts();
}
/**
*
**
* The number of NFTs owned by the account.
*
*
* int64 number_owned_nfts = 17;
* @param value The numberOwnedNfts to set.
* @return This builder for chaining.
*/
public Builder setNumberOwnedNfts(long value) {
copyOnWrite();
instance.setNumberOwnedNfts(value);
return this;
}
/**
*
**
* The number of NFTs owned by the account.
*
*
* int64 number_owned_nfts = 17;
* @return This builder for chaining.
*/
public Builder clearNumberOwnedNfts() {
copyOnWrite();
instance.clearNumberOwnedNfts();
return this;
}
/**
*
**
* The maximum number of tokens that can be auto-associated with the account.
*
*
* int32 max_auto_associations = 18;
* @return The maxAutoAssociations.
*/
@java.lang.Override
public int getMaxAutoAssociations() {
return instance.getMaxAutoAssociations();
}
/**
*
**
* The maximum number of tokens that can be auto-associated with the account.
*
*
* int32 max_auto_associations = 18;
* @param value The maxAutoAssociations to set.
* @return This builder for chaining.
*/
public Builder setMaxAutoAssociations(int value) {
copyOnWrite();
instance.setMaxAutoAssociations(value);
return this;
}
/**
*
**
* The maximum number of tokens that can be auto-associated with the account.
*
*
* int32 max_auto_associations = 18;
* @return This builder for chaining.
*/
public Builder clearMaxAutoAssociations() {
copyOnWrite();
instance.clearMaxAutoAssociations();
return this;
}
/**
*
**
* The number of used auto-association slots.
*
*
* int32 used_auto_associations = 19;
* @return The usedAutoAssociations.
*/
@java.lang.Override
public int getUsedAutoAssociations() {
return instance.getUsedAutoAssociations();
}
/**
*
**
* The number of used auto-association slots.
*
*
* int32 used_auto_associations = 19;
* @param value The usedAutoAssociations to set.
* @return This builder for chaining.
*/
public Builder setUsedAutoAssociations(int value) {
copyOnWrite();
instance.setUsedAutoAssociations(value);
return this;
}
/**
*
**
* The number of used auto-association slots.
*
*
* int32 used_auto_associations = 19;
* @return This builder for chaining.
*/
public Builder clearUsedAutoAssociations() {
copyOnWrite();
instance.clearUsedAutoAssociations();
return this;
}
/**
*
**
* The number of tokens associated with the account. This number is used for
* fee calculation during renewal of the account.
*
*
* int32 number_associations = 20;
* @return The numberAssociations.
*/
@java.lang.Override
public int getNumberAssociations() {
return instance.getNumberAssociations();
}
/**
*
**
* The number of tokens associated with the account. This number is used for
* fee calculation during renewal of the account.
*
*
* int32 number_associations = 20;
* @param value The numberAssociations to set.
* @return This builder for chaining.
*/
public Builder setNumberAssociations(int value) {
copyOnWrite();
instance.setNumberAssociations(value);
return this;
}
/**
*
**
* The number of tokens associated with the account. This number is used for
* fee calculation during renewal of the account.
*
*
* int32 number_associations = 20;
* @return This builder for chaining.
*/
public Builder clearNumberAssociations() {
copyOnWrite();
instance.clearNumberAssociations();
return this;
}
/**
*
**
* A boolean marking if the account is a smart contract.
*
*
* bool smart_contract = 21;
* @return The smartContract.
*/
@java.lang.Override
public boolean getSmartContract() {
return instance.getSmartContract();
}
/**
*
**
* A boolean marking if the account is a smart contract.
*
*
* bool smart_contract = 21;
* @param value The smartContract to set.
* @return This builder for chaining.
*/
public Builder setSmartContract(boolean value) {
copyOnWrite();
instance.setSmartContract(value);
return this;
}
/**
*
**
* A boolean marking if the account is a smart contract.
*
*
* bool smart_contract = 21;
* @return This builder for chaining.
*/
public Builder clearSmartContract() {
copyOnWrite();
instance.clearSmartContract();
return this;
}
/**
*
**
* The number of tokens with a positive balance associated with the account.
* If the account has positive balance in a token, it can not be deleted.
*
*
* int32 number_positive_balances = 22;
* @return The numberPositiveBalances.
*/
@java.lang.Override
public int getNumberPositiveBalances() {
return instance.getNumberPositiveBalances();
}
/**
*
**
* The number of tokens with a positive balance associated with the account.
* If the account has positive balance in a token, it can not be deleted.
*
*
* int32 number_positive_balances = 22;
* @param value The numberPositiveBalances to set.
* @return This builder for chaining.
*/
public Builder setNumberPositiveBalances(int value) {
copyOnWrite();
instance.setNumberPositiveBalances(value);
return this;
}
/**
*
**
* The number of tokens with a positive balance associated with the account.
* If the account has positive balance in a token, it can not be deleted.
*
*
* int32 number_positive_balances = 22;
* @return This builder for chaining.
*/
public Builder clearNumberPositiveBalances() {
copyOnWrite();
instance.clearNumberPositiveBalances();
return this;
}
/**
*
**
* The nonce of the account, used for Ethereum interoperability.
*
*
* int64 ethereum_nonce = 23;
* @return The ethereumNonce.
*/
@java.lang.Override
public long getEthereumNonce() {
return instance.getEthereumNonce();
}
/**
*
**
* The nonce of the account, used for Ethereum interoperability.
*
*
* int64 ethereum_nonce = 23;
* @param value The ethereumNonce to set.
* @return This builder for chaining.
*/
public Builder setEthereumNonce(long value) {
copyOnWrite();
instance.setEthereumNonce(value);
return this;
}
/**
*
**
* The nonce of the account, used for Ethereum interoperability.
*
*
* int64 ethereum_nonce = 23;
* @return This builder for chaining.
*/
public Builder clearEthereumNonce() {
copyOnWrite();
instance.clearEthereumNonce();
return this;
}
/**
*
**
* The amount of hbars staked to the account at the start of the last rewarded period.
*
*
* int64 stake_at_start_of_last_rewarded_period = 24;
* @return The stakeAtStartOfLastRewardedPeriod.
*/
@java.lang.Override
public long getStakeAtStartOfLastRewardedPeriod() {
return instance.getStakeAtStartOfLastRewardedPeriod();
}
/**
*
**
* The amount of hbars staked to the account at the start of the last rewarded period.
*
*
* int64 stake_at_start_of_last_rewarded_period = 24;
* @param value The stakeAtStartOfLastRewardedPeriod to set.
* @return This builder for chaining.
*/
public Builder setStakeAtStartOfLastRewardedPeriod(long value) {
copyOnWrite();
instance.setStakeAtStartOfLastRewardedPeriod(value);
return this;
}
/**
*
**
* The amount of hbars staked to the account at the start of the last rewarded period.
*
*
* int64 stake_at_start_of_last_rewarded_period = 24;
* @return This builder for chaining.
*/
public Builder clearStakeAtStartOfLastRewardedPeriod() {
copyOnWrite();
instance.clearStakeAtStartOfLastRewardedPeriod();
return this;
}
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
@java.lang.Override
public boolean hasAutoRenewAccountId() {
return instance.hasAutoRenewAccountId();
}
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccountId() {
return instance.getAutoRenewAccountId();
}
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
public Builder setAutoRenewAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.setAutoRenewAccountId(value);
return this;
}
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
public Builder setAutoRenewAccountId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
copyOnWrite();
instance.setAutoRenewAccountId(builderForValue.build());
return this;
}
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
public Builder mergeAutoRenewAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.mergeAutoRenewAccountId(value);
return this;
}
/**
*
**
* (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
* has signed a transaction allowing the network to use its balance to automatically extend the account's
* expiration time when it passes.
*
*
* .proto.AccountID auto_renew_account_id = 25;
*/
public Builder clearAutoRenewAccountId() { copyOnWrite();
instance.clearAutoRenewAccountId();
return this;
}
/**
*
**
* The number of seconds the network should automatically extend the account's expiration by, if the
* account has a valid auto-renew account, and is not deleted upon expiration.
* If this is not provided in an allowed range on account creation, the transaction will fail with INVALID_AUTO_RENEWAL_PERIOD.
* The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
*
*
* int64 auto_renew_seconds = 26;
* @return The autoRenewSeconds.
*/
@java.lang.Override
public long getAutoRenewSeconds() {
return instance.getAutoRenewSeconds();
}
/**
*
**
* The number of seconds the network should automatically extend the account's expiration by, if the
* account has a valid auto-renew account, and is not deleted upon expiration.
* If this is not provided in an allowed range on account creation, the transaction will fail with INVALID_AUTO_RENEWAL_PERIOD.
* The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
*
*
* int64 auto_renew_seconds = 26;
* @param value The autoRenewSeconds to set.
* @return This builder for chaining.
*/
public Builder setAutoRenewSeconds(long value) {
copyOnWrite();
instance.setAutoRenewSeconds(value);
return this;
}
/**
*
**
* The number of seconds the network should automatically extend the account's expiration by, if the
* account has a valid auto-renew account, and is not deleted upon expiration.
* If this is not provided in an allowed range on account creation, the transaction will fail with INVALID_AUTO_RENEWAL_PERIOD.
* The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
*
*
* int64 auto_renew_seconds = 26;
* @return This builder for chaining.
*/
public Builder clearAutoRenewSeconds() {
copyOnWrite();
instance.clearAutoRenewSeconds();
return this;
}
/**
*
**
* If this account is a smart-contract, number of key-value pairs stored on the contract.
* This is used to determine the storage rent for the contract.
*
*
* int32 contract_kv_pairs_number = 27;
* @return The contractKvPairsNumber.
*/
@java.lang.Override
public int getContractKvPairsNumber() {
return instance.getContractKvPairsNumber();
}
/**
*
**
* If this account is a smart-contract, number of key-value pairs stored on the contract.
* This is used to determine the storage rent for the contract.
*
*
* int32 contract_kv_pairs_number = 27;
* @param value The contractKvPairsNumber to set.
* @return This builder for chaining.
*/
public Builder setContractKvPairsNumber(int value) {
copyOnWrite();
instance.setContractKvPairsNumber(value);
return this;
}
/**
*
**
* If this account is a smart-contract, number of key-value pairs stored on the contract.
* This is used to determine the storage rent for the contract.
*
*
* int32 contract_kv_pairs_number = 27;
* @return This builder for chaining.
*/
public Builder clearContractKvPairsNumber() {
copyOnWrite();
instance.clearContractKvPairsNumber();
return this;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
@java.lang.Override
public java.util.List getCryptoAllowancesList() {
return java.util.Collections.unmodifiableList(
instance.getCryptoAllowancesList());
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
@java.lang.Override
public int getCryptoAllowancesCount() {
return instance.getCryptoAllowancesCount();
}/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance getCryptoAllowances(int index) {
return instance.getCryptoAllowances(index);
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public Builder setCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance value) {
copyOnWrite();
instance.setCryptoAllowances(index, value);
return this;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public Builder setCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance.Builder builderForValue) {
copyOnWrite();
instance.setCryptoAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public Builder addCryptoAllowances(com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance value) {
copyOnWrite();
instance.addCryptoAllowances(value);
return this;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public Builder addCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance value) {
copyOnWrite();
instance.addCryptoAllowances(index, value);
return this;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public Builder addCryptoAllowances(
com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance.Builder builderForValue) {
copyOnWrite();
instance.addCryptoAllowances(builderForValue.build());
return this;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public Builder addCryptoAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance.Builder builderForValue) {
copyOnWrite();
instance.addCryptoAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public Builder addAllCryptoAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance> values) {
copyOnWrite();
instance.addAllCryptoAllowances(values);
return this;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public Builder clearCryptoAllowances() {
copyOnWrite();
instance.clearCryptoAllowances();
return this;
}
/**
*
**
* (Optional) List of crypto allowances approved by the account.
* It contains account number for which the allowance is approved to and
* the amount approved for that account.
*
*
* repeated .proto.AccountCryptoAllowance crypto_allowances = 28;
*/
public Builder removeCryptoAllowances(int index) {
copyOnWrite();
instance.removeCryptoAllowances(index);
return this;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
@java.lang.Override
public java.util.List getApproveForAllNftAllowancesList() {
return java.util.Collections.unmodifiableList(
instance.getApproveForAllNftAllowancesList());
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
@java.lang.Override
public int getApproveForAllNftAllowancesCount() {
return instance.getApproveForAllNftAllowancesCount();
}/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance getApproveForAllNftAllowances(int index) {
return instance.getApproveForAllNftAllowances(index);
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public Builder setApproveForAllNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance value) {
copyOnWrite();
instance.setApproveForAllNftAllowances(index, value);
return this;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public Builder setApproveForAllNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.Builder builderForValue) {
copyOnWrite();
instance.setApproveForAllNftAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public Builder addApproveForAllNftAllowances(com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance value) {
copyOnWrite();
instance.addApproveForAllNftAllowances(value);
return this;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public Builder addApproveForAllNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance value) {
copyOnWrite();
instance.addApproveForAllNftAllowances(index, value);
return this;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public Builder addApproveForAllNftAllowances(
com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.Builder builderForValue) {
copyOnWrite();
instance.addApproveForAllNftAllowances(builderForValue.build());
return this;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public Builder addApproveForAllNftAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.Builder builderForValue) {
copyOnWrite();
instance.addApproveForAllNftAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public Builder addAllApproveForAllNftAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance> values) {
copyOnWrite();
instance.addAllApproveForAllNftAllowances(values);
return this;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public Builder clearApproveForAllNftAllowances() {
copyOnWrite();
instance.clearApproveForAllNftAllowances();
return this;
}
/**
*
**
* (Optional) List of non-fungible token allowances approved for all by the account.
* It contains account number approved for spending all serial numbers for the given
* NFT token number using approved_for_all flag.
* Allowances for a specific serial number is stored in the NFT itself in state.
*
*
* repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29;
*/
public Builder removeApproveForAllNftAllowances(int index) {
copyOnWrite();
instance.removeApproveForAllNftAllowances(index);
return this;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
@java.lang.Override
public java.util.List getTokenAllowancesList() {
return java.util.Collections.unmodifiableList(
instance.getTokenAllowancesList());
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
@java.lang.Override
public int getTokenAllowancesCount() {
return instance.getTokenAllowancesCount();
}/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance getTokenAllowances(int index) {
return instance.getTokenAllowances(index);
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public Builder setTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance value) {
copyOnWrite();
instance.setTokenAllowances(index, value);
return this;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public Builder setTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance.Builder builderForValue) {
copyOnWrite();
instance.setTokenAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public Builder addTokenAllowances(com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance value) {
copyOnWrite();
instance.addTokenAllowances(value);
return this;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public Builder addTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance value) {
copyOnWrite();
instance.addTokenAllowances(index, value);
return this;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public Builder addTokenAllowances(
com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance.Builder builderForValue) {
copyOnWrite();
instance.addTokenAllowances(builderForValue.build());
return this;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public Builder addTokenAllowances(
int index, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance.Builder builderForValue) {
copyOnWrite();
instance.addTokenAllowances(index,
builderForValue.build());
return this;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public Builder addAllTokenAllowances(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance> values) {
copyOnWrite();
instance.addAllTokenAllowances(values);
return this;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public Builder clearTokenAllowances() {
copyOnWrite();
instance.clearTokenAllowances();
return this;
}
/**
*
**
* (Optional) List of fungible token allowances approved by the account.
* It contains account number for which the allowance is approved to and the token number.
* It also contains and the amount approved for that account.
*
*
* repeated .proto.AccountFungibleTokenAllowance token_allowances = 30;
*/
public Builder removeTokenAllowances(int index) {
copyOnWrite();
instance.removeTokenAllowances(index);
return this;
}
/**
*
**
* The number of tokens for which this account is treasury
*
*
* uint32 number_treasury_titles = 31;
* @return The numberTreasuryTitles.
*/
@java.lang.Override
public int getNumberTreasuryTitles() {
return instance.getNumberTreasuryTitles();
}
/**
*
**
* The number of tokens for which this account is treasury
*
*
* uint32 number_treasury_titles = 31;
* @param value The numberTreasuryTitles to set.
* @return This builder for chaining.
*/
public Builder setNumberTreasuryTitles(int value) {
copyOnWrite();
instance.setNumberTreasuryTitles(value);
return this;
}
/**
*
**
* The number of tokens for which this account is treasury
*
*
* uint32 number_treasury_titles = 31;
* @return This builder for chaining.
*/
public Builder clearNumberTreasuryTitles() {
copyOnWrite();
instance.clearNumberTreasuryTitles();
return this;
}
/**
*
**
* A flag indicating if the account is expired and pending removal.
* Only the entity expiration system task toggles this flag when it reaches this account
* and finds it expired. Before setting the flag the system task checks if the account has
* an auto-renew account with balance. This is done to prevent a zero-balance account with a funded
* auto-renew account from being treated as expired in the interval between its expiration
* and the time the system task actually auto-renews it.
*
*
* bool expired_and_pending_removal = 32;
* @return The expiredAndPendingRemoval.
*/
@java.lang.Override
public boolean getExpiredAndPendingRemoval() {
return instance.getExpiredAndPendingRemoval();
}
/**
*
**
* A flag indicating if the account is expired and pending removal.
* Only the entity expiration system task toggles this flag when it reaches this account
* and finds it expired. Before setting the flag the system task checks if the account has
* an auto-renew account with balance. This is done to prevent a zero-balance account with a funded
* auto-renew account from being treated as expired in the interval between its expiration
* and the time the system task actually auto-renews it.
*
*
* bool expired_and_pending_removal = 32;
* @param value The expiredAndPendingRemoval to set.
* @return This builder for chaining.
*/
public Builder setExpiredAndPendingRemoval(boolean value) {
copyOnWrite();
instance.setExpiredAndPendingRemoval(value);
return this;
}
/**
*
**
* A flag indicating if the account is expired and pending removal.
* Only the entity expiration system task toggles this flag when it reaches this account
* and finds it expired. Before setting the flag the system task checks if the account has
* an auto-renew account with balance. This is done to prevent a zero-balance account with a funded
* auto-renew account from being treated as expired in the interval between its expiration
* and the time the system task actually auto-renews it.
*
*
* bool expired_and_pending_removal = 32;
* @return This builder for chaining.
*/
public Builder clearExpiredAndPendingRemoval() {
copyOnWrite();
instance.clearExpiredAndPendingRemoval();
return this;
}
/**
*
**
* The first key in the doubly-linked list of this contract's storage mappings;
* It will be null if if the account is not a contract or the contract has no storage mappings.
*
*
* bytes first_contract_storage_key = 33;
* @return The firstContractStorageKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFirstContractStorageKey() {
return instance.getFirstContractStorageKey();
}
/**
*
**
* The first key in the doubly-linked list of this contract's storage mappings;
* It will be null if if the account is not a contract or the contract has no storage mappings.
*
*
* bytes first_contract_storage_key = 33;
* @param value The firstContractStorageKey to set.
* @return This builder for chaining.
*/
public Builder setFirstContractStorageKey(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setFirstContractStorageKey(value);
return this;
}
/**
*
**
* The first key in the doubly-linked list of this contract's storage mappings;
* It will be null if if the account is not a contract or the contract has no storage mappings.
*
*
* bytes first_contract_storage_key = 33;
* @return This builder for chaining.
*/
public Builder clearFirstContractStorageKey() {
copyOnWrite();
instance.clearFirstContractStorageKey();
return this;
}
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
@java.lang.Override
public boolean hasHeadPendingAirdropId() {
return instance.hasHeadPendingAirdropId();
}
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.PendingAirdropId getHeadPendingAirdropId() {
return instance.getHeadPendingAirdropId();
}
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
public Builder setHeadPendingAirdropId(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) {
copyOnWrite();
instance.setHeadPendingAirdropId(value);
return this;
}
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
public Builder setHeadPendingAirdropId(
com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder builderForValue) {
copyOnWrite();
instance.setHeadPendingAirdropId(builderForValue.build());
return this;
}
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
public Builder mergeHeadPendingAirdropId(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) {
copyOnWrite();
instance.mergeHeadPendingAirdropId(value);
return this;
}
/**
*
**
* A pending airdrop ID at the head of the linked list for this account
* from the account airdrops map.<br/>
* The account airdrops are connected by including the "next" and "previous"
* `PendingAirdropID` in each `AccountAirdrop` message.
* <p>
* This value SHALL NOT be empty if this account is "sender" for any
* pending airdrop, and SHALL be empty otherwise.
*
*
* .proto.PendingAirdropId head_pending_airdrop_id = 34;
*/
public Builder clearHeadPendingAirdropId() { copyOnWrite();
instance.clearHeadPendingAirdropId();
return this;
}
/**
*
**
* The number of pending airdrops owned by the account. This number is used to collect rent
* for the account.
*
*
* uint64 number_pending_airdrops = 35;
* @return The numberPendingAirdrops.
*/
@java.lang.Override
public long getNumberPendingAirdrops() {
return instance.getNumberPendingAirdrops();
}
/**
*
**
* The number of pending airdrops owned by the account. This number is used to collect rent
* for the account.
*
*
* uint64 number_pending_airdrops = 35;
* @param value The numberPendingAirdrops to set.
* @return This builder for chaining.
*/
public Builder setNumberPendingAirdrops(long value) {
copyOnWrite();
instance.setNumberPendingAirdrops(value);
return this;
}
/**
*
**
* The number of pending airdrops owned by the account. This number is used to collect rent
* for the account.
*
*
* uint64 number_pending_airdrops = 35;
* @return This builder for chaining.
*/
public Builder clearNumberPendingAirdrops() {
copyOnWrite();
instance.clearNumberPendingAirdrops();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.Account)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.Account();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"stakedId_",
"stakedIdCase_",
"bitField0_",
"accountId_",
"alias_",
"key_",
"expirationSecond_",
"tinybarBalance_",
"memo_",
"deleted_",
"stakedToMe_",
"stakePeriodStart_",
com.hedera.hashgraph.sdk.proto.AccountID.class,
"declineReward_",
"receiverSigRequired_",
"headTokenId_",
"headNftId_",
"headNftSerialNumber_",
"numberOwnedNfts_",
"maxAutoAssociations_",
"usedAutoAssociations_",
"numberAssociations_",
"smartContract_",
"numberPositiveBalances_",
"ethereumNonce_",
"stakeAtStartOfLastRewardedPeriod_",
"autoRenewAccountId_",
"autoRenewSeconds_",
"contractKvPairsNumber_",
"cryptoAllowances_",
com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance.class,
"approveForAllNftAllowances_",
com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.class,
"tokenAllowances_",
com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance.class,
"numberTreasuryTitles_",
"expiredAndPendingRemoval_",
"firstContractStorageKey_",
"headPendingAirdropId_",
"numberPendingAirdrops_",
};
java.lang.String info =
"\u0000#\u0001\u0001\u0001##\u0000\u0003\u0000\u0001\u1009\u0000\u0002\n\u0003\u1009" +
"\u0001\u0004\u0002\u0005\u0002\u0006\u0208\u0007\u0007\b\u0002\t\u0002\n<\u0000\u000b" +
"5\u0000\f\u0007\r\u0007\u000e\u1009\u0002\u000f\u1009\u0003\u0010\u0002\u0011\u0002" +
"\u0012\u0004\u0013\u0004\u0014\u0004\u0015\u0007\u0016\u0004\u0017\u0002\u0018\u0002" +
"\u0019\u1009\u0004\u001a\u0002\u001b\u0004\u001c\u001b\u001d\u001b\u001e\u001b\u001f" +
"\u000b \u0007!\n\"\u1009\u0005#\u0003";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.Account.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.Account)
private static final com.hedera.hashgraph.sdk.proto.Account DEFAULT_INSTANCE;
static {
Account defaultInstance = new Account();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Account.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.Account getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}