com.hedera.hashgraph.sdk.proto.TokenInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: token_get_info.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* The metadata about a Token instance
*
*
* Protobuf type {@code proto.TokenInfo}
*/
public final class TokenInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.TokenInfo)
TokenInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TokenInfo.newBuilder() to construct.
private TokenInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TokenInfo() {
name_ = "";
symbol_ = "";
defaultFreezeStatus_ = 0;
defaultKycStatus_ = 0;
memo_ = "";
tokenType_ = 0;
supplyType_ = 0;
customFees_ = java.util.Collections.emptyList();
pauseStatus_ = 0;
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
metadata_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TokenInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TokenGetInfo.internal_static_proto_TokenInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TokenGetInfo.internal_static_proto_TokenInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TokenInfo.class, com.hedera.hashgraph.sdk.proto.TokenInfo.Builder.class);
}
private int bitField0_;
public static final int TOKENID_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.TokenID tokenId_;
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
* @return Whether the tokenId field is set.
*/
@java.lang.Override
public boolean hasTokenId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 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_;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 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 name of the token. It is a string of ASCII only characters
*
*
* 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 name of the token. It is a string of ASCII only characters
*
*
* 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 symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* 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 symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* 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 a token is divisible by. Always 0 for tokens of type
* NON_FUNGIBLE_UNIQUE
*
*
* uint32 decimals = 4;
* @return The decimals.
*/
@java.lang.Override
public int getDecimals() {
return decimals_;
}
public static final int TOTALSUPPLY_FIELD_NUMBER = 5;
private long totalSupply_ = 0L;
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the total supply of tokens that are currently in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the number of NFTs created of this
* token instance
*
*
* uint64 totalSupply = 5;
* @return The totalSupply.
*/
@java.lang.Override
public long getTotalSupply() {
return totalSupply_;
}
public static final int TREASURY_FIELD_NUMBER = 6;
private com.hedera.hashgraph.sdk.proto.AccountID treasury_;
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
* @return Whether the treasury field is set.
*/
@java.lang.Override
public boolean hasTreasury() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
* @return The treasury.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getTreasury() {
return treasury_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasury_;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getTreasuryOrBuilder() {
return treasury_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasury_;
}
public static final int ADMINKEY_FIELD_NUMBER = 7;
private com.hedera.hashgraph.sdk.proto.Key adminKey_;
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
* @return Whether the adminKey field is set.
*/
@java.lang.Override
public boolean hasAdminKey() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 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_;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 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 KYCKEY_FIELD_NUMBER = 8;
private com.hedera.hashgraph.sdk.proto.Key kycKey_;
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
* @return Whether the kycKey field is set.
*/
@java.lang.Override
public boolean hasKycKey() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 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_;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 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 FREEZEKEY_FIELD_NUMBER = 9;
private com.hedera.hashgraph.sdk.proto.Key freezeKey_;
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
* @return Whether the freezeKey field is set.
*/
@java.lang.Override
public boolean hasFreezeKey() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 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_;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 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 WIPEKEY_FIELD_NUMBER = 10;
private com.hedera.hashgraph.sdk.proto.Key wipeKey_;
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
* @return Whether the wipeKey field is set.
*/
@java.lang.Override
public boolean hasWipeKey() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 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_;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 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 SUPPLYKEY_FIELD_NUMBER = 11;
private com.hedera.hashgraph.sdk.proto.Key supplyKey_;
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
* @return Whether the supplyKey field is set.
*/
@java.lang.Override
public boolean hasSupplyKey() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 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_;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 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 DEFAULTFREEZESTATUS_FIELD_NUMBER = 12;
private int defaultFreezeStatus_ = 0;
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @return The enum numeric value on the wire for defaultFreezeStatus.
*/
@java.lang.Override public int getDefaultFreezeStatusValue() {
return defaultFreezeStatus_;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @return The defaultFreezeStatus.
*/
@java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenFreezeStatus getDefaultFreezeStatus() {
com.hedera.hashgraph.sdk.proto.TokenFreezeStatus result = com.hedera.hashgraph.sdk.proto.TokenFreezeStatus.forNumber(defaultFreezeStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenFreezeStatus.UNRECOGNIZED : result;
}
public static final int DEFAULTKYCSTATUS_FIELD_NUMBER = 13;
private int defaultKycStatus_ = 0;
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @return The enum numeric value on the wire for defaultKycStatus.
*/
@java.lang.Override public int getDefaultKycStatusValue() {
return defaultKycStatus_;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @return The defaultKycStatus.
*/
@java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenKycStatus getDefaultKycStatus() {
com.hedera.hashgraph.sdk.proto.TokenKycStatus result = com.hedera.hashgraph.sdk.proto.TokenKycStatus.forNumber(defaultKycStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenKycStatus.UNRECOGNIZED : result;
}
public static final int DELETED_FIELD_NUMBER = 14;
private boolean deleted_ = false;
/**
*
**
* Specifies whether the token was deleted or not
*
*
* bool deleted = 14;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return deleted_;
}
public static final int AUTORENEWACCOUNT_FIELD_NUMBER = 15;
private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccount_;
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
* @return Whether the autoRenewAccount field is set.
*/
@java.lang.Override
public boolean hasAutoRenewAccount() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
* @return The autoRenewAccount.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccount() {
return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccount_;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountOrBuilder() {
return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccount_;
}
public static final int AUTORENEWPERIOD_FIELD_NUMBER = 16;
private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_;
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
* @return Whether the autoRenewPeriod field is set.
*/
@java.lang.Override
public boolean hasAutoRenewPeriod() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
* @return The autoRenewPeriod.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
public static final int EXPIRY_FIELD_NUMBER = 17;
private com.hedera.hashgraph.sdk.proto.Timestamp expiry_;
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
* @return Whether the expiry field is set.
*/
@java.lang.Override
public boolean hasExpiry() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
* @return The expiry.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Timestamp getExpiry() {
return expiry_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expiry_;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpiryOrBuilder() {
return expiry_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expiry_;
}
public static final int MEMO_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private volatile java.lang.Object memo_ = "";
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
}
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @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 TOKENTYPE_FIELD_NUMBER = 19;
private int tokenType_ = 0;
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @return The enum numeric value on the wire for tokenType.
*/
@java.lang.Override public int getTokenTypeValue() {
return tokenType_;
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @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 SUPPLYTYPE_FIELD_NUMBER = 20;
private int supplyType_ = 0;
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @return The enum numeric value on the wire for supplyType.
*/
@java.lang.Override public int getSupplyTypeValue() {
return supplyType_;
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @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 MAXSUPPLY_FIELD_NUMBER = 21;
private long maxSupply_ = 0L;
/**
*
**
* For tokens of type FUNGIBLE_COMMON - The Maximum number of fungible tokens that can be in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the maximum number of NFTs (serial
* numbers) that can be in circulation
*
*
* int64 maxSupply = 21;
* @return The maxSupply.
*/
@java.lang.Override
public long getMaxSupply() {
return maxSupply_;
}
public static final int FEE_SCHEDULE_KEY_FIELD_NUMBER = 22;
private com.hedera.hashgraph.sdk.proto.Key feeScheduleKey_;
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
* @return Whether the feeScheduleKey field is set.
*/
@java.lang.Override
public boolean hasFeeScheduleKey() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
* @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_;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
@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 CUSTOM_FEES_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private java.util.List customFees_;
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public java.util.List getCustomFeesList() {
return customFees_;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public java.util.List extends com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder>
getCustomFeesOrBuilderList() {
return customFees_;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public int getCustomFeesCount() {
return customFees_.size();
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CustomFee getCustomFees(int index) {
return customFees_.get(index);
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder getCustomFeesOrBuilder(
int index) {
return customFees_.get(index);
}
public static final int PAUSE_KEY_FIELD_NUMBER = 24;
private com.hedera.hashgraph.sdk.proto.Key pauseKey_;
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
* @return Whether the pauseKey field is set.
*/
@java.lang.Override
public boolean hasPauseKey() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
* @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_;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
@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 PAUSE_STATUS_FIELD_NUMBER = 25;
private int pauseStatus_ = 0;
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @return The enum numeric value on the wire for pauseStatus.
*/
@java.lang.Override public int getPauseStatusValue() {
return pauseStatus_;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @return The pauseStatus.
*/
@java.lang.Override public com.hedera.hashgraph.sdk.proto.TokenPauseStatus getPauseStatus() {
com.hedera.hashgraph.sdk.proto.TokenPauseStatus result = com.hedera.hashgraph.sdk.proto.TokenPauseStatus.forNumber(pauseStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenPauseStatus.UNRECOGNIZED : result;
}
public static final int LEDGER_ID_FIELD_NUMBER = 26;
private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 26;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
public static final int METADATA_FIELD_NUMBER = 27;
private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* Represents the metadata of the 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_ & 0x00001000) != 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.writeUInt32(4, decimals_);
}
if (totalSupply_ != 0L) {
output.writeUInt64(5, totalSupply_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getTreasury());
}
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 (defaultFreezeStatus_ != com.hedera.hashgraph.sdk.proto.TokenFreezeStatus.FreezeNotApplicable.getNumber()) {
output.writeEnum(12, defaultFreezeStatus_);
}
if (defaultKycStatus_ != com.hedera.hashgraph.sdk.proto.TokenKycStatus.KycNotApplicable.getNumber()) {
output.writeEnum(13, defaultKycStatus_);
}
if (deleted_ != false) {
output.writeBool(14, deleted_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(15, getAutoRenewAccount());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(16, getAutoRenewPeriod());
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(17, getExpiry());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, memo_);
}
if (tokenType_ != com.hedera.hashgraph.sdk.proto.TokenType.FUNGIBLE_COMMON.getNumber()) {
output.writeEnum(19, tokenType_);
}
if (supplyType_ != com.hedera.hashgraph.sdk.proto.TokenSupplyType.INFINITE.getNumber()) {
output.writeEnum(20, supplyType_);
}
if (maxSupply_ != 0L) {
output.writeInt64(21, maxSupply_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(22, getFeeScheduleKey());
}
for (int i = 0; i < customFees_.size(); i++) {
output.writeMessage(23, customFees_.get(i));
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(24, getPauseKey());
}
if (pauseStatus_ != com.hedera.hashgraph.sdk.proto.TokenPauseStatus.PauseNotApplicable.getNumber()) {
output.writeEnum(25, pauseStatus_);
}
if (!ledgerId_.isEmpty()) {
output.writeBytes(26, ledgerId_);
}
if (!metadata_.isEmpty()) {
output.writeBytes(27, metadata_);
}
if (((bitField0_ & 0x00001000) != 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
.computeUInt32Size(4, decimals_);
}
if (totalSupply_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, totalSupply_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getTreasury());
}
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 (defaultFreezeStatus_ != com.hedera.hashgraph.sdk.proto.TokenFreezeStatus.FreezeNotApplicable.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(12, defaultFreezeStatus_);
}
if (defaultKycStatus_ != com.hedera.hashgraph.sdk.proto.TokenKycStatus.KycNotApplicable.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(13, defaultKycStatus_);
}
if (deleted_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(14, deleted_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getAutoRenewAccount());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getAutoRenewPeriod());
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getExpiry());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, memo_);
}
if (tokenType_ != com.hedera.hashgraph.sdk.proto.TokenType.FUNGIBLE_COMMON.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(19, tokenType_);
}
if (supplyType_ != com.hedera.hashgraph.sdk.proto.TokenSupplyType.INFINITE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(20, supplyType_);
}
if (maxSupply_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(21, maxSupply_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, getFeeScheduleKey());
}
for (int i = 0; i < customFees_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, customFees_.get(i));
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, getPauseKey());
}
if (pauseStatus_ != com.hedera.hashgraph.sdk.proto.TokenPauseStatus.PauseNotApplicable.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(25, pauseStatus_);
}
if (!ledgerId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(26, ledgerId_);
}
if (!metadata_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(27, metadata_);
}
if (((bitField0_ & 0x00001000) != 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.TokenInfo)) {
return super.equals(obj);
}
com.hedera.hashgraph.sdk.proto.TokenInfo other = (com.hedera.hashgraph.sdk.proto.TokenInfo) 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 (hasTreasury() != other.hasTreasury()) return false;
if (hasTreasury()) {
if (!getTreasury()
.equals(other.getTreasury())) 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 (defaultFreezeStatus_ != other.defaultFreezeStatus_) return false;
if (defaultKycStatus_ != other.defaultKycStatus_) return false;
if (getDeleted()
!= other.getDeleted()) return false;
if (hasAutoRenewAccount() != other.hasAutoRenewAccount()) return false;
if (hasAutoRenewAccount()) {
if (!getAutoRenewAccount()
.equals(other.getAutoRenewAccount())) return false;
}
if (hasAutoRenewPeriod() != other.hasAutoRenewPeriod()) return false;
if (hasAutoRenewPeriod()) {
if (!getAutoRenewPeriod()
.equals(other.getAutoRenewPeriod())) return false;
}
if (hasExpiry() != other.hasExpiry()) return false;
if (hasExpiry()) {
if (!getExpiry()
.equals(other.getExpiry())) return false;
}
if (!getMemo()
.equals(other.getMemo())) return false;
if (tokenType_ != other.tokenType_) return false;
if (supplyType_ != other.supplyType_) return false;
if (getMaxSupply()
!= other.getMaxSupply()) return false;
if (hasFeeScheduleKey() != other.hasFeeScheduleKey()) return false;
if (hasFeeScheduleKey()) {
if (!getFeeScheduleKey()
.equals(other.getFeeScheduleKey())) return false;
}
if (!getCustomFeesList()
.equals(other.getCustomFeesList())) return false;
if (hasPauseKey() != other.hasPauseKey()) return false;
if (hasPauseKey()) {
if (!getPauseKey()
.equals(other.getPauseKey())) return false;
}
if (pauseStatus_ != other.pauseStatus_) return false;
if (!getLedgerId()
.equals(other.getLedgerId())) 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) + TOKENID_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) + TOTALSUPPLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalSupply());
if (hasTreasury()) {
hash = (37 * hash) + TREASURY_FIELD_NUMBER;
hash = (53 * hash) + getTreasury().hashCode();
}
if (hasAdminKey()) {
hash = (37 * hash) + ADMINKEY_FIELD_NUMBER;
hash = (53 * hash) + getAdminKey().hashCode();
}
if (hasKycKey()) {
hash = (37 * hash) + KYCKEY_FIELD_NUMBER;
hash = (53 * hash) + getKycKey().hashCode();
}
if (hasFreezeKey()) {
hash = (37 * hash) + FREEZEKEY_FIELD_NUMBER;
hash = (53 * hash) + getFreezeKey().hashCode();
}
if (hasWipeKey()) {
hash = (37 * hash) + WIPEKEY_FIELD_NUMBER;
hash = (53 * hash) + getWipeKey().hashCode();
}
if (hasSupplyKey()) {
hash = (37 * hash) + SUPPLYKEY_FIELD_NUMBER;
hash = (53 * hash) + getSupplyKey().hashCode();
}
hash = (37 * hash) + DEFAULTFREEZESTATUS_FIELD_NUMBER;
hash = (53 * hash) + defaultFreezeStatus_;
hash = (37 * hash) + DEFAULTKYCSTATUS_FIELD_NUMBER;
hash = (53 * hash) + defaultKycStatus_;
hash = (37 * hash) + DELETED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeleted());
if (hasAutoRenewAccount()) {
hash = (37 * hash) + AUTORENEWACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAutoRenewAccount().hashCode();
}
if (hasAutoRenewPeriod()) {
hash = (37 * hash) + AUTORENEWPERIOD_FIELD_NUMBER;
hash = (53 * hash) + getAutoRenewPeriod().hashCode();
}
if (hasExpiry()) {
hash = (37 * hash) + EXPIRY_FIELD_NUMBER;
hash = (53 * hash) + getExpiry().hashCode();
}
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (37 * hash) + TOKENTYPE_FIELD_NUMBER;
hash = (53 * hash) + tokenType_;
hash = (37 * hash) + SUPPLYTYPE_FIELD_NUMBER;
hash = (53 * hash) + supplyType_;
hash = (37 * hash) + MAXSUPPLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxSupply());
if (hasFeeScheduleKey()) {
hash = (37 * hash) + FEE_SCHEDULE_KEY_FIELD_NUMBER;
hash = (53 * hash) + getFeeScheduleKey().hashCode();
}
if (getCustomFeesCount() > 0) {
hash = (37 * hash) + CUSTOM_FEES_FIELD_NUMBER;
hash = (53 * hash) + getCustomFeesList().hashCode();
}
if (hasPauseKey()) {
hash = (37 * hash) + PAUSE_KEY_FIELD_NUMBER;
hash = (53 * hash) + getPauseKey().hashCode();
}
hash = (37 * hash) + PAUSE_STATUS_FIELD_NUMBER;
hash = (53 * hash) + pauseStatus_;
hash = (37 * hash) + LEDGER_ID_FIELD_NUMBER;
hash = (53 * hash) + getLedgerId().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.TokenInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo 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.TokenInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo 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.TokenInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo 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.TokenInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo 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.TokenInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo 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.TokenInfo 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.TokenInfo 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.TokenInfo 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;
}
/**
*
**
* The metadata about a Token instance
*
*
* Protobuf type {@code proto.TokenInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.TokenInfo)
com.hedera.hashgraph.sdk.proto.TokenInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.hashgraph.sdk.proto.TokenGetInfo.internal_static_proto_TokenInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.hashgraph.sdk.proto.TokenGetInfo.internal_static_proto_TokenInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.hashgraph.sdk.proto.TokenInfo.class, com.hedera.hashgraph.sdk.proto.TokenInfo.Builder.class);
}
// Construct using com.hedera.hashgraph.sdk.proto.TokenInfo.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();
getTreasuryFieldBuilder();
getAdminKeyFieldBuilder();
getKycKeyFieldBuilder();
getFreezeKeyFieldBuilder();
getWipeKeyFieldBuilder();
getSupplyKeyFieldBuilder();
getAutoRenewAccountFieldBuilder();
getAutoRenewPeriodFieldBuilder();
getExpiryFieldBuilder();
getFeeScheduleKeyFieldBuilder();
getCustomFeesFieldBuilder();
getPauseKeyFieldBuilder();
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;
treasury_ = null;
if (treasuryBuilder_ != null) {
treasuryBuilder_.dispose();
treasuryBuilder_ = 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;
}
defaultFreezeStatus_ = 0;
defaultKycStatus_ = 0;
deleted_ = false;
autoRenewAccount_ = null;
if (autoRenewAccountBuilder_ != null) {
autoRenewAccountBuilder_.dispose();
autoRenewAccountBuilder_ = null;
}
autoRenewPeriod_ = null;
if (autoRenewPeriodBuilder_ != null) {
autoRenewPeriodBuilder_.dispose();
autoRenewPeriodBuilder_ = null;
}
expiry_ = null;
if (expiryBuilder_ != null) {
expiryBuilder_.dispose();
expiryBuilder_ = null;
}
memo_ = "";
tokenType_ = 0;
supplyType_ = 0;
maxSupply_ = 0L;
feeScheduleKey_ = null;
if (feeScheduleKeyBuilder_ != null) {
feeScheduleKeyBuilder_.dispose();
feeScheduleKeyBuilder_ = null;
}
if (customFeesBuilder_ == null) {
customFees_ = java.util.Collections.emptyList();
} else {
customFees_ = null;
customFeesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00400000);
pauseKey_ = null;
if (pauseKeyBuilder_ != null) {
pauseKeyBuilder_.dispose();
pauseKeyBuilder_ = null;
}
pauseStatus_ = 0;
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
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.TokenGetInfo.internal_static_proto_TokenInfo_descriptor;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenInfo getDefaultInstanceForType() {
return com.hedera.hashgraph.sdk.proto.TokenInfo.getDefaultInstance();
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenInfo build() {
com.hedera.hashgraph.sdk.proto.TokenInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenInfo buildPartial() {
com.hedera.hashgraph.sdk.proto.TokenInfo result = new com.hedera.hashgraph.sdk.proto.TokenInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.hedera.hashgraph.sdk.proto.TokenInfo result) {
if (customFeesBuilder_ == null) {
if (((bitField0_ & 0x00400000) != 0)) {
customFees_ = java.util.Collections.unmodifiableList(customFees_);
bitField0_ = (bitField0_ & ~0x00400000);
}
result.customFees_ = customFees_;
} else {
result.customFees_ = customFeesBuilder_.build();
}
}
private void buildPartial0(com.hedera.hashgraph.sdk.proto.TokenInfo 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.treasury_ = treasuryBuilder_ == null
? treasury_
: treasuryBuilder_.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.defaultFreezeStatus_ = defaultFreezeStatus_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.defaultKycStatus_ = defaultKycStatus_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.deleted_ = deleted_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.autoRenewAccount_ = autoRenewAccountBuilder_ == null
? autoRenewAccount_
: autoRenewAccountBuilder_.build();
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.autoRenewPeriod_ = autoRenewPeriodBuilder_ == null
? autoRenewPeriod_
: autoRenewPeriodBuilder_.build();
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.expiry_ = expiryBuilder_ == null
? expiry_
: expiryBuilder_.build();
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.memo_ = memo_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.tokenType_ = tokenType_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.supplyType_ = supplyType_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.maxSupply_ = maxSupply_;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.feeScheduleKey_ = feeScheduleKeyBuilder_ == null
? feeScheduleKey_
: feeScheduleKeyBuilder_.build();
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.pauseKey_ = pauseKeyBuilder_ == null
? pauseKey_
: pauseKeyBuilder_.build();
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.pauseStatus_ = pauseStatus_;
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.ledgerId_ = ledgerId_;
}
if (((from_bitField0_ & 0x04000000) != 0)) {
result.metadata_ = metadata_;
}
if (((from_bitField0_ & 0x08000000) != 0)) {
result.metadataKey_ = metadataKeyBuilder_ == null
? metadataKey_
: metadataKeyBuilder_.build();
to_bitField0_ |= 0x00001000;
}
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.TokenInfo) {
return mergeFrom((com.hedera.hashgraph.sdk.proto.TokenInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.TokenInfo other) {
if (other == com.hedera.hashgraph.sdk.proto.TokenInfo.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.hasTreasury()) {
mergeTreasury(other.getTreasury());
}
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.defaultFreezeStatus_ != 0) {
setDefaultFreezeStatusValue(other.getDefaultFreezeStatusValue());
}
if (other.defaultKycStatus_ != 0) {
setDefaultKycStatusValue(other.getDefaultKycStatusValue());
}
if (other.getDeleted() != false) {
setDeleted(other.getDeleted());
}
if (other.hasAutoRenewAccount()) {
mergeAutoRenewAccount(other.getAutoRenewAccount());
}
if (other.hasAutoRenewPeriod()) {
mergeAutoRenewPeriod(other.getAutoRenewPeriod());
}
if (other.hasExpiry()) {
mergeExpiry(other.getExpiry());
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
bitField0_ |= 0x00020000;
onChanged();
}
if (other.tokenType_ != 0) {
setTokenTypeValue(other.getTokenTypeValue());
}
if (other.supplyType_ != 0) {
setSupplyTypeValue(other.getSupplyTypeValue());
}
if (other.getMaxSupply() != 0L) {
setMaxSupply(other.getMaxSupply());
}
if (other.hasFeeScheduleKey()) {
mergeFeeScheduleKey(other.getFeeScheduleKey());
}
if (customFeesBuilder_ == null) {
if (!other.customFees_.isEmpty()) {
if (customFees_.isEmpty()) {
customFees_ = other.customFees_;
bitField0_ = (bitField0_ & ~0x00400000);
} else {
ensureCustomFeesIsMutable();
customFees_.addAll(other.customFees_);
}
onChanged();
}
} else {
if (!other.customFees_.isEmpty()) {
if (customFeesBuilder_.isEmpty()) {
customFeesBuilder_.dispose();
customFeesBuilder_ = null;
customFees_ = other.customFees_;
bitField0_ = (bitField0_ & ~0x00400000);
customFeesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomFeesFieldBuilder() : null;
} else {
customFeesBuilder_.addAllMessages(other.customFees_);
}
}
}
if (other.hasPauseKey()) {
mergePauseKey(other.getPauseKey());
}
if (other.pauseStatus_ != 0) {
setPauseStatusValue(other.getPauseStatusValue());
}
if (other.getLedgerId() != com.google.protobuf.ByteString.EMPTY) {
setLedgerId(other.getLedgerId());
}
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.readUInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
totalSupply_ = input.readUInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
input.readMessage(
getTreasuryFieldBuilder().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 96: {
defaultFreezeStatus_ = input.readEnum();
bitField0_ |= 0x00000800;
break;
} // case 96
case 104: {
defaultKycStatus_ = input.readEnum();
bitField0_ |= 0x00001000;
break;
} // case 104
case 112: {
deleted_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 112
case 122: {
input.readMessage(
getAutoRenewAccountFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00004000;
break;
} // case 122
case 130: {
input.readMessage(
getAutoRenewPeriodFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00008000;
break;
} // case 130
case 138: {
input.readMessage(
getExpiryFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00010000;
break;
} // case 138
case 146: {
memo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00020000;
break;
} // case 146
case 152: {
tokenType_ = input.readEnum();
bitField0_ |= 0x00040000;
break;
} // case 152
case 160: {
supplyType_ = input.readEnum();
bitField0_ |= 0x00080000;
break;
} // case 160
case 168: {
maxSupply_ = input.readInt64();
bitField0_ |= 0x00100000;
break;
} // case 168
case 178: {
input.readMessage(
getFeeScheduleKeyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00200000;
break;
} // case 178
case 186: {
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 186
case 194: {
input.readMessage(
getPauseKeyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00800000;
break;
} // case 194
case 200: {
pauseStatus_ = input.readEnum();
bitField0_ |= 0x01000000;
break;
} // case 200
case 210: {
ledgerId_ = input.readBytes();
bitField0_ |= 0x02000000;
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_;
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
* @return Whether the tokenId field is set.
*/
public boolean hasTokenId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 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();
}
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 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;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 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;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 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;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
public Builder clearTokenId() {
bitField0_ = (bitField0_ & ~0x00000001);
tokenId_ = null;
if (tokenIdBuilder_ != null) {
tokenIdBuilder_.dispose();
tokenIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 1;
*/
public com.hedera.hashgraph.sdk.proto.TokenID.Builder getTokenIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTokenIdFieldBuilder().getBuilder();
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 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_;
}
}
/**
*
**
* ID of the token instance
*
*
* .proto.TokenID tokenId = 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 name of the token. It is a string of ASCII only characters
*
*
* 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 name of the token. It is a string of ASCII only characters
*
*
* 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 name of the token. It is a string of ASCII only characters
*
*
* 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 name of the token. It is a string of ASCII only characters
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The name of the token. It is a string of ASCII only characters
*
*
* 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 symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* 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 symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* 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 symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* 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 symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* string symbol = 3;
* @return This builder for chaining.
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
**
* The symbol of the token. It is a UTF-8 capitalized alphabetical string
*
*
* 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 a token is divisible by. Always 0 for tokens of type
* NON_FUNGIBLE_UNIQUE
*
*
* uint32 decimals = 4;
* @return The decimals.
*/
@java.lang.Override
public int getDecimals() {
return decimals_;
}
/**
*
**
* The number of decimal places a token is divisible by. Always 0 for tokens of type
* NON_FUNGIBLE_UNIQUE
*
*
* uint32 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 a token is divisible by. Always 0 for tokens of type
* NON_FUNGIBLE_UNIQUE
*
*
* uint32 decimals = 4;
* @return This builder for chaining.
*/
public Builder clearDecimals() {
bitField0_ = (bitField0_ & ~0x00000008);
decimals_ = 0;
onChanged();
return this;
}
private long totalSupply_ ;
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the total supply of tokens that are currently in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the number of NFTs created of this
* token instance
*
*
* uint64 totalSupply = 5;
* @return The totalSupply.
*/
@java.lang.Override
public long getTotalSupply() {
return totalSupply_;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the total supply of tokens that are currently in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the number of NFTs created of this
* token instance
*
*
* uint64 totalSupply = 5;
* @param value The totalSupply to set.
* @return This builder for chaining.
*/
public Builder setTotalSupply(long value) {
totalSupply_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the total supply of tokens that are currently in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the number of NFTs created of this
* token instance
*
*
* uint64 totalSupply = 5;
* @return This builder for chaining.
*/
public Builder clearTotalSupply() {
bitField0_ = (bitField0_ & ~0x00000010);
totalSupply_ = 0L;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.AccountID treasury_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> treasuryBuilder_;
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
* @return Whether the treasury field is set.
*/
public boolean hasTreasury() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
* @return The treasury.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getTreasury() {
if (treasuryBuilder_ == null) {
return treasury_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasury_;
} else {
return treasuryBuilder_.getMessage();
}
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
public Builder setTreasury(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (treasuryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
treasury_ = value;
} else {
treasuryBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
public Builder setTreasury(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (treasuryBuilder_ == null) {
treasury_ = builderForValue.build();
} else {
treasuryBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
public Builder mergeTreasury(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (treasuryBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
treasury_ != null &&
treasury_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getTreasuryBuilder().mergeFrom(value);
} else {
treasury_ = value;
}
} else {
treasuryBuilder_.mergeFrom(value);
}
if (treasury_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
public Builder clearTreasury() {
bitField0_ = (bitField0_ & ~0x00000020);
treasury_ = null;
if (treasuryBuilder_ != null) {
treasuryBuilder_.dispose();
treasuryBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getTreasuryBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getTreasuryFieldBuilder().getBuilder();
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 6;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getTreasuryOrBuilder() {
if (treasuryBuilder_ != null) {
return treasuryBuilder_.getMessageOrBuilder();
} else {
return treasury_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : treasury_;
}
}
/**
*
**
* The ID of the account which is set as Treasury
*
*
* .proto.AccountID treasury = 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>
getTreasuryFieldBuilder() {
if (treasuryBuilder_ == null) {
treasuryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getTreasury(),
getParentForChildren(),
isClean());
treasury_ = null;
}
return treasuryBuilder_;
}
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_;
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
* @return Whether the adminKey field is set.
*/
public boolean hasAdminKey() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 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();
}
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 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;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 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;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 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;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
public Builder clearAdminKey() {
bitField0_ = (bitField0_ & ~0x00000040);
adminKey_ = null;
if (adminKeyBuilder_ != null) {
adminKeyBuilder_.dispose();
adminKeyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 7;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getAdminKeyBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getAdminKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 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_;
}
}
/**
*
**
* The key which can perform update/delete operations on the token. If empty, the token can be
* perceived as immutable (not being able to be updated/deleted)
*
*
* .proto.Key adminKey = 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_;
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
* @return Whether the kycKey field is set.
*/
public boolean hasKycKey() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 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();
}
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 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;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 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;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 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;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
public Builder clearKycKey() {
bitField0_ = (bitField0_ & ~0x00000080);
kycKey_ = null;
if (kycKeyBuilder_ != null) {
kycKeyBuilder_.dispose();
kycKeyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 8;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getKycKeyBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getKycKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 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_;
}
}
/**
*
**
* The key which can grant or revoke KYC of an account for the token's transactions. If empty,
* KYC is not required, and KYC grant or revoke operations are not possible.
*
*
* .proto.Key kycKey = 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_;
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
* @return Whether the freezeKey field is set.
*/
public boolean hasFreezeKey() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 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();
}
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 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;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 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;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 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;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
public Builder clearFreezeKey() {
bitField0_ = (bitField0_ & ~0x00000100);
freezeKey_ = null;
if (freezeKeyBuilder_ != null) {
freezeKeyBuilder_.dispose();
freezeKeyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 9;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getFreezeKeyBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getFreezeKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 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_;
}
}
/**
*
**
* The key which can freeze or unfreeze an account for token transactions. If empty, freezing is
* not possible
*
*
* .proto.Key freezeKey = 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_;
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
* @return Whether the wipeKey field is set.
*/
public boolean hasWipeKey() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 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();
}
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 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;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 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;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 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;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
public Builder clearWipeKey() {
bitField0_ = (bitField0_ & ~0x00000200);
wipeKey_ = null;
if (wipeKeyBuilder_ != null) {
wipeKeyBuilder_.dispose();
wipeKeyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 10;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getWipeKeyBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getWipeKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 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_;
}
}
/**
*
**
* The key which can wipe token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 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_;
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
* @return Whether the supplyKey field is set.
*/
public boolean hasSupplyKey() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 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();
}
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 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;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 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;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 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;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
public Builder clearSupplyKey() {
bitField0_ = (bitField0_ & ~0x00000400);
supplyKey_ = null;
if (supplyKeyBuilder_ != null) {
supplyKeyBuilder_.dispose();
supplyKeyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 11;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getSupplyKeyBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getSupplyKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 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_;
}
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 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 int defaultFreezeStatus_ = 0;
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @return The enum numeric value on the wire for defaultFreezeStatus.
*/
@java.lang.Override public int getDefaultFreezeStatusValue() {
return defaultFreezeStatus_;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @param value The enum numeric value on the wire for defaultFreezeStatus to set.
* @return This builder for chaining.
*/
public Builder setDefaultFreezeStatusValue(int value) {
defaultFreezeStatus_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @return The defaultFreezeStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenFreezeStatus getDefaultFreezeStatus() {
com.hedera.hashgraph.sdk.proto.TokenFreezeStatus result = com.hedera.hashgraph.sdk.proto.TokenFreezeStatus.forNumber(defaultFreezeStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenFreezeStatus.UNRECOGNIZED : result;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @param value The defaultFreezeStatus to set.
* @return This builder for chaining.
*/
public Builder setDefaultFreezeStatus(com.hedera.hashgraph.sdk.proto.TokenFreezeStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
defaultFreezeStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The default Freeze status (not applicable, frozen or unfrozen) of Hedera accounts relative to
* this token. FreezeNotApplicable is returned if Token Freeze Key is empty. Frozen is returned
* if Token Freeze Key is set and defaultFreeze is set to true. Unfrozen is returned if Token
* Freeze Key is set and defaultFreeze is set to false
*
*
* .proto.TokenFreezeStatus defaultFreezeStatus = 12;
* @return This builder for chaining.
*/
public Builder clearDefaultFreezeStatus() {
bitField0_ = (bitField0_ & ~0x00000800);
defaultFreezeStatus_ = 0;
onChanged();
return this;
}
private int defaultKycStatus_ = 0;
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @return The enum numeric value on the wire for defaultKycStatus.
*/
@java.lang.Override public int getDefaultKycStatusValue() {
return defaultKycStatus_;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @param value The enum numeric value on the wire for defaultKycStatus to set.
* @return This builder for chaining.
*/
public Builder setDefaultKycStatusValue(int value) {
defaultKycStatus_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @return The defaultKycStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenKycStatus getDefaultKycStatus() {
com.hedera.hashgraph.sdk.proto.TokenKycStatus result = com.hedera.hashgraph.sdk.proto.TokenKycStatus.forNumber(defaultKycStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenKycStatus.UNRECOGNIZED : result;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @param value The defaultKycStatus to set.
* @return This builder for chaining.
*/
public Builder setDefaultKycStatus(com.hedera.hashgraph.sdk.proto.TokenKycStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
defaultKycStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The default KYC status (KycNotApplicable or Revoked) of Hedera accounts relative to this
* token. KycNotApplicable is returned if KYC key is not set, otherwise Revoked
*
*
* .proto.TokenKycStatus defaultKycStatus = 13;
* @return This builder for chaining.
*/
public Builder clearDefaultKycStatus() {
bitField0_ = (bitField0_ & ~0x00001000);
defaultKycStatus_ = 0;
onChanged();
return this;
}
private boolean deleted_ ;
/**
*
**
* Specifies whether the token was deleted or not
*
*
* bool deleted = 14;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return deleted_;
}
/**
*
**
* Specifies whether the token was deleted or not
*
*
* bool deleted = 14;
* @param value The deleted to set.
* @return This builder for chaining.
*/
public Builder setDeleted(boolean value) {
deleted_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
**
* Specifies whether the token was deleted or not
*
*
* bool deleted = 14;
* @return This builder for chaining.
*/
public Builder clearDeleted() {
bitField0_ = (bitField0_ & ~0x00002000);
deleted_ = false;
onChanged();
return this;
}
private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccount_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> autoRenewAccountBuilder_;
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
* @return Whether the autoRenewAccount field is set.
*/
public boolean hasAutoRenewAccount() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
* @return The autoRenewAccount.
*/
public com.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccount() {
if (autoRenewAccountBuilder_ == null) {
return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccount_;
} else {
return autoRenewAccountBuilder_.getMessage();
}
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
public Builder setAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (autoRenewAccountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewAccount_ = value;
} else {
autoRenewAccountBuilder_.setMessage(value);
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
public Builder setAutoRenewAccount(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccount_ = builderForValue.build();
} else {
autoRenewAccountBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
public Builder mergeAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) {
if (autoRenewAccountBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0) &&
autoRenewAccount_ != null &&
autoRenewAccount_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
getAutoRenewAccountBuilder().mergeFrom(value);
} else {
autoRenewAccount_ = value;
}
} else {
autoRenewAccountBuilder_.mergeFrom(value);
}
if (autoRenewAccount_ != null) {
bitField0_ |= 0x00004000;
onChanged();
}
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
public Builder clearAutoRenewAccount() {
bitField0_ = (bitField0_ & ~0x00004000);
autoRenewAccount_ = null;
if (autoRenewAccountBuilder_ != null) {
autoRenewAccountBuilder_.dispose();
autoRenewAccountBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAutoRenewAccountBuilder() {
bitField0_ |= 0x00004000;
onChanged();
return getAutoRenewAccountFieldBuilder().getBuilder();
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
public com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountOrBuilder() {
if (autoRenewAccountBuilder_ != null) {
return autoRenewAccountBuilder_.getMessageOrBuilder();
} else {
return autoRenewAccount_ == null ?
com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccount_;
}
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>
getAutoRenewAccountFieldBuilder() {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder>(
getAutoRenewAccount(),
getParentForChildren(),
isClean());
autoRenewAccount_ = null;
}
return autoRenewAccountBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder> autoRenewPeriodBuilder_;
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
* @return Whether the autoRenewPeriod field is set.
*/
public boolean hasAutoRenewPeriod() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
* @return The autoRenewPeriod.
*/
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
} else {
return autoRenewPeriodBuilder_.getMessage();
}
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
public Builder setAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewPeriod_ = value;
} else {
autoRenewPeriodBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
public Builder setAutoRenewPeriod(
com.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = builderForValue.build();
} else {
autoRenewPeriodBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
public Builder mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0) &&
autoRenewPeriod_ != null &&
autoRenewPeriod_ != com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance()) {
getAutoRenewPeriodBuilder().mergeFrom(value);
} else {
autoRenewPeriod_ = value;
}
} else {
autoRenewPeriodBuilder_.mergeFrom(value);
}
if (autoRenewPeriod_ != null) {
bitField0_ |= 0x00008000;
onChanged();
}
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
public Builder clearAutoRenewPeriod() {
bitField0_ = (bitField0_ & ~0x00008000);
autoRenewPeriod_ = null;
if (autoRenewPeriodBuilder_ != null) {
autoRenewPeriodBuilder_.dispose();
autoRenewPeriodBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
public com.hedera.hashgraph.sdk.proto.Duration.Builder getAutoRenewPeriodBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getAutoRenewPeriodFieldBuilder().getBuilder();
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
public com.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
if (autoRenewPeriodBuilder_ != null) {
return autoRenewPeriodBuilder_.getMessageOrBuilder();
} else {
return autoRenewPeriod_ == null ?
com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_;
}
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder>
getAutoRenewPeriodFieldBuilder() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder>(
getAutoRenewPeriod(),
getParentForChildren(),
isClean());
autoRenewPeriod_ = null;
}
return autoRenewPeriodBuilder_;
}
private com.hedera.hashgraph.sdk.proto.Timestamp expiry_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> expiryBuilder_;
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
* @return Whether the expiry field is set.
*/
public boolean hasExpiry() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
* @return The expiry.
*/
public com.hedera.hashgraph.sdk.proto.Timestamp getExpiry() {
if (expiryBuilder_ == null) {
return expiry_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expiry_;
} else {
return expiryBuilder_.getMessage();
}
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
public Builder setExpiry(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expiryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expiry_ = value;
} else {
expiryBuilder_.setMessage(value);
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
public Builder setExpiry(
com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) {
if (expiryBuilder_ == null) {
expiry_ = builderForValue.build();
} else {
expiryBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
public Builder mergeExpiry(com.hedera.hashgraph.sdk.proto.Timestamp value) {
if (expiryBuilder_ == null) {
if (((bitField0_ & 0x00010000) != 0) &&
expiry_ != null &&
expiry_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) {
getExpiryBuilder().mergeFrom(value);
} else {
expiry_ = value;
}
} else {
expiryBuilder_.mergeFrom(value);
}
if (expiry_ != null) {
bitField0_ |= 0x00010000;
onChanged();
}
return this;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
public Builder clearExpiry() {
bitField0_ = (bitField0_ & ~0x00010000);
expiry_ = null;
if (expiryBuilder_ != null) {
expiryBuilder_.dispose();
expiryBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
public com.hedera.hashgraph.sdk.proto.Timestamp.Builder getExpiryBuilder() {
bitField0_ |= 0x00010000;
onChanged();
return getExpiryFieldBuilder().getBuilder();
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
public com.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpiryOrBuilder() {
if (expiryBuilder_ != null) {
return expiryBuilder_.getMessageOrBuilder();
} else {
return expiry_ == null ?
com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expiry_;
}
}
/**
*
**
* The epoch second at which the token will expire
*
*
* .proto.Timestamp expiry = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>
getExpiryFieldBuilder() {
if (expiryBuilder_ == null) {
expiryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>(
getExpiry(),
getParentForChildren(),
isClean());
expiry_ = null;
}
return expiryBuilder_;
}
private java.lang.Object memo_ = "";
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @return The memo.
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @return The bytes for memo.
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @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_ |= 0x00020000;
onChanged();
return this;
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
/**
*
**
* The memo associated with the token
*
*
* string memo = 18;
* @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_ |= 0x00020000;
onChanged();
return this;
}
private int tokenType_ = 0;
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @return The enum numeric value on the wire for tokenType.
*/
@java.lang.Override public int getTokenTypeValue() {
return tokenType_;
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @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_ |= 0x00040000;
onChanged();
return this;
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @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 token type
*
*
* .proto.TokenType tokenType = 19;
* @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_ |= 0x00040000;
tokenType_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The token type
*
*
* .proto.TokenType tokenType = 19;
* @return This builder for chaining.
*/
public Builder clearTokenType() {
bitField0_ = (bitField0_ & ~0x00040000);
tokenType_ = 0;
onChanged();
return this;
}
private int supplyType_ = 0;
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @return The enum numeric value on the wire for supplyType.
*/
@java.lang.Override public int getSupplyTypeValue() {
return supplyType_;
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @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_ |= 0x00080000;
onChanged();
return this;
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @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 token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @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_ |= 0x00080000;
supplyType_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The token supply type
*
*
* .proto.TokenSupplyType supplyType = 20;
* @return This builder for chaining.
*/
public Builder clearSupplyType() {
bitField0_ = (bitField0_ & ~0x00080000);
supplyType_ = 0;
onChanged();
return this;
}
private long maxSupply_ ;
/**
*
**
* For tokens of type FUNGIBLE_COMMON - The Maximum number of fungible tokens that can be in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the maximum number of NFTs (serial
* numbers) that can be in circulation
*
*
* int64 maxSupply = 21;
* @return The maxSupply.
*/
@java.lang.Override
public long getMaxSupply() {
return maxSupply_;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - The Maximum number of fungible tokens that can be in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the maximum number of NFTs (serial
* numbers) that can be in circulation
*
*
* int64 maxSupply = 21;
* @param value The maxSupply to set.
* @return This builder for chaining.
*/
public Builder setMaxSupply(long value) {
maxSupply_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - The Maximum number of fungible tokens that can be in
* circulation. For tokens of type NON_FUNGIBLE_UNIQUE - the maximum number of NFTs (serial
* numbers) that can be in circulation
*
*
* int64 maxSupply = 21;
* @return This builder for chaining.
*/
public Builder clearMaxSupply() {
bitField0_ = (bitField0_ & ~0x00100000);
maxSupply_ = 0L;
onChanged();
return this;
}
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_;
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
* @return Whether the feeScheduleKey field is set.
*/
public boolean hasFeeScheduleKey() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
* @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();
}
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
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_ |= 0x00200000;
onChanged();
return this;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
public Builder setFeeScheduleKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
if (feeScheduleKeyBuilder_ == null) {
feeScheduleKey_ = builderForValue.build();
} else {
feeScheduleKeyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
public Builder mergeFeeScheduleKey(com.hedera.hashgraph.sdk.proto.Key value) {
if (feeScheduleKeyBuilder_ == null) {
if (((bitField0_ & 0x00200000) != 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_ |= 0x00200000;
onChanged();
}
return this;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
public Builder clearFeeScheduleKey() {
bitField0_ = (bitField0_ & ~0x00200000);
feeScheduleKey_ = null;
if (feeScheduleKeyBuilder_ != null) {
feeScheduleKeyBuilder_.dispose();
feeScheduleKeyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getFeeScheduleKeyBuilder() {
bitField0_ |= 0x00200000;
onChanged();
return getFeeScheduleKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
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_;
}
}
/**
*
**
* The key which can change the custom fee schedule of the token; if not set, the fee schedule
* is immutable
*
*
* .proto.Key fee_schedule_key = 22;
*/
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 java.util.List customFees_ =
java.util.Collections.emptyList();
private void ensureCustomFeesIsMutable() {
if (!((bitField0_ & 0x00400000) != 0)) {
customFees_ = new java.util.ArrayList(customFees_);
bitField0_ |= 0x00400000;
}
}
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_;
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public java.util.List getCustomFeesList() {
if (customFeesBuilder_ == null) {
return java.util.Collections.unmodifiableList(customFees_);
} else {
return customFeesBuilder_.getMessageList();
}
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public int getCustomFeesCount() {
if (customFeesBuilder_ == null) {
return customFees_.size();
} else {
return customFeesBuilder_.getCount();
}
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public com.hedera.hashgraph.sdk.proto.CustomFee getCustomFees(int index) {
if (customFeesBuilder_ == null) {
return customFees_.get(index);
} else {
return customFeesBuilder_.getMessage(index);
}
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
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;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
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;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
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;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
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;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
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;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
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;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder addAllCustomFees(
java.lang.Iterable extends com.hedera.hashgraph.sdk.proto.CustomFee> values) {
if (customFeesBuilder_ == null) {
ensureCustomFeesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, customFees_);
onChanged();
} else {
customFeesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder clearCustomFees() {
if (customFeesBuilder_ == null) {
customFees_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00400000);
onChanged();
} else {
customFeesBuilder_.clear();
}
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public Builder removeCustomFees(int index) {
if (customFeesBuilder_ == null) {
ensureCustomFeesIsMutable();
customFees_.remove(index);
onChanged();
} else {
customFeesBuilder_.remove(index);
}
return this;
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public com.hedera.hashgraph.sdk.proto.CustomFee.Builder getCustomFeesBuilder(
int index) {
return getCustomFeesFieldBuilder().getBuilder(index);
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder getCustomFeesOrBuilder(
int index) {
if (customFeesBuilder_ == null) {
return customFees_.get(index); } else {
return customFeesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public java.util.List extends com.hedera.hashgraph.sdk.proto.CustomFeeOrBuilder>
getCustomFeesOrBuilderList() {
if (customFeesBuilder_ != null) {
return customFeesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customFees_);
}
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public com.hedera.hashgraph.sdk.proto.CustomFee.Builder addCustomFeesBuilder() {
return getCustomFeesFieldBuilder().addBuilder(
com.hedera.hashgraph.sdk.proto.CustomFee.getDefaultInstance());
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
public com.hedera.hashgraph.sdk.proto.CustomFee.Builder addCustomFeesBuilder(
int index) {
return getCustomFeesFieldBuilder().addBuilder(
index, com.hedera.hashgraph.sdk.proto.CustomFee.getDefaultInstance());
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 23;
*/
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_ & 0x00400000) != 0),
getParentForChildren(),
isClean());
customFees_ = null;
}
return customFeesBuilder_;
}
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_;
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
* @return Whether the pauseKey field is set.
*/
public boolean hasPauseKey() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
* @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();
}
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
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_ |= 0x00800000;
onChanged();
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
public Builder setPauseKey(
com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
if (pauseKeyBuilder_ == null) {
pauseKey_ = builderForValue.build();
} else {
pauseKeyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
public Builder mergePauseKey(com.hedera.hashgraph.sdk.proto.Key value) {
if (pauseKeyBuilder_ == null) {
if (((bitField0_ & 0x00800000) != 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_ |= 0x00800000;
onChanged();
}
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
public Builder clearPauseKey() {
bitField0_ = (bitField0_ & ~0x00800000);
pauseKey_ = null;
if (pauseKeyBuilder_ != null) {
pauseKeyBuilder_.dispose();
pauseKeyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
public com.hedera.hashgraph.sdk.proto.Key.Builder getPauseKeyBuilder() {
bitField0_ |= 0x00800000;
onChanged();
return getPauseKeyFieldBuilder().getBuilder();
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
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_;
}
}
/**
*
**
* The Key which can pause and unpause the Token.
*
*
* .proto.Key pause_key = 24;
*/
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 int pauseStatus_ = 0;
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @return The enum numeric value on the wire for pauseStatus.
*/
@java.lang.Override public int getPauseStatusValue() {
return pauseStatus_;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @param value The enum numeric value on the wire for pauseStatus to set.
* @return This builder for chaining.
*/
public Builder setPauseStatusValue(int value) {
pauseStatus_ = value;
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @return The pauseStatus.
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.TokenPauseStatus getPauseStatus() {
com.hedera.hashgraph.sdk.proto.TokenPauseStatus result = com.hedera.hashgraph.sdk.proto.TokenPauseStatus.forNumber(pauseStatus_);
return result == null ? com.hedera.hashgraph.sdk.proto.TokenPauseStatus.UNRECOGNIZED : result;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @param value The pauseStatus to set.
* @return This builder for chaining.
*/
public Builder setPauseStatus(com.hedera.hashgraph.sdk.proto.TokenPauseStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x01000000;
pauseStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* Specifies whether the token is paused or not. PauseNotApplicable is returned if pauseKey is not set.
*
*
* .proto.TokenPauseStatus pause_status = 25;
* @return This builder for chaining.
*/
public Builder clearPauseStatus() {
bitField0_ = (bitField0_ & ~0x01000000);
pauseStatus_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 26;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 26;
* @param value The ledgerId to set.
* @return This builder for chaining.
*/
public Builder setLedgerId(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ledgerId_ = value;
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 26;
* @return This builder for chaining.
*/
public Builder clearLedgerId() {
bitField0_ = (bitField0_ & ~0x02000000);
ledgerId_ = getDefaultInstance().getLedgerId();
onChanged();
return this;
}
private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* Represents the metadata of the token definition.
*
*
* bytes metadata = 27;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetadata() {
return metadata_;
}
/**
*
**
* Represents the metadata of the 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;
}
/**
*
**
* Represents the metadata of the 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.TokenInfo)
}
// @@protoc_insertion_point(class_scope:proto.TokenInfo)
private static final com.hedera.hashgraph.sdk.proto.TokenInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.TokenInfo();
}
public static com.hedera.hashgraph.sdk.proto.TokenInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenInfo 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.TokenInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}