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

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

There is a newer version: 2.40.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: token.proto

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

/**
 * Protobuf type {@code proto.Token}
 */
public final class Token extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:proto.Token)
    TokenOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Token.newBuilder() to construct.
  private Token(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Token() {
    name_ = "";
    symbol_ = "";
    tokenType_ = 0;
    supplyType_ = 0;
    memo_ = "";
    customFees_ = java.util.Collections.emptyList();
    metadata_ = com.google.protobuf.ByteString.EMPTY;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new Token();
  }

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

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

  private int bitField0_;
  public static final int TOKEN_ID_FIELD_NUMBER = 1;
  private com.hedera.hashgraph.sdk.proto.TokenID tokenId_;
  /**
   * 
   **
   * The unique entity id of this token.
   * 
* * .proto.TokenID token_id = 1; * @return Whether the tokenId field is set. */ @java.lang.Override public boolean hasTokenId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The unique entity id of this token.
   * 
* * .proto.TokenID token_id = 1; * @return The tokenId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenID getTokenId() { return tokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenId_; } /** *
   **
   * The unique entity id of this token.
   * 
* * .proto.TokenID token_id = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getTokenIdOrBuilder() { return tokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenId_; } public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** *
   **
   * The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
   * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   **
   * The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
   * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYMBOL_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object symbol_ = ""; /** *
   **
   * The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
   * 
* * string symbol = 3; * @return The symbol. */ @java.lang.Override public java.lang.String getSymbol() { java.lang.Object ref = symbol_; 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(); symbol_ = s; return s; } } /** *
   **
   * The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
   * 
* * string symbol = 3; * @return The bytes for symbol. */ @java.lang.Override public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DECIMALS_FIELD_NUMBER = 4; private int decimals_ = 0; /** *
   **
   * The number of decimal places of this token. If decimals are 8 or 11, then the number of whole
   * tokens can be at most a few billions or millions, respectively. For example, it could match
   * Bitcoin (21 million whole tokens with 8 decimals) or hbars (50 billion whole tokens with 8 decimals).
   * It could even match Bitcoin with milli-satoshis (21 million whole tokens with 11 decimals).
   * 
* * int32 decimals = 4; * @return The decimals. */ @java.lang.Override public int getDecimals() { return decimals_; } public static final int TOTAL_SUPPLY_FIELD_NUMBER = 5; private long totalSupply_ = 0L; /** *
   **
   * The total supply of this token.
   * 
* * int64 total_supply = 5; * @return The totalSupply. */ @java.lang.Override public long getTotalSupply() { return totalSupply_; } public static final int TREASURY_ACCOUNT_ID_FIELD_NUMBER = 6; private com.hedera.hashgraph.sdk.proto.AccountID treasuryAccountId_; /** *
   **
   * The treasury account id of this token. This account receives the initial supply of
   * tokens as well as the tokens from the Token Mint operation once executed. The balance
   * of the treasury account is decreased when the Token Burn operation is executed.
   * 
* * .proto.AccountID treasury_account_id = 6; * @return Whether the treasuryAccountId field is set. */ @java.lang.Override public boolean hasTreasuryAccountId() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * The treasury account id of this token. This account receives the initial supply of
   * tokens as well as the tokens from the Token Mint operation once executed. The balance
   * of the treasury account is decreased when the Token Burn operation is executed.
   * 
