All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.Account Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: account.proto

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * Protobuf type {@code proto.Account}
 */
public final class Account extends
    com.google.protobuf.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();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.hedera.hashgraph.sdk.proto.AccountOuterClass.internal_static_proto_Account_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.hedera.hashgraph.sdk.proto.AccountOuterClass.internal_static_proto_Account_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.hedera.hashgraph.sdk.proto.Account.class, com.hedera.hashgraph.sdk.proto.Account.Builder.class);
  }

  private int bitField0_;
  private int stakedIdCase_ = 0;
  @SuppressWarnings("serial")
  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.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The unique entity id of the account.
   * 
* * .proto.AccountID account_id = 1; * @return The accountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } /** *
   **
   * The unique entity id of the account.
   * 
* * .proto.AccountID account_id = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder() { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } public static final int ALIAS_FIELD_NUMBER = 2; 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_; } public static final int KEY_FIELD_NUMBER = 3; private com.hedera.hashgraph.sdk.proto.Key key_; /** *
   **
   * (Optional) The key to be used to sign transactions from the account, if any.
   * This key will not be set for hollow accounts until the account is finalized.
   * This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
   * 
* * .proto.Key key = 3; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * (Optional) The key to be used to sign transactions from the account, if any.
   * This key will not be set for hollow accounts until the account is finalized.
   * This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
   * 
* * .proto.Key key = 3; * @return The key. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getKey() { return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_; } /** *
   **
   * (Optional) The key to be used to sign transactions from the account, if any.
   * This key will not be set for hollow accounts until the account is finalized.
   * This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
   * 
* * .proto.Key key = 3; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKeyOrBuilder() { return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_; } public static final int EXPIRATION_SECOND_FIELD_NUMBER = 4; private long expirationSecond_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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; @SuppressWarnings("serial") 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_ = false; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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.hedera.hashgraph.sdk.proto.AccountID getStakedAccountId() { if (stakedIdCase_ == 10) { return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_; } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } /** *
   **
   * ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
   * this field removes this account's staked account ID.
   * 
* * .proto.AccountID staked_account_id = 10; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getStakedAccountIdOrBuilder() { if (stakedIdCase_ == 10) { return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_; } return com.hedera.hashgraph.sdk.proto.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_ = false; /** *
   **
   * 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_ = false; /** *
   **
   * 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.hedera.hashgraph.sdk.proto.TokenID headTokenId_; /** *
   **
   * The token ID of the head of the linked list from token relations map for the account.
   * 
* * .proto.TokenID head_token_id = 14; * @return Whether the headTokenId field is set. */ @java.lang.Override public boolean hasHeadTokenId() { return ((bitField0_ & 0x00000004) != 0); } /** *
   **
   * The token ID of the head of the linked list from token relations map for the account.
   * 
* * .proto.TokenID head_token_id = 14; * @return The headTokenId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenID getHeadTokenId() { return headTokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : headTokenId_; } /** *
   **
   * The token ID of the head of the linked list from token relations map for the account.
   * 
* * .proto.TokenID head_token_id = 14; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getHeadTokenIdOrBuilder() { return headTokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : headTokenId_; } public static final int HEAD_NFT_ID_FIELD_NUMBER = 15; private com.hedera.hashgraph.sdk.proto.NftID headNftId_; /** *
   **
   * The NftID of the head of the linked list from unique tokens map for the account.
   * 
* * .proto.NftID head_nft_id = 15; * @return Whether the headNftId field is set. */ @java.lang.Override public boolean hasHeadNftId() { return ((bitField0_ & 0x00000008) != 0); } /** *
   **
   * The NftID of the head of the linked list from unique tokens map for the account.
   * 
* * .proto.NftID head_nft_id = 15; * @return The headNftId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftID getHeadNftId() { return headNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : headNftId_; } /** *
   **
   * The NftID of the head of the linked list from unique tokens map for the account.
   * 
* * .proto.NftID head_nft_id = 15; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.NftIDOrBuilder getHeadNftIdOrBuilder() { return headNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : headNftId_; } public static final int HEAD_NFT_SERIAL_NUMBER_FIELD_NUMBER = 16; private long headNftSerialNumber_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0; /** *
   **
   * 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_ = 0; /** *
   **
   * 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_ = 0; /** *
   **
   * 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_ = false; /** *
   **
   * 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_ = 0; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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_ = 0L; /** *
   **
   * 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.hedera.hashgraph.sdk.proto.AccountID autoRenewAccountId_; /** *
   **
   * (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
   * has signed a transaction allowing the network to use its balance to automatically extend the account's
   * expiration time when it passes.
   * 
* * .proto.AccountID auto_renew_account_id = 25; * @return Whether the autoRenewAccountId field is set. */ @java.lang.Override public boolean hasAutoRenewAccountId() { return ((bitField0_ & 0x00000010) != 0); } /** *
   **
   * (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
   * has signed a transaction allowing the network to use its balance to automatically extend the account's
   * expiration time when it passes.
   * 
* * .proto.AccountID auto_renew_account_id = 25; * @return The autoRenewAccountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccountId() { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } /** *
   **
   * (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
   * has signed a transaction allowing the network to use its balance to automatically extend the account's
   * expiration time when it passes.
   * 
* * .proto.AccountID auto_renew_account_id = 25; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } public static final int AUTO_RENEW_SECONDS_FIELD_NUMBER = 26; private long autoRenewSeconds_ = 0L; /** *
   **
   * 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_ = 0; /** *
   **
   * 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; @SuppressWarnings("serial") 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 getCryptoAllowancesOrBuilderList() { return cryptoAllowances_; } /** *
   **
   * (Optional) List of crypto allowances approved by the account.
   * It contains account number for which the allowance is approved to and
   * the amount approved for that account.
   * 
* * repeated .proto.AccountCryptoAllowance crypto_allowances = 28; */ @java.lang.Override public int getCryptoAllowancesCount() { return cryptoAllowances_.size(); } /** *
   **
   * (Optional) List of crypto allowances approved by the account.
   * It contains account number for which the allowance is approved to and
   * the amount approved for that account.
   * 
* * repeated .proto.AccountCryptoAllowance crypto_allowances = 28; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance getCryptoAllowances(int index) { return cryptoAllowances_.get(index); } /** *
   **
   * (Optional) List of crypto allowances approved by the account.
   * It contains account number for which the allowance is approved to and
   * the amount approved for that account.
   * 
* * repeated .proto.AccountCryptoAllowance crypto_allowances = 28; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountCryptoAllowanceOrBuilder getCryptoAllowancesOrBuilder( int index) { return cryptoAllowances_.get(index); } public static final int APPROVE_FOR_ALL_NFT_ALLOWANCES_FIELD_NUMBER = 29; @SuppressWarnings("serial") 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 getApproveForAllNftAllowancesOrBuilderList() { return approveForAllNftAllowances_; } /** *
   **
   * (Optional) List of non-fungible token allowances approved for all by the account.
   * It contains account number approved for spending all serial numbers for the given
   * NFT token number using approved_for_all flag.
   * Allowances for a specific serial number is stored in the NFT itself in state.
   * 
* * repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; */ @java.lang.Override public int getApproveForAllNftAllowancesCount() { return approveForAllNftAllowances_.size(); } /** *
   **
   * (Optional) List of non-fungible token allowances approved for all by the account.
   * It contains account number approved for spending all serial numbers for the given
   * NFT token number using approved_for_all flag.
   * Allowances for a specific serial number is stored in the NFT itself in state.
   * 
* * repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance getApproveForAllNftAllowances(int index) { return approveForAllNftAllowances_.get(index); } /** *
   **
   * (Optional) List of non-fungible token allowances approved for all by the account.
   * It contains account number approved for spending all serial numbers for the given
   * NFT token number using approved_for_all flag.
   * Allowances for a specific serial number is stored in the NFT itself in state.
   * 
* * repeated .proto.AccountApprovalForAllAllowance approve_for_all_nft_allowances = 29; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowanceOrBuilder getApproveForAllNftAllowancesOrBuilder( int index) { return approveForAllNftAllowances_.get(index); } public static final int TOKEN_ALLOWANCES_FIELD_NUMBER = 30; @SuppressWarnings("serial") 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 getTokenAllowancesOrBuilderList() { return tokenAllowances_; } /** *
   **
   * (Optional) List of fungible token allowances approved by the account.
   * It contains account number for which the allowance is approved to and  the token number.
   * It also contains and the amount approved for that account.
   * 
* * repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; */ @java.lang.Override public int getTokenAllowancesCount() { return tokenAllowances_.size(); } /** *
   **
   * (Optional) List of fungible token allowances approved by the account.
   * It contains account number for which the allowance is approved to and  the token number.
   * It also contains and the amount approved for that account.
   * 
* * repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance getTokenAllowances(int index) { return tokenAllowances_.get(index); } /** *
   **
   * (Optional) List of fungible token allowances approved by the account.
   * It contains account number for which the allowance is approved to and  the token number.
   * It also contains and the amount approved for that account.
   * 
* * repeated .proto.AccountFungibleTokenAllowance token_allowances = 30; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowanceOrBuilder getTokenAllowancesOrBuilder( int index) { return tokenAllowances_.get(index); } public static final int NUMBER_TREASURY_TITLES_FIELD_NUMBER = 31; private int numberTreasuryTitles_ = 0; /** *
   **
   * 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_ = false; /** *
   **
   * 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_ = 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_; } public static final int HEAD_PENDING_AIRDROP_ID_FIELD_NUMBER = 34; private com.hedera.hashgraph.sdk.proto.PendingAirdropId headPendingAirdropId_; /** *
   **
   * A pending airdrop ID at the head of the linked list for this account
   * from the account airdrops map.<br/>
   * The account airdrops are connected by including the "next" and "previous"
   * `PendingAirdropID` in each `AccountAirdrop` message.
   * <p>
   * This value SHALL NOT be empty if this account is "sender" for any
   * pending airdrop, and SHALL be empty otherwise.
   * 
* * .proto.PendingAirdropId head_pending_airdrop_id = 34; * @return Whether the headPendingAirdropId field is set. */ @java.lang.Override public boolean hasHeadPendingAirdropId() { return ((bitField0_ & 0x00000020) != 0); } /** *
   **
   * A pending airdrop ID at the head of the linked list for this account
   * from the account airdrops map.<br/>
   * The account airdrops are connected by including the "next" and "previous"
   * `PendingAirdropID` in each `AccountAirdrop` message.
   * <p>
   * This value SHALL NOT be empty if this account is "sender" for any
   * pending airdrop, and SHALL be empty otherwise.
   * 
* * .proto.PendingAirdropId head_pending_airdrop_id = 34; * @return The headPendingAirdropId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropId getHeadPendingAirdropId() { return headPendingAirdropId_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : headPendingAirdropId_; } /** *
   **
   * A pending airdrop ID at the head of the linked list for this account
   * from the account airdrops map.<br/>
   * The account airdrops are connected by including the "next" and "previous"
   * `PendingAirdropID` in each `AccountAirdrop` message.
   * <p>
   * This value SHALL NOT be empty if this account is "sender" for any
   * pending airdrop, and SHALL be empty otherwise.
   * 
* * .proto.PendingAirdropId head_pending_airdrop_id = 34; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder getHeadPendingAirdropIdOrBuilder() { return headPendingAirdropId_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : headPendingAirdropId_; } public static final int NUMBER_PENDING_AIRDROPS_FIELD_NUMBER = 35; private long numberPendingAirdrops_ = 0L; /** *
   **
   * 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAccountId()); } if (!alias_.isEmpty()) { output.writeBytes(2, alias_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getKey()); } if (expirationSecond_ != 0L) { output.writeInt64(4, expirationSecond_); } if (tinybarBalance_ != 0L) { output.writeInt64(5, tinybarBalance_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { 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.hedera.hashgraph.sdk.proto.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 (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(14, getHeadTokenId()); } if (((bitField0_ & 0x00000008) != 0)) { 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 (((bitField0_ & 0x00000010) != 0)) { 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 (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(34, getHeadPendingAirdropId()); } if (numberPendingAirdrops_ != 0L) { output.writeUInt64(35, numberPendingAirdrops_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAccountId()); } if (!alias_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, alias_); } if (((bitField0_ & 0x00000002) != 0)) { 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { 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.hedera.hashgraph.sdk.proto.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 (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getHeadTokenId()); } if (((bitField0_ & 0x00000008) != 0)) { 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 (((bitField0_ & 0x00000010) != 0)) { 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 (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, getHeadPendingAirdropId()); } if (numberPendingAirdrops_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(35, numberPendingAirdrops_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hashgraph.sdk.proto.Account)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.Account other = (com.hedera.hashgraph.sdk.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAccountId()) { hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getAccountId().hashCode(); } hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.Account parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Account parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Account parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Account parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Account parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Account parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Account parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.Account parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.Account parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Account parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.AccountOuterClass.internal_static_proto_Account_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.AccountOuterClass.internal_static_proto_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.Account.class, com.hedera.hashgraph.sdk.proto.Account.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.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) { getAccountIdFieldBuilder(); getKeyFieldBuilder(); getHeadTokenIdFieldBuilder(); getHeadNftIdFieldBuilder(); getAutoRenewAccountIdFieldBuilder(); getCryptoAllowancesFieldBuilder(); getApproveForAllNftAllowancesFieldBuilder(); getTokenAllowancesFieldBuilder(); getHeadPendingAirdropIdFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bitField1_ = 0; accountId_ = null; if (accountIdBuilder_ != null) { accountIdBuilder_.dispose(); accountIdBuilder_ = null; } alias_ = com.google.protobuf.ByteString.EMPTY; key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } expirationSecond_ = 0L; tinybarBalance_ = 0L; memo_ = ""; deleted_ = false; stakedToMe_ = 0L; stakePeriodStart_ = 0L; if (stakedAccountIdBuilder_ != null) { stakedAccountIdBuilder_.clear(); } declineReward_ = false; receiverSigRequired_ = false; headTokenId_ = null; if (headTokenIdBuilder_ != null) { headTokenIdBuilder_.dispose(); headTokenIdBuilder_ = null; } headNftId_ = null; if (headNftIdBuilder_ != null) { headNftIdBuilder_.dispose(); headNftIdBuilder_ = null; } headNftSerialNumber_ = 0L; numberOwnedNfts_ = 0L; maxAutoAssociations_ = 0; usedAutoAssociations_ = 0; numberAssociations_ = 0; smartContract_ = false; numberPositiveBalances_ = 0; ethereumNonce_ = 0L; stakeAtStartOfLastRewardedPeriod_ = 0L; autoRenewAccountId_ = null; if (autoRenewAccountIdBuilder_ != null) { autoRenewAccountIdBuilder_.dispose(); autoRenewAccountIdBuilder_ = null; } autoRenewSeconds_ = 0L; contractKvPairsNumber_ = 0; if (cryptoAllowancesBuilder_ == null) { cryptoAllowances_ = java.util.Collections.emptyList(); } else { cryptoAllowances_ = null; cryptoAllowancesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x08000000); if (approveForAllNftAllowancesBuilder_ == null) { approveForAllNftAllowances_ = java.util.Collections.emptyList(); } else { approveForAllNftAllowances_ = null; approveForAllNftAllowancesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x10000000); if (tokenAllowancesBuilder_ == null) { tokenAllowances_ = java.util.Collections.emptyList(); } else { tokenAllowances_ = null; tokenAllowancesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x20000000); numberTreasuryTitles_ = 0; expiredAndPendingRemoval_ = false; firstContractStorageKey_ = com.google.protobuf.ByteString.EMPTY; headPendingAirdropId_ = null; if (headPendingAirdropIdBuilder_ != null) { headPendingAirdropIdBuilder_.dispose(); headPendingAirdropIdBuilder_ = null; } numberPendingAirdrops_ = 0L; stakedIdCase_ = 0; stakedId_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.AccountOuterClass.internal_static_proto_Account_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Account getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.Account.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Account build() { com.hedera.hashgraph.sdk.proto.Account result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Account buildPartial() { com.hedera.hashgraph.sdk.proto.Account result = new com.hedera.hashgraph.sdk.proto.Account(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } if (bitField1_ != 0) { buildPartial1(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.Account result) { if (cryptoAllowancesBuilder_ == null) { if (((bitField0_ & 0x08000000) != 0)) { cryptoAllowances_ = java.util.Collections.unmodifiableList(cryptoAllowances_); bitField0_ = (bitField0_ & ~0x08000000); } result.cryptoAllowances_ = cryptoAllowances_; } else { result.cryptoAllowances_ = cryptoAllowancesBuilder_.build(); } if (approveForAllNftAllowancesBuilder_ == null) { if (((bitField0_ & 0x10000000) != 0)) { approveForAllNftAllowances_ = java.util.Collections.unmodifiableList(approveForAllNftAllowances_); bitField0_ = (bitField0_ & ~0x10000000); } result.approveForAllNftAllowances_ = approveForAllNftAllowances_; } else { result.approveForAllNftAllowances_ = approveForAllNftAllowancesBuilder_.build(); } if (tokenAllowancesBuilder_ == null) { if (((bitField0_ & 0x20000000) != 0)) { tokenAllowances_ = java.util.Collections.unmodifiableList(tokenAllowances_); bitField0_ = (bitField0_ & ~0x20000000); } result.tokenAllowances_ = tokenAllowances_; } else { result.tokenAllowances_ = tokenAllowancesBuilder_.build(); } } private void buildPartial0(com.hedera.hashgraph.sdk.proto.Account result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.accountId_ = accountIdBuilder_ == null ? accountId_ : accountIdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.alias_ = alias_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.expirationSecond_ = expirationSecond_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.tinybarBalance_ = tinybarBalance_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.memo_ = memo_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.deleted_ = deleted_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.stakedToMe_ = stakedToMe_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.stakePeriodStart_ = stakePeriodStart_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.declineReward_ = declineReward_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.receiverSigRequired_ = receiverSigRequired_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.headTokenId_ = headTokenIdBuilder_ == null ? headTokenId_ : headTokenIdBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00004000) != 0)) { result.headNftId_ = headNftIdBuilder_ == null ? headNftId_ : headNftIdBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00008000) != 0)) { result.headNftSerialNumber_ = headNftSerialNumber_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.numberOwnedNfts_ = numberOwnedNfts_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.maxAutoAssociations_ = maxAutoAssociations_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.usedAutoAssociations_ = usedAutoAssociations_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.numberAssociations_ = numberAssociations_; } if (((from_bitField0_ & 0x00100000) != 0)) { result.smartContract_ = smartContract_; } if (((from_bitField0_ & 0x00200000) != 0)) { result.numberPositiveBalances_ = numberPositiveBalances_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.ethereumNonce_ = ethereumNonce_; } if (((from_bitField0_ & 0x00800000) != 0)) { result.stakeAtStartOfLastRewardedPeriod_ = stakeAtStartOfLastRewardedPeriod_; } if (((from_bitField0_ & 0x01000000) != 0)) { result.autoRenewAccountId_ = autoRenewAccountIdBuilder_ == null ? autoRenewAccountId_ : autoRenewAccountIdBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x02000000) != 0)) { result.autoRenewSeconds_ = autoRenewSeconds_; } if (((from_bitField0_ & 0x04000000) != 0)) { result.contractKvPairsNumber_ = contractKvPairsNumber_; } if (((from_bitField0_ & 0x40000000) != 0)) { result.numberTreasuryTitles_ = numberTreasuryTitles_; } if (((from_bitField0_ & 0x80000000) != 0)) { result.expiredAndPendingRemoval_ = expiredAndPendingRemoval_; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.hedera.hashgraph.sdk.proto.Account result) { int from_bitField1_ = bitField1_; if (((from_bitField1_ & 0x00000001) != 0)) { result.firstContractStorageKey_ = firstContractStorageKey_; } int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000002) != 0)) { result.headPendingAirdropId_ = headPendingAirdropIdBuilder_ == null ? headPendingAirdropId_ : headPendingAirdropIdBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField1_ & 0x00000004) != 0)) { result.numberPendingAirdrops_ = numberPendingAirdrops_; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.hedera.hashgraph.sdk.proto.Account result) { result.stakedIdCase_ = stakedIdCase_; result.stakedId_ = this.stakedId_; if (stakedIdCase_ == 10 && stakedAccountIdBuilder_ != null) { result.stakedId_ = stakedAccountIdBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.Account) { return mergeFrom((com.hedera.hashgraph.sdk.proto.Account)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.Account other) { if (other == com.hedera.hashgraph.sdk.proto.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_; bitField0_ |= 0x00000020; 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_ & ~0x08000000); } else { ensureCryptoAllowancesIsMutable(); cryptoAllowances_.addAll(other.cryptoAllowances_); } onChanged(); } } else { if (!other.cryptoAllowances_.isEmpty()) { if (cryptoAllowancesBuilder_.isEmpty()) { cryptoAllowancesBuilder_.dispose(); cryptoAllowancesBuilder_ = null; cryptoAllowances_ = other.cryptoAllowances_; bitField0_ = (bitField0_ & ~0x08000000); 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_ & ~0x10000000); } else { ensureApproveForAllNftAllowancesIsMutable(); approveForAllNftAllowances_.addAll(other.approveForAllNftAllowances_); } onChanged(); } } else { if (!other.approveForAllNftAllowances_.isEmpty()) { if (approveForAllNftAllowancesBuilder_.isEmpty()) { approveForAllNftAllowancesBuilder_.dispose(); approveForAllNftAllowancesBuilder_ = null; approveForAllNftAllowances_ = other.approveForAllNftAllowances_; bitField0_ = (bitField0_ & ~0x10000000); 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_ & ~0x20000000); } else { ensureTokenAllowancesIsMutable(); tokenAllowances_.addAll(other.tokenAllowances_); } onChanged(); } } else { if (!other.tokenAllowances_.isEmpty()) { if (tokenAllowancesBuilder_.isEmpty()) { tokenAllowancesBuilder_.dispose(); tokenAllowancesBuilder_ = null; tokenAllowances_ = other.tokenAllowances_; bitField0_ = (bitField0_ & ~0x20000000); 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.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { alias_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { expirationSecond_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { tinybarBalance_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { memo_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { deleted_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { stakedToMe_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { stakePeriodStart_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 72 case 82: { input.readMessage( getStakedAccountIdFieldBuilder().getBuilder(), extensionRegistry); stakedIdCase_ = 10; break; } // case 82 case 88: { stakedId_ = input.readInt64(); stakedIdCase_ = 11; break; } // case 88 case 96: { declineReward_ = input.readBool(); bitField0_ |= 0x00000800; break; } // case 96 case 104: { receiverSigRequired_ = input.readBool(); bitField0_ |= 0x00001000; break; } // case 104 case 114: { input.readMessage( getHeadTokenIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 114 case 122: { input.readMessage( getHeadNftIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 122 case 128: { headNftSerialNumber_ = input.readInt64(); bitField0_ |= 0x00008000; break; } // case 128 case 136: { numberOwnedNfts_ = input.readInt64(); bitField0_ |= 0x00010000; break; } // case 136 case 144: { maxAutoAssociations_ = input.readInt32(); bitField0_ |= 0x00020000; break; } // case 144 case 152: { usedAutoAssociations_ = input.readInt32(); bitField0_ |= 0x00040000; break; } // case 152 case 160: { numberAssociations_ = input.readInt32(); bitField0_ |= 0x00080000; break; } // case 160 case 168: { smartContract_ = input.readBool(); bitField0_ |= 0x00100000; break; } // case 168 case 176: { numberPositiveBalances_ = input.readInt32(); bitField0_ |= 0x00200000; break; } // case 176 case 184: { ethereumNonce_ = input.readInt64(); bitField0_ |= 0x00400000; break; } // case 184 case 192: { stakeAtStartOfLastRewardedPeriod_ = input.readInt64(); bitField0_ |= 0x00800000; break; } // case 192 case 202: { input.readMessage( getAutoRenewAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x01000000; break; } // case 202 case 208: { autoRenewSeconds_ = input.readInt64(); bitField0_ |= 0x02000000; break; } // case 208 case 216: { contractKvPairsNumber_ = input.readInt32(); bitField0_ |= 0x04000000; break; } // case 216 case 226: { com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance m = input.readMessage( com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance.parser(), extensionRegistry); if (cryptoAllowancesBuilder_ == null) { ensureCryptoAllowancesIsMutable(); cryptoAllowances_.add(m); } else { cryptoAllowancesBuilder_.addMessage(m); } break; } // case 226 case 234: { com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance m = input.readMessage( com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.parser(), extensionRegistry); if (approveForAllNftAllowancesBuilder_ == null) { ensureApproveForAllNftAllowancesIsMutable(); approveForAllNftAllowances_.add(m); } else { approveForAllNftAllowancesBuilder_.addMessage(m); } break; } // case 234 case 242: { com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance m = input.readMessage( com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance.parser(), extensionRegistry); if (tokenAllowancesBuilder_ == null) { ensureTokenAllowancesIsMutable(); tokenAllowances_.add(m); } else { tokenAllowancesBuilder_.addMessage(m); } break; } // case 242 case 248: { numberTreasuryTitles_ = input.readUInt32(); bitField0_ |= 0x40000000; break; } // case 248 case 256: { expiredAndPendingRemoval_ = input.readBool(); bitField0_ |= 0x80000000; break; } // case 256 case 266: { firstContractStorageKey_ = input.readBytes(); bitField1_ |= 0x00000001; break; } // case 266 case 274: { input.readMessage( getHeadPendingAirdropIdFieldBuilder().getBuilder(), extensionRegistry); bitField1_ |= 0x00000002; break; } // case 274 case 280: { numberPendingAirdrops_ = input.readUInt64(); bitField1_ |= 0x00000004; break; } // case 280 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int 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 int bitField1_; private com.hedera.hashgraph.sdk.proto.AccountID accountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> accountIdBuilder_; /** *
     **
     * The unique entity id of the account.
     * 
* * .proto.AccountID account_id = 1; * @return Whether the accountId field is set. */ public boolean hasAccountId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The unique entity id of the account.
     * 
