com.hederahashgraph.api.proto.java.Account Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: state/token/account.proto
package com.hederahashgraph.api.proto.java;
/**
* Protobuf type {@code proto.Account}
*/
public final class Account extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.Account)
AccountOrBuilder {
private static final long serialVersionUID = 0L;
// Use Account.newBuilder() to construct.
private Account(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Account() {
alias_ = com.google.protobuf.ByteString.EMPTY;
memo_ = "";
cryptoAllowances_ = java.util.Collections.emptyList();
approveForAllNftAllowances_ = java.util.Collections.emptyList();
tokenAllowances_ = java.util.Collections.emptyList();
firstContractStorageKey_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Account();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Account(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (accountId_ != null) {
subBuilder = accountId_.toBuilder();
}
accountId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(accountId_);
accountId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
alias_ = input.readBytes();
break;
}
case 26: {
com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null;
if (key_ != null) {
subBuilder = key_.toBuilder();
}
key_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(key_);
key_ = subBuilder.buildPartial();
}
break;
}
case 32: {
expirationSecond_ = input.readInt64();
break;
}
case 40: {
tinybarBalance_ = input.readInt64();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
memo_ = s;
break;
}
case 56: {
deleted_ = input.readBool();
break;
}
case 64: {
stakedToMe_ = input.readInt64();
break;
}
case 72: {
stakePeriodStart_ = input.readInt64();
break;
}
case 82: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (stakedIdCase_ == 10) {
subBuilder = ((com.hederahashgraph.api.proto.java.AccountID) stakedId_).toBuilder();
}
stakedId_ =
input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.AccountID) stakedId_);
stakedId_ = subBuilder.buildPartial();
}
stakedIdCase_ = 10;
break;
}
case 88: {
stakedIdCase_ = 11;
stakedId_ = input.readInt64();
break;
}
case 96: {
declineReward_ = input.readBool();
break;
}
case 104: {
receiverSigRequired_ = input.readBool();
break;
}
case 114: {
com.hederahashgraph.api.proto.java.TokenID.Builder subBuilder = null;
if (headTokenId_ != null) {
subBuilder = headTokenId_.toBuilder();
}
headTokenId_ = input.readMessage(com.hederahashgraph.api.proto.java.TokenID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(headTokenId_);
headTokenId_ = subBuilder.buildPartial();
}
break;
}
case 122: {
com.hederahashgraph.api.proto.java.NftID.Builder subBuilder = null;
if (headNftId_ != null) {
subBuilder = headNftId_.toBuilder();
}
headNftId_ = input.readMessage(com.hederahashgraph.api.proto.java.NftID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(headNftId_);
headNftId_ = subBuilder.buildPartial();
}
break;
}
case 128: {
headNftSerialNumber_ = input.readInt64();
break;
}
case 136: {
numberOwnedNfts_ = input.readInt64();
break;
}
case 144: {
maxAutoAssociations_ = input.readInt32();
break;
}
case 152: {
usedAutoAssociations_ = input.readInt32();
break;
}
case 160: {
numberAssociations_ = input.readInt32();
break;
}
case 168: {
smartContract_ = input.readBool();
break;
}
case 176: {
numberPositiveBalances_ = input.readInt32();
break;
}
case 184: {
ethereumNonce_ = input.readInt64();
break;
}
case 192: {
stakeAtStartOfLastRewardedPeriod_ = input.readInt64();
break;
}
case 202: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (autoRenewAccountId_ != null) {
subBuilder = autoRenewAccountId_.toBuilder();
}
autoRenewAccountId_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(autoRenewAccountId_);
autoRenewAccountId_ = subBuilder.buildPartial();
}
break;
}
case 208: {
autoRenewSeconds_ = input.readInt64();
break;
}
case 216: {
contractKvPairsNumber_ = input.readInt32();
break;
}
case 226: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
cryptoAllowances_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
cryptoAllowances_.add(
input.readMessage(com.hederahashgraph.api.proto.java.AccountCryptoAllowance.parser(), extensionRegistry));
break;
}
case 234: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
approveForAllNftAllowances_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
approveForAllNftAllowances_.add(
input.readMessage(com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.parser(), extensionRegistry));
break;
}
case 242: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
tokenAllowances_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
tokenAllowances_.add(
input.readMessage(com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.parser(), extensionRegistry));
break;
}
case 248: {
numberTreasuryTitles_ = input.readUInt32();
break;
}
case 256: {
expiredAndPendingRemoval_ = input.readBool();
break;
}
case 266: {
firstContractStorageKey_ = input.readBytes();
break;
}
case 274: {
com.hederahashgraph.api.proto.java.PendingAirdropId.Builder subBuilder = null;
if (headPendingAirdropId_ != null) {
subBuilder = headPendingAirdropId_.toBuilder();
}
headPendingAirdropId_ = input.readMessage(com.hederahashgraph.api.proto.java.PendingAirdropId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(headPendingAirdropId_);
headPendingAirdropId_ = subBuilder.buildPartial();
}
break;
}
case 280: {
numberPendingAirdrops_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
cryptoAllowances_ = java.util.Collections.unmodifiableList(cryptoAllowances_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
approveForAllNftAllowances_ = java.util.Collections.unmodifiableList(approveForAllNftAllowances_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
tokenAllowances_ = java.util.Collections.unmodifiableList(tokenAllowances_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.AccountOuterClass.internal_static_proto_Account_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.AccountOuterClass.internal_static_proto_Account_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.Account.class, com.hederahashgraph.api.proto.java.Account.Builder.class);
}
private int stakedIdCase_ = 0;
private java.lang.Object stakedId_;
public enum StakedIdCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
STAKED_ACCOUNT_ID(10),
STAKED_NODE_ID(11),
STAKEDID_NOT_SET(0);
private final int value;
private StakedIdCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @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;
}
};
public StakedIdCase
getStakedIdCase() {
return StakedIdCase.forNumber(
stakedIdCase_);
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.AccountID accountId_;
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
* @return Whether the accountId field is set.
*/
@java.lang.Override
public boolean hasAccountId() {
return accountId_ != null;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
* @return The accountId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountID getAccountId() {
return accountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountId_;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIdOrBuilder() {
return getAccountId();
}
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_;
}
public static final int KEY_FIELD_NUMBER = 3;
private com.hederahashgraph.api.proto.java.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;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return key_ != null;
}
/**
*
**
* (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;
* @return The key.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Key getKey() {
return key_ == null ? com.hederahashgraph.api.proto.java.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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.KeyOrBuilder getKeyOrBuilder() {
return getKey();
}
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_;
}
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_;
}
public static final int MEMO_FIELD_NUMBER = 6;
private volatile java.lang.Object 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() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
}
}
/**
*
**
* 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() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int 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_;
}
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_;
}
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_;
}
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;
* @return Whether the stakedAccountId field is set.
*/
@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;
* @return The stakedAccountId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountID getStakedAccountId() {
if (stakedIdCase_ == 10) {
return (com.hederahashgraph.api.proto.java.AccountID) stakedId_;
}
return com.hederahashgraph.api.proto.java.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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getStakedAccountIdOrBuilder() {
if (stakedIdCase_ == 10) {
return (com.hederahashgraph.api.proto.java.AccountID) stakedId_;
}
return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance();
}
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;
}
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_;
}
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_;
}
public static final int HEAD_TOKEN_ID_FIELD_NUMBER = 14;
private com.hederahashgraph.api.proto.java.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;
* @return Whether the headTokenId field is set.
*/
@java.lang.Override
public boolean hasHeadTokenId() {
return headTokenId_ != null;
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
* @return The headTokenId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenID getHeadTokenId() {
return headTokenId_ == null ? com.hederahashgraph.api.proto.java.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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenIDOrBuilder getHeadTokenIdOrBuilder() {
return getHeadTokenId();
}
public static final int HEAD_NFT_ID_FIELD_NUMBER = 15;
private com.hederahashgraph.api.proto.java.NftID headNftId_;
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
* @return Whether the headNftId field is set.
*/
@java.lang.Override
public boolean hasHeadNftId() {
return headNftId_ != null;
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
* @return The headNftId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.NftID getHeadNftId() {
return headNftId_ == null ? com.hederahashgraph.api.proto.java.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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.NftIDOrBuilder getHeadNftIdOrBuilder() {
return getHeadNftId();
}
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_;
}
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_;
}
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_;
}
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_;
}
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_;
}
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_;
}
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_;
}
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_;
}
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_;
}
public static final int AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER = 25;
private com.hederahashgraph.api.proto.java.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;
* @return Whether the autoRenewAccountId field is set.
*/
@java.lang.Override
public boolean hasAutoRenewAccountId() {
return autoRenewAccountId_ != null;
}
/**
*
**
* (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;
* @return The autoRenewAccountId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountID getAutoRenewAccountId() {
return autoRenewAccountId_ == null ? com.hederahashgraph.api.proto.java.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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() {
return getAutoRenewAccountId();
}
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_;
}
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_;
}
public static final int CRYPTO_ALLOWANCES_FIELD_NUMBER = 28;
private java.util.List 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;
*/
@java.lang.Override
public java.util.List extends com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountCryptoAllowanceOrBuilder getCryptoAllowancesOrBuilder(
int index) {
return cryptoAllowances_.get(index);
}
public static final int APPROVE_FOR_ALL_NFT_ALLOWANCES_FIELD_NUMBER = 29;
private java.util.List 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;
*/
@java.lang.Override
public java.util.List extends com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowanceOrBuilder getApproveForAllNftAllowancesOrBuilder(
int index) {
return approveForAllNftAllowances_.get(index);
}
public static final int TOKEN_ALLOWANCES_FIELD_NUMBER = 30;
private java.util.List 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;
*/
@java.lang.Override
public java.util.List extends com.hederahashgraph.api.proto.java.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.hederahashgraph.api.proto.java.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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowanceOrBuilder getTokenAllowancesOrBuilder(
int index) {
return tokenAllowances_.get(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_;
}
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_;
}
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_;
}
public static final int HEAD_PENDING_AIRDROP_ID_FIELD_NUMBER = 34;
private com.hederahashgraph.api.proto.java.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;
* @return Whether the headPendingAirdropId field is set.
*/
@java.lang.Override
public boolean hasHeadPendingAirdropId() {
return headPendingAirdropId_ != null;
}
/**
*
**
* 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;
* @return The headPendingAirdropId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.PendingAirdropId getHeadPendingAirdropId() {
return headPendingAirdropId_ == null ? com.hederahashgraph.api.proto.java.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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.PendingAirdropIdOrBuilder getHeadPendingAirdropIdOrBuilder() {
return getHeadPendingAirdropId();
}
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_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (accountId_ != null) {
output.writeMessage(1, getAccountId());
}
if (!alias_.isEmpty()) {
output.writeBytes(2, alias_);
}
if (key_ != null) {
output.writeMessage(3, getKey());
}
if (expirationSecond_ != 0L) {
output.writeInt64(4, expirationSecond_);
}
if (tinybarBalance_ != 0L) {
output.writeInt64(5, tinybarBalance_);
}
if (!getMemoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, memo_);
}
if (deleted_ != false) {
output.writeBool(7, deleted_);
}
if (stakedToMe_ != 0L) {
output.writeInt64(8, stakedToMe_);
}
if (stakePeriodStart_ != 0L) {
output.writeInt64(9, stakePeriodStart_);
}
if (stakedIdCase_ == 10) {
output.writeMessage(10, (com.hederahashgraph.api.proto.java.AccountID) stakedId_);
}
if (stakedIdCase_ == 11) {
output.writeInt64(
11, (long)((java.lang.Long) stakedId_));
}
if (declineReward_ != false) {
output.writeBool(12, declineReward_);
}
if (receiverSigRequired_ != false) {
output.writeBool(13, receiverSigRequired_);
}
if (headTokenId_ != null) {
output.writeMessage(14, getHeadTokenId());
}
if (headNftId_ != null) {
output.writeMessage(15, getHeadNftId());
}
if (headNftSerialNumber_ != 0L) {
output.writeInt64(16, headNftSerialNumber_);
}
if (numberOwnedNfts_ != 0L) {
output.writeInt64(17, numberOwnedNfts_);
}
if (maxAutoAssociations_ != 0) {
output.writeInt32(18, maxAutoAssociations_);
}
if (usedAutoAssociations_ != 0) {
output.writeInt32(19, usedAutoAssociations_);
}
if (numberAssociations_ != 0) {
output.writeInt32(20, numberAssociations_);
}
if (smartContract_ != false) {
output.writeBool(21, smartContract_);
}
if (numberPositiveBalances_ != 0) {
output.writeInt32(22, numberPositiveBalances_);
}
if (ethereumNonce_ != 0L) {
output.writeInt64(23, ethereumNonce_);
}
if (stakeAtStartOfLastRewardedPeriod_ != 0L) {
output.writeInt64(24, stakeAtStartOfLastRewardedPeriod_);
}
if (autoRenewAccountId_ != null) {
output.writeMessage(25, getAutoRenewAccountId());
}
if (autoRenewSeconds_ != 0L) {
output.writeInt64(26, autoRenewSeconds_);
}
if (contractKvPairsNumber_ != 0) {
output.writeInt32(27, contractKvPairsNumber_);
}
for (int i = 0; i < cryptoAllowances_.size(); i++) {
output.writeMessage(28, cryptoAllowances_.get(i));
}
for (int i = 0; i < approveForAllNftAllowances_.size(); i++) {
output.writeMessage(29, approveForAllNftAllowances_.get(i));
}
for (int i = 0; i < tokenAllowances_.size(); i++) {
output.writeMessage(30, tokenAllowances_.get(i));
}
if (numberTreasuryTitles_ != 0) {
output.writeUInt32(31, numberTreasuryTitles_);
}
if (expiredAndPendingRemoval_ != false) {
output.writeBool(32, expiredAndPendingRemoval_);
}
if (!firstContractStorageKey_.isEmpty()) {
output.writeBytes(33, firstContractStorageKey_);
}
if (headPendingAirdropId_ != null) {
output.writeMessage(34, getHeadPendingAirdropId());
}
if (numberPendingAirdrops_ != 0L) {
output.writeUInt64(35, numberPendingAirdrops_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (accountId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAccountId());
}
if (!alias_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, alias_);
}
if (key_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getKey());
}
if (expirationSecond_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, expirationSecond_);
}
if (tinybarBalance_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, tinybarBalance_);
}
if (!getMemoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, memo_);
}
if (deleted_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, deleted_);
}
if (stakedToMe_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, stakedToMe_);
}
if (stakePeriodStart_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, stakePeriodStart_);
}
if (stakedIdCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (com.hederahashgraph.api.proto.java.AccountID) stakedId_);
}
if (stakedIdCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
11, (long)((java.lang.Long) stakedId_));
}
if (declineReward_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, declineReward_);
}
if (receiverSigRequired_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, receiverSigRequired_);
}
if (headTokenId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getHeadTokenId());
}
if (headNftId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getHeadNftId());
}
if (headNftSerialNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(16, headNftSerialNumber_);
}
if (numberOwnedNfts_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(17, numberOwnedNfts_);
}
if (maxAutoAssociations_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(18, maxAutoAssociations_);
}
if (usedAutoAssociations_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(19, usedAutoAssociations_);
}
if (numberAssociations_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(20, numberAssociations_);
}
if (smartContract_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(21, smartContract_);
}
if (numberPositiveBalances_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(22, numberPositiveBalances_);
}
if (ethereumNonce_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(23, ethereumNonce_);
}
if (stakeAtStartOfLastRewardedPeriod_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(24, stakeAtStartOfLastRewardedPeriod_);
}
if (autoRenewAccountId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, getAutoRenewAccountId());
}
if (autoRenewSeconds_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(26, autoRenewSeconds_);
}
if (contractKvPairsNumber_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(27, contractKvPairsNumber_);
}
for (int i = 0; i < cryptoAllowances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(28, cryptoAllowances_.get(i));
}
for (int i = 0; i < approveForAllNftAllowances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(29, approveForAllNftAllowances_.get(i));
}
for (int i = 0; i < tokenAllowances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, tokenAllowances_.get(i));
}
if (numberTreasuryTitles_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(31, numberTreasuryTitles_);
}
if (expiredAndPendingRemoval_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(32, expiredAndPendingRemoval_);
}
if (!firstContractStorageKey_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(33, firstContractStorageKey_);
}
if (headPendingAirdropId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(34, getHeadPendingAirdropId());
}
if (numberPendingAirdrops_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(35, numberPendingAirdrops_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.Account)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.Account other = (com.hederahashgraph.api.proto.java.Account) obj;
if (hasAccountId() != other.hasAccountId()) return false;
if (hasAccountId()) {
if (!getAccountId()
.equals(other.getAccountId())) return false;
}
if (!getAlias()
.equals(other.getAlias())) return false;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (getExpirationSecond()
!= other.getExpirationSecond()) return false;
if (getTinybarBalance()
!= other.getTinybarBalance()) return false;
if (!getMemo()
.equals(other.getMemo())) return false;
if (getDeleted()
!= other.getDeleted()) return false;
if (getStakedToMe()
!= other.getStakedToMe()) return false;
if (getStakePeriodStart()
!= other.getStakePeriodStart()) return false;
if (getDeclineReward()
!= other.getDeclineReward()) return false;
if (getReceiverSigRequired()
!= other.getReceiverSigRequired()) return false;
if (hasHeadTokenId() != other.hasHeadTokenId()) return false;
if (hasHeadTokenId()) {
if (!getHeadTokenId()
.equals(other.getHeadTokenId())) return false;
}
if (hasHeadNftId() != other.hasHeadNftId()) return false;
if (hasHeadNftId()) {
if (!getHeadNftId()
.equals(other.getHeadNftId())) return false;
}
if (getHeadNftSerialNumber()
!= other.getHeadNftSerialNumber()) return false;
if (getNumberOwnedNfts()
!= other.getNumberOwnedNfts()) return false;
if (getMaxAutoAssociations()
!= other.getMaxAutoAssociations()) return false;
if (getUsedAutoAssociations()
!= other.getUsedAutoAssociations()) return false;
if (getNumberAssociations()
!= other.getNumberAssociations()) return false;
if (getSmartContract()
!= other.getSmartContract()) return false;
if (getNumberPositiveBalances()
!= other.getNumberPositiveBalances()) return false;
if (getEthereumNonce()
!= other.getEthereumNonce()) return false;
if (getStakeAtStartOfLastRewardedPeriod()
!= other.getStakeAtStartOfLastRewardedPeriod()) return false;
if (hasAutoRenewAccountId() != other.hasAutoRenewAccountId()) return false;
if (hasAutoRenewAccountId()) {
if (!getAutoRenewAccountId()
.equals(other.getAutoRenewAccountId())) return false;
}
if (getAutoRenewSeconds()
!= other.getAutoRenewSeconds()) return false;
if (getContractKvPairsNumber()
!= other.getContractKvPairsNumber()) return false;
if (!getCryptoAllowancesList()
.equals(other.getCryptoAllowancesList())) return false;
if (!getApproveForAllNftAllowancesList()
.equals(other.getApproveForAllNftAllowancesList())) return false;
if (!getTokenAllowancesList()
.equals(other.getTokenAllowancesList())) return false;
if (getNumberTreasuryTitles()
!= other.getNumberTreasuryTitles()) return false;
if (getExpiredAndPendingRemoval()
!= other.getExpiredAndPendingRemoval()) return false;
if (!getFirstContractStorageKey()
.equals(other.getFirstContractStorageKey())) return false;
if (hasHeadPendingAirdropId() != other.hasHeadPendingAirdropId()) return false;
if (hasHeadPendingAirdropId()) {
if (!getHeadPendingAirdropId()
.equals(other.getHeadPendingAirdropId())) return false;
}
if (getNumberPendingAirdrops()
!= other.getNumberPendingAirdrops()) return false;
if (!getStakedIdCase().equals(other.getStakedIdCase())) return false;
switch (stakedIdCase_) {
case 10:
if (!getStakedAccountId()
.equals(other.getStakedAccountId())) return false;
break;
case 11:
if (getStakedNodeId()
!= other.getStakedNodeId()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAccountId()) {
hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAccountId().hashCode();
}
hash = (37 * hash) + ALIAS_FIELD_NUMBER;
hash = (53 * hash) + getAlias().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
hash = (37 * hash) + EXPIRATION_SECOND_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExpirationSecond());
hash = (37 * hash) + TINYBAR_BALANCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTinybarBalance());
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (37 * hash) + DELETED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeleted());
hash = (37 * hash) + STAKED_TO_ME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStakedToMe());
hash = (37 * hash) + STAKE_PERIOD_START_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStakePeriodStart());
hash = (37 * hash) + DECLINE_REWARD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeclineReward());
hash = (37 * hash) + RECEIVER_SIG_REQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReceiverSigRequired());
if (hasHeadTokenId()) {
hash = (37 * hash) + HEAD_TOKEN_ID_FIELD_NUMBER;
hash = (53 * hash) + getHeadTokenId().hashCode();
}
if (hasHeadNftId()) {
hash = (37 * hash) + HEAD_NFT_ID_FIELD_NUMBER;
hash = (53 * hash) + getHeadNftId().hashCode();
}
hash = (37 * hash) + HEAD_NFT_SERIAL_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHeadNftSerialNumber());
hash = (37 * hash) + NUMBER_OWNED_NFTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumberOwnedNfts());
hash = (37 * hash) + MAX_AUTO_ASSOCIATIONS_FIELD_NUMBER;
hash = (53 * hash) + getMaxAutoAssociations();
hash = (37 * hash) + USED_AUTO_ASSOCIATIONS_FIELD_NUMBER;
hash = (53 * hash) + getUsedAutoAssociations();
hash = (37 * hash) + NUMBER_ASSOCIATIONS_FIELD_NUMBER;
hash = (53 * hash) + getNumberAssociations();
hash = (37 * hash) + SMART_CONTRACT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSmartContract());
hash = (37 * hash) + NUMBER_POSITIVE_BALANCES_FIELD_NUMBER;
hash = (53 * hash) + getNumberPositiveBalances();
hash = (37 * hash) + ETHEREUM_NONCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEthereumNonce());
hash = (37 * hash) + STAKE_AT_START_OF_LAST_REWARDED_PERIOD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStakeAtStartOfLastRewardedPeriod());
if (hasAutoRenewAccountId()) {
hash = (37 * hash) + AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAutoRenewAccountId().hashCode();
}
hash = (37 * hash) + AUTO_RENEW_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAutoRenewSeconds());
hash = (37 * hash) + CONTRACT_KV_PAIRS_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getContractKvPairsNumber();
if (getCryptoAllowancesCount() > 0) {
hash = (37 * hash) + CRYPTO_ALLOWANCES_FIELD_NUMBER;
hash = (53 * hash) + getCryptoAllowancesList().hashCode();
}
if (getApproveForAllNftAllowancesCount() > 0) {
hash = (37 * hash) + APPROVE_FOR_ALL_NFT_ALLOWANCES_FIELD_NUMBER;
hash = (53 * hash) + getApproveForAllNftAllowancesList().hashCode();
}
if (getTokenAllowancesCount() > 0) {
hash = (37 * hash) + TOKEN_ALLOWANCES_FIELD_NUMBER;
hash = (53 * hash) + getTokenAllowancesList().hashCode();
}
hash = (37 * hash) + NUMBER_TREASURY_TITLES_FIELD_NUMBER;
hash = (53 * hash) + getNumberTreasuryTitles();
hash = (37 * hash) + EXPIRED_AND_PENDING_REMOVAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getExpiredAndPendingRemoval());
hash = (37 * hash) + FIRST_CONTRACT_STORAGE_KEY_FIELD_NUMBER;
hash = (53 * hash) + getFirstContractStorageKey().hashCode();
if (hasHeadPendingAirdropId()) {
hash = (37 * hash) + HEAD_PENDING_AIRDROP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHeadPendingAirdropId().hashCode();
}
hash = (37 * hash) + NUMBER_PENDING_AIRDROPS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumberPendingAirdrops());
switch (stakedIdCase_) {
case 10:
hash = (37 * hash) + STAKED_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getStakedAccountId().hashCode();
break;
case 11:
hash = (37 * hash) + STAKED_NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStakedNodeId());
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.Account parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.Account parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.Account parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.Account parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.Account parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.Account parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.Account parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.Account parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.Account parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.Account parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.Account parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.Account parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hederahashgraph.api.proto.java.Account prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto.Account}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.Account)
com.hederahashgraph.api.proto.java.AccountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.AccountOuterClass.internal_static_proto_Account_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.AccountOuterClass.internal_static_proto_Account_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.Account.class, com.hederahashgraph.api.proto.java.Account.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.Account.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCryptoAllowancesFieldBuilder();
getApproveForAllNftAllowancesFieldBuilder();
getTokenAllowancesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (accountIdBuilder_ == null) {
accountId_ = null;
} else {
accountId_ = null;
accountIdBuilder_ = null;
}
alias_ = com.google.protobuf.ByteString.EMPTY;
if (keyBuilder_ == null) {
key_ = null;
} else {
key_ = null;
keyBuilder_ = null;
}
expirationSecond_ = 0L;
tinybarBalance_ = 0L;
memo_ = "";
deleted_ = false;
stakedToMe_ = 0L;
stakePeriodStart_ = 0L;
declineReward_ = false;
receiverSigRequired_ = false;
if (headTokenIdBuilder_ == null) {
headTokenId_ = null;
} else {
headTokenId_ = null;
headTokenIdBuilder_ = null;
}
if (headNftIdBuilder_ == null) {
headNftId_ = null;
} else {
headNftId_ = null;
headNftIdBuilder_ = null;
}
headNftSerialNumber_ = 0L;
numberOwnedNfts_ = 0L;
maxAutoAssociations_ = 0;
usedAutoAssociations_ = 0;
numberAssociations_ = 0;
smartContract_ = false;
numberPositiveBalances_ = 0;
ethereumNonce_ = 0L;
stakeAtStartOfLastRewardedPeriod_ = 0L;
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountId_ = null;
} else {
autoRenewAccountId_ = null;
autoRenewAccountIdBuilder_ = null;
}
autoRenewSeconds_ = 0L;
contractKvPairsNumber_ = 0;
if (cryptoAllowancesBuilder_ == null) {
cryptoAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
cryptoAllowancesBuilder_.clear();
}
if (approveForAllNftAllowancesBuilder_ == null) {
approveForAllNftAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
approveForAllNftAllowancesBuilder_.clear();
}
if (tokenAllowancesBuilder_ == null) {
tokenAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
tokenAllowancesBuilder_.clear();
}
numberTreasuryTitles_ = 0;
expiredAndPendingRemoval_ = false;
firstContractStorageKey_ = com.google.protobuf.ByteString.EMPTY;
if (headPendingAirdropIdBuilder_ == null) {
headPendingAirdropId_ = null;
} else {
headPendingAirdropId_ = null;
headPendingAirdropIdBuilder_ = null;
}
numberPendingAirdrops_ = 0L;
stakedIdCase_ = 0;
stakedId_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.AccountOuterClass.internal_static_proto_Account_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Account getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.Account.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Account build() {
com.hederahashgraph.api.proto.java.Account result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Account buildPartial() {
com.hederahashgraph.api.proto.java.Account result = new com.hederahashgraph.api.proto.java.Account(this);
int from_bitField0_ = bitField0_;
if (accountIdBuilder_ == null) {
result.accountId_ = accountId_;
} else {
result.accountId_ = accountIdBuilder_.build();
}
result.alias_ = alias_;
if (keyBuilder_ == null) {
result.key_ = key_;
} else {
result.key_ = keyBuilder_.build();
}
result.expirationSecond_ = expirationSecond_;
result.tinybarBalance_ = tinybarBalance_;
result.memo_ = memo_;
result.deleted_ = deleted_;
result.stakedToMe_ = stakedToMe_;
result.stakePeriodStart_ = stakePeriodStart_;
if (stakedIdCase_ == 10) {
if (stakedAccountIdBuilder_ == null) {
result.stakedId_ = stakedId_;
} else {
result.stakedId_ = stakedAccountIdBuilder_.build();
}
}
if (stakedIdCase_ == 11) {
result.stakedId_ = stakedId_;
}
result.declineReward_ = declineReward_;
result.receiverSigRequired_ = receiverSigRequired_;
if (headTokenIdBuilder_ == null) {
result.headTokenId_ = headTokenId_;
} else {
result.headTokenId_ = headTokenIdBuilder_.build();
}
if (headNftIdBuilder_ == null) {
result.headNftId_ = headNftId_;
} else {
result.headNftId_ = headNftIdBuilder_.build();
}
result.headNftSerialNumber_ = headNftSerialNumber_;
result.numberOwnedNfts_ = numberOwnedNfts_;
result.maxAutoAssociations_ = maxAutoAssociations_;
result.usedAutoAssociations_ = usedAutoAssociations_;
result.numberAssociations_ = numberAssociations_;
result.smartContract_ = smartContract_;
result.numberPositiveBalances_ = numberPositiveBalances_;
result.ethereumNonce_ = ethereumNonce_;
result.stakeAtStartOfLastRewardedPeriod_ = stakeAtStartOfLastRewardedPeriod_;
if (autoRenewAccountIdBuilder_ == null) {
result.autoRenewAccountId_ = autoRenewAccountId_;
} else {
result.autoRenewAccountId_ = autoRenewAccountIdBuilder_.build();
}
result.autoRenewSeconds_ = autoRenewSeconds_;
result.contractKvPairsNumber_ = contractKvPairsNumber_;
if (cryptoAllowancesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
cryptoAllowances_ = java.util.Collections.unmodifiableList(cryptoAllowances_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.cryptoAllowances_ = cryptoAllowances_;
} else {
result.cryptoAllowances_ = cryptoAllowancesBuilder_.build();
}
if (approveForAllNftAllowancesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
approveForAllNftAllowances_ = java.util.Collections.unmodifiableList(approveForAllNftAllowances_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.approveForAllNftAllowances_ = approveForAllNftAllowances_;
} else {
result.approveForAllNftAllowances_ = approveForAllNftAllowancesBuilder_.build();
}
if (tokenAllowancesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
tokenAllowances_ = java.util.Collections.unmodifiableList(tokenAllowances_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.tokenAllowances_ = tokenAllowances_;
} else {
result.tokenAllowances_ = tokenAllowancesBuilder_.build();
}
result.numberTreasuryTitles_ = numberTreasuryTitles_;
result.expiredAndPendingRemoval_ = expiredAndPendingRemoval_;
result.firstContractStorageKey_ = firstContractStorageKey_;
if (headPendingAirdropIdBuilder_ == null) {
result.headPendingAirdropId_ = headPendingAirdropId_;
} else {
result.headPendingAirdropId_ = headPendingAirdropIdBuilder_.build();
}
result.numberPendingAirdrops_ = numberPendingAirdrops_;
result.stakedIdCase_ = stakedIdCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.Account) {
return mergeFrom((com.hederahashgraph.api.proto.java.Account)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.Account other) {
if (other == com.hederahashgraph.api.proto.java.Account.getDefaultInstance()) return this;
if (other.hasAccountId()) {
mergeAccountId(other.getAccountId());
}
if (other.getAlias() != com.google.protobuf.ByteString.EMPTY) {
setAlias(other.getAlias());
}
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (other.getExpirationSecond() != 0L) {
setExpirationSecond(other.getExpirationSecond());
}
if (other.getTinybarBalance() != 0L) {
setTinybarBalance(other.getTinybarBalance());
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
onChanged();
}
if (other.getDeleted() != false) {
setDeleted(other.getDeleted());
}
if (other.getStakedToMe() != 0L) {
setStakedToMe(other.getStakedToMe());
}
if (other.getStakePeriodStart() != 0L) {
setStakePeriodStart(other.getStakePeriodStart());
}
if (other.getDeclineReward() != false) {
setDeclineReward(other.getDeclineReward());
}
if (other.getReceiverSigRequired() != false) {
setReceiverSigRequired(other.getReceiverSigRequired());
}
if (other.hasHeadTokenId()) {
mergeHeadTokenId(other.getHeadTokenId());
}
if (other.hasHeadNftId()) {
mergeHeadNftId(other.getHeadNftId());
}
if (other.getHeadNftSerialNumber() != 0L) {
setHeadNftSerialNumber(other.getHeadNftSerialNumber());
}
if (other.getNumberOwnedNfts() != 0L) {
setNumberOwnedNfts(other.getNumberOwnedNfts());
}
if (other.getMaxAutoAssociations() != 0) {
setMaxAutoAssociations(other.getMaxAutoAssociations());
}
if (other.getUsedAutoAssociations() != 0) {
setUsedAutoAssociations(other.getUsedAutoAssociations());
}
if (other.getNumberAssociations() != 0) {
setNumberAssociations(other.getNumberAssociations());
}
if (other.getSmartContract() != false) {
setSmartContract(other.getSmartContract());
}
if (other.getNumberPositiveBalances() != 0) {
setNumberPositiveBalances(other.getNumberPositiveBalances());
}
if (other.getEthereumNonce() != 0L) {
setEthereumNonce(other.getEthereumNonce());
}
if (other.getStakeAtStartOfLastRewardedPeriod() != 0L) {
setStakeAtStartOfLastRewardedPeriod(other.getStakeAtStartOfLastRewardedPeriod());
}
if (other.hasAutoRenewAccountId()) {
mergeAutoRenewAccountId(other.getAutoRenewAccountId());
}
if (other.getAutoRenewSeconds() != 0L) {
setAutoRenewSeconds(other.getAutoRenewSeconds());
}
if (other.getContractKvPairsNumber() != 0) {
setContractKvPairsNumber(other.getContractKvPairsNumber());
}
if (cryptoAllowancesBuilder_ == null) {
if (!other.cryptoAllowances_.isEmpty()) {
if (cryptoAllowances_.isEmpty()) {
cryptoAllowances_ = other.cryptoAllowances_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.addAll(other.cryptoAllowances_);
}
onChanged();
}
} else {
if (!other.cryptoAllowances_.isEmpty()) {
if (cryptoAllowancesBuilder_.isEmpty()) {
cryptoAllowancesBuilder_.dispose();
cryptoAllowancesBuilder_ = null;
cryptoAllowances_ = other.cryptoAllowances_;
bitField0_ = (bitField0_ & ~0x00000001);
cryptoAllowancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCryptoAllowancesFieldBuilder() : null;
} else {
cryptoAllowancesBuilder_.addAllMessages(other.cryptoAllowances_);
}
}
}
if (approveForAllNftAllowancesBuilder_ == null) {
if (!other.approveForAllNftAllowances_.isEmpty()) {
if (approveForAllNftAllowances_.isEmpty()) {
approveForAllNftAllowances_ = other.approveForAllNftAllowances_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.addAll(other.approveForAllNftAllowances_);
}
onChanged();
}
} else {
if (!other.approveForAllNftAllowances_.isEmpty()) {
if (approveForAllNftAllowancesBuilder_.isEmpty()) {
approveForAllNftAllowancesBuilder_.dispose();
approveForAllNftAllowancesBuilder_ = null;
approveForAllNftAllowances_ = other.approveForAllNftAllowances_;
bitField0_ = (bitField0_ & ~0x00000002);
approveForAllNftAllowancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getApproveForAllNftAllowancesFieldBuilder() : null;
} else {
approveForAllNftAllowancesBuilder_.addAllMessages(other.approveForAllNftAllowances_);
}
}
}
if (tokenAllowancesBuilder_ == null) {
if (!other.tokenAllowances_.isEmpty()) {
if (tokenAllowances_.isEmpty()) {
tokenAllowances_ = other.tokenAllowances_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTokenAllowancesIsMutable();
tokenAllowances_.addAll(other.tokenAllowances_);
}
onChanged();
}
} else {
if (!other.tokenAllowances_.isEmpty()) {
if (tokenAllowancesBuilder_.isEmpty()) {
tokenAllowancesBuilder_.dispose();
tokenAllowancesBuilder_ = null;
tokenAllowances_ = other.tokenAllowances_;
bitField0_ = (bitField0_ & ~0x00000004);
tokenAllowancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTokenAllowancesFieldBuilder() : null;
} else {
tokenAllowancesBuilder_.addAllMessages(other.tokenAllowances_);
}
}
}
if (other.getNumberTreasuryTitles() != 0) {
setNumberTreasuryTitles(other.getNumberTreasuryTitles());
}
if (other.getExpiredAndPendingRemoval() != false) {
setExpiredAndPendingRemoval(other.getExpiredAndPendingRemoval());
}
if (other.getFirstContractStorageKey() != com.google.protobuf.ByteString.EMPTY) {
setFirstContractStorageKey(other.getFirstContractStorageKey());
}
if (other.hasHeadPendingAirdropId()) {
mergeHeadPendingAirdropId(other.getHeadPendingAirdropId());
}
if (other.getNumberPendingAirdrops() != 0L) {
setNumberPendingAirdrops(other.getNumberPendingAirdrops());
}
switch (other.getStakedIdCase()) {
case STAKED_ACCOUNT_ID: {
mergeStakedAccountId(other.getStakedAccountId());
break;
}
case STAKED_NODE_ID: {
setStakedNodeId(other.getStakedNodeId());
break;
}
case STAKEDID_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hederahashgraph.api.proto.java.Account parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.Account) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int stakedIdCase_ = 0;
private java.lang.Object stakedId_;
public StakedIdCase
getStakedIdCase() {
return StakedIdCase.forNumber(
stakedIdCase_);
}
public Builder clearStakedId() {
stakedIdCase_ = 0;
stakedId_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.hederahashgraph.api.proto.java.AccountID accountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> accountIdBuilder_;
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
* @return Whether the accountId field is set.
*/
public boolean hasAccountId() {
return accountIdBuilder_ != null || accountId_ != null;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
* @return The accountId.
*/
public com.hederahashgraph.api.proto.java.AccountID getAccountId() {
if (accountIdBuilder_ == null) {
return accountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountId_;
} else {
return accountIdBuilder_.getMessage();
}
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
public Builder setAccountId(com.hederahashgraph.api.proto.java.AccountID value) {
if (accountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
accountId_ = value;
onChanged();
} else {
accountIdBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
public Builder setAccountId(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (accountIdBuilder_ == null) {
accountId_ = builderForValue.build();
onChanged();
} else {
accountIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
public Builder mergeAccountId(com.hederahashgraph.api.proto.java.AccountID value) {
if (accountIdBuilder_ == null) {
if (accountId_ != null) {
accountId_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(accountId_).mergeFrom(value).buildPartial();
} else {
accountId_ = value;
}
onChanged();
} else {
accountIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
public Builder clearAccountId() {
if (accountIdBuilder_ == null) {
accountId_ = null;
onChanged();
} else {
accountId_ = null;
accountIdBuilder_ = null;
}
return this;
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getAccountIdBuilder() {
onChanged();
return getAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAccountIdOrBuilder() {
if (accountIdBuilder_ != null) {
return accountIdBuilder_.getMessageOrBuilder();
} else {
return accountId_ == null ?
com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : accountId_;
}
}
/**
*
**
* The unique entity id of the account.
*
*
* .proto.AccountID account_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getAccountIdFieldBuilder() {
if (accountIdBuilder_ == null) {
accountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getAccountId(),
getParentForChildren(),
isClean());
accountId_ = null;
}
return accountIdBuilder_;
}
private com.google.protobuf.ByteString alias_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* 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.
* @return This builder for chaining.
*/
public Builder setAlias(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
alias_ = value;
onChanged();
return this;
}
/**
*
**
* The alias to use for this account, if any.
*
*
* bytes alias = 2;
* @return This builder for chaining.
*/
public Builder clearAlias() {
alias_ = getDefaultInstance().getAlias();
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Key key_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> keyBuilder_;
/**
*
**
* (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;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return keyBuilder_ != null || key_ != null;
}
/**
*
**
* (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;
* @return The key.
*/
public com.hederahashgraph.api.proto.java.Key getKey() {
if (keyBuilder_ == null) {
return key_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
*
**
* (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.hederahashgraph.api.proto.java.Key value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
} else {
keyBuilder_.setMessage(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.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
onChanged();
} else {
keyBuilder_.setMessage(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.hederahashgraph.api.proto.java.Key value) {
if (keyBuilder_ == null) {
if (key_ != null) {
key_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(key_).mergeFrom(value).buildPartial();
} else {
key_ = value;
}
onChanged();
} else {
keyBuilder_.mergeFrom(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() {
if (keyBuilder_ == null) {
key_ = null;
onChanged();
} else {
key_ = null;
keyBuilder_ = null;
}
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 com.hederahashgraph.api.proto.java.Key.Builder getKeyBuilder() {
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
*
**
* (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 com.hederahashgraph.api.proto.java.KeyOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
com.hederahashgraph.api.proto.java.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 com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
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.
* @return This builder for chaining.
*/
public Builder setExpirationSecond(long value) {
expirationSecond_ = value;
onChanged();
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() {
expirationSecond_ = 0L;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setTinybarBalance(long value) {
tinybarBalance_ = value;
onChanged();
return this;
}
/**
*
**
* The balance of the account, in tiny-bars.
*
*
* int64 tinybar_balance = 5;
* @return This builder for chaining.
*/
public Builder clearTinybarBalance() {
tinybarBalance_ = 0L;
onChanged();
return this;
}
private java.lang.Object memo_ = "";
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @return The memo.
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* An optional description of the account with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 6;
* @return The bytes for memo.
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* 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) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
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() {
memo_ = getDefaultInstance().getMemo();
onChanged();
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) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
memo_ = value;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setDeleted(boolean value) {
deleted_ = value;
onChanged();
return this;
}
/**
*
**
* A boolean marking if the account has been deleted.
*
*
* bool deleted = 7;
* @return This builder for chaining.
*/
public Builder clearDeleted() {
deleted_ = false;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setStakedToMe(long value) {
stakedToMe_ = value;
onChanged();
return this;
}
/**
*
**
* The amount of hbars staked to the account.
*
*
* int64 staked_to_me = 8;
* @return This builder for chaining.
*/
public Builder clearStakedToMe() {
stakedToMe_ = 0L;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setStakePeriodStart(long value) {
stakePeriodStart_ = value;
onChanged();
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() {
stakePeriodStart_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> stakedAccountIdBuilder_;
/**
*
**
* 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;
* @return Whether the stakedAccountId field is set.
*/
@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;
* @return The stakedAccountId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountID getStakedAccountId() {
if (stakedAccountIdBuilder_ == null) {
if (stakedIdCase_ == 10) {
return (com.hederahashgraph.api.proto.java.AccountID) stakedId_;
}
return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance();
} else {
if (stakedIdCase_ == 10) {
return stakedAccountIdBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.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;
*/
public Builder setStakedAccountId(com.hederahashgraph.api.proto.java.AccountID value) {
if (stakedAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stakedId_ = value;
onChanged();
} else {
stakedAccountIdBuilder_.setMessage(value);
}
stakedIdCase_ = 10;
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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (stakedAccountIdBuilder_ == null) {
stakedId_ = builderForValue.build();
onChanged();
} else {
stakedAccountIdBuilder_.setMessage(builderForValue.build());
}
stakedIdCase_ = 10;
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.hederahashgraph.api.proto.java.AccountID value) {
if (stakedAccountIdBuilder_ == null) {
if (stakedIdCase_ == 10 &&
stakedId_ != com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance()) {
stakedId_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder((com.hederahashgraph.api.proto.java.AccountID) stakedId_)
.mergeFrom(value).buildPartial();
} else {
stakedId_ = value;
}
onChanged();
} else {
if (stakedIdCase_ == 10) {
stakedAccountIdBuilder_.mergeFrom(value);
}
stakedAccountIdBuilder_.setMessage(value);
}
stakedIdCase_ = 10;
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() {
if (stakedAccountIdBuilder_ == null) {
if (stakedIdCase_ == 10) {
stakedIdCase_ = 0;
stakedId_ = null;
onChanged();
}
} else {
if (stakedIdCase_ == 10) {
stakedIdCase_ = 0;
stakedId_ = null;
}
stakedAccountIdBuilder_.clear();
}
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 com.hederahashgraph.api.proto.java.AccountID.Builder getStakedAccountIdBuilder() {
return getStakedAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* 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.hederahashgraph.api.proto.java.AccountIDOrBuilder getStakedAccountIdOrBuilder() {
if ((stakedIdCase_ == 10) && (stakedAccountIdBuilder_ != null)) {
return stakedAccountIdBuilder_.getMessageOrBuilder();
} else {
if (stakedIdCase_ == 10) {
return (com.hederahashgraph.api.proto.java.AccountID) stakedId_;
}
return com.hederahashgraph.api.proto.java.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 com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getStakedAccountIdFieldBuilder() {
if (stakedAccountIdBuilder_ == null) {
if (!(stakedIdCase_ == 10)) {
stakedId_ = com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance();
}
stakedAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
(com.hederahashgraph.api.proto.java.AccountID) stakedId_,
getParentForChildren(),
isClean());
stakedId_ = null;
}
stakedIdCase_ = 10;
onChanged();;
return stakedAccountIdBuilder_;
}
/**
*
**
* 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.
*/
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.
*/
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.
* @return This builder for chaining.
*/
public Builder setStakedNodeId(long value) {
stakedIdCase_ = 11;
stakedId_ = value;
onChanged();
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() {
if (stakedIdCase_ == 11) {
stakedIdCase_ = 0;
stakedId_ = null;
onChanged();
}
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setDeclineReward(boolean value) {
declineReward_ = value;
onChanged();
return this;
}
/**
*
**
* A boolean marking if the account declines rewards.
*
*
* bool decline_reward = 12;
* @return This builder for chaining.
*/
public Builder clearDeclineReward() {
declineReward_ = false;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setReceiverSigRequired(boolean value) {
receiverSigRequired_ = value;
onChanged();
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() {
receiverSigRequired_ = false;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.TokenID headTokenId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder> headTokenIdBuilder_;
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
* @return Whether the headTokenId field is set.
*/
public boolean hasHeadTokenId() {
return headTokenIdBuilder_ != null || headTokenId_ != null;
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
* @return The headTokenId.
*/
public com.hederahashgraph.api.proto.java.TokenID getHeadTokenId() {
if (headTokenIdBuilder_ == null) {
return headTokenId_ == null ? com.hederahashgraph.api.proto.java.TokenID.getDefaultInstance() : headTokenId_;
} else {
return headTokenIdBuilder_.getMessage();
}
}
/**
*
**
* 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.hederahashgraph.api.proto.java.TokenID value) {
if (headTokenIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
headTokenId_ = value;
onChanged();
} else {
headTokenIdBuilder_.setMessage(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.hederahashgraph.api.proto.java.TokenID.Builder builderForValue) {
if (headTokenIdBuilder_ == null) {
headTokenId_ = builderForValue.build();
onChanged();
} else {
headTokenIdBuilder_.setMessage(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.hederahashgraph.api.proto.java.TokenID value) {
if (headTokenIdBuilder_ == null) {
if (headTokenId_ != null) {
headTokenId_ =
com.hederahashgraph.api.proto.java.TokenID.newBuilder(headTokenId_).mergeFrom(value).buildPartial();
} else {
headTokenId_ = value;
}
onChanged();
} else {
headTokenIdBuilder_.mergeFrom(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() {
if (headTokenIdBuilder_ == null) {
headTokenId_ = null;
onChanged();
} else {
headTokenId_ = null;
headTokenIdBuilder_ = null;
}
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 com.hederahashgraph.api.proto.java.TokenID.Builder getHeadTokenIdBuilder() {
onChanged();
return getHeadTokenIdFieldBuilder().getBuilder();
}
/**
*
**
* The token ID of the head of the linked list from token relations map for the account.
*
*
* .proto.TokenID head_token_id = 14;
*/
public com.hederahashgraph.api.proto.java.TokenIDOrBuilder getHeadTokenIdOrBuilder() {
if (headTokenIdBuilder_ != null) {
return headTokenIdBuilder_.getMessageOrBuilder();
} else {
return headTokenId_ == null ?
com.hederahashgraph.api.proto.java.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 com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder>
getHeadTokenIdFieldBuilder() {
if (headTokenIdBuilder_ == null) {
headTokenIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder>(
getHeadTokenId(),
getParentForChildren(),
isClean());
headTokenId_ = null;
}
return headTokenIdBuilder_;
}
private com.hederahashgraph.api.proto.java.NftID headNftId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder> headNftIdBuilder_;
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
* @return Whether the headNftId field is set.
*/
public boolean hasHeadNftId() {
return headNftIdBuilder_ != null || headNftId_ != null;
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
* @return The headNftId.
*/
public com.hederahashgraph.api.proto.java.NftID getHeadNftId() {
if (headNftIdBuilder_ == null) {
return headNftId_ == null ? com.hederahashgraph.api.proto.java.NftID.getDefaultInstance() : headNftId_;
} else {
return headNftIdBuilder_.getMessage();
}
}
/**
*
**
* 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.hederahashgraph.api.proto.java.NftID value) {
if (headNftIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
headNftId_ = value;
onChanged();
} else {
headNftIdBuilder_.setMessage(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.hederahashgraph.api.proto.java.NftID.Builder builderForValue) {
if (headNftIdBuilder_ == null) {
headNftId_ = builderForValue.build();
onChanged();
} else {
headNftIdBuilder_.setMessage(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.hederahashgraph.api.proto.java.NftID value) {
if (headNftIdBuilder_ == null) {
if (headNftId_ != null) {
headNftId_ =
com.hederahashgraph.api.proto.java.NftID.newBuilder(headNftId_).mergeFrom(value).buildPartial();
} else {
headNftId_ = value;
}
onChanged();
} else {
headNftIdBuilder_.mergeFrom(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() {
if (headNftIdBuilder_ == null) {
headNftId_ = null;
onChanged();
} else {
headNftId_ = null;
headNftIdBuilder_ = null;
}
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 com.hederahashgraph.api.proto.java.NftID.Builder getHeadNftIdBuilder() {
onChanged();
return getHeadNftIdFieldBuilder().getBuilder();
}
/**
*
**
* The NftID of the head of the linked list from unique tokens map for the account.
*
*
* .proto.NftID head_nft_id = 15;
*/
public com.hederahashgraph.api.proto.java.NftIDOrBuilder getHeadNftIdOrBuilder() {
if (headNftIdBuilder_ != null) {
return headNftIdBuilder_.getMessageOrBuilder();
} else {
return headNftId_ == null ?
com.hederahashgraph.api.proto.java.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 com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder>
getHeadNftIdFieldBuilder() {
if (headNftIdBuilder_ == null) {
headNftIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.NftID, com.hederahashgraph.api.proto.java.NftID.Builder, com.hederahashgraph.api.proto.java.NftIDOrBuilder>(
getHeadNftId(),
getParentForChildren(),
isClean());
headNftId_ = null;
}
return headNftIdBuilder_;
}
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.
* @return This builder for chaining.
*/
public Builder setHeadNftSerialNumber(long value) {
headNftSerialNumber_ = value;
onChanged();
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() {
headNftSerialNumber_ = 0L;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setNumberOwnedNfts(long value) {
numberOwnedNfts_ = value;
onChanged();
return this;
}
/**
*
**
* The number of NFTs owned by the account.
*
*
* int64 number_owned_nfts = 17;
* @return This builder for chaining.
*/
public Builder clearNumberOwnedNfts() {
numberOwnedNfts_ = 0L;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setMaxAutoAssociations(int value) {
maxAutoAssociations_ = value;
onChanged();
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() {
maxAutoAssociations_ = 0;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setUsedAutoAssociations(int value) {
usedAutoAssociations_ = value;
onChanged();
return this;
}
/**
*
**
* The number of used auto-association slots.
*
*
* int32 used_auto_associations = 19;
* @return This builder for chaining.
*/
public Builder clearUsedAutoAssociations() {
usedAutoAssociations_ = 0;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setNumberAssociations(int value) {
numberAssociations_ = value;
onChanged();
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() {
numberAssociations_ = 0;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setSmartContract(boolean value) {
smartContract_ = value;
onChanged();
return this;
}
/**
*
**
* A boolean marking if the account is a smart contract.
*
*
* bool smart_contract = 21;
* @return This builder for chaining.
*/
public Builder clearSmartContract() {
smartContract_ = false;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setNumberPositiveBalances(int value) {
numberPositiveBalances_ = value;
onChanged();
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() {
numberPositiveBalances_ = 0;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setEthereumNonce(long value) {
ethereumNonce_ = value;
onChanged();
return this;
}
/**
*
**
* The nonce of the account, used for Ethereum interoperability.
*
*
* int64 ethereum_nonce = 23;
* @return This builder for chaining.
*/
public Builder clearEthereumNonce() {
ethereumNonce_ = 0L;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setStakeAtStartOfLastRewardedPeriod(long value) {
stakeAtStartOfLastRewardedPeriod_ = value;
onChanged();
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() {
stakeAtStartOfLastRewardedPeriod_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.AccountID autoRenewAccountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> autoRenewAccountIdBuilder_;
/**
*
**
* (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;
* @return Whether the autoRenewAccountId field is set.
*/
public boolean hasAutoRenewAccountId() {
return autoRenewAccountIdBuilder_ != null || autoRenewAccountId_ != null;
}
/**
*
**
* (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;
* @return The autoRenewAccountId.
*/
public com.hederahashgraph.api.proto.java.AccountID getAutoRenewAccountId() {
if (autoRenewAccountIdBuilder_ == null) {
return autoRenewAccountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : autoRenewAccountId_;
} else {
return autoRenewAccountIdBuilder_.getMessage();
}
}
/**
*
**
* (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.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewAccountId_ = value;
onChanged();
} else {
autoRenewAccountIdBuilder_.setMessage(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.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountId_ = builderForValue.build();
onChanged();
} else {
autoRenewAccountIdBuilder_.setMessage(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.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountIdBuilder_ == null) {
if (autoRenewAccountId_ != null) {
autoRenewAccountId_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(autoRenewAccountId_).mergeFrom(value).buildPartial();
} else {
autoRenewAccountId_ = value;
}
onChanged();
} else {
autoRenewAccountIdBuilder_.mergeFrom(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() {
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountId_ = null;
onChanged();
} else {
autoRenewAccountId_ = null;
autoRenewAccountIdBuilder_ = null;
}
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 com.hederahashgraph.api.proto.java.AccountID.Builder getAutoRenewAccountIdBuilder() {
onChanged();
return getAutoRenewAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* (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 com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() {
if (autoRenewAccountIdBuilder_ != null) {
return autoRenewAccountIdBuilder_.getMessageOrBuilder();
} else {
return autoRenewAccountId_ == null ?
com.hederahashgraph.api.proto.java.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 com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getAutoRenewAccountIdFieldBuilder() {
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getAutoRenewAccountId(),
getParentForChildren(),
isClean());
autoRenewAccountId_ = null;
}
return autoRenewAccountIdBuilder_;
}
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.
* @return This builder for chaining.
*/
public Builder setAutoRenewSeconds(long value) {
autoRenewSeconds_ = value;
onChanged();
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() {
autoRenewSeconds_ = 0L;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setContractKvPairsNumber(int value) {
contractKvPairsNumber_ = value;
onChanged();
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() {
contractKvPairsNumber_ = 0;
onChanged();
return this;
}
private java.util.List cryptoAllowances_ =
java.util.Collections.emptyList();
private void ensureCryptoAllowancesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
cryptoAllowances_ = new java.util.ArrayList(cryptoAllowances_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountCryptoAllowance, com.hederahashgraph.api.proto.java.AccountCryptoAllowance.Builder, com.hederahashgraph.api.proto.java.AccountCryptoAllowanceOrBuilder> cryptoAllowancesBuilder_;
/**
*
**
* (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 getCryptoAllowancesList() {
if (cryptoAllowancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(cryptoAllowances_);
} else {
return cryptoAllowancesBuilder_.getMessageList();
}
}
/**
*
**
* (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 int getCryptoAllowancesCount() {
if (cryptoAllowancesBuilder_ == null) {
return cryptoAllowances_.size();
} else {
return cryptoAllowancesBuilder_.getCount();
}
}
/**
*
**
* (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.hederahashgraph.api.proto.java.AccountCryptoAllowance getCryptoAllowances(int index) {
if (cryptoAllowancesBuilder_ == null) {
return cryptoAllowances_.get(index);
} else {
return cryptoAllowancesBuilder_.getMessage(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.hederahashgraph.api.proto.java.AccountCryptoAllowance value) {
if (cryptoAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.set(index, value);
onChanged();
} else {
cryptoAllowancesBuilder_.setMessage(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.hederahashgraph.api.proto.java.AccountCryptoAllowance.Builder builderForValue) {
if (cryptoAllowancesBuilder_ == null) {
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.set(index, builderForValue.build());
onChanged();
} else {
cryptoAllowancesBuilder_.setMessage(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.hederahashgraph.api.proto.java.AccountCryptoAllowance value) {
if (cryptoAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.add(value);
onChanged();
} else {
cryptoAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountCryptoAllowance value) {
if (cryptoAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.add(index, value);
onChanged();
} else {
cryptoAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountCryptoAllowance.Builder builderForValue) {
if (cryptoAllowancesBuilder_ == null) {
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.add(builderForValue.build());
onChanged();
} else {
cryptoAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountCryptoAllowance.Builder builderForValue) {
if (cryptoAllowancesBuilder_ == null) {
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.add(index, builderForValue.build());
onChanged();
} else {
cryptoAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountCryptoAllowance> values) {
if (cryptoAllowancesBuilder_ == null) {
ensureCryptoAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, cryptoAllowances_);
onChanged();
} else {
cryptoAllowancesBuilder_.addAllMessages(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() {
if (cryptoAllowancesBuilder_ == null) {
cryptoAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
cryptoAllowancesBuilder_.clear();
}
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) {
if (cryptoAllowancesBuilder_ == null) {
ensureCryptoAllowancesIsMutable();
cryptoAllowances_.remove(index);
onChanged();
} else {
cryptoAllowancesBuilder_.remove(index);
}
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 com.hederahashgraph.api.proto.java.AccountCryptoAllowance.Builder getCryptoAllowancesBuilder(
int index) {
return getCryptoAllowancesFieldBuilder().getBuilder(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.hederahashgraph.api.proto.java.AccountCryptoAllowanceOrBuilder getCryptoAllowancesOrBuilder(
int index) {
if (cryptoAllowancesBuilder_ == null) {
return cryptoAllowances_.get(index); } else {
return cryptoAllowancesBuilder_.getMessageOrBuilder(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 java.util.List extends com.hederahashgraph.api.proto.java.AccountCryptoAllowanceOrBuilder>
getCryptoAllowancesOrBuilderList() {
if (cryptoAllowancesBuilder_ != null) {
return cryptoAllowancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(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 com.hederahashgraph.api.proto.java.AccountCryptoAllowance.Builder addCryptoAllowancesBuilder() {
return getCryptoAllowancesFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.AccountCryptoAllowance.getDefaultInstance());
}
/**
*
**
* (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.hederahashgraph.api.proto.java.AccountCryptoAllowance.Builder addCryptoAllowancesBuilder(
int index) {
return getCryptoAllowancesFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.AccountCryptoAllowance.getDefaultInstance());
}
/**
*
**
* (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
getCryptoAllowancesBuilderList() {
return getCryptoAllowancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountCryptoAllowance, com.hederahashgraph.api.proto.java.AccountCryptoAllowance.Builder, com.hederahashgraph.api.proto.java.AccountCryptoAllowanceOrBuilder>
getCryptoAllowancesFieldBuilder() {
if (cryptoAllowancesBuilder_ == null) {
cryptoAllowancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountCryptoAllowance, com.hederahashgraph.api.proto.java.AccountCryptoAllowance.Builder, com.hederahashgraph.api.proto.java.AccountCryptoAllowanceOrBuilder>(
cryptoAllowances_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
cryptoAllowances_ = null;
}
return cryptoAllowancesBuilder_;
}
private java.util.List approveForAllNftAllowances_ =
java.util.Collections.emptyList();
private void ensureApproveForAllNftAllowancesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
approveForAllNftAllowances_ = new java.util.ArrayList(approveForAllNftAllowances_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance, com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.Builder, com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowanceOrBuilder> approveForAllNftAllowancesBuilder_;
/**
*
**
* (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 getApproveForAllNftAllowancesList() {
if (approveForAllNftAllowancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(approveForAllNftAllowances_);
} else {
return approveForAllNftAllowancesBuilder_.getMessageList();
}
}
/**
*
**
* (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 int getApproveForAllNftAllowancesCount() {
if (approveForAllNftAllowancesBuilder_ == null) {
return approveForAllNftAllowances_.size();
} else {
return approveForAllNftAllowancesBuilder_.getCount();
}
}
/**
*
**
* (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.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance getApproveForAllNftAllowances(int index) {
if (approveForAllNftAllowancesBuilder_ == null) {
return approveForAllNftAllowances_.get(index);
} else {
return approveForAllNftAllowancesBuilder_.getMessage(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.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance value) {
if (approveForAllNftAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.set(index, value);
onChanged();
} else {
approveForAllNftAllowancesBuilder_.setMessage(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.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.Builder builderForValue) {
if (approveForAllNftAllowancesBuilder_ == null) {
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.set(index, builderForValue.build());
onChanged();
} else {
approveForAllNftAllowancesBuilder_.setMessage(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.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance value) {
if (approveForAllNftAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.add(value);
onChanged();
} else {
approveForAllNftAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance value) {
if (approveForAllNftAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.add(index, value);
onChanged();
} else {
approveForAllNftAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.Builder builderForValue) {
if (approveForAllNftAllowancesBuilder_ == null) {
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.add(builderForValue.build());
onChanged();
} else {
approveForAllNftAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.Builder builderForValue) {
if (approveForAllNftAllowancesBuilder_ == null) {
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.add(index, builderForValue.build());
onChanged();
} else {
approveForAllNftAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance> values) {
if (approveForAllNftAllowancesBuilder_ == null) {
ensureApproveForAllNftAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, approveForAllNftAllowances_);
onChanged();
} else {
approveForAllNftAllowancesBuilder_.addAllMessages(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() {
if (approveForAllNftAllowancesBuilder_ == null) {
approveForAllNftAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
approveForAllNftAllowancesBuilder_.clear();
}
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) {
if (approveForAllNftAllowancesBuilder_ == null) {
ensureApproveForAllNftAllowancesIsMutable();
approveForAllNftAllowances_.remove(index);
onChanged();
} else {
approveForAllNftAllowancesBuilder_.remove(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;
*/
public com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.Builder getApproveForAllNftAllowancesBuilder(
int index) {
return getApproveForAllNftAllowancesFieldBuilder().getBuilder(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.hederahashgraph.api.proto.java.AccountApprovalForAllAllowanceOrBuilder getApproveForAllNftAllowancesOrBuilder(
int index) {
if (approveForAllNftAllowancesBuilder_ == null) {
return approveForAllNftAllowances_.get(index); } else {
return approveForAllNftAllowancesBuilder_.getMessageOrBuilder(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 java.util.List extends com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowanceOrBuilder>
getApproveForAllNftAllowancesOrBuilderList() {
if (approveForAllNftAllowancesBuilder_ != null) {
return approveForAllNftAllowancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(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 com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.Builder addApproveForAllNftAllowancesBuilder() {
return getApproveForAllNftAllowancesFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.getDefaultInstance());
}
/**
*
**
* (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.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.Builder addApproveForAllNftAllowancesBuilder(
int index) {
return getApproveForAllNftAllowancesFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.getDefaultInstance());
}
/**
*
**
* (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
getApproveForAllNftAllowancesBuilderList() {
return getApproveForAllNftAllowancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance, com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.Builder, com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowanceOrBuilder>
getApproveForAllNftAllowancesFieldBuilder() {
if (approveForAllNftAllowancesBuilder_ == null) {
approveForAllNftAllowancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance, com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowance.Builder, com.hederahashgraph.api.proto.java.AccountApprovalForAllAllowanceOrBuilder>(
approveForAllNftAllowances_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
approveForAllNftAllowances_ = null;
}
return approveForAllNftAllowancesBuilder_;
}
private java.util.List tokenAllowances_ =
java.util.Collections.emptyList();
private void ensureTokenAllowancesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
tokenAllowances_ = new java.util.ArrayList(tokenAllowances_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance, com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.Builder, com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowanceOrBuilder> tokenAllowancesBuilder_;
/**
*
**
* (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 getTokenAllowancesList() {
if (tokenAllowancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(tokenAllowances_);
} else {
return tokenAllowancesBuilder_.getMessageList();
}
}
/**
*
**
* (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 int getTokenAllowancesCount() {
if (tokenAllowancesBuilder_ == null) {
return tokenAllowances_.size();
} else {
return tokenAllowancesBuilder_.getCount();
}
}
/**
*
**
* (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.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance getTokenAllowances(int index) {
if (tokenAllowancesBuilder_ == null) {
return tokenAllowances_.get(index);
} else {
return tokenAllowancesBuilder_.getMessage(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.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance value) {
if (tokenAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenAllowancesIsMutable();
tokenAllowances_.set(index, value);
onChanged();
} else {
tokenAllowancesBuilder_.setMessage(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.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.Builder builderForValue) {
if (tokenAllowancesBuilder_ == null) {
ensureTokenAllowancesIsMutable();
tokenAllowances_.set(index, builderForValue.build());
onChanged();
} else {
tokenAllowancesBuilder_.setMessage(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.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance value) {
if (tokenAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenAllowancesIsMutable();
tokenAllowances_.add(value);
onChanged();
} else {
tokenAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance value) {
if (tokenAllowancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenAllowancesIsMutable();
tokenAllowances_.add(index, value);
onChanged();
} else {
tokenAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.Builder builderForValue) {
if (tokenAllowancesBuilder_ == null) {
ensureTokenAllowancesIsMutable();
tokenAllowances_.add(builderForValue.build());
onChanged();
} else {
tokenAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.Builder builderForValue) {
if (tokenAllowancesBuilder_ == null) {
ensureTokenAllowancesIsMutable();
tokenAllowances_.add(index, builderForValue.build());
onChanged();
} else {
tokenAllowancesBuilder_.addMessage(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.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance> values) {
if (tokenAllowancesBuilder_ == null) {
ensureTokenAllowancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tokenAllowances_);
onChanged();
} else {
tokenAllowancesBuilder_.addAllMessages(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() {
if (tokenAllowancesBuilder_ == null) {
tokenAllowances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
tokenAllowancesBuilder_.clear();
}
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) {
if (tokenAllowancesBuilder_ == null) {
ensureTokenAllowancesIsMutable();
tokenAllowances_.remove(index);
onChanged();
} else {
tokenAllowancesBuilder_.remove(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;
*/
public com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.Builder getTokenAllowancesBuilder(
int index) {
return getTokenAllowancesFieldBuilder().getBuilder(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.hederahashgraph.api.proto.java.AccountFungibleTokenAllowanceOrBuilder getTokenAllowancesOrBuilder(
int index) {
if (tokenAllowancesBuilder_ == null) {
return tokenAllowances_.get(index); } else {
return tokenAllowancesBuilder_.getMessageOrBuilder(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 java.util.List extends com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowanceOrBuilder>
getTokenAllowancesOrBuilderList() {
if (tokenAllowancesBuilder_ != null) {
return tokenAllowancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(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 com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.Builder addTokenAllowancesBuilder() {
return getTokenAllowancesFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.getDefaultInstance());
}
/**
*
**
* (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.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.Builder addTokenAllowancesBuilder(
int index) {
return getTokenAllowancesFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.getDefaultInstance());
}
/**
*
**
* (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
getTokenAllowancesBuilderList() {
return getTokenAllowancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance, com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.Builder, com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowanceOrBuilder>
getTokenAllowancesFieldBuilder() {
if (tokenAllowancesBuilder_ == null) {
tokenAllowancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance, com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowance.Builder, com.hederahashgraph.api.proto.java.AccountFungibleTokenAllowanceOrBuilder>(
tokenAllowances_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
tokenAllowances_ = null;
}
return tokenAllowancesBuilder_;
}
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.
* @return This builder for chaining.
*/
public Builder setNumberTreasuryTitles(int value) {
numberTreasuryTitles_ = value;
onChanged();
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() {
numberTreasuryTitles_ = 0;
onChanged();
return this;
}
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.
* @return This builder for chaining.
*/
public Builder setExpiredAndPendingRemoval(boolean value) {
expiredAndPendingRemoval_ = value;
onChanged();
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() {
expiredAndPendingRemoval_ = false;
onChanged();
return this;
}
private com.google.protobuf.ByteString firstContractStorageKey_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* 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.
* @return This builder for chaining.
*/
public Builder setFirstContractStorageKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
firstContractStorageKey_ = value;
onChanged();
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() {
firstContractStorageKey_ = getDefaultInstance().getFirstContractStorageKey();
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.PendingAirdropId headPendingAirdropId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.PendingAirdropId, com.hederahashgraph.api.proto.java.PendingAirdropId.Builder, com.hederahashgraph.api.proto.java.PendingAirdropIdOrBuilder> headPendingAirdropIdBuilder_;
/**
*
**
* 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;
* @return Whether the headPendingAirdropId field is set.
*/
public boolean hasHeadPendingAirdropId() {
return headPendingAirdropIdBuilder_ != null || headPendingAirdropId_ != null;
}
/**
*
**
* 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;
* @return The headPendingAirdropId.
*/
public com.hederahashgraph.api.proto.java.PendingAirdropId getHeadPendingAirdropId() {
if (headPendingAirdropIdBuilder_ == null) {
return headPendingAirdropId_ == null ? com.hederahashgraph.api.proto.java.PendingAirdropId.getDefaultInstance() : headPendingAirdropId_;
} else {
return headPendingAirdropIdBuilder_.getMessage();
}
}
/**
*
**
* 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.hederahashgraph.api.proto.java.PendingAirdropId value) {
if (headPendingAirdropIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
headPendingAirdropId_ = value;
onChanged();
} else {
headPendingAirdropIdBuilder_.setMessage(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.hederahashgraph.api.proto.java.PendingAirdropId.Builder builderForValue) {
if (headPendingAirdropIdBuilder_ == null) {
headPendingAirdropId_ = builderForValue.build();
onChanged();
} else {
headPendingAirdropIdBuilder_.setMessage(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.hederahashgraph.api.proto.java.PendingAirdropId value) {
if (headPendingAirdropIdBuilder_ == null) {
if (headPendingAirdropId_ != null) {
headPendingAirdropId_ =
com.hederahashgraph.api.proto.java.PendingAirdropId.newBuilder(headPendingAirdropId_).mergeFrom(value).buildPartial();
} else {
headPendingAirdropId_ = value;
}
onChanged();
} else {
headPendingAirdropIdBuilder_.mergeFrom(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() {
if (headPendingAirdropIdBuilder_ == null) {
headPendingAirdropId_ = null;
onChanged();
} else {
headPendingAirdropId_ = null;
headPendingAirdropIdBuilder_ = null;
}
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 com.hederahashgraph.api.proto.java.PendingAirdropId.Builder getHeadPendingAirdropIdBuilder() {
onChanged();
return getHeadPendingAirdropIdFieldBuilder().getBuilder();
}
/**
*
**
* 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 com.hederahashgraph.api.proto.java.PendingAirdropIdOrBuilder getHeadPendingAirdropIdOrBuilder() {
if (headPendingAirdropIdBuilder_ != null) {
return headPendingAirdropIdBuilder_.getMessageOrBuilder();
} else {
return headPendingAirdropId_ == null ?
com.hederahashgraph.api.proto.java.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 com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.PendingAirdropId, com.hederahashgraph.api.proto.java.PendingAirdropId.Builder, com.hederahashgraph.api.proto.java.PendingAirdropIdOrBuilder>
getHeadPendingAirdropIdFieldBuilder() {
if (headPendingAirdropIdBuilder_ == null) {
headPendingAirdropIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.PendingAirdropId, com.hederahashgraph.api.proto.java.PendingAirdropId.Builder, com.hederahashgraph.api.proto.java.PendingAirdropIdOrBuilder>(
getHeadPendingAirdropId(),
getParentForChildren(),
isClean());
headPendingAirdropId_ = null;
}
return headPendingAirdropIdBuilder_;
}
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.
* @return This builder for chaining.
*/
public Builder setNumberPendingAirdrops(long value) {
numberPendingAirdrops_ = value;
onChanged();
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() {
numberPendingAirdrops_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.Account)
}
// @@protoc_insertion_point(class_scope:proto.Account)
private static final com.hederahashgraph.api.proto.java.Account DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.Account();
}
public static com.hederahashgraph.api.proto.java.Account getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Account parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Account(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Account getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}