* * .proto.AccountID treasury_account_id = 6; * @return The treasuryAccountId. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountID getTreasuryAccountId() { return treasuryAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasuryAccountId_; } /** *
   **
   * The treasury account id of this token. This account receives the initial supply of
   * tokens as well as the tokens from the Token Mint operation once executed. The balance
   * of the treasury account is decreased when the Token Burn operation is executed.
   * 
* * .proto.AccountID treasury_account_id = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getTreasuryAccountIdOrBuilder() { return treasuryAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasuryAccountId_; } public static final int ADMIN_KEY_FIELD_NUMBER = 7; private com.hedera.hashgraph.sdk.proto.Key adminKey_; /** *
   **
   * (Optional) The admin key of this token. If this key is set, the token is mutable.
   * A mutable token can be modified.
   * If this key is not set on token creation, it cannot be modified.
   * 
* * .proto.Key admin_key = 7; * @return Whether the adminKey field is set. */ @java.lang.Override public boolean hasAdminKey() { return ((bitField0_ & 0x00000004) != 0); } /** *
   **
   * (Optional) The admin key of this token. If this key is set, the token is mutable.
   * A mutable token can be modified.
   * If this key is not set on token creation, it cannot be modified.
   * 
* * .proto.Key admin_key = 7; * @return The adminKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getAdminKey() { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } /** *
   **
   * (Optional) The admin key of this token. If this key is set, the token is mutable.
   * A mutable token can be modified.
   * If this key is not set on token creation, it cannot be modified.
   * 
* * .proto.Key admin_key = 7; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } public static final int KYC_KEY_FIELD_NUMBER = 8; private com.hedera.hashgraph.sdk.proto.Key kycKey_; /** *
   **
   * (Optional) The kyc key of this token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key kyc_key = 8; * @return Whether the kycKey field is set. */ @java.lang.Override public boolean hasKycKey() { return ((bitField0_ & 0x00000008) != 0); } /** *
   **
   * (Optional) The kyc key of this token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key kyc_key = 8; * @return The kycKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getKycKey() { return kycKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : kycKey_; } /** *
   **
   * (Optional) The kyc key of this token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key kyc_key = 8; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKycKeyOrBuilder() { return kycKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : kycKey_; } public static final int FREEZE_KEY_FIELD_NUMBER = 9; private com.hedera.hashgraph.sdk.proto.Key freezeKey_; /** *
   **
   * (Optional) The freeze key of this token. This key is needed for freezing the token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key freeze_key = 9; * @return Whether the freezeKey field is set. */ @java.lang.Override public boolean hasFreezeKey() { return ((bitField0_ & 0x00000010) != 0); } /** *
   **
   * (Optional) The freeze key of this token. This key is needed for freezing the token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key freeze_key = 9; * @return The freezeKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getFreezeKey() { return freezeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : freezeKey_; } /** *
   **
   * (Optional) The freeze key of this token. This key is needed for freezing the token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key freeze_key = 9; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getFreezeKeyOrBuilder() { return freezeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : freezeKey_; } public static final int WIPE_KEY_FIELD_NUMBER = 10; private com.hedera.hashgraph.sdk.proto.Key wipeKey_; /** *
   **
   * (Optional) The wipe key of this token. This key is needed for wiping the token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key wipe_key = 10; * @return Whether the wipeKey field is set. */ @java.lang.Override public boolean hasWipeKey() { return ((bitField0_ & 0x00000020) != 0); } /** *
   **
   * (Optional) The wipe key of this token. This key is needed for wiping the token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key wipe_key = 10; * @return The wipeKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getWipeKey() { return wipeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : wipeKey_; } /** *
   **
   * (Optional) The wipe key of this token. This key is needed for wiping the token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key wipe_key = 10; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getWipeKeyOrBuilder() { return wipeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : wipeKey_; } public static final int SUPPLY_KEY_FIELD_NUMBER = 11; private com.hedera.hashgraph.sdk.proto.Key supplyKey_; /** *
   **
   * (Optional) The supply key of this token. This key is needed for minting or burning token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key supply_key = 11; * @return Whether the supplyKey field is set. */ @java.lang.Override public boolean hasSupplyKey() { return ((bitField0_ & 0x00000040) != 0); } /** *
   **
   * (Optional) The supply key of this token. This key is needed for minting or burning token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key supply_key = 11; * @return The supplyKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getSupplyKey() { return supplyKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : supplyKey_; } /** *
   **
   * (Optional) The supply key of this token. This key is needed for minting or burning token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key supply_key = 11; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getSupplyKeyOrBuilder() { return supplyKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : supplyKey_; } public static final int FEE_SCHEDULE_KEY_FIELD_NUMBER = 12; private com.hedera.hashgraph.sdk.proto.Key feeScheduleKey_; /** *
   **
   * (Optional) The fee schedule key of this token. This key should be set, in order to make any
   * changes to the custom fee schedule.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key fee_schedule_key = 12; * @return Whether the feeScheduleKey field is set. */ @java.lang.Override public boolean hasFeeScheduleKey() { return ((bitField0_ & 0x00000080) != 0); } /** *
   **
   * (Optional) The fee schedule key of this token. This key should be set, in order to make any
   * changes to the custom fee schedule.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key fee_schedule_key = 12; * @return The feeScheduleKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getFeeScheduleKey() { return feeScheduleKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : feeScheduleKey_; } /** *
   **
   * (Optional) The fee schedule key of this token. This key should be set, in order to make any
   * changes to the custom fee schedule.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key fee_schedule_key = 12; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getFeeScheduleKeyOrBuilder() { return feeScheduleKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : feeScheduleKey_; } public static final int PAUSE_KEY_FIELD_NUMBER = 13; private com.hedera.hashgraph.sdk.proto.Key pauseKey_; /** *
   **
   * (Optional) The pause key of this token. This key is needed for pausing the token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key pause_key = 13; * @return Whether the pauseKey field is set. */ @java.lang.Override public boolean hasPauseKey() { return ((bitField0_ & 0x00000100) != 0); } /** *
   **
   * (Optional) The pause key of this token. This key is needed for pausing the token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key pause_key = 13; * @return The pauseKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getPauseKey() { return pauseKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : pauseKey_; } /** *
   **
   * (Optional) The pause key of this token. This key is needed for pausing the token.
   * If this key is not set on token creation, it can only be set if the token has admin key set.
   * 
* * .proto.Key pause_key = 13; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getPauseKeyOrBuilder() { return pauseKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : pauseKey_; } public static final int LAST_USED_SERIAL_NUMBER_FIELD_NUMBER = 14; private long lastUsedSerialNumber_ = 0L; /** *
   **
   * The last used serial number of this token.
   * 
* * int64 last_used_serial_number = 14; * @return The lastUsedSerialNumber. */ @java.lang.Override public long getLastUsedSerialNumber() { return lastUsedSerialNumber_; } public static final int DELETED_FIELD_NUMBER = 15; private boolean deleted_ = false; /** *
   **
   * The flag indicating if this token is deleted.
   * 
* * bool deleted = 15; * @return The deleted. */ @java.lang.Override public boolean getDeleted() { return deleted_; } public static final int TOKEN_TYPE_FIELD_NUMBER = 16; private int tokenType_ = 0; /** *
   **
   * The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
   * If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
   * 
* * .proto.TokenType token_type = 16; * @return The enum numeric value on the wire for tokenType. */ @java.lang.Override public int getTokenTypeValue() { return tokenType_; } /** *
   **
   * The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
   * If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
   * 
* * .proto.TokenType token_type = 16; * @return The tokenType. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenType getTokenType() { com.hedera.hashgraph.sdk.proto.TokenType result = com.hedera.hashgraph.sdk.proto.TokenType.forNumber(tokenType_); return result == null ? com.hedera.hashgraph.sdk.proto.TokenType.UNRECOGNIZED : result; } public static final int SUPPLY_TYPE_FIELD_NUMBER = 17; private int supplyType_ = 0; /** *
   **
   * The supply type of this token.A token can have either INFINITE or FINITE supply type.
   * If it has been omitted during token creation, INFINITE type is used.
   * 
* * .proto.TokenSupplyType supply_type = 17; * @return The enum numeric value on the wire for supplyType. */ @java.lang.Override public int getSupplyTypeValue() { return supplyType_; } /** *
   **
   * The supply type of this token.A token can have either INFINITE or FINITE supply type.
   * If it has been omitted during token creation, INFINITE type is used.
   * 
* * .proto.TokenSupplyType supply_type = 17; * @return The supplyType. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenSupplyType getSupplyType() { com.hedera.hashgraph.sdk.proto.TokenSupplyType result = com.hedera.hashgraph.sdk.proto.TokenSupplyType.forNumber(supplyType_); return result == null ? com.hedera.hashgraph.sdk.proto.TokenSupplyType.UNRECOGNIZED : result; } public static final int AUTO_RENEW_ACCOUNT_ID_FIELD_NUMBER = 18; private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccountId_; /** *
   **
   * The id of the account (if any) that the network will attempt to charge for the
   * token's auto-renewal upon expiration.
   * 
* * .proto.AccountID auto_renew_account_id = 18; * @return Whether the autoRenewAccountId field is set. */ @java.lang.Override public boolean hasAutoRenewAccountId() { return ((bitField0_ & 0x00000200) != 0); } /** *
   **
   * The id of the account (if any) that the network will attempt to charge for the
   * token's auto-renewal upon expiration.
   * 
* * .proto.AccountID auto_renew_account_id = 18; * @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_; } /** *
   **
   * The id of the account (if any) that the network will attempt to charge for the
   * token's auto-renewal upon expiration.
   * 
* * .proto.AccountID auto_renew_account_id = 18; */ @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 = 19; private long autoRenewSeconds_ = 0L; /** *
   **
   * The number of seconds the network should automatically extend the token's expiration by, if the
   * token has a valid auto-renew account, and is not deleted upon expiration.
   * If this is not provided in a allowed range on token 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 = 19; * @return The autoRenewSeconds. */ @java.lang.Override public long getAutoRenewSeconds() { return autoRenewSeconds_; } public static final int EXPIRATION_SECOND_FIELD_NUMBER = 20; private long expirationSecond_ = 0L; /** *
   **
   * The expiration time of the token, in seconds since the epoch.
   * 
* * int64 expiration_second = 20; * @return The expirationSecond. */ @java.lang.Override public long getExpirationSecond() { return expirationSecond_; } public static final int MEMO_FIELD_NUMBER = 21; @SuppressWarnings("serial") private volatile java.lang.Object memo_ = ""; /** *
   **
   * An optional description of the token with UTF-8 encoding up to 100 bytes.
   * 
* * string memo = 21; * @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 token with UTF-8 encoding up to 100 bytes.
   * 
* * string memo = 21; * @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 MAX_SUPPLY_FIELD_NUMBER = 22; private long maxSupply_ = 0L; /** *
   **
   * The maximum supply of this token.
   * 
* * int64 max_supply = 22; * @return The maxSupply. */ @java.lang.Override public long getMaxSupply() { return maxSupply_; } public static final int PAUSED_FIELD_NUMBER = 23; private boolean paused_ = false; /** *
   **
   * The flag indicating if this token is paused.
   * 
* * bool paused = 23; * @return The paused. */ @java.lang.Override public boolean getPaused() { return paused_; } public static final int ACCOUNTS_FROZEN_BY_DEFAULT_FIELD_NUMBER = 24; private boolean accountsFrozenByDefault_ = false; /** *
   **
   * The flag indicating if this token has accounts associated to it that are frozen by default.
   * 
* * bool accounts_frozen_by_default = 24; * @return The accountsFrozenByDefault. */ @java.lang.Override public boolean getAccountsFrozenByDefault() { return accountsFrozenByDefault_; } public static final int ACCOUNTS_KYC_GRANTED_BY_DEFAULT_FIELD_NUMBER = 25; private boolean accountsKycGrantedByDefault_ = false; /** *
   **
   * The flag indicating if this token has accounts associated with it that are KYC granted by default.
   * 
* * bool accounts_kyc_granted_by_default = 25; * @return The accountsKycGrantedByDefault. */ @java.lang.Override public boolean getAccountsKycGrantedByDefault() { return accountsKycGrantedByDefault_; } public static final int CUSTOM_FEES_FIELD_NUMBER = 26; @SuppressWarnings("serial") private java.util.List customFees_; /** *
   **
   * (Optional) The custom fees of this token.
   * 
* * repeated .proto.CustomFee custom_fees = 26; */ @java.lang.Override public java.util.List getCustomFeesList() { return customFees_; } /** *
   **
   * (Optional) The custom fees of this token.
   * 
* * repeated .proto.CustomFee custom_fees = 26; */ @java.lang.Override public java.util.List getCustomFeesOrBuilderList() { return customFees_; } /** *
   **
   * (Optional) The custom fees of this token.
   * 
* * repeated .proto.CustomFee custom_fees = 26; */ @java.lang.Override public int getCustomFeesCount() { return customFees_.size(); } /** *
   **
   * (Optional) The custom fees of this token.
   * 
* * repeated .proto.CustomFee custom_fees = 26; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.CustomFee getCustomFees(int index) { return customFees_.get(index); } /** *
   **
   * (Optional) The custom fees of this token.
   * 
* * repeated .proto.CustomFee custom_fees = 26; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder getCustomFeesOrBuilder( int index) { return customFees_.get(index); } public static final int METADATA_FIELD_NUMBER = 27; private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** *
   **
   * Metadata of the created token definition
   * 
* * bytes metadata = 27; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } public static final int METADATA_KEY_FIELD_NUMBER = 28; private com.hedera.hashgraph.sdk.proto.Key metadataKey_; /** *
   **
   * The key which can change the metadata of a token
   * (token definition and individual NFTs).
   * 
* * .proto.Key metadata_key = 28; * @return Whether the metadataKey field is set. */ @java.lang.Override public boolean hasMetadataKey() { return ((bitField0_ & 0x00000400) != 0); } /** *
   **
   * The key which can change the metadata of a token
   * (token definition and individual NFTs).
   * 
* * .proto.Key metadata_key = 28; * @return The metadataKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getMetadataKey() { return metadataKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : metadataKey_; } /** *
   **
   * The key which can change the metadata of a token
   * (token definition and individual NFTs).
   * 
* * .proto.Key metadata_key = 28; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getMetadataKeyOrBuilder() { return metadataKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : metadataKey_; } 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, getTokenId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(symbol_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, symbol_); } if (decimals_ != 0) { output.writeInt32(4, decimals_); } if (totalSupply_ != 0L) { output.writeInt64(5, totalSupply_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getTreasuryAccountId()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getAdminKey()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getKycKey()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, getFreezeKey()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(10, getWipeKey()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(11, getSupplyKey()); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(12, getFeeScheduleKey()); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(13, getPauseKey()); } if (lastUsedSerialNumber_ != 0L) { output.writeInt64(14, lastUsedSerialNumber_); } if (deleted_ != false) { output.writeBool(15, deleted_); } if (tokenType_ != com.hedera.hashgraph.sdk.proto.TokenType.FUNGIBLE_COMMON.getNumber()) { output.writeEnum(16, tokenType_); } if (supplyType_ != com.hedera.hashgraph.sdk.proto.TokenSupplyType.INFINITE.getNumber()) { output.writeEnum(17, supplyType_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(18, getAutoRenewAccountId()); } if (autoRenewSeconds_ != 0L) { output.writeInt64(19, autoRenewSeconds_); } if (expirationSecond_ != 0L) { output.writeInt64(20, expirationSecond_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, memo_); } if (maxSupply_ != 0L) { output.writeInt64(22, maxSupply_); } if (paused_ != false) { output.writeBool(23, paused_); } if (accountsFrozenByDefault_ != false) { output.writeBool(24, accountsFrozenByDefault_); } if (accountsKycGrantedByDefault_ != false) { output.writeBool(25, accountsKycGrantedByDefault_); } for (int i = 0; i < customFees_.size(); i++) { output.writeMessage(26, customFees_.get(i)); } if (!metadata_.isEmpty()) { output.writeBytes(27, metadata_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(28, getMetadataKey()); } 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, getTokenId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(symbol_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, symbol_); } if (decimals_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, decimals_); } if (totalSupply_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, totalSupply_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTreasuryAccountId()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getAdminKey()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getKycKey()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getFreezeKey()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getWipeKey()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getSupplyKey()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getFeeScheduleKey()); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getPauseKey()); } if (lastUsedSerialNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, lastUsedSerialNumber_); } if (deleted_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, deleted_); } if (tokenType_ != com.hedera.hashgraph.sdk.proto.TokenType.FUNGIBLE_COMMON.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(16, tokenType_); } if (supplyType_ != com.hedera.hashgraph.sdk.proto.TokenSupplyType.INFINITE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(17, supplyType_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getAutoRenewAccountId()); } if (autoRenewSeconds_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, autoRenewSeconds_); } if (expirationSecond_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(20, expirationSecond_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, memo_); } if (maxSupply_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(22, maxSupply_); } if (paused_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(23, paused_); } if (accountsFrozenByDefault_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(24, accountsFrozenByDefault_); } if (accountsKycGrantedByDefault_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(25, accountsKycGrantedByDefault_); } for (int i = 0; i < customFees_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, customFees_.get(i)); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(27, metadata_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, getMetadataKey()); } 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.Token)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.Token other = (com.hedera.hashgraph.sdk.proto.Token) obj; if (hasTokenId() != other.hasTokenId()) return false; if (hasTokenId()) { if (!getTokenId() .equals(other.getTokenId())) return false; } if (!getName() .equals(other.getName())) return false; if (!getSymbol() .equals(other.getSymbol())) return false; if (getDecimals() != other.getDecimals()) return false; if (getTotalSupply() != other.getTotalSupply()) return false; if (hasTreasuryAccountId() != other.hasTreasuryAccountId()) return false; if (hasTreasuryAccountId()) { if (!getTreasuryAccountId() .equals(other.getTreasuryAccountId())) return false; } if (hasAdminKey() != other.hasAdminKey()) return false; if (hasAdminKey()) { if (!getAdminKey() .equals(other.getAdminKey())) return false; } if (hasKycKey() != other.hasKycKey()) return false; if (hasKycKey()) { if (!getKycKey() .equals(other.getKycKey())) return false; } if (hasFreezeKey() != other.hasFreezeKey()) return false; if (hasFreezeKey()) { if (!getFreezeKey() .equals(other.getFreezeKey())) return false; } if (hasWipeKey() != other.hasWipeKey()) return false; if (hasWipeKey()) { if (!getWipeKey() .equals(other.getWipeKey())) return false; } if (hasSupplyKey() != other.hasSupplyKey()) return false; if (hasSupplyKey()) { if (!getSupplyKey() .equals(other.getSupplyKey())) return false; } if (hasFeeScheduleKey() != other.hasFeeScheduleKey()) return false; if (hasFeeScheduleKey()) { if (!getFeeScheduleKey() .equals(other.getFeeScheduleKey())) return false; } if (hasPauseKey() != other.hasPauseKey()) return false; if (hasPauseKey()) { if (!getPauseKey() .equals(other.getPauseKey())) return false; } if (getLastUsedSerialNumber() != other.getLastUsedSerialNumber()) return false; if (getDeleted() != other.getDeleted()) return false; if (tokenType_ != other.tokenType_) return false; if (supplyType_ != other.supplyType_) return false; if (hasAutoRenewAccountId() != other.hasAutoRenewAccountId()) return false; if (hasAutoRenewAccountId()) { if (!getAutoRenewAccountId() .equals(other.getAutoRenewAccountId())) return false; } if (getAutoRenewSeconds() != other.getAutoRenewSeconds()) return false; if (getExpirationSecond() != other.getExpirationSecond()) return false; if (!getMemo() .equals(other.getMemo())) return false; if (getMaxSupply() != other.getMaxSupply()) return false; if (getPaused() != other.getPaused()) return false; if (getAccountsFrozenByDefault() != other.getAccountsFrozenByDefault()) return false; if (getAccountsKycGrantedByDefault() != other.getAccountsKycGrantedByDefault()) return false; if (!getCustomFeesList() .equals(other.getCustomFeesList())) return false; if (!getMetadata() .equals(other.getMetadata())) return false; if (hasMetadataKey() != other.hasMetadataKey()) return false; if (hasMetadataKey()) { if (!getMetadataKey() .equals(other.getMetadataKey())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTokenId()) { hash = (37 * hash) + TOKEN_ID_FIELD_NUMBER; hash = (53 * hash) + getTokenId().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SYMBOL_FIELD_NUMBER; hash = (53 * hash) + getSymbol().hashCode(); hash = (37 * hash) + DECIMALS_FIELD_NUMBER; hash = (53 * hash) + getDecimals(); hash = (37 * hash) + TOTAL_SUPPLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalSupply()); if (hasTreasuryAccountId()) { hash = (37 * hash) + TREASURY_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getTreasuryAccountId().hashCode(); } if (hasAdminKey()) { hash = (37 * hash) + ADMIN_KEY_FIELD_NUMBER; hash = (53 * hash) + getAdminKey().hashCode(); } if (hasKycKey()) { hash = (37 * hash) + KYC_KEY_FIELD_NUMBER; hash = (53 * hash) + getKycKey().hashCode(); } if (hasFreezeKey()) { hash = (37 * hash) + FREEZE_KEY_FIELD_NUMBER; hash = (53 * hash) + getFreezeKey().hashCode(); } if (hasWipeKey()) { hash = (37 * hash) + WIPE_KEY_FIELD_NUMBER; hash = (53 * hash) + getWipeKey().hashCode(); } if (hasSupplyKey()) { hash = (37 * hash) + SUPPLY_KEY_FIELD_NUMBER; hash = (53 * hash) + getSupplyKey().hashCode(); } if (hasFeeScheduleKey()) { hash = (37 * hash) + FEE_SCHEDULE_KEY_FIELD_NUMBER; hash = (53 * hash) + getFeeScheduleKey().hashCode(); } if (hasPauseKey()) { hash = (37 * hash) + PAUSE_KEY_FIELD_NUMBER; hash = (53 * hash) + getPauseKey().hashCode(); } hash = (37 * hash) + LAST_USED_SERIAL_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastUsedSerialNumber()); hash = (37 * hash) + DELETED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeleted()); hash = (37 * hash) + TOKEN_TYPE_FIELD_NUMBER; hash = (53 * hash) + tokenType_; hash = (37 * hash) + SUPPLY_TYPE_FIELD_NUMBER; hash = (53 * hash) + supplyType_; 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) + EXPIRATION_SECOND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getExpirationSecond()); hash = (37 * hash) + MEMO_FIELD_NUMBER; hash = (53 * hash) + getMemo().hashCode(); hash = (37 * hash) + MAX_SUPPLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxSupply()); hash = (37 * hash) + PAUSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPaused()); hash = (37 * hash) + ACCOUNTS_FROZEN_BY_DEFAULT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAccountsFrozenByDefault()); hash = (37 * hash) + ACCOUNTS_KYC_GRANTED_BY_DEFAULT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAccountsKycGrantedByDefault()); if (getCustomFeesCount() > 0) { hash = (37 * hash) + CUSTOM_FEES_FIELD_NUMBER; hash = (53 * hash) + getCustomFeesList().hashCode(); } hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); if (hasMetadataKey()) { hash = (37 * hash) + METADATA_KEY_FIELD_NUMBER; hash = (53 * hash) + getMetadataKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.Token parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Token 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.Token parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Token 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.Token parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.Token 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.Token parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.Token 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.Token parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.Token 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.Token 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.Token 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.Token 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.Token} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.Token) com.hedera.hashgraph.sdk.proto.TokenOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.TokenOuterClass.internal_static_proto_Token_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.TokenOuterClass.internal_static_proto_Token_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.Token.class, com.hedera.hashgraph.sdk.proto.Token.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.Token.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTokenIdFieldBuilder(); getTreasuryAccountIdFieldBuilder(); getAdminKeyFieldBuilder(); getKycKeyFieldBuilder(); getFreezeKeyFieldBuilder(); getWipeKeyFieldBuilder(); getSupplyKeyFieldBuilder(); getFeeScheduleKeyFieldBuilder(); getPauseKeyFieldBuilder(); getAutoRenewAccountIdFieldBuilder(); getCustomFeesFieldBuilder(); getMetadataKeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tokenId_ = null; if (tokenIdBuilder_ != null) { tokenIdBuilder_.dispose(); tokenIdBuilder_ = null; } name_ = ""; symbol_ = ""; decimals_ = 0; totalSupply_ = 0L; treasuryAccountId_ = null; if (treasuryAccountIdBuilder_ != null) { treasuryAccountIdBuilder_.dispose(); treasuryAccountIdBuilder_ = null; } adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } kycKey_ = null; if (kycKeyBuilder_ != null) { kycKeyBuilder_.dispose(); kycKeyBuilder_ = null; } freezeKey_ = null; if (freezeKeyBuilder_ != null) { freezeKeyBuilder_.dispose(); freezeKeyBuilder_ = null; } wipeKey_ = null; if (wipeKeyBuilder_ != null) { wipeKeyBuilder_.dispose(); wipeKeyBuilder_ = null; } supplyKey_ = null; if (supplyKeyBuilder_ != null) { supplyKeyBuilder_.dispose(); supplyKeyBuilder_ = null; } feeScheduleKey_ = null; if (feeScheduleKeyBuilder_ != null) { feeScheduleKeyBuilder_.dispose(); feeScheduleKeyBuilder_ = null; } pauseKey_ = null; if (pauseKeyBuilder_ != null) { pauseKeyBuilder_.dispose(); pauseKeyBuilder_ = null; } lastUsedSerialNumber_ = 0L; deleted_ = false; tokenType_ = 0; supplyType_ = 0; autoRenewAccountId_ = null; if (autoRenewAccountIdBuilder_ != null) { autoRenewAccountIdBuilder_.dispose(); autoRenewAccountIdBuilder_ = null; } autoRenewSeconds_ = 0L; expirationSecond_ = 0L; memo_ = ""; maxSupply_ = 0L; paused_ = false; accountsFrozenByDefault_ = false; accountsKycGrantedByDefault_ = false; if (customFeesBuilder_ == null) { customFees_ = java.util.Collections.emptyList(); } else { customFees_ = null; customFeesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x02000000); metadata_ = com.google.protobuf.ByteString.EMPTY; metadataKey_ = null; if (metadataKeyBuilder_ != null) { metadataKeyBuilder_.dispose(); metadataKeyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.TokenOuterClass.internal_static_proto_Token_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Token getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.Token.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Token build() { com.hedera.hashgraph.sdk.proto.Token result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.Token buildPartial() { com.hedera.hashgraph.sdk.proto.Token result = new com.hedera.hashgraph.sdk.proto.Token(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.Token result) { if (customFeesBuilder_ == null) { if (((bitField0_ & 0x02000000) != 0)) { customFees_ = java.util.Collections.unmodifiableList(customFees_); bitField0_ = (bitField0_ & ~0x02000000); } result.customFees_ = customFees_; } else { result.customFees_ = customFeesBuilder_.build(); } } private void buildPartial0(com.hedera.hashgraph.sdk.proto.Token result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tokenId_ = tokenIdBuilder_ == null ? tokenId_ : tokenIdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.symbol_ = symbol_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.decimals_ = decimals_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.totalSupply_ = totalSupply_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.treasuryAccountId_ = treasuryAccountIdBuilder_ == null ? treasuryAccountId_ : treasuryAccountIdBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.adminKey_ = adminKeyBuilder_ == null ? adminKey_ : adminKeyBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.kycKey_ = kycKeyBuilder_ == null ? kycKey_ : kycKeyBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { result.freezeKey_ = freezeKeyBuilder_ == null ? freezeKey_ : freezeKeyBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000200) != 0)) { result.wipeKey_ = wipeKeyBuilder_ == null ? wipeKey_ : wipeKeyBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000400) != 0)) { result.supplyKey_ = supplyKeyBuilder_ == null ? supplyKey_ : supplyKeyBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000800) != 0)) { result.feeScheduleKey_ = feeScheduleKeyBuilder_ == null ? feeScheduleKey_ : feeScheduleKeyBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00001000) != 0)) { result.pauseKey_ = pauseKeyBuilder_ == null ? pauseKey_ : pauseKeyBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00002000) != 0)) { result.lastUsedSerialNumber_ = lastUsedSerialNumber_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.deleted_ = deleted_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.tokenType_ = tokenType_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.supplyType_ = supplyType_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.autoRenewAccountId_ = autoRenewAccountIdBuilder_ == null ? autoRenewAccountId_ : autoRenewAccountIdBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00040000) != 0)) { result.autoRenewSeconds_ = autoRenewSeconds_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.expirationSecond_ = expirationSecond_; } if (((from_bitField0_ & 0x00100000) != 0)) { result.memo_ = memo_; } if (((from_bitField0_ & 0x00200000) != 0)) { result.maxSupply_ = maxSupply_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.paused_ = paused_; } if (((from_bitField0_ & 0x00800000) != 0)) { result.accountsFrozenByDefault_ = accountsFrozenByDefault_; } if (((from_bitField0_ & 0x01000000) != 0)) { result.accountsKycGrantedByDefault_ = accountsKycGrantedByDefault_; } if (((from_bitField0_ & 0x04000000) != 0)) { result.metadata_ = metadata_; } if (((from_bitField0_ & 0x08000000) != 0)) { result.metadataKey_ = metadataKeyBuilder_ == null ? metadataKey_ : metadataKeyBuilder_.build(); to_bitField0_ |= 0x00000400; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hashgraph.sdk.proto.Token) { return mergeFrom((com.hedera.hashgraph.sdk.proto.Token)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.Token other) { if (other == com.hedera.hashgraph.sdk.proto.Token.getDefaultInstance()) return this; if (other.hasTokenId()) { mergeTokenId(other.getTokenId()); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getSymbol().isEmpty()) { symbol_ = other.symbol_; bitField0_ |= 0x00000004; onChanged(); } if (other.getDecimals() != 0) { setDecimals(other.getDecimals()); } if (other.getTotalSupply() != 0L) { setTotalSupply(other.getTotalSupply()); } if (other.hasTreasuryAccountId()) { mergeTreasuryAccountId(other.getTreasuryAccountId()); } if (other.hasAdminKey()) { mergeAdminKey(other.getAdminKey()); } if (other.hasKycKey()) { mergeKycKey(other.getKycKey()); } if (other.hasFreezeKey()) { mergeFreezeKey(other.getFreezeKey()); } if (other.hasWipeKey()) { mergeWipeKey(other.getWipeKey()); } if (other.hasSupplyKey()) { mergeSupplyKey(other.getSupplyKey()); } if (other.hasFeeScheduleKey()) { mergeFeeScheduleKey(other.getFeeScheduleKey()); } if (other.hasPauseKey()) { mergePauseKey(other.getPauseKey()); } if (other.getLastUsedSerialNumber() != 0L) { setLastUsedSerialNumber(other.getLastUsedSerialNumber()); } if (other.getDeleted() != false) { setDeleted(other.getDeleted()); } if (other.tokenType_ != 0) { setTokenTypeValue(other.getTokenTypeValue()); } if (other.supplyType_ != 0) { setSupplyTypeValue(other.getSupplyTypeValue()); } if (other.hasAutoRenewAccountId()) { mergeAutoRenewAccountId(other.getAutoRenewAccountId()); } if (other.getAutoRenewSeconds() != 0L) { setAutoRenewSeconds(other.getAutoRenewSeconds()); } if (other.getExpirationSecond() != 0L) { setExpirationSecond(other.getExpirationSecond()); } if (!other.getMemo().isEmpty()) { memo_ = other.memo_; bitField0_ |= 0x00100000; onChanged(); } if (other.getMaxSupply() != 0L) { setMaxSupply(other.getMaxSupply()); } if (other.getPaused() != false) { setPaused(other.getPaused()); } if (other.getAccountsFrozenByDefault() != false) { setAccountsFrozenByDefault(other.getAccountsFrozenByDefault()); } if (other.getAccountsKycGrantedByDefault() != false) { setAccountsKycGrantedByDefault(other.getAccountsKycGrantedByDefault()); } if (customFeesBuilder_ == null) { if (!other.customFees_.isEmpty()) { if (customFees_.isEmpty()) { customFees_ = other.customFees_; bitField0_ = (bitField0_ & ~0x02000000); } else { ensureCustomFeesIsMutable(); customFees_.addAll(other.customFees_); } onChanged(); } } else { if (!other.customFees_.isEmpty()) { if (customFeesBuilder_.isEmpty()) { customFeesBuilder_.dispose(); customFeesBuilder_ = null; customFees_ = other.customFees_; bitField0_ = (bitField0_ & ~0x02000000); customFeesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCustomFeesFieldBuilder() : null; } else { customFeesBuilder_.addAllMessages(other.customFees_); } } } if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { setMetadata(other.getMetadata()); } if (other.hasMetadataKey()) { mergeMetadataKey(other.getMetadataKey()); } 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( getTokenIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { symbol_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { decimals_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { totalSupply_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { input.readMessage( getTreasuryAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getAdminKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getKycKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getFreezeKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 82: { input.readMessage( getWipeKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 82 case 90: { input.readMessage( getSupplyKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 90 case 98: { input.readMessage( getFeeScheduleKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 98 case 106: { input.readMessage( getPauseKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 106 case 112: { lastUsedSerialNumber_ = input.readInt64(); bitField0_ |= 0x00002000; break; } // case 112 case 120: { deleted_ = input.readBool(); bitField0_ |= 0x00004000; break; } // case 120 case 128: { tokenType_ = input.readEnum(); bitField0_ |= 0x00008000; break; } // case 128 case 136: { supplyType_ = input.readEnum(); bitField0_ |= 0x00010000; break; } // case 136 case 146: { input.readMessage( getAutoRenewAccountIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00020000; break; } // case 146 case 152: { autoRenewSeconds_ = input.readInt64(); bitField0_ |= 0x00040000; break; } // case 152 case 160: { expirationSecond_ = input.readInt64(); bitField0_ |= 0x00080000; break; } // case 160 case 170: { memo_ = input.readStringRequireUtf8(); bitField0_ |= 0x00100000; break; } // case 170 case 176: { maxSupply_ = input.readInt64(); bitField0_ |= 0x00200000; break; } // case 176 case 184: { paused_ = input.readBool(); bitField0_ |= 0x00400000; break; } // case 184 case 192: { accountsFrozenByDefault_ = input.readBool(); bitField0_ |= 0x00800000; break; } // case 192 case 200: { accountsKycGrantedByDefault_ = input.readBool(); bitField0_ |= 0x01000000; break; } // case 200 case 210: { com.hedera.hashgraph.sdk.proto.CustomFee m = input.readMessage( com.hedera.hashgraph.sdk.proto.CustomFee.parser(), extensionRegistry); if (customFeesBuilder_ == null) { ensureCustomFeesIsMutable(); customFees_.add(m); } else { customFeesBuilder_.addMessage(m); } break; } // case 210 case 218: { metadata_ = input.readBytes(); bitField0_ |= 0x04000000; break; } // case 218 case 226: { input.readMessage( getMetadataKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x08000000; break; } // case 226 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.hedera.hashgraph.sdk.proto.TokenID tokenId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> tokenIdBuilder_; /** *
     **
     * The unique entity id of this token.
     * 
* * .proto.TokenID token_id = 1; * @return Whether the tokenId field is set. */ public boolean hasTokenId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The unique entity id of this token.
     * 