* * .proto.AccountID account_id = 1; * @return The accountId. */ public com.hedera.hashgraph.sdk.proto.AccountID getAccountId() { if (accountIdBuilder_ == null) { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } else { return accountIdBuilder_.getMessage(); } } /** *
     **
     * The unique entity id of the account.
     * 
* * .proto.AccountID account_id = 1; */ public Builder setAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } accountId_ = value; } else { accountIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The unique entity id of the account.
     * 
* * .proto.AccountID account_id = 1; */ public Builder setAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (accountIdBuilder_ == null) { accountId_ = builderForValue.build(); } else { accountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The unique entity id of the account.
     * 
* * .proto.AccountID account_id = 1; */ public Builder mergeAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (accountIdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && accountId_ != null && accountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getAccountIdBuilder().mergeFrom(value); } else { accountId_ = value; } } else { accountIdBuilder_.mergeFrom(value); } if (accountId_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The unique entity id of the account.
     * 
* * .proto.AccountID account_id = 1; */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x00000001); accountId_ = null; if (accountIdBuilder_ != null) { accountIdBuilder_.dispose(); accountIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The unique entity id of the account.
     * 
* * .proto.AccountID account_id = 1; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAccountIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * The unique entity id of the account.
     * 
* * .proto.AccountID account_id = 1; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAccountIdOrBuilder() { if (accountIdBuilder_ != null) { return accountIdBuilder_.getMessageOrBuilder(); } else { return accountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : accountId_; } } /** *
     **
     * The unique entity id of the account.
     * 
* * .proto.AccountID account_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAccountIdFieldBuilder() { if (accountIdBuilder_ == null) { accountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getAccountId(), getParentForChildren(), isClean()); accountId_ = null; } return accountIdBuilder_; } private 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The alias to use for this account, if any.
     * 
* * bytes alias = 2; * @return This builder for chaining. */ public Builder clearAlias() { bitField0_ = (bitField0_ & ~0x00000002); alias_ = getDefaultInstance().getAlias(); onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.Key key_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> keyBuilder_; /** *
     **
     * (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 ((bitField0_ & 0x00000004) != 0); } /** *
     **
     * (Optional) The key to be used to sign transactions from the account, if any.
     * This key will not be set for hollow accounts until the account is finalized.
     * This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
     * 
* * .proto.Key key = 3; * @return The key. */ public com.hedera.hashgraph.sdk.proto.Key getKey() { if (keyBuilder_ == null) { return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_; } else { return keyBuilder_.getMessage(); } } /** *
     **
     * (Optional) The key to be used to sign transactions from the account, if any.
     * This key will not be set for hollow accounts until the account is finalized.
     * This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
     * 
* * .proto.Key key = 3; */ public Builder setKey(com.hedera.hashgraph.sdk.proto.Key value) { if (keyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } key_ = value; } else { keyBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * (Optional) The key to be used to sign transactions from the account, if any.
     * This key will not be set for hollow accounts until the account is finalized.
     * This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
     * 
* * .proto.Key key = 3; */ public Builder setKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (keyBuilder_ == null) { key_ = builderForValue.build(); } else { keyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * (Optional) The key to be used to sign transactions from the account, if any.
     * This key will not be set for hollow accounts until the account is finalized.
     * This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
     * 
* * .proto.Key key = 3; */ public Builder mergeKey(com.hedera.hashgraph.sdk.proto.Key value) { if (keyBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && key_ != null && key_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getKeyBuilder().mergeFrom(value); } else { key_ = value; } } else { keyBuilder_.mergeFrom(value); } if (key_ != null) { bitField0_ |= 0x00000004; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000004); key_ = null; if (keyBuilder_ != null) { keyBuilder_.dispose(); keyBuilder_ = null; } onChanged(); 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.hedera.hashgraph.sdk.proto.Key.Builder getKeyBuilder() { bitField0_ |= 0x00000004; 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.hedera.hashgraph.sdk.proto.KeyOrBuilder getKeyOrBuilder() { if (keyBuilder_ != null) { return keyBuilder_.getMessageOrBuilder(); } else { return key_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : key_; } } /** *
     **
     * (Optional) The key to be used to sign transactions from the account, if any.
     * This key will not be set for hollow accounts until the account is finalized.
     * This key should be set on all the accounts, except for immutable accounts (0.0.800 and 0.0.801).
     * 
* * .proto.Key key = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getKeyFieldBuilder() { if (keyBuilder_ == null) { keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getKey(), getParentForChildren(), isClean()); key_ = null; } return keyBuilder_; } private long 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; bitField0_ |= 0x00000008; 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() { bitField0_ = (bitField0_ & ~0x00000008); 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * The balance of the account, in tiny-bars.
     * 
* * int64 tinybar_balance = 5; * @return This builder for chaining. */ public Builder clearTinybarBalance() { bitField0_ = (bitField0_ & ~0x00000010); 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; bitField0_ |= 0x00000020; 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(); bitField0_ = (bitField0_ & ~0x00000020); 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; bitField0_ |= 0x00000020; 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * A boolean marking if the account has been deleted.
     * 
* * bool deleted = 7; * @return This builder for chaining. */ public Builder clearDeleted() { bitField0_ = (bitField0_ & ~0x00000040); 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; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     **
     * The amount of hbars staked to the account.
     * 
* * int64 staked_to_me = 8; * @return This builder for chaining. */ public Builder clearStakedToMe() { bitField0_ = (bitField0_ & ~0x00000080); 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; bitField0_ |= 0x00000100; 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() { bitField0_ = (bitField0_ & ~0x00000100); stakePeriodStart_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountID getStakedAccountId() { if (stakedAccountIdBuilder_ == null) { if (stakedIdCase_ == 10) { return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_; } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } else { if (stakedIdCase_ == 10) { return stakedAccountIdBuilder_.getMessage(); } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } } /** *
     **
     * ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes this account's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 10; */ public Builder setStakedAccountId(com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountID value) { if (stakedAccountIdBuilder_ == null) { if (stakedIdCase_ == 10 && stakedId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { stakedId_ = com.hedera.hashgraph.sdk.proto.AccountID.newBuilder((com.hedera.hashgraph.sdk.proto.AccountID) stakedId_) .mergeFrom(value).buildPartial(); } else { stakedId_ = value; } onChanged(); } else { if (stakedIdCase_ == 10) { stakedAccountIdBuilder_.mergeFrom(value); } 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 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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getStakedAccountIdOrBuilder() { if ((stakedIdCase_ == 10) && (stakedAccountIdBuilder_ != null)) { return stakedAccountIdBuilder_.getMessageOrBuilder(); } else { if (stakedIdCase_ == 10) { return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_; } return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } } /** *
     **
     * ID of the new account to which this account is staking. If set to the sentinel <tt>0.0.0</tt> AccountID,
     * this field removes this account's staked account ID.
     * 
* * .proto.AccountID staked_account_id = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getStakedAccountIdFieldBuilder() { if (stakedAccountIdBuilder_ == null) { if (!(stakedIdCase_ == 10)) { stakedId_ = com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance(); } stakedAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( (com.hedera.hashgraph.sdk.proto.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; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     **
     * A boolean marking if the account declines rewards.
     * 
* * bool decline_reward = 12; * @return This builder for chaining. */ public Builder clearDeclineReward() { bitField0_ = (bitField0_ & ~0x00000800); 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; bitField0_ |= 0x00001000; 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() { bitField0_ = (bitField0_ & ~0x00001000); receiverSigRequired_ = false; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.TokenID headTokenId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00002000) != 0); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.TokenID getHeadTokenId() { if (headTokenIdBuilder_ == null) { return headTokenId_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TokenID value) { if (headTokenIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } headTokenId_ = value; } else { headTokenIdBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     **
     * The token ID of the head of the linked list from token relations map for the account.
     * 
* * .proto.TokenID head_token_id = 14; */ public Builder setHeadTokenId( com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) { if (headTokenIdBuilder_ == null) { headTokenId_ = builderForValue.build(); } else { headTokenIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     **
     * The token ID of the head of the linked list from token relations map for the account.
     * 
* * .proto.TokenID head_token_id = 14; */ public Builder mergeHeadTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) { if (headTokenIdBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && headTokenId_ != null && headTokenId_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) { getHeadTokenIdBuilder().mergeFrom(value); } else { headTokenId_ = value; } } else { headTokenIdBuilder_.mergeFrom(value); } if (headTokenId_ != null) { bitField0_ |= 0x00002000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00002000); headTokenId_ = null; if (headTokenIdBuilder_ != null) { headTokenIdBuilder_.dispose(); headTokenIdBuilder_ = null; } onChanged(); 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.hedera.hashgraph.sdk.proto.TokenID.Builder getHeadTokenIdBuilder() { bitField0_ |= 0x00002000; 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.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getHeadTokenIdOrBuilder() { if (headTokenIdBuilder_ != null) { return headTokenIdBuilder_.getMessageOrBuilder(); } else { return headTokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : headTokenId_; } } /** *
     **
     * The token ID of the head of the linked list from token relations map for the account.
     * 
* * .proto.TokenID head_token_id = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> getHeadTokenIdFieldBuilder() { if (headTokenIdBuilder_ == null) { headTokenIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>( getHeadTokenId(), getParentForChildren(), isClean()); headTokenId_ = null; } return headTokenIdBuilder_; } private com.hedera.hashgraph.sdk.proto.NftID headNftId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00004000) != 0); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.NftID getHeadNftId() { if (headNftIdBuilder_ == null) { return headNftId_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.NftID value) { if (headNftIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } headNftId_ = value; } else { headNftIdBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     **
     * The NftID of the head of the linked list from unique tokens map for the account.
     * 
* * .proto.NftID head_nft_id = 15; */ public Builder setHeadNftId( com.hedera.hashgraph.sdk.proto.NftID.Builder builderForValue) { if (headNftIdBuilder_ == null) { headNftId_ = builderForValue.build(); } else { headNftIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     **
     * The NftID of the head of the linked list from unique tokens map for the account.
     * 
* * .proto.NftID head_nft_id = 15; */ public Builder mergeHeadNftId(com.hedera.hashgraph.sdk.proto.NftID value) { if (headNftIdBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && headNftId_ != null && headNftId_ != com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance()) { getHeadNftIdBuilder().mergeFrom(value); } else { headNftId_ = value; } } else { headNftIdBuilder_.mergeFrom(value); } if (headNftId_ != null) { bitField0_ |= 0x00004000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00004000); headNftId_ = null; if (headNftIdBuilder_ != null) { headNftIdBuilder_.dispose(); headNftIdBuilder_ = null; } onChanged(); 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.hedera.hashgraph.sdk.proto.NftID.Builder getHeadNftIdBuilder() { bitField0_ |= 0x00004000; 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.hedera.hashgraph.sdk.proto.NftIDOrBuilder getHeadNftIdOrBuilder() { if (headNftIdBuilder_ != null) { return headNftIdBuilder_.getMessageOrBuilder(); } else { return headNftId_ == null ? com.hedera.hashgraph.sdk.proto.NftID.getDefaultInstance() : headNftId_; } } /** *
     **
     * The NftID of the head of the linked list from unique tokens map for the account.
     * 
* * .proto.NftID head_nft_id = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.NftIDOrBuilder> getHeadNftIdFieldBuilder() { if (headNftIdBuilder_ == null) { headNftIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.NftID, com.hedera.hashgraph.sdk.proto.NftID.Builder, com.hedera.hashgraph.sdk.proto.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; bitField0_ |= 0x00008000; 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() { bitField0_ = (bitField0_ & ~0x00008000); 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; bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     **
     * The number of NFTs owned by the account.
     * 
* * int64 number_owned_nfts = 17; * @return This builder for chaining. */ public Builder clearNumberOwnedNfts() { bitField0_ = (bitField0_ & ~0x00010000); 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; bitField0_ |= 0x00020000; 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() { bitField0_ = (bitField0_ & ~0x00020000); 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; bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     **
     * The number of used auto-association slots.
     * 
* * int32 used_auto_associations = 19; * @return This builder for chaining. */ public Builder clearUsedAutoAssociations() { bitField0_ = (bitField0_ & ~0x00040000); 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; bitField0_ |= 0x00080000; 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() { bitField0_ = (bitField0_ & ~0x00080000); 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; bitField0_ |= 0x00100000; 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() { bitField0_ = (bitField0_ & ~0x00100000); 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; bitField0_ |= 0x00200000; 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() { bitField0_ = (bitField0_ & ~0x00200000); 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; bitField0_ |= 0x00400000; onChanged(); return this; } /** *
     **
     * The nonce of the account, used for Ethereum interoperability.
     * 
* * int64 ethereum_nonce = 23; * @return This builder for chaining. */ public Builder clearEthereumNonce() { bitField0_ = (bitField0_ & ~0x00400000); 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; bitField0_ |= 0x00800000; 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() { bitField0_ = (bitField0_ & ~0x00800000); stakeAtStartOfLastRewardedPeriod_ = 0L; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x01000000) != 0); } /** *
     **
     * (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
     * has signed a transaction allowing the network to use its balance to automatically extend the account's
     * expiration time when it passes.
     * 
* * .proto.AccountID auto_renew_account_id = 25; * @return The autoRenewAccountId. */ public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccountId() { if (autoRenewAccountIdBuilder_ == null) { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountID value) { if (autoRenewAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewAccountId_ = value; } else { autoRenewAccountIdBuilder_.setMessage(value); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
     **
     * (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
     * has signed a transaction allowing the network to use its balance to automatically extend the account's
     * expiration time when it passes.
     * 
* * .proto.AccountID auto_renew_account_id = 25; */ public Builder setAutoRenewAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountId_ = builderForValue.build(); } else { autoRenewAccountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
     **
     * (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
     * has signed a transaction allowing the network to use its balance to automatically extend the account's
     * expiration time when it passes.
     * 
* * .proto.AccountID auto_renew_account_id = 25; */ public Builder mergeAutoRenewAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (autoRenewAccountIdBuilder_ == null) { if (((bitField0_ & 0x01000000) != 0) && autoRenewAccountId_ != null && autoRenewAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getAutoRenewAccountIdBuilder().mergeFrom(value); } else { autoRenewAccountId_ = value; } } else { autoRenewAccountIdBuilder_.mergeFrom(value); } if (autoRenewAccountId_ != null) { bitField0_ |= 0x01000000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x01000000); autoRenewAccountId_ = null; if (autoRenewAccountIdBuilder_ != null) { autoRenewAccountIdBuilder_.dispose(); autoRenewAccountIdBuilder_ = null; } onChanged(); 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.hedera.hashgraph.sdk.proto.AccountID.Builder getAutoRenewAccountIdBuilder() { bitField0_ |= 0x01000000; 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.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() { if (autoRenewAccountIdBuilder_ != null) { return autoRenewAccountIdBuilder_.getMessageOrBuilder(); } else { return autoRenewAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccountId_; } } /** *
     **
     * (Optional) The id of an auto-renew account, in the same shard and realm as the account, that
     * has signed a transaction allowing the network to use its balance to automatically extend the account's
     * expiration time when it passes.
     * 
* * .proto.AccountID auto_renew_account_id = 25; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAutoRenewAccountIdFieldBuilder() { if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.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; bitField0_ |= 0x02000000; 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() { bitField0_ = (bitField0_ & ~0x02000000); 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; bitField0_ |= 0x04000000; 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() { bitField0_ = (bitField0_ & ~0x04000000); contractKvPairsNumber_ = 0; onChanged(); return this; } private java.util.List cryptoAllowances_ = java.util.Collections.emptyList(); private void ensureCryptoAllowancesIsMutable() { if (!((bitField0_ & 0x08000000) != 0)) { cryptoAllowances_ = new java.util.ArrayList(cryptoAllowances_); bitField0_ |= 0x08000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance.Builder, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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_ & ~0x08000000); 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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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.hedera.hashgraph.sdk.proto.AccountCryptoAllowance.Builder addCryptoAllowancesBuilder() { return getCryptoAllowancesFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountCryptoAllowance.Builder addCryptoAllowancesBuilder( int index) { return getCryptoAllowancesFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountCryptoAllowance, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance.Builder, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowanceOrBuilder> getCryptoAllowancesFieldBuilder() { if (cryptoAllowancesBuilder_ == null) { cryptoAllowancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowance.Builder, com.hedera.hashgraph.sdk.proto.AccountCryptoAllowanceOrBuilder>( cryptoAllowances_, ((bitField0_ & 0x08000000) != 0), getParentForChildren(), isClean()); cryptoAllowances_ = null; } return cryptoAllowancesBuilder_; } private java.util.List approveForAllNftAllowances_ = java.util.Collections.emptyList(); private void ensureApproveForAllNftAllowancesIsMutable() { if (!((bitField0_ & 0x10000000) != 0)) { approveForAllNftAllowances_ = new java.util.ArrayList(approveForAllNftAllowances_); bitField0_ |= 0x10000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.Builder, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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_ & ~0x10000000); 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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.Builder addApproveForAllNftAllowancesBuilder() { return getApproveForAllNftAllowancesFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.Builder addApproveForAllNftAllowancesBuilder( int index) { return getApproveForAllNftAllowancesFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.Builder, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowanceOrBuilder> getApproveForAllNftAllowancesFieldBuilder() { if (approveForAllNftAllowancesBuilder_ == null) { approveForAllNftAllowancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowance.Builder, com.hedera.hashgraph.sdk.proto.AccountApprovalForAllAllowanceOrBuilder>( approveForAllNftAllowances_, ((bitField0_ & 0x10000000) != 0), getParentForChildren(), isClean()); approveForAllNftAllowances_ = null; } return approveForAllNftAllowancesBuilder_; } private java.util.List tokenAllowances_ = java.util.Collections.emptyList(); private void ensureTokenAllowancesIsMutable() { if (!((bitField0_ & 0x20000000) != 0)) { tokenAllowances_ = new java.util.ArrayList(tokenAllowances_); bitField0_ |= 0x20000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance.Builder, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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_ & ~0x20000000); 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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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 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.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance.Builder addTokenAllowancesBuilder() { return getTokenAllowancesFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance.Builder addTokenAllowancesBuilder( int index) { return getTokenAllowancesFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance.Builder, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowanceOrBuilder> getTokenAllowancesFieldBuilder() { if (tokenAllowancesBuilder_ == null) { tokenAllowancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowance.Builder, com.hedera.hashgraph.sdk.proto.AccountFungibleTokenAllowanceOrBuilder>( tokenAllowances_, ((bitField0_ & 0x20000000) != 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; bitField0_ |= 0x40000000; 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() { bitField0_ = (bitField0_ & ~0x40000000); 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; bitField0_ |= 0x80000000; 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() { bitField0_ = (bitField0_ & ~0x80000000); 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; bitField1_ |= 0x00000001; 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() { bitField1_ = (bitField1_ & ~0x00000001); firstContractStorageKey_ = getDefaultInstance().getFirstContractStorageKey(); onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.PendingAirdropId headPendingAirdropId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField1_ & 0x00000002) != 0); } /** *
     **
     * A pending airdrop ID at the head of the linked list for this account
     * from the account airdrops map.<br/>
     * The account airdrops are connected by including the "next" and "previous"
     * `PendingAirdropID` in each `AccountAirdrop` message.
     * <p>
     * This value SHALL NOT be empty if this account is "sender" for any
     * pending airdrop, and SHALL be empty otherwise.
     * 
* * .proto.PendingAirdropId head_pending_airdrop_id = 34; * @return The headPendingAirdropId. */ public com.hedera.hashgraph.sdk.proto.PendingAirdropId getHeadPendingAirdropId() { if (headPendingAirdropIdBuilder_ == null) { return headPendingAirdropId_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (headPendingAirdropIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } headPendingAirdropId_ = value; } else { headPendingAirdropIdBuilder_.setMessage(value); } bitField1_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * A pending airdrop ID at the head of the linked list for this account
     * from the account airdrops map.<br/>
     * The account airdrops are connected by including the "next" and "previous"
     * `PendingAirdropID` in each `AccountAirdrop` message.
     * <p>
     * This value SHALL NOT be empty if this account is "sender" for any
     * pending airdrop, and SHALL be empty otherwise.
     * 
* * .proto.PendingAirdropId head_pending_airdrop_id = 34; */ public Builder setHeadPendingAirdropId( com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder builderForValue) { if (headPendingAirdropIdBuilder_ == null) { headPendingAirdropId_ = builderForValue.build(); } else { headPendingAirdropIdBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * A pending airdrop ID at the head of the linked list for this account
     * from the account airdrops map.<br/>
     * The account airdrops are connected by including the "next" and "previous"
     * `PendingAirdropID` in each `AccountAirdrop` message.
     * <p>
     * This value SHALL NOT be empty if this account is "sender" for any
     * pending airdrop, and SHALL be empty otherwise.
     * 
* * .proto.PendingAirdropId head_pending_airdrop_id = 34; */ public Builder mergeHeadPendingAirdropId(com.hedera.hashgraph.sdk.proto.PendingAirdropId value) { if (headPendingAirdropIdBuilder_ == null) { if (((bitField1_ & 0x00000002) != 0) && headPendingAirdropId_ != null && headPendingAirdropId_ != com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance()) { getHeadPendingAirdropIdBuilder().mergeFrom(value); } else { headPendingAirdropId_ = value; } } else { headPendingAirdropIdBuilder_.mergeFrom(value); } if (headPendingAirdropId_ != null) { bitField1_ |= 0x00000002; onChanged(); } 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() { bitField1_ = (bitField1_ & ~0x00000002); headPendingAirdropId_ = null; if (headPendingAirdropIdBuilder_ != null) { headPendingAirdropIdBuilder_.dispose(); headPendingAirdropIdBuilder_ = null; } onChanged(); 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.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder getHeadPendingAirdropIdBuilder() { bitField1_ |= 0x00000002; 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.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder getHeadPendingAirdropIdOrBuilder() { if (headPendingAirdropIdBuilder_ != null) { return headPendingAirdropIdBuilder_.getMessageOrBuilder(); } else { return headPendingAirdropId_ == null ? com.hedera.hashgraph.sdk.proto.PendingAirdropId.getDefaultInstance() : headPendingAirdropId_; } } /** *
     **
     * A pending airdrop ID at the head of the linked list for this account
     * from the account airdrops map.<br/>
     * The account airdrops are connected by including the "next" and "previous"
     * `PendingAirdropID` in each `AccountAirdrop` message.
     * <p>
     * This value SHALL NOT be empty if this account is "sender" for any
     * pending airdrop, and SHALL be empty otherwise.
     * 
* * .proto.PendingAirdropId head_pending_airdrop_id = 34; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.PendingAirdropIdOrBuilder> getHeadPendingAirdropIdFieldBuilder() { if (headPendingAirdropIdBuilder_ == null) { headPendingAirdropIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.PendingAirdropId, com.hedera.hashgraph.sdk.proto.PendingAirdropId.Builder, com.hedera.hashgraph.sdk.proto.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; bitField1_ |= 0x00000004; 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() { bitField1_ = (bitField1_ & ~0x00000004); 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.hedera.hashgraph.sdk.proto.Account DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.Account(); } public static com.hedera.hashgraph.sdk.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Account getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy