implements
// @@protoc_insertion_point(builder_implements:proto.TokenCreateTransactionBody)
com.hederahashgraph.api.proto.java.TokenCreateTransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.TokenCreate.internal_static_proto_TokenCreateTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TokenCreate.internal_static_proto_TokenCreateTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.TokenCreateTransactionBody.class, com.hederahashgraph.api.proto.java.TokenCreateTransactionBody.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.TokenCreateTransactionBody.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCustomFeesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
symbol_ = "";
decimals_ = 0;
initialSupply_ = 0L;
if (treasuryBuilder_ == null) {
treasury_ = null;
} else {
treasury_ = null;
treasuryBuilder_ = null;
}
if (adminKeyBuilder_ == null) {
adminKey_ = null;
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
if (kycKeyBuilder_ == null) {
kycKey_ = null;
} else {
kycKey_ = null;
kycKeyBuilder_ = null;
}
if (freezeKeyBuilder_ == null) {
freezeKey_ = null;
} else {
freezeKey_ = null;
freezeKeyBuilder_ = null;
}
if (wipeKeyBuilder_ == null) {
wipeKey_ = null;
} else {
wipeKey_ = null;
wipeKeyBuilder_ = null;
}
if (supplyKeyBuilder_ == null) {
supplyKey_ = null;
} else {
supplyKey_ = null;
supplyKeyBuilder_ = null;
}
freezeDefault_ = false;
if (expiryBuilder_ == null) {
expiry_ = null;
} else {
expiry_ = null;
expiryBuilder_ = null;
}
if (autoRenewAccountBuilder_ == null) {
autoRenewAccount_ = null;
} else {
autoRenewAccount_ = null;
autoRenewAccountBuilder_ = null;
}
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
memo_ = "";
tokenType_ = 0;
supplyType_ = 0;
maxSupply_ = 0L;
if (feeScheduleKeyBuilder_ == null) {
feeScheduleKey_ = null;
} else {
feeScheduleKey_ = null;
feeScheduleKeyBuilder_ = null;
}
if (customFeesBuilder_ == null) {
customFees_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
customFeesBuilder_.clear();
}
if (pauseKeyBuilder_ == null) {
pauseKey_ = null;
} else {
pauseKey_ = null;
pauseKeyBuilder_ = null;
}
metadata_ = com.google.protobuf.ByteString.EMPTY;
if (metadataKeyBuilder_ == null) {
metadataKey_ = null;
} else {
metadataKey_ = null;
metadataKeyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.TokenCreate.internal_static_proto_TokenCreateTransactionBody_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenCreateTransactionBody getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.TokenCreateTransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenCreateTransactionBody build() {
com.hederahashgraph.api.proto.java.TokenCreateTransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenCreateTransactionBody buildPartial() {
com.hederahashgraph.api.proto.java.TokenCreateTransactionBody result = new com.hederahashgraph.api.proto.java.TokenCreateTransactionBody(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.symbol_ = symbol_;
result.decimals_ = decimals_;
result.initialSupply_ = initialSupply_;
if (treasuryBuilder_ == null) {
result.treasury_ = treasury_;
} else {
result.treasury_ = treasuryBuilder_.build();
}
if (adminKeyBuilder_ == null) {
result.adminKey_ = adminKey_;
} else {
result.adminKey_ = adminKeyBuilder_.build();
}
if (kycKeyBuilder_ == null) {
result.kycKey_ = kycKey_;
} else {
result.kycKey_ = kycKeyBuilder_.build();
}
if (freezeKeyBuilder_ == null) {
result.freezeKey_ = freezeKey_;
} else {
result.freezeKey_ = freezeKeyBuilder_.build();
}
if (wipeKeyBuilder_ == null) {
result.wipeKey_ = wipeKey_;
} else {
result.wipeKey_ = wipeKeyBuilder_.build();
}
if (supplyKeyBuilder_ == null) {
result.supplyKey_ = supplyKey_;
} else {
result.supplyKey_ = supplyKeyBuilder_.build();
}
result.freezeDefault_ = freezeDefault_;
if (expiryBuilder_ == null) {
result.expiry_ = expiry_;
} else {
result.expiry_ = expiryBuilder_.build();
}
if (autoRenewAccountBuilder_ == null) {
result.autoRenewAccount_ = autoRenewAccount_;
} else {
result.autoRenewAccount_ = autoRenewAccountBuilder_.build();
}
if (autoRenewPeriodBuilder_ == null) {
result.autoRenewPeriod_ = autoRenewPeriod_;
} else {
result.autoRenewPeriod_ = autoRenewPeriodBuilder_.build();
}
result.memo_ = memo_;
result.tokenType_ = tokenType_;
result.supplyType_ = supplyType_;
result.maxSupply_ = maxSupply_;
if (feeScheduleKeyBuilder_ == null) {
result.feeScheduleKey_ = feeScheduleKey_;
} else {
result.feeScheduleKey_ = feeScheduleKeyBuilder_.build();
}
if (customFeesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
customFees_ = java.util.Collections.unmodifiableList(customFees_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.customFees_ = customFees_;
} else {
result.customFees_ = customFeesBuilder_.build();
}
if (pauseKeyBuilder_ == null) {
result.pauseKey_ = pauseKey_;
} else {
result.pauseKey_ = pauseKeyBuilder_.build();
}
result.metadata_ = metadata_;
if (metadataKeyBuilder_ == null) {
result.metadataKey_ = metadataKey_;
} else {
result.metadataKey_ = metadataKeyBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.TokenCreateTransactionBody) {
return mergeFrom((com.hederahashgraph.api.proto.java.TokenCreateTransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.TokenCreateTransactionBody other) {
if (other == com.hederahashgraph.api.proto.java.TokenCreateTransactionBody.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getSymbol().isEmpty()) {
symbol_ = other.symbol_;
onChanged();
}
if (other.getDecimals() != 0) {
setDecimals(other.getDecimals());
}
if (other.getInitialSupply() != 0L) {
setInitialSupply(other.getInitialSupply());
}
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.getFreezeDefault() != false) {
setFreezeDefault(other.getFreezeDefault());
}
if (other.hasExpiry()) {
mergeExpiry(other.getExpiry());
}
if (other.hasAutoRenewAccount()) {
mergeAutoRenewAccount(other.getAutoRenewAccount());
}
if (other.hasAutoRenewPeriod()) {
mergeAutoRenewPeriod(other.getAutoRenewPeriod());
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
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_ & ~0x00000001);
} else {
ensureCustomFeesIsMutable();
customFees_.addAll(other.customFees_);
}
onChanged();
}
} else {
if (!other.customFees_.isEmpty()) {
if (customFeesBuilder_.isEmpty()) {
customFeesBuilder_.dispose();
customFeesBuilder_ = null;
customFees_ = other.customFees_;
bitField0_ = (bitField0_ & ~0x00000001);
customFeesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomFeesFieldBuilder() : null;
} else {
customFeesBuilder_.addAllMessages(other.customFees_);
}
}
}
if (other.hasPauseKey()) {
mergePauseKey(other.getPauseKey());
}
if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) {
setMetadata(other.getMetadata());
}
if (other.hasMetadataKey()) {
mergeMetadataKey(other.getMetadataKey());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hederahashgraph.api.proto.java.TokenCreateTransactionBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.TokenCreateTransactionBody) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
**
* The publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 1;
* @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 publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 1;
* @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 publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 1;
* @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;
onChanged();
return this;
}
/**
*
**
* The publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
**
* The publicly visible name of the token. The token name is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string name = 1;
* @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;
onChanged();
return this;
}
private java.lang.Object symbol_ = "";
/**
*
**
* The publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @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 publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @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 publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @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;
onChanged();
return this;
}
/**
*
**
* The publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @return This builder for chaining.
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
onChanged();
return this;
}
/**
*
**
* The publicly visible token symbol. The token symbol is specified as a Unicode string.
* Its UTF-8 encoding cannot exceed 100 bytes, and cannot contain the 0 byte (NUL).
*
*
* string symbol = 2;
* @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;
onChanged();
return this;
}
private int decimals_ ;
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the number of decimal places a
* token is divisible by. For tokens of type NON_FUNGIBLE_UNIQUE - value
* must be 0
*
*
* uint32 decimals = 3;
* @return The decimals.
*/
@java.lang.Override
public int getDecimals() {
return decimals_;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the number of decimal places a
* token is divisible by. For tokens of type NON_FUNGIBLE_UNIQUE - value
* must be 0
*
*
* uint32 decimals = 3;
* @param value The decimals to set.
* @return This builder for chaining.
*/
public Builder setDecimals(int value) {
decimals_ = value;
onChanged();
return this;
}
/**
*
**
* For tokens of type FUNGIBLE_COMMON - the number of decimal places a
* token is divisible by. For tokens of type NON_FUNGIBLE_UNIQUE - value
* must be 0
*
*
* uint32 decimals = 3;
* @return This builder for chaining.
*/
public Builder clearDecimals() {
decimals_ = 0;
onChanged();
return this;
}
private long initialSupply_ ;
/**
*
**
* Specifies the initial supply of tokens to be put in circulation. The
* initial supply is sent to the Treasury Account. The supply is in the
* lowest denomination possible. In the case for NON_FUNGIBLE_UNIQUE Type
* the value must be 0
*
*
* uint64 initialSupply = 4;
* @return The initialSupply.
*/
@java.lang.Override
public long getInitialSupply() {
return initialSupply_;
}
/**
*
**
* Specifies the initial supply of tokens to be put in circulation. The
* initial supply is sent to the Treasury Account. The supply is in the
* lowest denomination possible. In the case for NON_FUNGIBLE_UNIQUE Type
* the value must be 0
*
*
* uint64 initialSupply = 4;
* @param value The initialSupply to set.
* @return This builder for chaining.
*/
public Builder setInitialSupply(long value) {
initialSupply_ = value;
onChanged();
return this;
}
/**
*
**
* Specifies the initial supply of tokens to be put in circulation. The
* initial supply is sent to the Treasury Account. The supply is in the
* lowest denomination possible. In the case for NON_FUNGIBLE_UNIQUE Type
* the value must be 0
*
*
* uint64 initialSupply = 4;
* @return This builder for chaining.
*/
public Builder clearInitialSupply() {
initialSupply_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.AccountID treasury_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> treasuryBuilder_;
/**
*
**
* The account which will act as a treasury for the token. This account
* will receive the specified initial supply or the newly minted NFTs in
* the case for NON_FUNGIBLE_UNIQUE Type
*
*
* .proto.AccountID treasury = 5;
* @return Whether the treasury field is set.
*/
public boolean hasTreasury() {
return treasuryBuilder_ != null || treasury_ != null;
}
/**
*
**
* The account which will act as a treasury for the token. This account
* will receive the specified initial supply or the newly minted NFTs in
* the case for NON_FUNGIBLE_UNIQUE Type
*
*
* .proto.AccountID treasury = 5;
* @return The treasury.
*/
public com.hederahashgraph.api.proto.java.AccountID getTreasury() {
if (treasuryBuilder_ == null) {
return treasury_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : treasury_;
} else {
return treasuryBuilder_.getMessage();
}
}
/**
*
**
* The account which will act as a treasury for the token. This account
* will receive the specified initial supply or the newly minted NFTs in
* the case for NON_FUNGIBLE_UNIQUE Type
*
*
* .proto.AccountID treasury = 5;
*/
public Builder setTreasury(com.hederahashgraph.api.proto.java.AccountID value) {
if (treasuryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
treasury_ = value;
onChanged();
} else {
treasuryBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The account which will act as a treasury for the token. This account
* will receive the specified initial supply or the newly minted NFTs in
* the case for NON_FUNGIBLE_UNIQUE Type
*
*
* .proto.AccountID treasury = 5;
*/
public Builder setTreasury(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (treasuryBuilder_ == null) {
treasury_ = builderForValue.build();
onChanged();
} else {
treasuryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The account which will act as a treasury for the token. This account
* will receive the specified initial supply or the newly minted NFTs in
* the case for NON_FUNGIBLE_UNIQUE Type
*
*
* .proto.AccountID treasury = 5;
*/
public Builder mergeTreasury(com.hederahashgraph.api.proto.java.AccountID value) {
if (treasuryBuilder_ == null) {
if (treasury_ != null) {
treasury_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(treasury_).mergeFrom(value).buildPartial();
} else {
treasury_ = value;
}
onChanged();
} else {
treasuryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The account which will act as a treasury for the token. This account
* will receive the specified initial supply or the newly minted NFTs in
* the case for NON_FUNGIBLE_UNIQUE Type
*
*
* .proto.AccountID treasury = 5;
*/
public Builder clearTreasury() {
if (treasuryBuilder_ == null) {
treasury_ = null;
onChanged();
} else {
treasury_ = null;
treasuryBuilder_ = null;
}
return this;
}
/**
*
**
* The account which will act as a treasury for the token. This account
* will receive the specified initial supply or the newly minted NFTs in
* the case for NON_FUNGIBLE_UNIQUE Type
*
*
* .proto.AccountID treasury = 5;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getTreasuryBuilder() {
onChanged();
return getTreasuryFieldBuilder().getBuilder();
}
/**
*
**
* The account which will act as a treasury for the token. This account
* will receive the specified initial supply or the newly minted NFTs in
* the case for NON_FUNGIBLE_UNIQUE Type
*
*
* .proto.AccountID treasury = 5;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getTreasuryOrBuilder() {
if (treasuryBuilder_ != null) {
return treasuryBuilder_.getMessageOrBuilder();
} else {
return treasury_ == null ?
com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : treasury_;
}
}
/**
*
**
* The account which will act as a treasury for the token. This account
* will receive the specified initial supply or the newly minted NFTs in
* the case for NON_FUNGIBLE_UNIQUE Type
*
*
* .proto.AccountID treasury = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getTreasuryFieldBuilder() {
if (treasuryBuilder_ == null) {
treasuryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getTreasury(),
getParentForChildren(),
isClean());
treasury_ = null;
}
return treasuryBuilder_;
}
private com.hederahashgraph.api.proto.java.Key adminKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.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 = 6;
* @return Whether the adminKey field is set.
*/
public boolean hasAdminKey() {
return adminKeyBuilder_ != null || adminKey_ != null;
}
/**
*
**
* 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 = 6;
* @return The adminKey.
*/
public com.hederahashgraph.api.proto.java.Key getAdminKey() {
if (adminKeyBuilder_ == null) {
return adminKey_ == null ? com.hederahashgraph.api.proto.java.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 = 6;
*/
public Builder setAdminKey(com.hederahashgraph.api.proto.java.Key value) {
if (adminKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
adminKey_ = value;
onChanged();
} else {
adminKeyBuilder_.setMessage(value);
}
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 = 6;
*/
public Builder setAdminKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (adminKeyBuilder_ == null) {
adminKey_ = builderForValue.build();
onChanged();
} else {
adminKeyBuilder_.setMessage(builderForValue.build());
}
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 = 6;
*/
public Builder mergeAdminKey(com.hederahashgraph.api.proto.java.Key value) {
if (adminKeyBuilder_ == null) {
if (adminKey_ != null) {
adminKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(adminKey_).mergeFrom(value).buildPartial();
} else {
adminKey_ = value;
}
onChanged();
} else {
adminKeyBuilder_.mergeFrom(value);
}
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 = 6;
*/
public Builder clearAdminKey() {
if (adminKeyBuilder_ == null) {
adminKey_ = null;
onChanged();
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
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 = 6;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() {
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 = 6;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() {
if (adminKeyBuilder_ != null) {
return adminKeyBuilder_.getMessageOrBuilder();
} else {
return adminKey_ == null ?
com.hederahashgraph.api.proto.java.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 = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getAdminKeyFieldBuilder() {
if (adminKeyBuilder_ == null) {
adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getAdminKey(),
getParentForChildren(),
isClean());
adminKey_ = null;
}
return adminKeyBuilder_;
}
private com.hederahashgraph.api.proto.java.Key kycKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.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 = 7;
* @return Whether the kycKey field is set.
*/
public boolean hasKycKey() {
return kycKeyBuilder_ != null || kycKey_ != null;
}
/**
*
**
* 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 = 7;
* @return The kycKey.
*/
public com.hederahashgraph.api.proto.java.Key getKycKey() {
if (kycKeyBuilder_ == null) {
return kycKey_ == null ? com.hederahashgraph.api.proto.java.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 = 7;
*/
public Builder setKycKey(com.hederahashgraph.api.proto.java.Key value) {
if (kycKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kycKey_ = value;
onChanged();
} else {
kycKeyBuilder_.setMessage(value);
}
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 = 7;
*/
public Builder setKycKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (kycKeyBuilder_ == null) {
kycKey_ = builderForValue.build();
onChanged();
} else {
kycKeyBuilder_.setMessage(builderForValue.build());
}
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 = 7;
*/
public Builder mergeKycKey(com.hederahashgraph.api.proto.java.Key value) {
if (kycKeyBuilder_ == null) {
if (kycKey_ != null) {
kycKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(kycKey_).mergeFrom(value).buildPartial();
} else {
kycKey_ = value;
}
onChanged();
} else {
kycKeyBuilder_.mergeFrom(value);
}
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 = 7;
*/
public Builder clearKycKey() {
if (kycKeyBuilder_ == null) {
kycKey_ = null;
onChanged();
} else {
kycKey_ = null;
kycKeyBuilder_ = null;
}
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 = 7;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getKycKeyBuilder() {
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 = 7;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getKycKeyOrBuilder() {
if (kycKeyBuilder_ != null) {
return kycKeyBuilder_.getMessageOrBuilder();
} else {
return kycKey_ == null ?
com.hederahashgraph.api.proto.java.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 = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getKycKeyFieldBuilder() {
if (kycKeyBuilder_ == null) {
kycKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getKycKey(),
getParentForChildren(),
isClean());
kycKey_ = null;
}
return kycKeyBuilder_;
}
private com.hederahashgraph.api.proto.java.Key freezeKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> freezeKeyBuilder_;
/**
*
**
* The key which can sign to freeze or unfreeze an account for token transactions. If empty,
* freezing is not possible
*
*
* .proto.Key freezeKey = 8;
* @return Whether the freezeKey field is set.
*/
public boolean hasFreezeKey() {
return freezeKeyBuilder_ != null || freezeKey_ != null;
}
/**
*
**
* The key which can sign to freeze or unfreeze an account for token transactions. If empty,
* freezing is not possible
*
*
* .proto.Key freezeKey = 8;
* @return The freezeKey.
*/
public com.hederahashgraph.api.proto.java.Key getFreezeKey() {
if (freezeKeyBuilder_ == null) {
return freezeKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : freezeKey_;
} else {
return freezeKeyBuilder_.getMessage();
}
}
/**
*
**
* The key which can sign to freeze or unfreeze an account for token transactions. If empty,
* freezing is not possible
*
*
* .proto.Key freezeKey = 8;
*/
public Builder setFreezeKey(com.hederahashgraph.api.proto.java.Key value) {
if (freezeKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
freezeKey_ = value;
onChanged();
} else {
freezeKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The key which can sign to freeze or unfreeze an account for token transactions. If empty,
* freezing is not possible
*
*
* .proto.Key freezeKey = 8;
*/
public Builder setFreezeKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (freezeKeyBuilder_ == null) {
freezeKey_ = builderForValue.build();
onChanged();
} else {
freezeKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The key which can sign to freeze or unfreeze an account for token transactions. If empty,
* freezing is not possible
*
*
* .proto.Key freezeKey = 8;
*/
public Builder mergeFreezeKey(com.hederahashgraph.api.proto.java.Key value) {
if (freezeKeyBuilder_ == null) {
if (freezeKey_ != null) {
freezeKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(freezeKey_).mergeFrom(value).buildPartial();
} else {
freezeKey_ = value;
}
onChanged();
} else {
freezeKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The key which can sign to freeze or unfreeze an account for token transactions. If empty,
* freezing is not possible
*
*
* .proto.Key freezeKey = 8;
*/
public Builder clearFreezeKey() {
if (freezeKeyBuilder_ == null) {
freezeKey_ = null;
onChanged();
} else {
freezeKey_ = null;
freezeKeyBuilder_ = null;
}
return this;
}
/**
*
**
* The key which can sign to freeze or unfreeze an account for token transactions. If empty,
* freezing is not possible
*
*
* .proto.Key freezeKey = 8;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getFreezeKeyBuilder() {
onChanged();
return getFreezeKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key which can sign to freeze or unfreeze an account for token transactions. If empty,
* freezing is not possible
*
*
* .proto.Key freezeKey = 8;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getFreezeKeyOrBuilder() {
if (freezeKeyBuilder_ != null) {
return freezeKeyBuilder_.getMessageOrBuilder();
} else {
return freezeKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : freezeKey_;
}
}
/**
*
**
* The key which can sign to freeze or unfreeze an account for token transactions. If empty,
* freezing is not possible
*
*
* .proto.Key freezeKey = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getFreezeKeyFieldBuilder() {
if (freezeKeyBuilder_ == null) {
freezeKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getFreezeKey(),
getParentForChildren(),
isClean());
freezeKey_ = null;
}
return freezeKeyBuilder_;
}
private com.hederahashgraph.api.proto.java.Key wipeKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> wipeKeyBuilder_;
/**
*
**
* The key which can wipe the token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 9;
* @return Whether the wipeKey field is set.
*/
public boolean hasWipeKey() {
return wipeKeyBuilder_ != null || wipeKey_ != null;
}
/**
*
**
* The key which can wipe the token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 9;
* @return The wipeKey.
*/
public com.hederahashgraph.api.proto.java.Key getWipeKey() {
if (wipeKeyBuilder_ == null) {
return wipeKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : wipeKey_;
} else {
return wipeKeyBuilder_.getMessage();
}
}
/**
*
**
* The key which can wipe the token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 9;
*/
public Builder setWipeKey(com.hederahashgraph.api.proto.java.Key value) {
if (wipeKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
wipeKey_ = value;
onChanged();
} else {
wipeKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The key which can wipe the token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 9;
*/
public Builder setWipeKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (wipeKeyBuilder_ == null) {
wipeKey_ = builderForValue.build();
onChanged();
} else {
wipeKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The key which can wipe the token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 9;
*/
public Builder mergeWipeKey(com.hederahashgraph.api.proto.java.Key value) {
if (wipeKeyBuilder_ == null) {
if (wipeKey_ != null) {
wipeKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(wipeKey_).mergeFrom(value).buildPartial();
} else {
wipeKey_ = value;
}
onChanged();
} else {
wipeKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The key which can wipe the token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 9;
*/
public Builder clearWipeKey() {
if (wipeKeyBuilder_ == null) {
wipeKey_ = null;
onChanged();
} else {
wipeKey_ = null;
wipeKeyBuilder_ = null;
}
return this;
}
/**
*
**
* The key which can wipe the token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 9;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getWipeKeyBuilder() {
onChanged();
return getWipeKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key which can wipe the token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 9;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getWipeKeyOrBuilder() {
if (wipeKeyBuilder_ != null) {
return wipeKeyBuilder_.getMessageOrBuilder();
} else {
return wipeKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : wipeKey_;
}
}
/**
*
**
* The key which can wipe the token balance of an account. If empty, wipe is not possible
*
*
* .proto.Key wipeKey = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getWipeKeyFieldBuilder() {
if (wipeKeyBuilder_ == null) {
wipeKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getWipeKey(),
getParentForChildren(),
isClean());
wipeKey_ = null;
}
return wipeKeyBuilder_;
}
private com.hederahashgraph.api.proto.java.Key supplyKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.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 = 10;
* @return Whether the supplyKey field is set.
*/
public boolean hasSupplyKey() {
return supplyKeyBuilder_ != null || supplyKey_ != null;
}
/**
*
**
* The key which can change the supply of a token. The key is used to sign Token Mint/Burn
* operations
*
*
* .proto.Key supplyKey = 10;
* @return The supplyKey.
*/
public com.hederahashgraph.api.proto.java.Key getSupplyKey() {
if (supplyKeyBuilder_ == null) {
return supplyKey_ == null ? com.hederahashgraph.api.proto.java.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 = 10;
*/
public Builder setSupplyKey(com.hederahashgraph.api.proto.java.Key value) {
if (supplyKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
supplyKey_ = value;
onChanged();
} else {
supplyKeyBuilder_.setMessage(value);
}
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 = 10;
*/
public Builder setSupplyKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (supplyKeyBuilder_ == null) {
supplyKey_ = builderForValue.build();
onChanged();
} else {
supplyKeyBuilder_.setMessage(builderForValue.build());
}
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 = 10;
*/
public Builder mergeSupplyKey(com.hederahashgraph.api.proto.java.Key value) {
if (supplyKeyBuilder_ == null) {
if (supplyKey_ != null) {
supplyKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(supplyKey_).mergeFrom(value).buildPartial();
} else {
supplyKey_ = value;
}
onChanged();
} else {
supplyKeyBuilder_.mergeFrom(value);
}
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 = 10;
*/
public Builder clearSupplyKey() {
if (supplyKeyBuilder_ == null) {
supplyKey_ = null;
onChanged();
} else {
supplyKey_ = null;
supplyKeyBuilder_ = null;
}
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 = 10;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getSupplyKeyBuilder() {
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 = 10;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getSupplyKeyOrBuilder() {
if (supplyKeyBuilder_ != null) {
return supplyKeyBuilder_.getMessageOrBuilder();
} else {
return supplyKey_ == null ?
com.hederahashgraph.api.proto.java.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 = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getSupplyKeyFieldBuilder() {
if (supplyKeyBuilder_ == null) {
supplyKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getSupplyKey(),
getParentForChildren(),
isClean());
supplyKey_ = null;
}
return supplyKeyBuilder_;
}
private boolean freezeDefault_ ;
/**
*
**
* The default Freeze status (frozen or unfrozen) of Hedera accounts relative to this token. If
* true, an account must be unfrozen before it can receive the token
*
*
* bool freezeDefault = 11;
* @return The freezeDefault.
*/
@java.lang.Override
public boolean getFreezeDefault() {
return freezeDefault_;
}
/**
*
**
* The default Freeze status (frozen or unfrozen) of Hedera accounts relative to this token. If
* true, an account must be unfrozen before it can receive the token
*
*
* bool freezeDefault = 11;
* @param value The freezeDefault to set.
* @return This builder for chaining.
*/
public Builder setFreezeDefault(boolean value) {
freezeDefault_ = value;
onChanged();
return this;
}
/**
*
**
* The default Freeze status (frozen or unfrozen) of Hedera accounts relative to this token. If
* true, an account must be unfrozen before it can receive the token
*
*
* bool freezeDefault = 11;
* @return This builder for chaining.
*/
public Builder clearFreezeDefault() {
freezeDefault_ = false;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Timestamp expiry_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> expiryBuilder_;
/**
*
**
* The epoch second at which the token should expire; if an auto-renew account and period are
* specified, this is coerced to the current epoch second plus the autoRenewPeriod
*
*
* .proto.Timestamp expiry = 13;
* @return Whether the expiry field is set.
*/
public boolean hasExpiry() {
return expiryBuilder_ != null || expiry_ != null;
}
/**
*
**
* The epoch second at which the token should expire; if an auto-renew account and period are
* specified, this is coerced to the current epoch second plus the autoRenewPeriod
*
*
* .proto.Timestamp expiry = 13;
* @return The expiry.
*/
public com.hederahashgraph.api.proto.java.Timestamp getExpiry() {
if (expiryBuilder_ == null) {
return expiry_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expiry_;
} else {
return expiryBuilder_.getMessage();
}
}
/**
*
**
* The epoch second at which the token should expire; if an auto-renew account and period are
* specified, this is coerced to the current epoch second plus the autoRenewPeriod
*
*
* .proto.Timestamp expiry = 13;
*/
public Builder setExpiry(com.hederahashgraph.api.proto.java.Timestamp value) {
if (expiryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expiry_ = value;
onChanged();
} else {
expiryBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The epoch second at which the token should expire; if an auto-renew account and period are
* specified, this is coerced to the current epoch second plus the autoRenewPeriod
*
*
* .proto.Timestamp expiry = 13;
*/
public Builder setExpiry(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (expiryBuilder_ == null) {
expiry_ = builderForValue.build();
onChanged();
} else {
expiryBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The epoch second at which the token should expire; if an auto-renew account and period are
* specified, this is coerced to the current epoch second plus the autoRenewPeriod
*
*
* .proto.Timestamp expiry = 13;
*/
public Builder mergeExpiry(com.hederahashgraph.api.proto.java.Timestamp value) {
if (expiryBuilder_ == null) {
if (expiry_ != null) {
expiry_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(expiry_).mergeFrom(value).buildPartial();
} else {
expiry_ = value;
}
onChanged();
} else {
expiryBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The epoch second at which the token should expire; if an auto-renew account and period are
* specified, this is coerced to the current epoch second plus the autoRenewPeriod
*
*
* .proto.Timestamp expiry = 13;
*/
public Builder clearExpiry() {
if (expiryBuilder_ == null) {
expiry_ = null;
onChanged();
} else {
expiry_ = null;
expiryBuilder_ = null;
}
return this;
}
/**
*
**
* The epoch second at which the token should expire; if an auto-renew account and period are
* specified, this is coerced to the current epoch second plus the autoRenewPeriod
*
*
* .proto.Timestamp expiry = 13;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getExpiryBuilder() {
onChanged();
return getExpiryFieldBuilder().getBuilder();
}
/**
*
**
* The epoch second at which the token should expire; if an auto-renew account and period are
* specified, this is coerced to the current epoch second plus the autoRenewPeriod
*
*
* .proto.Timestamp expiry = 13;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpiryOrBuilder() {
if (expiryBuilder_ != null) {
return expiryBuilder_.getMessageOrBuilder();
} else {
return expiry_ == null ?
com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expiry_;
}
}
/**
*
**
* The epoch second at which the token should expire; if an auto-renew account and period are
* specified, this is coerced to the current epoch second plus the autoRenewPeriod
*
*
* .proto.Timestamp expiry = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getExpiryFieldBuilder() {
if (expiryBuilder_ == null) {
expiryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getExpiry(),
getParentForChildren(),
isClean());
expiry_ = null;
}
return expiryBuilder_;
}
private com.hederahashgraph.api.proto.java.AccountID autoRenewAccount_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> autoRenewAccountBuilder_;
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 14;
* @return Whether the autoRenewAccount field is set.
*/
public boolean hasAutoRenewAccount() {
return autoRenewAccountBuilder_ != null || autoRenewAccount_ != null;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 14;
* @return The autoRenewAccount.
*/
public com.hederahashgraph.api.proto.java.AccountID getAutoRenewAccount() {
if (autoRenewAccountBuilder_ == null) {
return autoRenewAccount_ == null ? com.hederahashgraph.api.proto.java.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 = 14;
*/
public Builder setAutoRenewAccount(com.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewAccount_ = value;
onChanged();
} else {
autoRenewAccountBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 14;
*/
public Builder setAutoRenewAccount(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccount_ = builderForValue.build();
onChanged();
} else {
autoRenewAccountBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 14;
*/
public Builder mergeAutoRenewAccount(com.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountBuilder_ == null) {
if (autoRenewAccount_ != null) {
autoRenewAccount_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(autoRenewAccount_).mergeFrom(value).buildPartial();
} else {
autoRenewAccount_ = value;
}
onChanged();
} else {
autoRenewAccountBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 14;
*/
public Builder clearAutoRenewAccount() {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccount_ = null;
onChanged();
} else {
autoRenewAccount_ = null;
autoRenewAccountBuilder_ = null;
}
return this;
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 14;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getAutoRenewAccountBuilder() {
onChanged();
return getAutoRenewAccountFieldBuilder().getBuilder();
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 14;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountOrBuilder() {
if (autoRenewAccountBuilder_ != null) {
return autoRenewAccountBuilder_.getMessageOrBuilder();
} else {
return autoRenewAccount_ == null ?
com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : autoRenewAccount_;
}
}
/**
*
**
* An account which will be automatically charged to renew the token's expiration, at
* autoRenewPeriod interval
*
*
* .proto.AccountID autoRenewAccount = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getAutoRenewAccountFieldBuilder() {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getAutoRenewAccount(),
getParentForChildren(),
isClean());
autoRenewAccount_ = null;
}
return autoRenewAccountBuilder_;
}
private com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder> autoRenewPeriodBuilder_;
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 15;
* @return Whether the autoRenewPeriod field is set.
*/
public boolean hasAutoRenewPeriod() {
return autoRenewPeriodBuilder_ != null || autoRenewPeriod_ != null;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 15;
* @return The autoRenewPeriod.
*/
public com.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.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 = 15;
*/
public Builder setAutoRenewPeriod(com.hederahashgraph.api.proto.java.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewPeriod_ = value;
onChanged();
} else {
autoRenewPeriodBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 15;
*/
public Builder setAutoRenewPeriod(
com.hederahashgraph.api.proto.java.Duration.Builder builderForValue) {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = builderForValue.build();
onChanged();
} else {
autoRenewPeriodBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 15;
*/
public Builder mergeAutoRenewPeriod(com.hederahashgraph.api.proto.java.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (autoRenewPeriod_ != null) {
autoRenewPeriod_ =
com.hederahashgraph.api.proto.java.Duration.newBuilder(autoRenewPeriod_).mergeFrom(value).buildPartial();
} else {
autoRenewPeriod_ = value;
}
onChanged();
} else {
autoRenewPeriodBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 15;
*/
public Builder clearAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
onChanged();
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
return this;
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 15;
*/
public com.hederahashgraph.api.proto.java.Duration.Builder getAutoRenewPeriodBuilder() {
onChanged();
return getAutoRenewPeriodFieldBuilder().getBuilder();
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 15;
*/
public com.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
if (autoRenewPeriodBuilder_ != null) {
return autoRenewPeriodBuilder_.getMessageOrBuilder();
} else {
return autoRenewPeriod_ == null ?
com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : autoRenewPeriod_;
}
}
/**
*
**
* The interval at which the auto-renew account will be charged to extend the token's expiry
*
*
* .proto.Duration autoRenewPeriod = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder>
getAutoRenewPeriodFieldBuilder() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder>(
getAutoRenewPeriod(),
getParentForChildren(),
isClean());
autoRenewPeriod_ = null;
}
return autoRenewPeriodBuilder_;
}
private java.lang.Object memo_ = "";
/**
*
**
* The memo associated with the token (UTF-8 encoding max 100 bytes)
*
*
* string memo = 16;
* @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 (UTF-8 encoding max 100 bytes)
*
*
* string memo = 16;
* @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 (UTF-8 encoding max 100 bytes)
*
*
* string memo = 16;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
return this;
}
/**
*
**
* The memo associated with the token (UTF-8 encoding max 100 bytes)
*
*
* string memo = 16;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
onChanged();
return this;
}
/**
*
**
* The memo associated with the token (UTF-8 encoding max 100 bytes)
*
*
* string memo = 16;
* @param value The bytes for memo to set.
* @return This builder for chaining.
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
memo_ = value;
onChanged();
return this;
}
private int tokenType_ = 0;
/**
*
**
* IWA compatibility. Specifies the token type. Defaults to FUNGIBLE_COMMON
*
*
* .proto.TokenType tokenType = 17;
* @return The enum numeric value on the wire for tokenType.
*/
@java.lang.Override public int getTokenTypeValue() {
return tokenType_;
}
/**
*
**
* IWA compatibility. Specifies the token type. Defaults to FUNGIBLE_COMMON
*
*
* .proto.TokenType tokenType = 17;
* @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;
onChanged();
return this;
}
/**
*
**
* IWA compatibility. Specifies the token type. Defaults to FUNGIBLE_COMMON
*
*
* .proto.TokenType tokenType = 17;
* @return The tokenType.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenType getTokenType() {
@SuppressWarnings("deprecation")
com.hederahashgraph.api.proto.java.TokenType result = com.hederahashgraph.api.proto.java.TokenType.valueOf(tokenType_);
return result == null ? com.hederahashgraph.api.proto.java.TokenType.UNRECOGNIZED : result;
}
/**
*
**
* IWA compatibility. Specifies the token type. Defaults to FUNGIBLE_COMMON
*
*
* .proto.TokenType tokenType = 17;
* @param value The tokenType to set.
* @return This builder for chaining.
*/
public Builder setTokenType(com.hederahashgraph.api.proto.java.TokenType value) {
if (value == null) {
throw new NullPointerException();
}
tokenType_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* IWA compatibility. Specifies the token type. Defaults to FUNGIBLE_COMMON
*
*
* .proto.TokenType tokenType = 17;
* @return This builder for chaining.
*/
public Builder clearTokenType() {
tokenType_ = 0;
onChanged();
return this;
}
private int supplyType_ = 0;
/**
*
**
* IWA compatibility. Specified the token supply type. Defaults to INFINITE
*
*
* .proto.TokenSupplyType supplyType = 18;
* @return The enum numeric value on the wire for supplyType.
*/
@java.lang.Override public int getSupplyTypeValue() {
return supplyType_;
}
/**
*
**
* IWA compatibility. Specified the token supply type. Defaults to INFINITE
*
*
* .proto.TokenSupplyType supplyType = 18;
* @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;
onChanged();
return this;
}
/**
*
**
* IWA compatibility. Specified the token supply type. Defaults to INFINITE
*
*
* .proto.TokenSupplyType supplyType = 18;
* @return The supplyType.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenSupplyType getSupplyType() {
@SuppressWarnings("deprecation")
com.hederahashgraph.api.proto.java.TokenSupplyType result = com.hederahashgraph.api.proto.java.TokenSupplyType.valueOf(supplyType_);
return result == null ? com.hederahashgraph.api.proto.java.TokenSupplyType.UNRECOGNIZED : result;
}
/**
*
**
* IWA compatibility. Specified the token supply type. Defaults to INFINITE
*
*
* .proto.TokenSupplyType supplyType = 18;
* @param value The supplyType to set.
* @return This builder for chaining.
*/
public Builder setSupplyType(com.hederahashgraph.api.proto.java.TokenSupplyType value) {
if (value == null) {
throw new NullPointerException();
}
supplyType_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* IWA compatibility. Specified the token supply type. Defaults to INFINITE
*
*
* .proto.TokenSupplyType supplyType = 18;
* @return This builder for chaining.
*/
public Builder clearSupplyType() {
supplyType_ = 0;
onChanged();
return this;
}
private long maxSupply_ ;
/**
*
**
* IWA Compatibility. Depends on TokenSupplyType. For tokens of type FUNGIBLE_COMMON - the
* maximum number of tokens that can be in circulation. For tokens of type NON_FUNGIBLE_UNIQUE -
* the maximum number of NFTs (serial numbers) that can be minted. This field can never be
* changed!
*
*
* int64 maxSupply = 19;
* @return The maxSupply.
*/
@java.lang.Override
public long getMaxSupply() {
return maxSupply_;
}
/**
*
**
* IWA Compatibility. Depends on TokenSupplyType. For tokens of type FUNGIBLE_COMMON - the
* maximum number of tokens that can be in circulation. For tokens of type NON_FUNGIBLE_UNIQUE -
* the maximum number of NFTs (serial numbers) that can be minted. This field can never be
* changed!
*
*
* int64 maxSupply = 19;
* @param value The maxSupply to set.
* @return This builder for chaining.
*/
public Builder setMaxSupply(long value) {
maxSupply_ = value;
onChanged();
return this;
}
/**
*
**
* IWA Compatibility. Depends on TokenSupplyType. For tokens of type FUNGIBLE_COMMON - the
* maximum number of tokens that can be in circulation. For tokens of type NON_FUNGIBLE_UNIQUE -
* the maximum number of NFTs (serial numbers) that can be minted. This field can never be
* changed!
*
*
* int64 maxSupply = 19;
* @return This builder for chaining.
*/
public Builder clearMaxSupply() {
maxSupply_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Key feeScheduleKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> feeScheduleKeyBuilder_;
/**
*
**
* The key which can change the token's custom fee schedule; must sign a TokenFeeScheduleUpdate
* transaction
*
*
* .proto.Key fee_schedule_key = 20;
* @return Whether the feeScheduleKey field is set.
*/
public boolean hasFeeScheduleKey() {
return feeScheduleKeyBuilder_ != null || feeScheduleKey_ != null;
}
/**
*
**
* The key which can change the token's custom fee schedule; must sign a TokenFeeScheduleUpdate
* transaction
*
*
* .proto.Key fee_schedule_key = 20;
* @return The feeScheduleKey.
*/
public com.hederahashgraph.api.proto.java.Key getFeeScheduleKey() {
if (feeScheduleKeyBuilder_ == null) {
return feeScheduleKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : feeScheduleKey_;
} else {
return feeScheduleKeyBuilder_.getMessage();
}
}
/**
*
**
* The key which can change the token's custom fee schedule; must sign a TokenFeeScheduleUpdate
* transaction
*
*
* .proto.Key fee_schedule_key = 20;
*/
public Builder setFeeScheduleKey(com.hederahashgraph.api.proto.java.Key value) {
if (feeScheduleKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
feeScheduleKey_ = value;
onChanged();
} else {
feeScheduleKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The key which can change the token's custom fee schedule; must sign a TokenFeeScheduleUpdate
* transaction
*
*
* .proto.Key fee_schedule_key = 20;
*/
public Builder setFeeScheduleKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (feeScheduleKeyBuilder_ == null) {
feeScheduleKey_ = builderForValue.build();
onChanged();
} else {
feeScheduleKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The key which can change the token's custom fee schedule; must sign a TokenFeeScheduleUpdate
* transaction
*
*
* .proto.Key fee_schedule_key = 20;
*/
public Builder mergeFeeScheduleKey(com.hederahashgraph.api.proto.java.Key value) {
if (feeScheduleKeyBuilder_ == null) {
if (feeScheduleKey_ != null) {
feeScheduleKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(feeScheduleKey_).mergeFrom(value).buildPartial();
} else {
feeScheduleKey_ = value;
}
onChanged();
} else {
feeScheduleKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The key which can change the token's custom fee schedule; must sign a TokenFeeScheduleUpdate
* transaction
*
*
* .proto.Key fee_schedule_key = 20;
*/
public Builder clearFeeScheduleKey() {
if (feeScheduleKeyBuilder_ == null) {
feeScheduleKey_ = null;
onChanged();
} else {
feeScheduleKey_ = null;
feeScheduleKeyBuilder_ = null;
}
return this;
}
/**
*
**
* The key which can change the token's custom fee schedule; must sign a TokenFeeScheduleUpdate
* transaction
*
*
* .proto.Key fee_schedule_key = 20;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getFeeScheduleKeyBuilder() {
onChanged();
return getFeeScheduleKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key which can change the token's custom fee schedule; must sign a TokenFeeScheduleUpdate
* transaction
*
*
* .proto.Key fee_schedule_key = 20;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getFeeScheduleKeyOrBuilder() {
if (feeScheduleKeyBuilder_ != null) {
return feeScheduleKeyBuilder_.getMessageOrBuilder();
} else {
return feeScheduleKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : feeScheduleKey_;
}
}
/**
*
**
* The key which can change the token's custom fee schedule; must sign a TokenFeeScheduleUpdate
* transaction
*
*
* .proto.Key fee_schedule_key = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getFeeScheduleKeyFieldBuilder() {
if (feeScheduleKeyBuilder_ == null) {
feeScheduleKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getFeeScheduleKey(),
getParentForChildren(),
isClean());
feeScheduleKey_ = null;
}
return feeScheduleKeyBuilder_;
}
private java.util.List customFees_ =
java.util.Collections.emptyList();
private void ensureCustomFeesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
customFees_ = new java.util.ArrayList(customFees_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.CustomFee, com.hederahashgraph.api.proto.java.CustomFee.Builder, com.hederahashgraph.api.proto.java.CustomFeeOrBuilder> customFeesBuilder_;
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 21;
*/
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 = 21;
*/
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 = 21;
*/
public com.hederahashgraph.api.proto.java.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 = 21;
*/
public Builder setCustomFees(
int index, com.hederahashgraph.api.proto.java.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 = 21;
*/
public Builder setCustomFees(
int index, com.hederahashgraph.api.proto.java.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 = 21;
*/
public Builder addCustomFees(com.hederahashgraph.api.proto.java.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 = 21;
*/
public Builder addCustomFees(
int index, com.hederahashgraph.api.proto.java.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 = 21;
*/
public Builder addCustomFees(
com.hederahashgraph.api.proto.java.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 = 21;
*/
public Builder addCustomFees(
int index, com.hederahashgraph.api.proto.java.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 = 21;
*/
public Builder addAllCustomFees(
java.lang.Iterable extends com.hederahashgraph.api.proto.java.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 = 21;
*/
public Builder clearCustomFees() {
if (customFeesBuilder_ == null) {
customFees_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
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 = 21;
*/
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 = 21;
*/
public com.hederahashgraph.api.proto.java.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 = 21;
*/
public com.hederahashgraph.api.proto.java.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 = 21;
*/
public java.util.List extends com.hederahashgraph.api.proto.java.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 = 21;
*/
public com.hederahashgraph.api.proto.java.CustomFee.Builder addCustomFeesBuilder() {
return getCustomFeesFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.CustomFee.getDefaultInstance());
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 21;
*/
public com.hederahashgraph.api.proto.java.CustomFee.Builder addCustomFeesBuilder(
int index) {
return getCustomFeesFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.CustomFee.getDefaultInstance());
}
/**
*
**
* The custom fees to be assessed during a CryptoTransfer that transfers units of this token
*
*
* repeated .proto.CustomFee custom_fees = 21;
*/
public java.util.List
getCustomFeesBuilderList() {
return getCustomFeesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.CustomFee, com.hederahashgraph.api.proto.java.CustomFee.Builder, com.hederahashgraph.api.proto.java.CustomFeeOrBuilder>
getCustomFeesFieldBuilder() {
if (customFeesBuilder_ == null) {
customFeesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.hederahashgraph.api.proto.java.CustomFee, com.hederahashgraph.api.proto.java.CustomFee.Builder, com.hederahashgraph.api.proto.java.CustomFeeOrBuilder>(
customFees_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
customFees_ = null;
}
return customFeesBuilder_;
}
private com.hederahashgraph.api.proto.java.Key pauseKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> pauseKeyBuilder_;
/**
*
**
* The Key which can pause and unpause the Token.
* If Empty the token pause status defaults to PauseNotApplicable, otherwise Unpaused.
*
*
* .proto.Key pause_key = 22;
* @return Whether the pauseKey field is set.
*/
public boolean hasPauseKey() {
return pauseKeyBuilder_ != null || pauseKey_ != null;
}
/**
*
**
* The Key which can pause and unpause the Token.
* If Empty the token pause status defaults to PauseNotApplicable, otherwise Unpaused.
*
*
* .proto.Key pause_key = 22;
* @return The pauseKey.
*/
public com.hederahashgraph.api.proto.java.Key getPauseKey() {
if (pauseKeyBuilder_ == null) {
return pauseKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : pauseKey_;
} else {
return pauseKeyBuilder_.getMessage();
}
}
/**
*
**
* The Key which can pause and unpause the Token.
* If Empty the token pause status defaults to PauseNotApplicable, otherwise Unpaused.
*
*
* .proto.Key pause_key = 22;
*/
public Builder setPauseKey(com.hederahashgraph.api.proto.java.Key value) {
if (pauseKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pauseKey_ = value;
onChanged();
} else {
pauseKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
* If Empty the token pause status defaults to PauseNotApplicable, otherwise Unpaused.
*
*
* .proto.Key pause_key = 22;
*/
public Builder setPauseKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (pauseKeyBuilder_ == null) {
pauseKey_ = builderForValue.build();
onChanged();
} else {
pauseKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
* If Empty the token pause status defaults to PauseNotApplicable, otherwise Unpaused.
*
*
* .proto.Key pause_key = 22;
*/
public Builder mergePauseKey(com.hederahashgraph.api.proto.java.Key value) {
if (pauseKeyBuilder_ == null) {
if (pauseKey_ != null) {
pauseKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(pauseKey_).mergeFrom(value).buildPartial();
} else {
pauseKey_ = value;
}
onChanged();
} else {
pauseKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
* If Empty the token pause status defaults to PauseNotApplicable, otherwise Unpaused.
*
*
* .proto.Key pause_key = 22;
*/
public Builder clearPauseKey() {
if (pauseKeyBuilder_ == null) {
pauseKey_ = null;
onChanged();
} else {
pauseKey_ = null;
pauseKeyBuilder_ = null;
}
return this;
}
/**
*
**
* The Key which can pause and unpause the Token.
* If Empty the token pause status defaults to PauseNotApplicable, otherwise Unpaused.
*
*
* .proto.Key pause_key = 22;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getPauseKeyBuilder() {
onChanged();
return getPauseKeyFieldBuilder().getBuilder();
}
/**
*
**
* The Key which can pause and unpause the Token.
* If Empty the token pause status defaults to PauseNotApplicable, otherwise Unpaused.
*
*
* .proto.Key pause_key = 22;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getPauseKeyOrBuilder() {
if (pauseKeyBuilder_ != null) {
return pauseKeyBuilder_.getMessageOrBuilder();
} else {
return pauseKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : pauseKey_;
}
}
/**
*
**
* The Key which can pause and unpause the Token.
* If Empty the token pause status defaults to PauseNotApplicable, otherwise Unpaused.
*
*
* .proto.Key pause_key = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getPauseKeyFieldBuilder() {
if (pauseKeyBuilder_ == null) {
pauseKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getPauseKey(),
getParentForChildren(),
isClean());
pauseKey_ = null;
}
return pauseKeyBuilder_;
}
private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* Metadata of the created token definition.
*
*
* bytes metadata = 23;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetadata() {
return metadata_;
}
/**
*
**
* Metadata of the created token definition.
*
*
* bytes metadata = 23;
* @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;
onChanged();
return this;
}
/**
*
**
* Metadata of the created token definition.
*
*
* bytes metadata = 23;
* @return This builder for chaining.
*/
public Builder clearMetadata() {
metadata_ = getDefaultInstance().getMetadata();
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Key metadataKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> metadataKeyBuilder_;
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
*
*
* .proto.Key metadata_key = 24;
* @return Whether the metadataKey field is set.
*/
public boolean hasMetadataKey() {
return metadataKeyBuilder_ != null || metadataKey_ != null;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
*
*
* .proto.Key metadata_key = 24;
* @return The metadataKey.
*/
public com.hederahashgraph.api.proto.java.Key getMetadataKey() {
if (metadataKeyBuilder_ == null) {
return metadataKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : metadataKey_;
} else {
return metadataKeyBuilder_.getMessage();
}
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
*
*
* .proto.Key metadata_key = 24;
*/
public Builder setMetadataKey(com.hederahashgraph.api.proto.java.Key value) {
if (metadataKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadataKey_ = value;
onChanged();
} else {
metadataKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
*
*
* .proto.Key metadata_key = 24;
*/
public Builder setMetadataKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (metadataKeyBuilder_ == null) {
metadataKey_ = builderForValue.build();
onChanged();
} else {
metadataKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
*
*
* .proto.Key metadata_key = 24;
*/
public Builder mergeMetadataKey(com.hederahashgraph.api.proto.java.Key value) {
if (metadataKeyBuilder_ == null) {
if (metadataKey_ != null) {
metadataKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(metadataKey_).mergeFrom(value).buildPartial();
} else {
metadataKey_ = value;
}
onChanged();
} else {
metadataKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
*
*
* .proto.Key metadata_key = 24;
*/
public Builder clearMetadataKey() {
if (metadataKeyBuilder_ == null) {
metadataKey_ = null;
onChanged();
} else {
metadataKey_ = null;
metadataKeyBuilder_ = null;
}
return this;
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
*
*
* .proto.Key metadata_key = 24;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getMetadataKeyBuilder() {
onChanged();
return getMetadataKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
*
*
* .proto.Key metadata_key = 24;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getMetadataKeyOrBuilder() {
if (metadataKeyBuilder_ != null) {
return metadataKeyBuilder_.getMessageOrBuilder();
} else {
return metadataKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : metadataKey_;
}
}
/**
*
**
* The key which can change the metadata of a token
* (token definition, partition definition, and individual NFTs).
*
*
* .proto.Key metadata_key = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getMetadataKeyFieldBuilder() {
if (metadataKeyBuilder_ == null) {
metadataKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.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.TokenCreateTransactionBody)
}
// @@protoc_insertion_point(class_scope:proto.TokenCreateTransactionBody)
private static final com.hederahashgraph.api.proto.java.TokenCreateTransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.TokenCreateTransactionBody();
}
public static com.hederahashgraph.api.proto.java.TokenCreateTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TokenCreateTransactionBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TokenCreateTransactionBody(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.TokenCreateTransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}