* * .proto.TokenID token_id = 1; * @return The tokenId. */ public com.hedera.hashgraph.sdk.proto.TokenID getTokenId() { if (tokenIdBuilder_ == null) { return tokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenId_; } else { return tokenIdBuilder_.getMessage(); } } /** *
     **
     * The unique entity id of this token.
     * 
* * .proto.TokenID token_id = 1; */ public Builder setTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) { if (tokenIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tokenId_ = value; } else { tokenIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The unique entity id of this token.
     * 
* * .proto.TokenID token_id = 1; */ public Builder setTokenId( com.hedera.hashgraph.sdk.proto.TokenID.Builder builderForValue) { if (tokenIdBuilder_ == null) { tokenId_ = builderForValue.build(); } else { tokenIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The unique entity id of this token.
     * 
* * .proto.TokenID token_id = 1; */ public Builder mergeTokenId(com.hedera.hashgraph.sdk.proto.TokenID value) { if (tokenIdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && tokenId_ != null && tokenId_ != com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance()) { getTokenIdBuilder().mergeFrom(value); } else { tokenId_ = value; } } else { tokenIdBuilder_.mergeFrom(value); } if (tokenId_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The unique entity id of this token.
     * 
* * .proto.TokenID token_id = 1; */ public Builder clearTokenId() { bitField0_ = (bitField0_ & ~0x00000001); tokenId_ = null; if (tokenIdBuilder_ != null) { tokenIdBuilder_.dispose(); tokenIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The unique entity id of this token.
     * 
* * .proto.TokenID token_id = 1; */ public com.hedera.hashgraph.sdk.proto.TokenID.Builder getTokenIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTokenIdFieldBuilder().getBuilder(); } /** *
     **
     * The unique entity id of this token.
     * 
* * .proto.TokenID token_id = 1; */ public com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder getTokenIdOrBuilder() { if (tokenIdBuilder_ != null) { return tokenIdBuilder_.getMessageOrBuilder(); } else { return tokenId_ == null ? com.hedera.hashgraph.sdk.proto.TokenID.getDefaultInstance() : tokenId_; } } /** *
     **
     * The unique entity id of this token.
     * 
* * .proto.TokenID token_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder> getTokenIdFieldBuilder() { if (tokenIdBuilder_ == null) { tokenIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.TokenID, com.hedera.hashgraph.sdk.proto.TokenID.Builder, com.hedera.hashgraph.sdk.proto.TokenIDOrBuilder>( getTokenId(), getParentForChildren(), isClean()); tokenId_ = null; } return tokenIdBuilder_; } private java.lang.Object name_ = ""; /** *
     **
     * The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
     * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
     * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
     * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
     * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     **
     * The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
     * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object symbol_ = ""; /** *
     **
     * The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
     * 
* * string symbol = 3; * @return The symbol. */ public java.lang.String getSymbol() { java.lang.Object ref = symbol_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); symbol_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
     * 
* * string symbol = 3; * @return The bytes for symbol. */ public com.google.protobuf.ByteString getSymbolBytes() { java.lang.Object ref = symbol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symbol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
     * 
* * string symbol = 3; * @param value The symbol to set. * @return This builder for chaining. */ public Builder setSymbol( java.lang.String value) { if (value == null) { throw new NullPointerException(); } symbol_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
     * 
* * string symbol = 3; * @return This builder for chaining. */ public Builder clearSymbol() { symbol_ = getDefaultInstance().getSymbol(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     **
     * The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
     * 
* * string symbol = 3; * @param value The bytes for symbol to set. * @return This builder for chaining. */ public Builder setSymbolBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); symbol_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private int decimals_ ; /** *
     **
     * The number of decimal places of this token. If decimals are 8 or 11, then the number of whole
     * tokens can be at most a few billions or millions, respectively. For example, it could match
     * Bitcoin (21 million whole tokens with 8 decimals) or hbars (50 billion whole tokens with 8 decimals).
     * It could even match Bitcoin with milli-satoshis (21 million whole tokens with 11 decimals).
     * 
* * int32 decimals = 4; * @return The decimals. */ @java.lang.Override public int getDecimals() { return decimals_; } /** *
     **
     * The number of decimal places of this token. If decimals are 8 or 11, then the number of whole
     * tokens can be at most a few billions or millions, respectively. For example, it could match
     * Bitcoin (21 million whole tokens with 8 decimals) or hbars (50 billion whole tokens with 8 decimals).
     * It could even match Bitcoin with milli-satoshis (21 million whole tokens with 11 decimals).
     * 
* * int32 decimals = 4; * @param value The decimals to set. * @return This builder for chaining. */ public Builder setDecimals(int value) { decimals_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * The number of decimal places of this token. If decimals are 8 or 11, then the number of whole
     * tokens can be at most a few billions or millions, respectively. For example, it could match
     * Bitcoin (21 million whole tokens with 8 decimals) or hbars (50 billion whole tokens with 8 decimals).
     * It could even match Bitcoin with milli-satoshis (21 million whole tokens with 11 decimals).
     * 
* * int32 decimals = 4; * @return This builder for chaining. */ public Builder clearDecimals() { bitField0_ = (bitField0_ & ~0x00000008); decimals_ = 0; onChanged(); return this; } private long totalSupply_ ; /** *
     **
     * The total supply of this token.
     * 
* * int64 total_supply = 5; * @return The totalSupply. */ @java.lang.Override public long getTotalSupply() { return totalSupply_; } /** *
     **
     * The total supply of this token.
     * 
* * int64 total_supply = 5; * @param value The totalSupply to set. * @return This builder for chaining. */ public Builder setTotalSupply(long value) { totalSupply_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * The total supply of this token.
     * 
* * int64 total_supply = 5; * @return This builder for chaining. */ public Builder clearTotalSupply() { bitField0_ = (bitField0_ & ~0x00000010); totalSupply_ = 0L; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.AccountID treasuryAccountId_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> treasuryAccountIdBuilder_; /** *
     **
     * The treasury account id of this token. This account receives the initial supply of
     * tokens as well as the tokens from the Token Mint operation once executed. The balance
     * of the treasury account is decreased when the Token Burn operation is executed.
     * 
* * .proto.AccountID treasury_account_id = 6; * @return Whether the treasuryAccountId field is set. */ public boolean hasTreasuryAccountId() { return ((bitField0_ & 0x00000020) != 0); } /** *
     **
     * The treasury account id of this token. This account receives the initial supply of
     * tokens as well as the tokens from the Token Mint operation once executed. The balance
     * of the treasury account is decreased when the Token Burn operation is executed.
     * 
* * .proto.AccountID treasury_account_id = 6; * @return The treasuryAccountId. */ public com.hedera.hashgraph.sdk.proto.AccountID getTreasuryAccountId() { if (treasuryAccountIdBuilder_ == null) { return treasuryAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasuryAccountId_; } else { return treasuryAccountIdBuilder_.getMessage(); } } /** *
     **
     * The treasury account id of this token. This account receives the initial supply of
     * tokens as well as the tokens from the Token Mint operation once executed. The balance
     * of the treasury account is decreased when the Token Burn operation is executed.
     * 
* * .proto.AccountID treasury_account_id = 6; */ public Builder setTreasuryAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (treasuryAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } treasuryAccountId_ = value; } else { treasuryAccountIdBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * The treasury account id of this token. This account receives the initial supply of
     * tokens as well as the tokens from the Token Mint operation once executed. The balance
     * of the treasury account is decreased when the Token Burn operation is executed.
     * 
* * .proto.AccountID treasury_account_id = 6; */ public Builder setTreasuryAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (treasuryAccountIdBuilder_ == null) { treasuryAccountId_ = builderForValue.build(); } else { treasuryAccountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * The treasury account id of this token. This account receives the initial supply of
     * tokens as well as the tokens from the Token Mint operation once executed. The balance
     * of the treasury account is decreased when the Token Burn operation is executed.
     * 
* * .proto.AccountID treasury_account_id = 6; */ public Builder mergeTreasuryAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (treasuryAccountIdBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && treasuryAccountId_ != null && treasuryAccountId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getTreasuryAccountIdBuilder().mergeFrom(value); } else { treasuryAccountId_ = value; } } else { treasuryAccountIdBuilder_.mergeFrom(value); } if (treasuryAccountId_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     **
     * The treasury account id of this token. This account receives the initial supply of
     * tokens as well as the tokens from the Token Mint operation once executed. The balance
     * of the treasury account is decreased when the Token Burn operation is executed.
     * 
* * .proto.AccountID treasury_account_id = 6; */ public Builder clearTreasuryAccountId() { bitField0_ = (bitField0_ & ~0x00000020); treasuryAccountId_ = null; if (treasuryAccountIdBuilder_ != null) { treasuryAccountIdBuilder_.dispose(); treasuryAccountIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The treasury account id of this token. This account receives the initial supply of
     * tokens as well as the tokens from the Token Mint operation once executed. The balance
     * of the treasury account is decreased when the Token Burn operation is executed.
     * 
* * .proto.AccountID treasury_account_id = 6; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getTreasuryAccountIdBuilder() { bitField0_ |= 0x00000020; onChanged(); return getTreasuryAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * The treasury account id of this token. This account receives the initial supply of
     * tokens as well as the tokens from the Token Mint operation once executed. The balance
     * of the treasury account is decreased when the Token Burn operation is executed.
     * 
* * .proto.AccountID treasury_account_id = 6; */ public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getTreasuryAccountIdOrBuilder() { if (treasuryAccountIdBuilder_ != null) { return treasuryAccountIdBuilder_.getMessageOrBuilder(); } else { return treasuryAccountId_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasuryAccountId_; } } /** *
     **
     * The treasury account id of this token. This account receives the initial supply of
     * tokens as well as the tokens from the Token Mint operation once executed. The balance
     * of the treasury account is decreased when the Token Burn operation is executed.
     * 
* * .proto.AccountID treasury_account_id = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getTreasuryAccountIdFieldBuilder() { if (treasuryAccountIdBuilder_ == null) { treasuryAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>( getTreasuryAccountId(), getParentForChildren(), isClean()); treasuryAccountId_ = null; } return treasuryAccountIdBuilder_; } private com.hedera.hashgraph.sdk.proto.Key adminKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> adminKeyBuilder_; /** *
     **
     * (Optional) The admin key of this token. If this key is set, the token is mutable.
     * A mutable token can be modified.
     * If this key is not set on token creation, it cannot be modified.
     * 
* * .proto.Key admin_key = 7; * @return Whether the adminKey field is set. */ public boolean hasAdminKey() { return ((bitField0_ & 0x00000040) != 0); } /** *
     **
     * (Optional) The admin key of this token. If this key is set, the token is mutable.
     * A mutable token can be modified.
     * If this key is not set on token creation, it cannot be modified.
     * 
* * .proto.Key admin_key = 7; * @return The adminKey. */ public com.hedera.hashgraph.sdk.proto.Key getAdminKey() { if (adminKeyBuilder_ == null) { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } else { return adminKeyBuilder_.getMessage(); } } /** *
     **
     * (Optional) The admin key of this token. If this key is set, the token is mutable.
     * A mutable token can be modified.
     * If this key is not set on token creation, it cannot be modified.
     * 
* * .proto.Key admin_key = 7; */ public Builder setAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { if (adminKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminKey_ = value; } else { adminKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * (Optional) The admin key of this token. If this key is set, the token is mutable.
     * A mutable token can be modified.
     * If this key is not set on token creation, it cannot be modified.
     * 
* * .proto.Key admin_key = 7; */ public Builder setAdminKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (adminKeyBuilder_ == null) { adminKey_ = builderForValue.build(); } else { adminKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * (Optional) The admin key of this token. If this key is set, the token is mutable.
     * A mutable token can be modified.
     * If this key is not set on token creation, it cannot be modified.
     * 
* * .proto.Key admin_key = 7; */ public Builder mergeAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { if (adminKeyBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && adminKey_ != null && adminKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getAdminKeyBuilder().mergeFrom(value); } else { adminKey_ = value; } } else { adminKeyBuilder_.mergeFrom(value); } if (adminKey_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     **
     * (Optional) The admin key of this token. If this key is set, the token is mutable.
     * A mutable token can be modified.
     * If this key is not set on token creation, it cannot be modified.
     * 
* * .proto.Key admin_key = 7; */ public Builder clearAdminKey() { bitField0_ = (bitField0_ & ~0x00000040); adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * (Optional) The admin key of this token. If this key is set, the token is mutable.
     * A mutable token can be modified.
     * If this key is not set on token creation, it cannot be modified.
     * 
* * .proto.Key admin_key = 7; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getAdminKeyBuilder() { bitField0_ |= 0x00000040; onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
     **
     * (Optional) The admin key of this token. If this key is set, the token is mutable.
     * A mutable token can be modified.
     * If this key is not set on token creation, it cannot be modified.
     * 
* * .proto.Key admin_key = 7; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() { if (adminKeyBuilder_ != null) { return adminKeyBuilder_.getMessageOrBuilder(); } else { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } } /** *
     **
     * (Optional) The admin key of this token. If this key is set, the token is mutable.
     * A mutable token can be modified.
     * If this key is not set on token creation, it cannot be modified.
     * 
* * .proto.Key admin_key = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getAdminKeyFieldBuilder() { if (adminKeyBuilder_ == null) { adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getAdminKey(), getParentForChildren(), isClean()); adminKey_ = null; } return adminKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key kycKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> kycKeyBuilder_; /** *
     **
     * (Optional) The kyc key of this token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key kyc_key = 8; * @return Whether the kycKey field is set. */ public boolean hasKycKey() { return ((bitField0_ & 0x00000080) != 0); } /** *
     **
     * (Optional) The kyc key of this token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key kyc_key = 8; * @return The kycKey. */ public com.hedera.hashgraph.sdk.proto.Key getKycKey() { if (kycKeyBuilder_ == null) { return kycKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : kycKey_; } else { return kycKeyBuilder_.getMessage(); } } /** *
     **
     * (Optional) The kyc key of this token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key kyc_key = 8; */ public Builder setKycKey(com.hedera.hashgraph.sdk.proto.Key value) { if (kycKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kycKey_ = value; } else { kycKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     **
     * (Optional) The kyc key of this token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key kyc_key = 8; */ public Builder setKycKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (kycKeyBuilder_ == null) { kycKey_ = builderForValue.build(); } else { kycKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     **
     * (Optional) The kyc key of this token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key kyc_key = 8; */ public Builder mergeKycKey(com.hedera.hashgraph.sdk.proto.Key value) { if (kycKeyBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && kycKey_ != null && kycKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getKycKeyBuilder().mergeFrom(value); } else { kycKey_ = value; } } else { kycKeyBuilder_.mergeFrom(value); } if (kycKey_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** *
     **
     * (Optional) The kyc key of this token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key kyc_key = 8; */ public Builder clearKycKey() { bitField0_ = (bitField0_ & ~0x00000080); kycKey_ = null; if (kycKeyBuilder_ != null) { kycKeyBuilder_.dispose(); kycKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * (Optional) The kyc key of this token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key kyc_key = 8; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getKycKeyBuilder() { bitField0_ |= 0x00000080; onChanged(); return getKycKeyFieldBuilder().getBuilder(); } /** *
     **
     * (Optional) The kyc key of this token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key kyc_key = 8; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getKycKeyOrBuilder() { if (kycKeyBuilder_ != null) { return kycKeyBuilder_.getMessageOrBuilder(); } else { return kycKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : kycKey_; } } /** *
     **
     * (Optional) The kyc key of this token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key kyc_key = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getKycKeyFieldBuilder() { if (kycKeyBuilder_ == null) { kycKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getKycKey(), getParentForChildren(), isClean()); kycKey_ = null; } return kycKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key freezeKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> freezeKeyBuilder_; /** *
     **
     * (Optional) The freeze key of this token. This key is needed for freezing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key freeze_key = 9; * @return Whether the freezeKey field is set. */ public boolean hasFreezeKey() { return ((bitField0_ & 0x00000100) != 0); } /** *
     **
     * (Optional) The freeze key of this token. This key is needed for freezing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key freeze_key = 9; * @return The freezeKey. */ public com.hedera.hashgraph.sdk.proto.Key getFreezeKey() { if (freezeKeyBuilder_ == null) { return freezeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : freezeKey_; } else { return freezeKeyBuilder_.getMessage(); } } /** *
     **
     * (Optional) The freeze key of this token. This key is needed for freezing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key freeze_key = 9; */ public Builder setFreezeKey(com.hedera.hashgraph.sdk.proto.Key value) { if (freezeKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } freezeKey_ = value; } else { freezeKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * (Optional) The freeze key of this token. This key is needed for freezing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key freeze_key = 9; */ public Builder setFreezeKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (freezeKeyBuilder_ == null) { freezeKey_ = builderForValue.build(); } else { freezeKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * (Optional) The freeze key of this token. This key is needed for freezing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key freeze_key = 9; */ public Builder mergeFreezeKey(com.hedera.hashgraph.sdk.proto.Key value) { if (freezeKeyBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && freezeKey_ != null && freezeKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getFreezeKeyBuilder().mergeFrom(value); } else { freezeKey_ = value; } } else { freezeKeyBuilder_.mergeFrom(value); } if (freezeKey_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
     **
     * (Optional) The freeze key of this token. This key is needed for freezing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key freeze_key = 9; */ public Builder clearFreezeKey() { bitField0_ = (bitField0_ & ~0x00000100); freezeKey_ = null; if (freezeKeyBuilder_ != null) { freezeKeyBuilder_.dispose(); freezeKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * (Optional) The freeze key of this token. This key is needed for freezing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key freeze_key = 9; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getFreezeKeyBuilder() { bitField0_ |= 0x00000100; onChanged(); return getFreezeKeyFieldBuilder().getBuilder(); } /** *
     **
     * (Optional) The freeze key of this token. This key is needed for freezing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key freeze_key = 9; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getFreezeKeyOrBuilder() { if (freezeKeyBuilder_ != null) { return freezeKeyBuilder_.getMessageOrBuilder(); } else { return freezeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : freezeKey_; } } /** *
     **
     * (Optional) The freeze key of this token. This key is needed for freezing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key freeze_key = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getFreezeKeyFieldBuilder() { if (freezeKeyBuilder_ == null) { freezeKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getFreezeKey(), getParentForChildren(), isClean()); freezeKey_ = null; } return freezeKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key wipeKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> wipeKeyBuilder_; /** *
     **
     * (Optional) The wipe key of this token. This key is needed for wiping the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key wipe_key = 10; * @return Whether the wipeKey field is set. */ public boolean hasWipeKey() { return ((bitField0_ & 0x00000200) != 0); } /** *
     **
     * (Optional) The wipe key of this token. This key is needed for wiping the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key wipe_key = 10; * @return The wipeKey. */ public com.hedera.hashgraph.sdk.proto.Key getWipeKey() { if (wipeKeyBuilder_ == null) { return wipeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : wipeKey_; } else { return wipeKeyBuilder_.getMessage(); } } /** *
     **
     * (Optional) The wipe key of this token. This key is needed for wiping the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key wipe_key = 10; */ public Builder setWipeKey(com.hedera.hashgraph.sdk.proto.Key value) { if (wipeKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } wipeKey_ = value; } else { wipeKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     **
     * (Optional) The wipe key of this token. This key is needed for wiping the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key wipe_key = 10; */ public Builder setWipeKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (wipeKeyBuilder_ == null) { wipeKey_ = builderForValue.build(); } else { wipeKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     **
     * (Optional) The wipe key of this token. This key is needed for wiping the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key wipe_key = 10; */ public Builder mergeWipeKey(com.hedera.hashgraph.sdk.proto.Key value) { if (wipeKeyBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && wipeKey_ != null && wipeKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getWipeKeyBuilder().mergeFrom(value); } else { wipeKey_ = value; } } else { wipeKeyBuilder_.mergeFrom(value); } if (wipeKey_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** *
     **
     * (Optional) The wipe key of this token. This key is needed for wiping the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key wipe_key = 10; */ public Builder clearWipeKey() { bitField0_ = (bitField0_ & ~0x00000200); wipeKey_ = null; if (wipeKeyBuilder_ != null) { wipeKeyBuilder_.dispose(); wipeKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * (Optional) The wipe key of this token. This key is needed for wiping the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key wipe_key = 10; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getWipeKeyBuilder() { bitField0_ |= 0x00000200; onChanged(); return getWipeKeyFieldBuilder().getBuilder(); } /** *
     **
     * (Optional) The wipe key of this token. This key is needed for wiping the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key wipe_key = 10; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getWipeKeyOrBuilder() { if (wipeKeyBuilder_ != null) { return wipeKeyBuilder_.getMessageOrBuilder(); } else { return wipeKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : wipeKey_; } } /** *
     **
     * (Optional) The wipe key of this token. This key is needed for wiping the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key wipe_key = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getWipeKeyFieldBuilder() { if (wipeKeyBuilder_ == null) { wipeKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getWipeKey(), getParentForChildren(), isClean()); wipeKey_ = null; } return wipeKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key supplyKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> supplyKeyBuilder_; /** *
     **
     * (Optional) The supply key of this token. This key is needed for minting or burning token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key supply_key = 11; * @return Whether the supplyKey field is set. */ public boolean hasSupplyKey() { return ((bitField0_ & 0x00000400) != 0); } /** *
     **
     * (Optional) The supply key of this token. This key is needed for minting or burning token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key supply_key = 11; * @return The supplyKey. */ public com.hedera.hashgraph.sdk.proto.Key getSupplyKey() { if (supplyKeyBuilder_ == null) { return supplyKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : supplyKey_; } else { return supplyKeyBuilder_.getMessage(); } } /** *
     **
     * (Optional) The supply key of this token. This key is needed for minting or burning token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key supply_key = 11; */ public Builder setSupplyKey(com.hedera.hashgraph.sdk.proto.Key value) { if (supplyKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } supplyKey_ = value; } else { supplyKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     **
     * (Optional) The supply key of this token. This key is needed for minting or burning token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key supply_key = 11; */ public Builder setSupplyKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (supplyKeyBuilder_ == null) { supplyKey_ = builderForValue.build(); } else { supplyKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     **
     * (Optional) The supply key of this token. This key is needed for minting or burning token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key supply_key = 11; */ public Builder mergeSupplyKey(com.hedera.hashgraph.sdk.proto.Key value) { if (supplyKeyBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && supplyKey_ != null && supplyKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getSupplyKeyBuilder().mergeFrom(value); } else { supplyKey_ = value; } } else { supplyKeyBuilder_.mergeFrom(value); } if (supplyKey_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** *
     **
     * (Optional) The supply key of this token. This key is needed for minting or burning token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key supply_key = 11; */ public Builder clearSupplyKey() { bitField0_ = (bitField0_ & ~0x00000400); supplyKey_ = null; if (supplyKeyBuilder_ != null) { supplyKeyBuilder_.dispose(); supplyKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * (Optional) The supply key of this token. This key is needed for minting or burning token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key supply_key = 11; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getSupplyKeyBuilder() { bitField0_ |= 0x00000400; onChanged(); return getSupplyKeyFieldBuilder().getBuilder(); } /** *
     **
     * (Optional) The supply key of this token. This key is needed for minting or burning token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key supply_key = 11; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getSupplyKeyOrBuilder() { if (supplyKeyBuilder_ != null) { return supplyKeyBuilder_.getMessageOrBuilder(); } else { return supplyKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : supplyKey_; } } /** *
     **
     * (Optional) The supply key of this token. This key is needed for minting or burning token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key supply_key = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getSupplyKeyFieldBuilder() { if (supplyKeyBuilder_ == null) { supplyKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getSupplyKey(), getParentForChildren(), isClean()); supplyKey_ = null; } return supplyKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key feeScheduleKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> feeScheduleKeyBuilder_; /** *
     **
     * (Optional) The fee schedule key of this token. This key should be set, in order to make any
     * changes to the custom fee schedule.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key fee_schedule_key = 12; * @return Whether the feeScheduleKey field is set. */ public boolean hasFeeScheduleKey() { return ((bitField0_ & 0x00000800) != 0); } /** *
     **
     * (Optional) The fee schedule key of this token. This key should be set, in order to make any
     * changes to the custom fee schedule.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key fee_schedule_key = 12; * @return The feeScheduleKey. */ public com.hedera.hashgraph.sdk.proto.Key getFeeScheduleKey() { if (feeScheduleKeyBuilder_ == null) { return feeScheduleKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : feeScheduleKey_; } else { return feeScheduleKeyBuilder_.getMessage(); } } /** *
     **
     * (Optional) The fee schedule key of this token. This key should be set, in order to make any
     * changes to the custom fee schedule.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key fee_schedule_key = 12; */ public Builder setFeeScheduleKey(com.hedera.hashgraph.sdk.proto.Key value) { if (feeScheduleKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } feeScheduleKey_ = value; } else { feeScheduleKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     **
     * (Optional) The fee schedule key of this token. This key should be set, in order to make any
     * changes to the custom fee schedule.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key fee_schedule_key = 12; */ public Builder setFeeScheduleKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (feeScheduleKeyBuilder_ == null) { feeScheduleKey_ = builderForValue.build(); } else { feeScheduleKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     **
     * (Optional) The fee schedule key of this token. This key should be set, in order to make any
     * changes to the custom fee schedule.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key fee_schedule_key = 12; */ public Builder mergeFeeScheduleKey(com.hedera.hashgraph.sdk.proto.Key value) { if (feeScheduleKeyBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && feeScheduleKey_ != null && feeScheduleKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getFeeScheduleKeyBuilder().mergeFrom(value); } else { feeScheduleKey_ = value; } } else { feeScheduleKeyBuilder_.mergeFrom(value); } if (feeScheduleKey_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** *
     **
     * (Optional) The fee schedule key of this token. This key should be set, in order to make any
     * changes to the custom fee schedule.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key fee_schedule_key = 12; */ public Builder clearFeeScheduleKey() { bitField0_ = (bitField0_ & ~0x00000800); feeScheduleKey_ = null; if (feeScheduleKeyBuilder_ != null) { feeScheduleKeyBuilder_.dispose(); feeScheduleKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * (Optional) The fee schedule key of this token. This key should be set, in order to make any
     * changes to the custom fee schedule.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key fee_schedule_key = 12; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getFeeScheduleKeyBuilder() { bitField0_ |= 0x00000800; onChanged(); return getFeeScheduleKeyFieldBuilder().getBuilder(); } /** *
     **
     * (Optional) The fee schedule key of this token. This key should be set, in order to make any
     * changes to the custom fee schedule.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key fee_schedule_key = 12; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getFeeScheduleKeyOrBuilder() { if (feeScheduleKeyBuilder_ != null) { return feeScheduleKeyBuilder_.getMessageOrBuilder(); } else { return feeScheduleKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : feeScheduleKey_; } } /** *
     **
     * (Optional) The fee schedule key of this token. This key should be set, in order to make any
     * changes to the custom fee schedule.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key fee_schedule_key = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getFeeScheduleKeyFieldBuilder() { if (feeScheduleKeyBuilder_ == null) { feeScheduleKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getFeeScheduleKey(), getParentForChildren(), isClean()); feeScheduleKey_ = null; } return feeScheduleKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key pauseKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> pauseKeyBuilder_; /** *
     **
     * (Optional) The pause key of this token. This key is needed for pausing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key pause_key = 13; * @return Whether the pauseKey field is set. */ public boolean hasPauseKey() { return ((bitField0_ & 0x00001000) != 0); } /** *
     **
     * (Optional) The pause key of this token. This key is needed for pausing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key pause_key = 13; * @return The pauseKey. */ public com.hedera.hashgraph.sdk.proto.Key getPauseKey() { if (pauseKeyBuilder_ == null) { return pauseKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : pauseKey_; } else { return pauseKeyBuilder_.getMessage(); } } /** *
     **
     * (Optional) The pause key of this token. This key is needed for pausing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key pause_key = 13; */ public Builder setPauseKey(com.hedera.hashgraph.sdk.proto.Key value) { if (pauseKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pauseKey_ = value; } else { pauseKeyBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     **
     * (Optional) The pause key of this token. This key is needed for pausing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key pause_key = 13; */ public Builder setPauseKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (pauseKeyBuilder_ == null) { pauseKey_ = builderForValue.build(); } else { pauseKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     **
     * (Optional) The pause key of this token. This key is needed for pausing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key pause_key = 13; */ public Builder mergePauseKey(com.hedera.hashgraph.sdk.proto.Key value) { if (pauseKeyBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && pauseKey_ != null && pauseKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getPauseKeyBuilder().mergeFrom(value); } else { pauseKey_ = value; } } else { pauseKeyBuilder_.mergeFrom(value); } if (pauseKey_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** *
     **
     * (Optional) The pause key of this token. This key is needed for pausing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key pause_key = 13; */ public Builder clearPauseKey() { bitField0_ = (bitField0_ & ~0x00001000); pauseKey_ = null; if (pauseKeyBuilder_ != null) { pauseKeyBuilder_.dispose(); pauseKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * (Optional) The pause key of this token. This key is needed for pausing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key pause_key = 13; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getPauseKeyBuilder() { bitField0_ |= 0x00001000; onChanged(); return getPauseKeyFieldBuilder().getBuilder(); } /** *
     **
     * (Optional) The pause key of this token. This key is needed for pausing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key pause_key = 13; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getPauseKeyOrBuilder() { if (pauseKeyBuilder_ != null) { return pauseKeyBuilder_.getMessageOrBuilder(); } else { return pauseKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : pauseKey_; } } /** *
     **
     * (Optional) The pause key of this token. This key is needed for pausing the token.
     * If this key is not set on token creation, it can only be set if the token has admin key set.
     * 
* * .proto.Key pause_key = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getPauseKeyFieldBuilder() { if (pauseKeyBuilder_ == null) { pauseKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getPauseKey(), getParentForChildren(), isClean()); pauseKey_ = null; } return pauseKeyBuilder_; } private long lastUsedSerialNumber_ ; /** *
     **
     * The last used serial number of this token.
     * 
* * int64 last_used_serial_number = 14; * @return The lastUsedSerialNumber. */ @java.lang.Override public long getLastUsedSerialNumber() { return lastUsedSerialNumber_; } /** *
     **
     * The last used serial number of this token.
     * 
* * int64 last_used_serial_number = 14; * @param value The lastUsedSerialNumber to set. * @return This builder for chaining. */ public Builder setLastUsedSerialNumber(long value) { lastUsedSerialNumber_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     **
     * The last used serial number of this token.
     * 
* * int64 last_used_serial_number = 14; * @return This builder for chaining. */ public Builder clearLastUsedSerialNumber() { bitField0_ = (bitField0_ & ~0x00002000); lastUsedSerialNumber_ = 0L; onChanged(); return this; } private boolean deleted_ ; /** *
     **
     * The flag indicating if this token is deleted.
     * 
* * bool deleted = 15; * @return The deleted. */ @java.lang.Override public boolean getDeleted() { return deleted_; } /** *
     **
     * The flag indicating if this token is deleted.
     * 
* * bool deleted = 15; * @param value The deleted to set. * @return This builder for chaining. */ public Builder setDeleted(boolean value) { deleted_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     **
     * The flag indicating if this token is deleted.
     * 
* * bool deleted = 15; * @return This builder for chaining. */ public Builder clearDeleted() { bitField0_ = (bitField0_ & ~0x00004000); deleted_ = false; onChanged(); return this; } private int tokenType_ = 0; /** *
     **
     * The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
     * If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
     * 
* * .proto.TokenType token_type = 16; * @return The enum numeric value on the wire for tokenType. */ @java.lang.Override public int getTokenTypeValue() { return tokenType_; } /** *
     **
     * The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
     * If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
     * 
* * .proto.TokenType token_type = 16; * @param value The enum numeric value on the wire for tokenType to set. * @return This builder for chaining. */ public Builder setTokenTypeValue(int value) { tokenType_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     **
     * The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
     * If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
     * 
* * .proto.TokenType token_type = 16; * @return The tokenType. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenType getTokenType() { com.hedera.hashgraph.sdk.proto.TokenType result = com.hedera.hashgraph.sdk.proto.TokenType.forNumber(tokenType_); return result == null ? com.hedera.hashgraph.sdk.proto.TokenType.UNRECOGNIZED : result; } /** *
     **
     * The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
     * If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
     * 
* * .proto.TokenType token_type = 16; * @param value The tokenType to set. * @return This builder for chaining. */ public Builder setTokenType(com.hedera.hashgraph.sdk.proto.TokenType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; tokenType_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
     * If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
     * 
* * .proto.TokenType token_type = 16; * @return This builder for chaining. */ public Builder clearTokenType() { bitField0_ = (bitField0_ & ~0x00008000); tokenType_ = 0; onChanged(); return this; } private int supplyType_ = 0; /** *
     **
     * The supply type of this token.A token can have either INFINITE or FINITE supply type.
     * If it has been omitted during token creation, INFINITE type is used.
     * 
* * .proto.TokenSupplyType supply_type = 17; * @return The enum numeric value on the wire for supplyType. */ @java.lang.Override public int getSupplyTypeValue() { return supplyType_; } /** *
     **
     * The supply type of this token.A token can have either INFINITE or FINITE supply type.
     * If it has been omitted during token creation, INFINITE type is used.
     * 
* * .proto.TokenSupplyType supply_type = 17; * @param value The enum numeric value on the wire for supplyType to set. * @return This builder for chaining. */ public Builder setSupplyTypeValue(int value) { supplyType_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     **
     * The supply type of this token.A token can have either INFINITE or FINITE supply type.
     * If it has been omitted during token creation, INFINITE type is used.
     * 
* * .proto.TokenSupplyType supply_type = 17; * @return The supplyType. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenSupplyType getSupplyType() { com.hedera.hashgraph.sdk.proto.TokenSupplyType result = com.hedera.hashgraph.sdk.proto.TokenSupplyType.forNumber(supplyType_); return result == null ? com.hedera.hashgraph.sdk.proto.TokenSupplyType.UNRECOGNIZED : result; } /** *
     **
     * The supply type of this token.A token can have either INFINITE or FINITE supply type.
     * If it has been omitted during token creation, INFINITE type is used.
     * 
* * .proto.TokenSupplyType supply_type = 17; * @param value The supplyType to set. * @return This builder for chaining. */ public Builder setSupplyType(com.hedera.hashgraph.sdk.proto.TokenSupplyType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; supplyType_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * The supply type of this token.A token can have either INFINITE or FINITE supply type.
     * If it has been omitted during token creation, INFINITE type is used.
     * 
* * .proto.TokenSupplyType supply_type = 17; * @return This builder for chaining. */ public Builder clearSupplyType() { bitField0_ = (bitField0_ & ~0x00010000); supplyType_ = 0; 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_; /** *
     **
     * The id of the account (if any) that the network will attempt to charge for the
     * token's auto-renewal upon expiration.
     * 
* * .proto.AccountID auto_renew_account_id = 18; * @return Whether the autoRenewAccountId field is set. */ public boolean hasAutoRenewAccountId() { return ((bitField0_ & 0x00020000) != 0); } /** *
     **
     * The id of the account (if any) that the network will attempt to charge for the
     * token's auto-renewal upon expiration.
     * 
* * .proto.AccountID auto_renew_account_id = 18; * @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(); } } /** *
     **
     * The id of the account (if any) that the network will attempt to charge for the
     * token's auto-renewal upon expiration.
     * 
* * .proto.AccountID auto_renew_account_id = 18; */ 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_ |= 0x00020000; onChanged(); return this; } /** *
     **
     * The id of the account (if any) that the network will attempt to charge for the
     * token's auto-renewal upon expiration.
     * 
* * .proto.AccountID auto_renew_account_id = 18; */ public Builder setAutoRenewAccountId( com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (autoRenewAccountIdBuilder_ == null) { autoRenewAccountId_ = builderForValue.build(); } else { autoRenewAccountIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     **
     * The id of the account (if any) that the network will attempt to charge for the
     * token's auto-renewal upon expiration.
     * 
* * .proto.AccountID auto_renew_account_id = 18; */ public Builder mergeAutoRenewAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) { if (autoRenewAccountIdBuilder_ == null) { if (((bitField0_ & 0x00020000) != 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_ |= 0x00020000; onChanged(); } return this; } /** *
     **
     * The id of the account (if any) that the network will attempt to charge for the
     * token's auto-renewal upon expiration.
     * 
* * .proto.AccountID auto_renew_account_id = 18; */ public Builder clearAutoRenewAccountId() { bitField0_ = (bitField0_ & ~0x00020000); autoRenewAccountId_ = null; if (autoRenewAccountIdBuilder_ != null) { autoRenewAccountIdBuilder_.dispose(); autoRenewAccountIdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The id of the account (if any) that the network will attempt to charge for the
     * token's auto-renewal upon expiration.
     * 
* * .proto.AccountID auto_renew_account_id = 18; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAutoRenewAccountIdBuilder() { bitField0_ |= 0x00020000; onChanged(); return getAutoRenewAccountIdFieldBuilder().getBuilder(); } /** *
     **
     * The id of the account (if any) that the network will attempt to charge for the
     * token's auto-renewal upon expiration.
     * 
* * .proto.AccountID auto_renew_account_id = 18; */ 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_; } } /** *
     **
     * The id of the account (if any) that the network will attempt to charge for the
     * token's auto-renewal upon expiration.
     * 
* * .proto.AccountID auto_renew_account_id = 18; */ 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 token's expiration by, if the
     * token has a valid auto-renew account, and is not deleted upon expiration.
     * If this is not provided in a allowed range on token 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 = 19; * @return The autoRenewSeconds. */ @java.lang.Override public long getAutoRenewSeconds() { return autoRenewSeconds_; } /** *
     **
     * The number of seconds the network should automatically extend the token's expiration by, if the
     * token has a valid auto-renew account, and is not deleted upon expiration.
     * If this is not provided in a allowed range on token 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 = 19; * @param value The autoRenewSeconds to set. * @return This builder for chaining. */ public Builder setAutoRenewSeconds(long value) { autoRenewSeconds_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     **
     * The number of seconds the network should automatically extend the token's expiration by, if the
     * token has a valid auto-renew account, and is not deleted upon expiration.
     * If this is not provided in a allowed range on token 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 = 19; * @return This builder for chaining. */ public Builder clearAutoRenewSeconds() { bitField0_ = (bitField0_ & ~0x00040000); autoRenewSeconds_ = 0L; onChanged(); return this; } private long expirationSecond_ ; /** *
     **
     * The expiration time of the token, in seconds since the epoch.
     * 
* * int64 expiration_second = 20; * @return The expirationSecond. */ @java.lang.Override public long getExpirationSecond() { return expirationSecond_; } /** *
     **
     * The expiration time of the token, in seconds since the epoch.
     * 
* * int64 expiration_second = 20; * @param value The expirationSecond to set. * @return This builder for chaining. */ public Builder setExpirationSecond(long value) { expirationSecond_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** *
     **
     * The expiration time of the token, in seconds since the epoch.
     * 
* * int64 expiration_second = 20; * @return This builder for chaining. */ public Builder clearExpirationSecond() { bitField0_ = (bitField0_ & ~0x00080000); expirationSecond_ = 0L; onChanged(); return this; } private java.lang.Object memo_ = ""; /** *
     **
     * An optional description of the token with UTF-8 encoding up to 100 bytes.
     * 
* * string memo = 21; * @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 token with UTF-8 encoding up to 100 bytes.
     * 
* * string memo = 21; * @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 token with UTF-8 encoding up to 100 bytes.
     * 
* * string memo = 21; * @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_ |= 0x00100000; onChanged(); return this; } /** *
     **
     * An optional description of the token with UTF-8 encoding up to 100 bytes.
     * 
* * string memo = 21; * @return This builder for chaining. */ public Builder clearMemo() { memo_ = getDefaultInstance().getMemo(); bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } /** *
     **
     * An optional description of the token with UTF-8 encoding up to 100 bytes.
     * 
* * string memo = 21; * @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_ |= 0x00100000; onChanged(); return this; } private long maxSupply_ ; /** *
     **
     * The maximum supply of this token.
     * 
* * int64 max_supply = 22; * @return The maxSupply. */ @java.lang.Override public long getMaxSupply() { return maxSupply_; } /** *
     **
     * The maximum supply of this token.
     * 
* * int64 max_supply = 22; * @param value The maxSupply to set. * @return This builder for chaining. */ public Builder setMaxSupply(long value) { maxSupply_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } /** *
     **
     * The maximum supply of this token.
     * 
* * int64 max_supply = 22; * @return This builder for chaining. */ public Builder clearMaxSupply() { bitField0_ = (bitField0_ & ~0x00200000); maxSupply_ = 0L; onChanged(); return this; } private boolean paused_ ; /** *
     **
     * The flag indicating if this token is paused.
     * 
* * bool paused = 23; * @return The paused. */ @java.lang.Override public boolean getPaused() { return paused_; } /** *
     **
     * The flag indicating if this token is paused.
     * 
* * bool paused = 23; * @param value The paused to set. * @return This builder for chaining. */ public Builder setPaused(boolean value) { paused_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } /** *
     **
     * The flag indicating if this token is paused.
     * 
* * bool paused = 23; * @return This builder for chaining. */ public Builder clearPaused() { bitField0_ = (bitField0_ & ~0x00400000); paused_ = false; onChanged(); return this; } private boolean accountsFrozenByDefault_ ; /** *
     **
     * The flag indicating if this token has accounts associated to it that are frozen by default.
     * 
* * bool accounts_frozen_by_default = 24; * @return The accountsFrozenByDefault. */ @java.lang.Override public boolean getAccountsFrozenByDefault() { return accountsFrozenByDefault_; } /** *
     **
     * The flag indicating if this token has accounts associated to it that are frozen by default.
     * 
* * bool accounts_frozen_by_default = 24; * @param value The accountsFrozenByDefault to set. * @return This builder for chaining. */ public Builder setAccountsFrozenByDefault(boolean value) { accountsFrozenByDefault_ = value; bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     **
     * The flag indicating if this token has accounts associated to it that are frozen by default.
     * 
* * bool accounts_frozen_by_default = 24; * @return This builder for chaining. */ public Builder clearAccountsFrozenByDefault() { bitField0_ = (bitField0_ & ~0x00800000); accountsFrozenByDefault_ = false; onChanged(); return this; } private boolean accountsKycGrantedByDefault_ ; /** *
     **
     * The flag indicating if this token has accounts associated with it that are KYC granted by default.
     * 
* * bool accounts_kyc_granted_by_default = 25; * @return The accountsKycGrantedByDefault. */ @java.lang.Override public boolean getAccountsKycGrantedByDefault() { return accountsKycGrantedByDefault_; } /** *
     **
     * The flag indicating if this token has accounts associated with it that are KYC granted by default.
     * 
* * bool accounts_kyc_granted_by_default = 25; * @param value The accountsKycGrantedByDefault to set. * @return This builder for chaining. */ public Builder setAccountsKycGrantedByDefault(boolean value) { accountsKycGrantedByDefault_ = value; bitField0_ |= 0x01000000; onChanged(); return this; } /** *
     **
     * The flag indicating if this token has accounts associated with it that are KYC granted by default.
     * 
* * bool accounts_kyc_granted_by_default = 25; * @return This builder for chaining. */ public Builder clearAccountsKycGrantedByDefault() { bitField0_ = (bitField0_ & ~0x01000000); accountsKycGrantedByDefault_ = false; onChanged(); return this; } private java.util.List customFees_ = java.util.Collections.emptyList(); private void ensureCustomFeesIsMutable() { if (!((bitField0_ & 0x02000000) != 0)) { customFees_ = new java.util.ArrayList(customFees_); bitField0_ |= 0x02000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.CustomFee, com.hedera.hashgraph.sdk.proto.CustomFee.Builder, com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder> customFeesBuilder_; /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public java.util.List getCustomFeesList() { if (customFeesBuilder_ == null) { return java.util.Collections.unmodifiableList(customFees_); } else { return customFeesBuilder_.getMessageList(); } } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public int getCustomFeesCount() { if (customFeesBuilder_ == null) { return customFees_.size(); } else { return customFeesBuilder_.getCount(); } } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public com.hedera.hashgraph.sdk.proto.CustomFee getCustomFees(int index) { if (customFeesBuilder_ == null) { return customFees_.get(index); } else { return customFeesBuilder_.getMessage(index); } } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public Builder setCustomFees( int index, com.hedera.hashgraph.sdk.proto.CustomFee value) { if (customFeesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomFeesIsMutable(); customFees_.set(index, value); onChanged(); } else { customFeesBuilder_.setMessage(index, value); } return this; } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public Builder setCustomFees( int index, com.hedera.hashgraph.sdk.proto.CustomFee.Builder builderForValue) { if (customFeesBuilder_ == null) { ensureCustomFeesIsMutable(); customFees_.set(index, builderForValue.build()); onChanged(); } else { customFeesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public Builder addCustomFees(com.hedera.hashgraph.sdk.proto.CustomFee value) { if (customFeesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomFeesIsMutable(); customFees_.add(value); onChanged(); } else { customFeesBuilder_.addMessage(value); } return this; } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public Builder addCustomFees( int index, com.hedera.hashgraph.sdk.proto.CustomFee value) { if (customFeesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomFeesIsMutable(); customFees_.add(index, value); onChanged(); } else { customFeesBuilder_.addMessage(index, value); } return this; } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public Builder addCustomFees( com.hedera.hashgraph.sdk.proto.CustomFee.Builder builderForValue) { if (customFeesBuilder_ == null) { ensureCustomFeesIsMutable(); customFees_.add(builderForValue.build()); onChanged(); } else { customFeesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public Builder addCustomFees( int index, com.hedera.hashgraph.sdk.proto.CustomFee.Builder builderForValue) { if (customFeesBuilder_ == null) { ensureCustomFeesIsMutable(); customFees_.add(index, builderForValue.build()); onChanged(); } else { customFeesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public Builder addAllCustomFees( java.lang.Iterable values) { if (customFeesBuilder_ == null) { ensureCustomFeesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, customFees_); onChanged(); } else { customFeesBuilder_.addAllMessages(values); } return this; } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public Builder clearCustomFees() { if (customFeesBuilder_ == null) { customFees_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x02000000); onChanged(); } else { customFeesBuilder_.clear(); } return this; } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public Builder removeCustomFees(int index) { if (customFeesBuilder_ == null) { ensureCustomFeesIsMutable(); customFees_.remove(index); onChanged(); } else { customFeesBuilder_.remove(index); } return this; } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public com.hedera.hashgraph.sdk.proto.CustomFee.Builder getCustomFeesBuilder( int index) { return getCustomFeesFieldBuilder().getBuilder(index); } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder getCustomFeesOrBuilder( int index) { if (customFeesBuilder_ == null) { return customFees_.get(index); } else { return customFeesBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public java.util.List getCustomFeesOrBuilderList() { if (customFeesBuilder_ != null) { return customFeesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(customFees_); } } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public com.hedera.hashgraph.sdk.proto.CustomFee.Builder addCustomFeesBuilder() { return getCustomFeesFieldBuilder().addBuilder( com.hedera.hashgraph.sdk.proto.CustomFee.getDefaultInstance()); } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public com.hedera.hashgraph.sdk.proto.CustomFee.Builder addCustomFeesBuilder( int index) { return getCustomFeesFieldBuilder().addBuilder( index, com.hedera.hashgraph.sdk.proto.CustomFee.getDefaultInstance()); } /** *
     **
     * (Optional) The custom fees of this token.
     * 
* * repeated .proto.CustomFee custom_fees = 26; */ public java.util.List getCustomFeesBuilderList() { return getCustomFeesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.CustomFee, com.hedera.hashgraph.sdk.proto.CustomFee.Builder, com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder> getCustomFeesFieldBuilder() { if (customFeesBuilder_ == null) { customFeesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hashgraph.sdk.proto.CustomFee, com.hedera.hashgraph.sdk.proto.CustomFee.Builder, com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder>( customFees_, ((bitField0_ & 0x02000000) != 0), getParentForChildren(), isClean()); customFees_ = null; } return customFeesBuilder_; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * Metadata of the created token definition
     * 
* * bytes metadata = 27; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** *
     **
     * Metadata of the created token definition
     * 
* * bytes metadata = 27; * @param value The metadata to set. * @return This builder for chaining. */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; bitField0_ |= 0x04000000; onChanged(); return this; } /** *
     **
     * Metadata of the created token definition
     * 
* * bytes metadata = 27; * @return This builder for chaining. */ public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x04000000); metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.Key metadataKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> metadataKeyBuilder_; /** *
     **
     * The key which can change the metadata of a token
     * (token definition and individual NFTs).
     * 
* * .proto.Key metadata_key = 28; * @return Whether the metadataKey field is set. */ public boolean hasMetadataKey() { return ((bitField0_ & 0x08000000) != 0); } /** *
     **
     * The key which can change the metadata of a token
     * (token definition and individual NFTs).
     * 
* * .proto.Key metadata_key = 28; * @return The metadataKey. */ public com.hedera.hashgraph.sdk.proto.Key getMetadataKey() { if (metadataKeyBuilder_ == null) { return metadataKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : metadataKey_; } else { return metadataKeyBuilder_.getMessage(); } } /** *
     **
     * The key which can change the metadata of a token
     * (token definition and individual NFTs).
     * 
* * .proto.Key metadata_key = 28; */ public Builder setMetadataKey(com.hedera.hashgraph.sdk.proto.Key value) { if (metadataKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadataKey_ = value; } else { metadataKeyBuilder_.setMessage(value); } bitField0_ |= 0x08000000; onChanged(); return this; } /** *
     **
     * The key which can change the metadata of a token
     * (token definition and individual NFTs).
     * 
* * .proto.Key metadata_key = 28; */ public Builder setMetadataKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (metadataKeyBuilder_ == null) { metadataKey_ = builderForValue.build(); } else { metadataKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x08000000; onChanged(); return this; } /** *
     **
     * The key which can change the metadata of a token
     * (token definition and individual NFTs).
     * 
* * .proto.Key metadata_key = 28; */ public Builder mergeMetadataKey(com.hedera.hashgraph.sdk.proto.Key value) { if (metadataKeyBuilder_ == null) { if (((bitField0_ & 0x08000000) != 0) && metadataKey_ != null && metadataKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getMetadataKeyBuilder().mergeFrom(value); } else { metadataKey_ = value; } } else { metadataKeyBuilder_.mergeFrom(value); } if (metadataKey_ != null) { bitField0_ |= 0x08000000; onChanged(); } return this; } /** *
     **
     * The key which can change the metadata of a token
     * (token definition and individual NFTs).
     * 
* * .proto.Key metadata_key = 28; */ public Builder clearMetadataKey() { bitField0_ = (bitField0_ & ~0x08000000); metadataKey_ = null; if (metadataKeyBuilder_ != null) { metadataKeyBuilder_.dispose(); metadataKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The key which can change the metadata of a token
     * (token definition and individual NFTs).
     * 
* * .proto.Key metadata_key = 28; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getMetadataKeyBuilder() { bitField0_ |= 0x08000000; onChanged(); return getMetadataKeyFieldBuilder().getBuilder(); } /** *
     **
     * The key which can change the metadata of a token
     * (token definition and individual NFTs).
     * 
* * .proto.Key metadata_key = 28; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getMetadataKeyOrBuilder() { if (metadataKeyBuilder_ != null) { return metadataKeyBuilder_.getMessageOrBuilder(); } else { return metadataKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : metadataKey_; } } /** *
     **
     * The key which can change the metadata of a token
     * (token definition and individual NFTs).
     * 
* * .proto.Key metadata_key = 28; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getMetadataKeyFieldBuilder() { if (metadataKeyBuilder_ == null) { metadataKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getMetadataKey(), getParentForChildren(), isClean()); metadataKey_ = null; } return metadataKeyBuilder_; } @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.Token) } // @@protoc_insertion_point(class_scope:proto.Token) private static final com.hedera.hashgraph.sdk.proto.Token DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.Token(); } public static com.hedera.hashgraph.sdk.proto.Token getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Token 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.Token getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy