implements
// @@protoc_insertion_point(builder_implements:proto.Token)
com.hederahashgraph.api.proto.java.TokenOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.TokenOuterClass.internal_static_proto_Token_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.TokenOuterClass.internal_static_proto_Token_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.Token.class, com.hederahashgraph.api.proto.java.Token.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.Token.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCustomFeesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tokenIdBuilder_ == null) {
tokenId_ = null;
} else {
tokenId_ = null;
tokenIdBuilder_ = null;
}
name_ = "";
symbol_ = "";
decimals_ = 0;
totalSupply_ = 0L;
if (treasuryAccountIdBuilder_ == null) {
treasuryAccountId_ = null;
} else {
treasuryAccountId_ = null;
treasuryAccountIdBuilder_ = 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;
}
if (feeScheduleKeyBuilder_ == null) {
feeScheduleKey_ = null;
} else {
feeScheduleKey_ = null;
feeScheduleKeyBuilder_ = null;
}
if (pauseKeyBuilder_ == null) {
pauseKey_ = null;
} else {
pauseKey_ = null;
pauseKeyBuilder_ = null;
}
lastUsedSerialNumber_ = 0L;
deleted_ = false;
tokenType_ = 0;
supplyType_ = 0;
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountId_ = null;
} else {
autoRenewAccountId_ = null;
autoRenewAccountIdBuilder_ = null;
}
autoRenewSeconds_ = 0L;
expirationSecond_ = 0L;
memo_ = "";
maxSupply_ = 0L;
paused_ = false;
accountsFrozenByDefault_ = false;
accountsKycGrantedByDefault_ = false;
if (customFeesBuilder_ == null) {
customFees_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
customFeesBuilder_.clear();
}
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.TokenOuterClass.internal_static_proto_Token_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Token getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.Token.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Token build() {
com.hederahashgraph.api.proto.java.Token result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.Token buildPartial() {
com.hederahashgraph.api.proto.java.Token result = new com.hederahashgraph.api.proto.java.Token(this);
int from_bitField0_ = bitField0_;
if (tokenIdBuilder_ == null) {
result.tokenId_ = tokenId_;
} else {
result.tokenId_ = tokenIdBuilder_.build();
}
result.name_ = name_;
result.symbol_ = symbol_;
result.decimals_ = decimals_;
result.totalSupply_ = totalSupply_;
if (treasuryAccountIdBuilder_ == null) {
result.treasuryAccountId_ = treasuryAccountId_;
} else {
result.treasuryAccountId_ = treasuryAccountIdBuilder_.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();
}
if (feeScheduleKeyBuilder_ == null) {
result.feeScheduleKey_ = feeScheduleKey_;
} else {
result.feeScheduleKey_ = feeScheduleKeyBuilder_.build();
}
if (pauseKeyBuilder_ == null) {
result.pauseKey_ = pauseKey_;
} else {
result.pauseKey_ = pauseKeyBuilder_.build();
}
result.lastUsedSerialNumber_ = lastUsedSerialNumber_;
result.deleted_ = deleted_;
result.tokenType_ = tokenType_;
result.supplyType_ = supplyType_;
if (autoRenewAccountIdBuilder_ == null) {
result.autoRenewAccountId_ = autoRenewAccountId_;
} else {
result.autoRenewAccountId_ = autoRenewAccountIdBuilder_.build();
}
result.autoRenewSeconds_ = autoRenewSeconds_;
result.expirationSecond_ = expirationSecond_;
result.memo_ = memo_;
result.maxSupply_ = maxSupply_;
result.paused_ = paused_;
result.accountsFrozenByDefault_ = accountsFrozenByDefault_;
result.accountsKycGrantedByDefault_ = accountsKycGrantedByDefault_;
if (customFeesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
customFees_ = java.util.Collections.unmodifiableList(customFees_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.customFees_ = customFees_;
} else {
result.customFees_ = customFeesBuilder_.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.Token) {
return mergeFrom((com.hederahashgraph.api.proto.java.Token)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.Token other) {
if (other == com.hederahashgraph.api.proto.java.Token.getDefaultInstance()) return this;
if (other.hasTokenId()) {
mergeTokenId(other.getTokenId());
}
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.getTotalSupply() != 0L) {
setTotalSupply(other.getTotalSupply());
}
if (other.hasTreasuryAccountId()) {
mergeTreasuryAccountId(other.getTreasuryAccountId());
}
if (other.hasAdminKey()) {
mergeAdminKey(other.getAdminKey());
}
if (other.hasKycKey()) {
mergeKycKey(other.getKycKey());
}
if (other.hasFreezeKey()) {
mergeFreezeKey(other.getFreezeKey());
}
if (other.hasWipeKey()) {
mergeWipeKey(other.getWipeKey());
}
if (other.hasSupplyKey()) {
mergeSupplyKey(other.getSupplyKey());
}
if (other.hasFeeScheduleKey()) {
mergeFeeScheduleKey(other.getFeeScheduleKey());
}
if (other.hasPauseKey()) {
mergePauseKey(other.getPauseKey());
}
if (other.getLastUsedSerialNumber() != 0L) {
setLastUsedSerialNumber(other.getLastUsedSerialNumber());
}
if (other.getDeleted() != false) {
setDeleted(other.getDeleted());
}
if (other.tokenType_ != 0) {
setTokenTypeValue(other.getTokenTypeValue());
}
if (other.supplyType_ != 0) {
setSupplyTypeValue(other.getSupplyTypeValue());
}
if (other.hasAutoRenewAccountId()) {
mergeAutoRenewAccountId(other.getAutoRenewAccountId());
}
if (other.getAutoRenewSeconds() != 0L) {
setAutoRenewSeconds(other.getAutoRenewSeconds());
}
if (other.getExpirationSecond() != 0L) {
setExpirationSecond(other.getExpirationSecond());
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
onChanged();
}
if (other.getMaxSupply() != 0L) {
setMaxSupply(other.getMaxSupply());
}
if (other.getPaused() != false) {
setPaused(other.getPaused());
}
if (other.getAccountsFrozenByDefault() != false) {
setAccountsFrozenByDefault(other.getAccountsFrozenByDefault());
}
if (other.getAccountsKycGrantedByDefault() != false) {
setAccountsKycGrantedByDefault(other.getAccountsKycGrantedByDefault());
}
if (customFeesBuilder_ == null) {
if (!other.customFees_.isEmpty()) {
if (customFees_.isEmpty()) {
customFees_ = other.customFees_;
bitField0_ = (bitField0_ & ~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.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.Token parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.Token) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.hederahashgraph.api.proto.java.TokenID tokenId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder> tokenIdBuilder_;
/**
*
**
* The unique entity id of this token.
*
*
* .proto.TokenID token_id = 1;
* @return Whether the tokenId field is set.
*/
public boolean hasTokenId() {
return tokenIdBuilder_ != null || tokenId_ != null;
}
/**
*
**
* The unique entity id of this token.
*
*
* .proto.TokenID token_id = 1;
* @return The tokenId.
*/
public com.hederahashgraph.api.proto.java.TokenID getTokenId() {
if (tokenIdBuilder_ == null) {
return tokenId_ == null ? com.hederahashgraph.api.proto.java.TokenID.getDefaultInstance() : tokenId_;
} else {
return tokenIdBuilder_.getMessage();
}
}
/**
*
**
* The unique entity id of this token.
*
*
* .proto.TokenID token_id = 1;
*/
public Builder setTokenId(com.hederahashgraph.api.proto.java.TokenID value) {
if (tokenIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tokenId_ = value;
onChanged();
} else {
tokenIdBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The unique entity id of this token.
*
*
* .proto.TokenID token_id = 1;
*/
public Builder setTokenId(
com.hederahashgraph.api.proto.java.TokenID.Builder builderForValue) {
if (tokenIdBuilder_ == null) {
tokenId_ = builderForValue.build();
onChanged();
} else {
tokenIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The unique entity id of this token.
*
*
* .proto.TokenID token_id = 1;
*/
public Builder mergeTokenId(com.hederahashgraph.api.proto.java.TokenID value) {
if (tokenIdBuilder_ == null) {
if (tokenId_ != null) {
tokenId_ =
com.hederahashgraph.api.proto.java.TokenID.newBuilder(tokenId_).mergeFrom(value).buildPartial();
} else {
tokenId_ = value;
}
onChanged();
} else {
tokenIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The unique entity id of this token.
*
*
* .proto.TokenID token_id = 1;
*/
public Builder clearTokenId() {
if (tokenIdBuilder_ == null) {
tokenId_ = null;
onChanged();
} else {
tokenId_ = null;
tokenIdBuilder_ = null;
}
return this;
}
/**
*
**
* The unique entity id of this token.
*
*
* .proto.TokenID token_id = 1;
*/
public com.hederahashgraph.api.proto.java.TokenID.Builder getTokenIdBuilder() {
onChanged();
return getTokenIdFieldBuilder().getBuilder();
}
/**
*
**
* The unique entity id of this token.
*
*
* .proto.TokenID token_id = 1;
*/
public com.hederahashgraph.api.proto.java.TokenIDOrBuilder getTokenIdOrBuilder() {
if (tokenIdBuilder_ != null) {
return tokenIdBuilder_.getMessageOrBuilder();
} else {
return tokenId_ == null ?
com.hederahashgraph.api.proto.java.TokenID.getDefaultInstance() : tokenId_;
}
}
/**
*
**
* The unique entity id of this token.
*
*
* .proto.TokenID token_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder>
getTokenIdFieldBuilder() {
if (tokenIdBuilder_ == null) {
tokenIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TokenID, com.hederahashgraph.api.proto.java.TokenID.Builder, com.hederahashgraph.api.proto.java.TokenIDOrBuilder>(
getTokenId(),
getParentForChildren(),
isClean());
tokenId_ = null;
}
return tokenIdBuilder_;
}
private java.lang.Object name_ = "";
/**
*
**
* The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
**
* The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
**
* The human-readable name of this token. Need not be unique. Maximum length allowed is 100 bytes.
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object symbol_ = "";
/**
*
**
* The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
*
*
* string symbol = 3;
* @return The symbol.
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symbol_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
*
*
* string symbol = 3;
* @return The bytes for symbol.
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
*
*
* string symbol = 3;
* @param value The symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbol(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
symbol_ = value;
onChanged();
return this;
}
/**
*
**
* The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
*
*
* string symbol = 3;
* @return This builder for chaining.
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
onChanged();
return this;
}
/**
*
**
* The human-readable symbol for the token. It is not necessarily unique. Maximum length allowed is 100 bytes.
*
*
* string symbol = 3;
* @param value The bytes for symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbolBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
symbol_ = value;
onChanged();
return this;
}
private int decimals_ ;
/**
*
**
* The number of decimal places of this token. If decimals are 8 or 11, then the number of whole
* tokens can be at most a few billions or millions, respectively. For example, it could match
* Bitcoin (21 million whole tokens with 8 decimals) or hbars (50 billion whole tokens with 8 decimals).
* It could even match Bitcoin with milli-satoshis (21 million whole tokens with 11 decimals).
*
*
* int32 decimals = 4;
* @return The decimals.
*/
@java.lang.Override
public int getDecimals() {
return decimals_;
}
/**
*
**
* The number of decimal places of this token. If decimals are 8 or 11, then the number of whole
* tokens can be at most a few billions or millions, respectively. For example, it could match
* Bitcoin (21 million whole tokens with 8 decimals) or hbars (50 billion whole tokens with 8 decimals).
* It could even match Bitcoin with milli-satoshis (21 million whole tokens with 11 decimals).
*
*
* int32 decimals = 4;
* @param value The decimals to set.
* @return This builder for chaining.
*/
public Builder setDecimals(int value) {
decimals_ = value;
onChanged();
return this;
}
/**
*
**
* The number of decimal places of this token. If decimals are 8 or 11, then the number of whole
* tokens can be at most a few billions or millions, respectively. For example, it could match
* Bitcoin (21 million whole tokens with 8 decimals) or hbars (50 billion whole tokens with 8 decimals).
* It could even match Bitcoin with milli-satoshis (21 million whole tokens with 11 decimals).
*
*
* int32 decimals = 4;
* @return This builder for chaining.
*/
public Builder clearDecimals() {
decimals_ = 0;
onChanged();
return this;
}
private long totalSupply_ ;
/**
*
**
* The total supply of this token.
*
*
* int64 total_supply = 5;
* @return The totalSupply.
*/
@java.lang.Override
public long getTotalSupply() {
return totalSupply_;
}
/**
*
**
* The total supply of this token.
*
*
* int64 total_supply = 5;
* @param value The totalSupply to set.
* @return This builder for chaining.
*/
public Builder setTotalSupply(long value) {
totalSupply_ = value;
onChanged();
return this;
}
/**
*
**
* The total supply of this token.
*
*
* int64 total_supply = 5;
* @return This builder for chaining.
*/
public Builder clearTotalSupply() {
totalSupply_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.AccountID treasuryAccountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> treasuryAccountIdBuilder_;
/**
*
**
* The treasury account id of this token. This account receives the initial supply of
* tokens as well as the tokens from the Token Mint operation once executed. The balance
* of the treasury account is decreased when the Token Burn operation is executed.
*
*
* .proto.AccountID treasury_account_id = 6;
* @return Whether the treasuryAccountId field is set.
*/
public boolean hasTreasuryAccountId() {
return treasuryAccountIdBuilder_ != null || treasuryAccountId_ != null;
}
/**
*
**
* The treasury account id of this token. This account receives the initial supply of
* tokens as well as the tokens from the Token Mint operation once executed. The balance
* of the treasury account is decreased when the Token Burn operation is executed.
*
*
* .proto.AccountID treasury_account_id = 6;
* @return The treasuryAccountId.
*/
public com.hederahashgraph.api.proto.java.AccountID getTreasuryAccountId() {
if (treasuryAccountIdBuilder_ == null) {
return treasuryAccountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : treasuryAccountId_;
} else {
return treasuryAccountIdBuilder_.getMessage();
}
}
/**
*
**
* The treasury account id of this token. This account receives the initial supply of
* tokens as well as the tokens from the Token Mint operation once executed. The balance
* of the treasury account is decreased when the Token Burn operation is executed.
*
*
* .proto.AccountID treasury_account_id = 6;
*/
public Builder setTreasuryAccountId(com.hederahashgraph.api.proto.java.AccountID value) {
if (treasuryAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
treasuryAccountId_ = value;
onChanged();
} else {
treasuryAccountIdBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The treasury account id of this token. This account receives the initial supply of
* tokens as well as the tokens from the Token Mint operation once executed. The balance
* of the treasury account is decreased when the Token Burn operation is executed.
*
*
* .proto.AccountID treasury_account_id = 6;
*/
public Builder setTreasuryAccountId(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (treasuryAccountIdBuilder_ == null) {
treasuryAccountId_ = builderForValue.build();
onChanged();
} else {
treasuryAccountIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The treasury account id of this token. This account receives the initial supply of
* tokens as well as the tokens from the Token Mint operation once executed. The balance
* of the treasury account is decreased when the Token Burn operation is executed.
*
*
* .proto.AccountID treasury_account_id = 6;
*/
public Builder mergeTreasuryAccountId(com.hederahashgraph.api.proto.java.AccountID value) {
if (treasuryAccountIdBuilder_ == null) {
if (treasuryAccountId_ != null) {
treasuryAccountId_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(treasuryAccountId_).mergeFrom(value).buildPartial();
} else {
treasuryAccountId_ = value;
}
onChanged();
} else {
treasuryAccountIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The treasury account id of this token. This account receives the initial supply of
* tokens as well as the tokens from the Token Mint operation once executed. The balance
* of the treasury account is decreased when the Token Burn operation is executed.
*
*
* .proto.AccountID treasury_account_id = 6;
*/
public Builder clearTreasuryAccountId() {
if (treasuryAccountIdBuilder_ == null) {
treasuryAccountId_ = null;
onChanged();
} else {
treasuryAccountId_ = null;
treasuryAccountIdBuilder_ = null;
}
return this;
}
/**
*
**
* The treasury account id of this token. This account receives the initial supply of
* tokens as well as the tokens from the Token Mint operation once executed. The balance
* of the treasury account is decreased when the Token Burn operation is executed.
*
*
* .proto.AccountID treasury_account_id = 6;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getTreasuryAccountIdBuilder() {
onChanged();
return getTreasuryAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* The treasury account id of this token. This account receives the initial supply of
* tokens as well as the tokens from the Token Mint operation once executed. The balance
* of the treasury account is decreased when the Token Burn operation is executed.
*
*
* .proto.AccountID treasury_account_id = 6;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getTreasuryAccountIdOrBuilder() {
if (treasuryAccountIdBuilder_ != null) {
return treasuryAccountIdBuilder_.getMessageOrBuilder();
} else {
return treasuryAccountId_ == null ?
com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : treasuryAccountId_;
}
}
/**
*
**
* The treasury account id of this token. This account receives the initial supply of
* tokens as well as the tokens from the Token Mint operation once executed. The balance
* of the treasury account is decreased when the Token Burn operation is executed.
*
*
* .proto.AccountID treasury_account_id = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getTreasuryAccountIdFieldBuilder() {
if (treasuryAccountIdBuilder_ == null) {
treasuryAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getTreasuryAccountId(),
getParentForChildren(),
isClean());
treasuryAccountId_ = null;
}
return treasuryAccountIdBuilder_;
}
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_;
/**
*
**
* (Optional) The admin key of this token. If this key is set, the token is mutable.
* A mutable token can be modified.
* If this key is not set on token creation, it cannot be modified.
*
*
* .proto.Key admin_key = 7;
* @return Whether the adminKey field is set.
*/
public boolean hasAdminKey() {
return adminKeyBuilder_ != null || adminKey_ != null;
}
/**
*
**
* (Optional) The admin key of this token. If this key is set, the token is mutable.
* A mutable token can be modified.
* If this key is not set on token creation, it cannot be modified.
*
*
* .proto.Key admin_key = 7;
* @return The adminKey.
*/
public com.hederahashgraph.api.proto.java.Key getAdminKey() {
if (adminKeyBuilder_ == null) {
return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_;
} else {
return adminKeyBuilder_.getMessage();
}
}
/**
*
**
* (Optional) The admin key of this token. If this key is set, the token is mutable.
* A mutable token can be modified.
* If this key is not set on token creation, it cannot be modified.
*
*
* .proto.Key admin_key = 7;
*/
public Builder setAdminKey(com.hederahashgraph.api.proto.java.Key value) {
if (adminKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
adminKey_ = value;
onChanged();
} else {
adminKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* (Optional) The admin key of this token. If this key is set, the token is mutable.
* A mutable token can be modified.
* If this key is not set on token creation, it cannot be modified.
*
*
* .proto.Key admin_key = 7;
*/
public Builder setAdminKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (adminKeyBuilder_ == null) {
adminKey_ = builderForValue.build();
onChanged();
} else {
adminKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* (Optional) The admin key of this token. If this key is set, the token is mutable.
* A mutable token can be modified.
* If this key is not set on token creation, it cannot be modified.
*
*
* .proto.Key admin_key = 7;
*/
public Builder mergeAdminKey(com.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;
}
/**
*
**
* (Optional) The admin key of this token. If this key is set, the token is mutable.
* A mutable token can be modified.
* If this key is not set on token creation, it cannot be modified.
*
*
* .proto.Key admin_key = 7;
*/
public Builder clearAdminKey() {
if (adminKeyBuilder_ == null) {
adminKey_ = null;
onChanged();
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
return this;
}
/**
*
**
* (Optional) The admin key of this token. If this key is set, the token is mutable.
* A mutable token can be modified.
* If this key is not set on token creation, it cannot be modified.
*
*
* .proto.Key admin_key = 7;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() {
onChanged();
return getAdminKeyFieldBuilder().getBuilder();
}
/**
*
**
* (Optional) The admin key of this token. If this key is set, the token is mutable.
* A mutable token can be modified.
* If this key is not set on token creation, it cannot be modified.
*
*
* .proto.Key admin_key = 7;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() {
if (adminKeyBuilder_ != null) {
return adminKeyBuilder_.getMessageOrBuilder();
} else {
return adminKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_;
}
}
/**
*
**
* (Optional) The admin key of this token. If this key is set, the token is mutable.
* A mutable token can be modified.
* If this key is not set on token creation, it cannot be modified.
*
*
* .proto.Key admin_key = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.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_;
/**
*
**
* (Optional) The kyc key of this token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key kyc_key = 8;
* @return Whether the kycKey field is set.
*/
public boolean hasKycKey() {
return kycKeyBuilder_ != null || kycKey_ != null;
}
/**
*
**
* (Optional) The kyc key of this token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key kyc_key = 8;
* @return The kycKey.
*/
public com.hederahashgraph.api.proto.java.Key getKycKey() {
if (kycKeyBuilder_ == null) {
return kycKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : kycKey_;
} else {
return kycKeyBuilder_.getMessage();
}
}
/**
*
**
* (Optional) The kyc key of this token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key kyc_key = 8;
*/
public Builder setKycKey(com.hederahashgraph.api.proto.java.Key value) {
if (kycKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kycKey_ = value;
onChanged();
} else {
kycKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* (Optional) The kyc key of this token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key kyc_key = 8;
*/
public Builder setKycKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (kycKeyBuilder_ == null) {
kycKey_ = builderForValue.build();
onChanged();
} else {
kycKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* (Optional) The kyc key of this token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key kyc_key = 8;
*/
public Builder mergeKycKey(com.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;
}
/**
*
**
* (Optional) The kyc key of this token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key kyc_key = 8;
*/
public Builder clearKycKey() {
if (kycKeyBuilder_ == null) {
kycKey_ = null;
onChanged();
} else {
kycKey_ = null;
kycKeyBuilder_ = null;
}
return this;
}
/**
*
**
* (Optional) The kyc key of this token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key kyc_key = 8;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getKycKeyBuilder() {
onChanged();
return getKycKeyFieldBuilder().getBuilder();
}
/**
*
**
* (Optional) The kyc key of this token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key kyc_key = 8;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getKycKeyOrBuilder() {
if (kycKeyBuilder_ != null) {
return kycKeyBuilder_.getMessageOrBuilder();
} else {
return kycKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : kycKey_;
}
}
/**
*
**
* (Optional) The kyc key of this token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key kyc_key = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.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_;
/**
*
**
* (Optional) The freeze key of this token. This key is needed for freezing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key freeze_key = 9;
* @return Whether the freezeKey field is set.
*/
public boolean hasFreezeKey() {
return freezeKeyBuilder_ != null || freezeKey_ != null;
}
/**
*
**
* (Optional) The freeze key of this token. This key is needed for freezing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key freeze_key = 9;
* @return The freezeKey.
*/
public com.hederahashgraph.api.proto.java.Key getFreezeKey() {
if (freezeKeyBuilder_ == null) {
return freezeKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : freezeKey_;
} else {
return freezeKeyBuilder_.getMessage();
}
}
/**
*
**
* (Optional) The freeze key of this token. This key is needed for freezing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key freeze_key = 9;
*/
public Builder setFreezeKey(com.hederahashgraph.api.proto.java.Key value) {
if (freezeKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
freezeKey_ = value;
onChanged();
} else {
freezeKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* (Optional) The freeze key of this token. This key is needed for freezing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key freeze_key = 9;
*/
public Builder setFreezeKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (freezeKeyBuilder_ == null) {
freezeKey_ = builderForValue.build();
onChanged();
} else {
freezeKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* (Optional) The freeze key of this token. This key is needed for freezing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key freeze_key = 9;
*/
public Builder mergeFreezeKey(com.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;
}
/**
*
**
* (Optional) The freeze key of this token. This key is needed for freezing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key freeze_key = 9;
*/
public Builder clearFreezeKey() {
if (freezeKeyBuilder_ == null) {
freezeKey_ = null;
onChanged();
} else {
freezeKey_ = null;
freezeKeyBuilder_ = null;
}
return this;
}
/**
*
**
* (Optional) The freeze key of this token. This key is needed for freezing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key freeze_key = 9;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getFreezeKeyBuilder() {
onChanged();
return getFreezeKeyFieldBuilder().getBuilder();
}
/**
*
**
* (Optional) The freeze key of this token. This key is needed for freezing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key freeze_key = 9;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getFreezeKeyOrBuilder() {
if (freezeKeyBuilder_ != null) {
return freezeKeyBuilder_.getMessageOrBuilder();
} else {
return freezeKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : freezeKey_;
}
}
/**
*
**
* (Optional) The freeze key of this token. This key is needed for freezing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key freeze_key = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.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_;
/**
*
**
* (Optional) The wipe key of this token. This key is needed for wiping the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key wipe_key = 10;
* @return Whether the wipeKey field is set.
*/
public boolean hasWipeKey() {
return wipeKeyBuilder_ != null || wipeKey_ != null;
}
/**
*
**
* (Optional) The wipe key of this token. This key is needed for wiping the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key wipe_key = 10;
* @return The wipeKey.
*/
public com.hederahashgraph.api.proto.java.Key getWipeKey() {
if (wipeKeyBuilder_ == null) {
return wipeKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : wipeKey_;
} else {
return wipeKeyBuilder_.getMessage();
}
}
/**
*
**
* (Optional) The wipe key of this token. This key is needed for wiping the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key wipe_key = 10;
*/
public Builder setWipeKey(com.hederahashgraph.api.proto.java.Key value) {
if (wipeKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
wipeKey_ = value;
onChanged();
} else {
wipeKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* (Optional) The wipe key of this token. This key is needed for wiping the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key wipe_key = 10;
*/
public Builder setWipeKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (wipeKeyBuilder_ == null) {
wipeKey_ = builderForValue.build();
onChanged();
} else {
wipeKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* (Optional) The wipe key of this token. This key is needed for wiping the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key wipe_key = 10;
*/
public Builder mergeWipeKey(com.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;
}
/**
*
**
* (Optional) The wipe key of this token. This key is needed for wiping the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key wipe_key = 10;
*/
public Builder clearWipeKey() {
if (wipeKeyBuilder_ == null) {
wipeKey_ = null;
onChanged();
} else {
wipeKey_ = null;
wipeKeyBuilder_ = null;
}
return this;
}
/**
*
**
* (Optional) The wipe key of this token. This key is needed for wiping the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key wipe_key = 10;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getWipeKeyBuilder() {
onChanged();
return getWipeKeyFieldBuilder().getBuilder();
}
/**
*
**
* (Optional) The wipe key of this token. This key is needed for wiping the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key wipe_key = 10;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getWipeKeyOrBuilder() {
if (wipeKeyBuilder_ != null) {
return wipeKeyBuilder_.getMessageOrBuilder();
} else {
return wipeKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : wipeKey_;
}
}
/**
*
**
* (Optional) The wipe key of this token. This key is needed for wiping the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key wipe_key = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.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_;
/**
*
**
* (Optional) The supply key of this token. This key is needed for minting or burning token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key supply_key = 11;
* @return Whether the supplyKey field is set.
*/
public boolean hasSupplyKey() {
return supplyKeyBuilder_ != null || supplyKey_ != null;
}
/**
*
**
* (Optional) The supply key of this token. This key is needed for minting or burning token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key supply_key = 11;
* @return The supplyKey.
*/
public com.hederahashgraph.api.proto.java.Key getSupplyKey() {
if (supplyKeyBuilder_ == null) {
return supplyKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : supplyKey_;
} else {
return supplyKeyBuilder_.getMessage();
}
}
/**
*
**
* (Optional) The supply key of this token. This key is needed for minting or burning token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key supply_key = 11;
*/
public Builder setSupplyKey(com.hederahashgraph.api.proto.java.Key value) {
if (supplyKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
supplyKey_ = value;
onChanged();
} else {
supplyKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* (Optional) The supply key of this token. This key is needed for minting or burning token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key supply_key = 11;
*/
public Builder setSupplyKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (supplyKeyBuilder_ == null) {
supplyKey_ = builderForValue.build();
onChanged();
} else {
supplyKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* (Optional) The supply key of this token. This key is needed for minting or burning token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key supply_key = 11;
*/
public Builder mergeSupplyKey(com.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;
}
/**
*
**
* (Optional) The supply key of this token. This key is needed for minting or burning token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key supply_key = 11;
*/
public Builder clearSupplyKey() {
if (supplyKeyBuilder_ == null) {
supplyKey_ = null;
onChanged();
} else {
supplyKey_ = null;
supplyKeyBuilder_ = null;
}
return this;
}
/**
*
**
* (Optional) The supply key of this token. This key is needed for minting or burning token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key supply_key = 11;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getSupplyKeyBuilder() {
onChanged();
return getSupplyKeyFieldBuilder().getBuilder();
}
/**
*
**
* (Optional) The supply key of this token. This key is needed for minting or burning token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key supply_key = 11;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getSupplyKeyOrBuilder() {
if (supplyKeyBuilder_ != null) {
return supplyKeyBuilder_.getMessageOrBuilder();
} else {
return supplyKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : supplyKey_;
}
}
/**
*
**
* (Optional) The supply key of this token. This key is needed for minting or burning token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key supply_key = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.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 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_;
/**
*
**
* (Optional) The fee schedule key of this token. This key should be set, in order to make any
* changes to the custom fee schedule.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key fee_schedule_key = 12;
* @return Whether the feeScheduleKey field is set.
*/
public boolean hasFeeScheduleKey() {
return feeScheduleKeyBuilder_ != null || feeScheduleKey_ != null;
}
/**
*
**
* (Optional) The fee schedule key of this token. This key should be set, in order to make any
* changes to the custom fee schedule.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key fee_schedule_key = 12;
* @return The feeScheduleKey.
*/
public com.hederahashgraph.api.proto.java.Key getFeeScheduleKey() {
if (feeScheduleKeyBuilder_ == null) {
return feeScheduleKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : feeScheduleKey_;
} else {
return feeScheduleKeyBuilder_.getMessage();
}
}
/**
*
**
* (Optional) The fee schedule key of this token. This key should be set, in order to make any
* changes to the custom fee schedule.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key fee_schedule_key = 12;
*/
public Builder setFeeScheduleKey(com.hederahashgraph.api.proto.java.Key value) {
if (feeScheduleKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
feeScheduleKey_ = value;
onChanged();
} else {
feeScheduleKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* (Optional) The fee schedule key of this token. This key should be set, in order to make any
* changes to the custom fee schedule.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key fee_schedule_key = 12;
*/
public Builder setFeeScheduleKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (feeScheduleKeyBuilder_ == null) {
feeScheduleKey_ = builderForValue.build();
onChanged();
} else {
feeScheduleKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* (Optional) The fee schedule key of this token. This key should be set, in order to make any
* changes to the custom fee schedule.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key fee_schedule_key = 12;
*/
public Builder mergeFeeScheduleKey(com.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;
}
/**
*
**
* (Optional) The fee schedule key of this token. This key should be set, in order to make any
* changes to the custom fee schedule.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key fee_schedule_key = 12;
*/
public Builder clearFeeScheduleKey() {
if (feeScheduleKeyBuilder_ == null) {
feeScheduleKey_ = null;
onChanged();
} else {
feeScheduleKey_ = null;
feeScheduleKeyBuilder_ = null;
}
return this;
}
/**
*
**
* (Optional) The fee schedule key of this token. This key should be set, in order to make any
* changes to the custom fee schedule.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key fee_schedule_key = 12;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getFeeScheduleKeyBuilder() {
onChanged();
return getFeeScheduleKeyFieldBuilder().getBuilder();
}
/**
*
**
* (Optional) The fee schedule key of this token. This key should be set, in order to make any
* changes to the custom fee schedule.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key fee_schedule_key = 12;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getFeeScheduleKeyOrBuilder() {
if (feeScheduleKeyBuilder_ != null) {
return feeScheduleKeyBuilder_.getMessageOrBuilder();
} else {
return feeScheduleKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : feeScheduleKey_;
}
}
/**
*
**
* (Optional) The fee schedule key of this token. This key should be set, in order to make any
* changes to the custom fee schedule.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key fee_schedule_key = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.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 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_;
/**
*
**
* (Optional) The pause key of this token. This key is needed for pausing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key pause_key = 13;
* @return Whether the pauseKey field is set.
*/
public boolean hasPauseKey() {
return pauseKeyBuilder_ != null || pauseKey_ != null;
}
/**
*
**
* (Optional) The pause key of this token. This key is needed for pausing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key pause_key = 13;
* @return The pauseKey.
*/
public com.hederahashgraph.api.proto.java.Key getPauseKey() {
if (pauseKeyBuilder_ == null) {
return pauseKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : pauseKey_;
} else {
return pauseKeyBuilder_.getMessage();
}
}
/**
*
**
* (Optional) The pause key of this token. This key is needed for pausing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key pause_key = 13;
*/
public Builder setPauseKey(com.hederahashgraph.api.proto.java.Key value) {
if (pauseKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pauseKey_ = value;
onChanged();
} else {
pauseKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* (Optional) The pause key of this token. This key is needed for pausing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key pause_key = 13;
*/
public Builder setPauseKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (pauseKeyBuilder_ == null) {
pauseKey_ = builderForValue.build();
onChanged();
} else {
pauseKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* (Optional) The pause key of this token. This key is needed for pausing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key pause_key = 13;
*/
public Builder mergePauseKey(com.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;
}
/**
*
**
* (Optional) The pause key of this token. This key is needed for pausing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key pause_key = 13;
*/
public Builder clearPauseKey() {
if (pauseKeyBuilder_ == null) {
pauseKey_ = null;
onChanged();
} else {
pauseKey_ = null;
pauseKeyBuilder_ = null;
}
return this;
}
/**
*
**
* (Optional) The pause key of this token. This key is needed for pausing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key pause_key = 13;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getPauseKeyBuilder() {
onChanged();
return getPauseKeyFieldBuilder().getBuilder();
}
/**
*
**
* (Optional) The pause key of this token. This key is needed for pausing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key pause_key = 13;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getPauseKeyOrBuilder() {
if (pauseKeyBuilder_ != null) {
return pauseKeyBuilder_.getMessageOrBuilder();
} else {
return pauseKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : pauseKey_;
}
}
/**
*
**
* (Optional) The pause key of this token. This key is needed for pausing the token.
* If this key is not set on token creation, it can only be set if the token has admin key set.
*
*
* .proto.Key pause_key = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.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 long lastUsedSerialNumber_ ;
/**
*
**
* The last used serial number of this token.
*
*
* int64 last_used_serial_number = 14;
* @return The lastUsedSerialNumber.
*/
@java.lang.Override
public long getLastUsedSerialNumber() {
return lastUsedSerialNumber_;
}
/**
*
**
* The last used serial number of this token.
*
*
* int64 last_used_serial_number = 14;
* @param value The lastUsedSerialNumber to set.
* @return This builder for chaining.
*/
public Builder setLastUsedSerialNumber(long value) {
lastUsedSerialNumber_ = value;
onChanged();
return this;
}
/**
*
**
* The last used serial number of this token.
*
*
* int64 last_used_serial_number = 14;
* @return This builder for chaining.
*/
public Builder clearLastUsedSerialNumber() {
lastUsedSerialNumber_ = 0L;
onChanged();
return this;
}
private boolean deleted_ ;
/**
*
**
* The flag indicating if this token is deleted.
*
*
* bool deleted = 15;
* @return The deleted.
*/
@java.lang.Override
public boolean getDeleted() {
return deleted_;
}
/**
*
**
* The flag indicating if this token is deleted.
*
*
* bool deleted = 15;
* @param value The deleted to set.
* @return This builder for chaining.
*/
public Builder setDeleted(boolean value) {
deleted_ = value;
onChanged();
return this;
}
/**
*
**
* The flag indicating if this token is deleted.
*
*
* bool deleted = 15;
* @return This builder for chaining.
*/
public Builder clearDeleted() {
deleted_ = false;
onChanged();
return this;
}
private int tokenType_ = 0;
/**
*
**
* The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
* If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
*
*
* .proto.TokenType token_type = 16;
* @return The enum numeric value on the wire for tokenType.
*/
@java.lang.Override public int getTokenTypeValue() {
return tokenType_;
}
/**
*
**
* The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
* If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
*
*
* .proto.TokenType token_type = 16;
* @param value The enum numeric value on the wire for tokenType to set.
* @return This builder for chaining.
*/
public Builder setTokenTypeValue(int value) {
tokenType_ = value;
onChanged();
return this;
}
/**
*
**
* The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
* If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
*
*
* .proto.TokenType token_type = 16;
* @return The tokenType.
*/
@java.lang.Override
public com.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;
}
/**
*
**
* The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
* If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
*
*
* .proto.TokenType token_type = 16;
* @param value The tokenType to set.
* @return This builder for chaining.
*/
public Builder setTokenType(com.hederahashgraph.api.proto.java.TokenType value) {
if (value == null) {
throw new NullPointerException();
}
tokenType_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The type of this token. A token can be either FUNGIBLE_COMMON or NON_FUNGIBLE_UNIQUE.
* If it has been omitted during token creation, FUNGIBLE_COMMON type is used.
*
*
* .proto.TokenType token_type = 16;
* @return This builder for chaining.
*/
public Builder clearTokenType() {
tokenType_ = 0;
onChanged();
return this;
}
private int supplyType_ = 0;
/**
*
**
* The supply type of this token.A token can have either INFINITE or FINITE supply type.
* If it has been omitted during token creation, INFINITE type is used.
*
*
* .proto.TokenSupplyType supply_type = 17;
* @return The enum numeric value on the wire for supplyType.
*/
@java.lang.Override public int getSupplyTypeValue() {
return supplyType_;
}
/**
*
**
* The supply type of this token.A token can have either INFINITE or FINITE supply type.
* If it has been omitted during token creation, INFINITE type is used.
*
*
* .proto.TokenSupplyType supply_type = 17;
* @param value The enum numeric value on the wire for supplyType to set.
* @return This builder for chaining.
*/
public Builder setSupplyTypeValue(int value) {
supplyType_ = value;
onChanged();
return this;
}
/**
*
**
* The supply type of this token.A token can have either INFINITE or FINITE supply type.
* If it has been omitted during token creation, INFINITE type is used.
*
*
* .proto.TokenSupplyType supply_type = 17;
* @return The supplyType.
*/
@java.lang.Override
public com.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;
}
/**
*
**
* The supply type of this token.A token can have either INFINITE or FINITE supply type.
* If it has been omitted during token creation, INFINITE type is used.
*
*
* .proto.TokenSupplyType supply_type = 17;
* @param value The supplyType to set.
* @return This builder for chaining.
*/
public Builder setSupplyType(com.hederahashgraph.api.proto.java.TokenSupplyType value) {
if (value == null) {
throw new NullPointerException();
}
supplyType_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The supply type of this token.A token can have either INFINITE or FINITE supply type.
* If it has been omitted during token creation, INFINITE type is used.
*
*
* .proto.TokenSupplyType supply_type = 17;
* @return This builder for chaining.
*/
public Builder clearSupplyType() {
supplyType_ = 0;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.AccountID autoRenewAccountId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> autoRenewAccountIdBuilder_;
/**
*
**
* The id of the account (if any) that the network will attempt to charge for the
* token's auto-renewal upon expiration.
*
*
* .proto.AccountID auto_renew_account_id = 18;
* @return Whether the autoRenewAccountId field is set.
*/
public boolean hasAutoRenewAccountId() {
return autoRenewAccountIdBuilder_ != null || autoRenewAccountId_ != null;
}
/**
*
**
* The id of the account (if any) that the network will attempt to charge for the
* token's auto-renewal upon expiration.
*
*
* .proto.AccountID auto_renew_account_id = 18;
* @return The autoRenewAccountId.
*/
public com.hederahashgraph.api.proto.java.AccountID getAutoRenewAccountId() {
if (autoRenewAccountIdBuilder_ == null) {
return autoRenewAccountId_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : autoRenewAccountId_;
} else {
return autoRenewAccountIdBuilder_.getMessage();
}
}
/**
*
**
* The id of the account (if any) that the network will attempt to charge for the
* token's auto-renewal upon expiration.
*
*
* .proto.AccountID auto_renew_account_id = 18;
*/
public Builder setAutoRenewAccountId(com.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewAccountId_ = value;
onChanged();
} else {
autoRenewAccountIdBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The id of the account (if any) that the network will attempt to charge for the
* token's auto-renewal upon expiration.
*
*
* .proto.AccountID auto_renew_account_id = 18;
*/
public Builder setAutoRenewAccountId(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountId_ = builderForValue.build();
onChanged();
} else {
autoRenewAccountIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The id of the account (if any) that the network will attempt to charge for the
* token's auto-renewal upon expiration.
*
*
* .proto.AccountID auto_renew_account_id = 18;
*/
public Builder mergeAutoRenewAccountId(com.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountIdBuilder_ == null) {
if (autoRenewAccountId_ != null) {
autoRenewAccountId_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(autoRenewAccountId_).mergeFrom(value).buildPartial();
} else {
autoRenewAccountId_ = value;
}
onChanged();
} else {
autoRenewAccountIdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The id of the account (if any) that the network will attempt to charge for the
* token's auto-renewal upon expiration.
*
*
* .proto.AccountID auto_renew_account_id = 18;
*/
public Builder clearAutoRenewAccountId() {
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountId_ = null;
onChanged();
} else {
autoRenewAccountId_ = null;
autoRenewAccountIdBuilder_ = null;
}
return this;
}
/**
*
**
* The id of the account (if any) that the network will attempt to charge for the
* token's auto-renewal upon expiration.
*
*
* .proto.AccountID auto_renew_account_id = 18;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getAutoRenewAccountIdBuilder() {
onChanged();
return getAutoRenewAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* The id of the account (if any) that the network will attempt to charge for the
* token's auto-renewal upon expiration.
*
*
* .proto.AccountID auto_renew_account_id = 18;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountIdOrBuilder() {
if (autoRenewAccountIdBuilder_ != null) {
return autoRenewAccountIdBuilder_.getMessageOrBuilder();
} else {
return autoRenewAccountId_ == null ?
com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : autoRenewAccountId_;
}
}
/**
*
**
* The id of the account (if any) that the network will attempt to charge for the
* token's auto-renewal upon expiration.
*
*
* .proto.AccountID auto_renew_account_id = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getAutoRenewAccountIdFieldBuilder() {
if (autoRenewAccountIdBuilder_ == null) {
autoRenewAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getAutoRenewAccountId(),
getParentForChildren(),
isClean());
autoRenewAccountId_ = null;
}
return autoRenewAccountIdBuilder_;
}
private long autoRenewSeconds_ ;
/**
*
**
* The number of seconds the network should automatically extend the token's expiration by, if the
* token has a valid auto-renew account, and is not deleted upon expiration.
* If this is not provided in a allowed range on token creation, the transaction will fail with INVALID_AUTO_RENEWAL_PERIOD.
* The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
*
*
* int64 auto_renew_seconds = 19;
* @return The autoRenewSeconds.
*/
@java.lang.Override
public long getAutoRenewSeconds() {
return autoRenewSeconds_;
}
/**
*
**
* The number of seconds the network should automatically extend the token's expiration by, if the
* token has a valid auto-renew account, and is not deleted upon expiration.
* If this is not provided in a allowed range on token creation, the transaction will fail with INVALID_AUTO_RENEWAL_PERIOD.
* The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
*
*
* int64 auto_renew_seconds = 19;
* @param value The autoRenewSeconds to set.
* @return This builder for chaining.
*/
public Builder setAutoRenewSeconds(long value) {
autoRenewSeconds_ = value;
onChanged();
return this;
}
/**
*
**
* The number of seconds the network should automatically extend the token's expiration by, if the
* token has a valid auto-renew account, and is not deleted upon expiration.
* If this is not provided in a allowed range on token creation, the transaction will fail with INVALID_AUTO_RENEWAL_PERIOD.
* The default values for the minimum period and maximum period are 30 days and 90 days, respectively.
*
*
* int64 auto_renew_seconds = 19;
* @return This builder for chaining.
*/
public Builder clearAutoRenewSeconds() {
autoRenewSeconds_ = 0L;
onChanged();
return this;
}
private long expirationSecond_ ;
/**
*
**
* The expiration time of the token, in seconds since the epoch.
*
*
* int64 expiration_second = 20;
* @return The expirationSecond.
*/
@java.lang.Override
public long getExpirationSecond() {
return expirationSecond_;
}
/**
*
**
* The expiration time of the token, in seconds since the epoch.
*
*
* int64 expiration_second = 20;
* @param value The expirationSecond to set.
* @return This builder for chaining.
*/
public Builder setExpirationSecond(long value) {
expirationSecond_ = value;
onChanged();
return this;
}
/**
*
**
* The expiration time of the token, in seconds since the epoch.
*
*
* int64 expiration_second = 20;
* @return This builder for chaining.
*/
public Builder clearExpirationSecond() {
expirationSecond_ = 0L;
onChanged();
return this;
}
private java.lang.Object memo_ = "";
/**
*
**
* An optional description of the token with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 21;
* @return The memo.
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* An optional description of the token with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 21;
* @return The bytes for memo.
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* An optional description of the token with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 21;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
return this;
}
/**
*
**
* An optional description of the token with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 21;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
onChanged();
return this;
}
/**
*
**
* An optional description of the token with UTF-8 encoding up to 100 bytes.
*
*
* string memo = 21;
* @param value The bytes for memo to set.
* @return This builder for chaining.
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
memo_ = value;
onChanged();
return this;
}
private long maxSupply_ ;
/**
*
**
* The maximum supply of this token.
*
*
* int64 max_supply = 22;
* @return The maxSupply.
*/
@java.lang.Override
public long getMaxSupply() {
return maxSupply_;
}
/**
*
**
* The maximum supply of this token.
*
*
* int64 max_supply = 22;
* @param value The maxSupply to set.
* @return This builder for chaining.
*/
public Builder setMaxSupply(long value) {
maxSupply_ = value;
onChanged();
return this;
}
/**
*
**
* The maximum supply of this token.
*
*
* int64 max_supply = 22;
* @return This builder for chaining.
*/
public Builder clearMaxSupply() {
maxSupply_ = 0L;
onChanged();
return this;
}
private boolean paused_ ;
/**
*
**
* The flag indicating if this token is paused.
*
*
* bool paused = 23;
* @return The paused.
*/
@java.lang.Override
public boolean getPaused() {
return paused_;
}
/**
*
**
* The flag indicating if this token is paused.
*
*
* bool paused = 23;
* @param value The paused to set.
* @return This builder for chaining.
*/
public Builder setPaused(boolean value) {
paused_ = value;
onChanged();
return this;
}
/**
*
**
* The flag indicating if this token is paused.
*
*
* bool paused = 23;
* @return This builder for chaining.
*/
public Builder clearPaused() {
paused_ = false;
onChanged();
return this;
}
private boolean accountsFrozenByDefault_ ;
/**
*
**
* The flag indicating if this token has accounts associated to it that are frozen by default.
*
*
* bool accounts_frozen_by_default = 24;
* @return The accountsFrozenByDefault.
*/
@java.lang.Override
public boolean getAccountsFrozenByDefault() {
return accountsFrozenByDefault_;
}
/**
*
**
* The flag indicating if this token has accounts associated to it that are frozen by default.
*
*
* bool accounts_frozen_by_default = 24;
* @param value The accountsFrozenByDefault to set.
* @return This builder for chaining.
*/
public Builder setAccountsFrozenByDefault(boolean value) {
accountsFrozenByDefault_ = value;
onChanged();
return this;
}
/**
*
**
* The flag indicating if this token has accounts associated to it that are frozen by default.
*
*
* bool accounts_frozen_by_default = 24;
* @return This builder for chaining.
*/
public Builder clearAccountsFrozenByDefault() {
accountsFrozenByDefault_ = false;
onChanged();
return this;
}
private boolean accountsKycGrantedByDefault_ ;
/**
*
**
* The flag indicating if this token has accounts associated with it that are KYC granted by default.
*
*
* bool accounts_kyc_granted_by_default = 25;
* @return The accountsKycGrantedByDefault.
*/
@java.lang.Override
public boolean getAccountsKycGrantedByDefault() {
return accountsKycGrantedByDefault_;
}
/**
*
**
* The flag indicating if this token has accounts associated with it that are KYC granted by default.
*
*
* bool accounts_kyc_granted_by_default = 25;
* @param value The accountsKycGrantedByDefault to set.
* @return This builder for chaining.
*/
public Builder setAccountsKycGrantedByDefault(boolean value) {
accountsKycGrantedByDefault_ = value;
onChanged();
return this;
}
/**
*
**
* The flag indicating if this token has accounts associated with it that are KYC granted by default.
*
*
* bool accounts_kyc_granted_by_default = 25;
* @return This builder for chaining.
*/
public Builder clearAccountsKycGrantedByDefault() {
accountsKycGrantedByDefault_ = false;
onChanged();
return this;
}
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_;
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public java.util.List getCustomFeesList() {
if (customFeesBuilder_ == null) {
return java.util.Collections.unmodifiableList(customFees_);
} else {
return customFeesBuilder_.getMessageList();
}
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public int getCustomFeesCount() {
if (customFeesBuilder_ == null) {
return customFees_.size();
} else {
return customFeesBuilder_.getCount();
}
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public com.hederahashgraph.api.proto.java.CustomFee getCustomFees(int index) {
if (customFeesBuilder_ == null) {
return customFees_.get(index);
} else {
return customFeesBuilder_.getMessage(index);
}
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public Builder setCustomFees(
int index, com.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;
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
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;
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
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;
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
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;
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
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;
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
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;
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
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;
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public Builder clearCustomFees() {
if (customFeesBuilder_ == null) {
customFees_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
customFeesBuilder_.clear();
}
return this;
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public Builder removeCustomFees(int index) {
if (customFeesBuilder_ == null) {
ensureCustomFeesIsMutable();
customFees_.remove(index);
onChanged();
} else {
customFeesBuilder_.remove(index);
}
return this;
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public com.hederahashgraph.api.proto.java.CustomFee.Builder getCustomFeesBuilder(
int index) {
return getCustomFeesFieldBuilder().getBuilder(index);
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public com.hederahashgraph.api.proto.java.CustomFeeOrBuilder getCustomFeesOrBuilder(
int index) {
if (customFeesBuilder_ == null) {
return customFees_.get(index); } else {
return customFeesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public java.util.List extends com.hederahashgraph.api.proto.java.CustomFeeOrBuilder>
getCustomFeesOrBuilderList() {
if (customFeesBuilder_ != null) {
return customFeesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customFees_);
}
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public com.hederahashgraph.api.proto.java.CustomFee.Builder addCustomFeesBuilder() {
return getCustomFeesFieldBuilder().addBuilder(
com.hederahashgraph.api.proto.java.CustomFee.getDefaultInstance());
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public com.hederahashgraph.api.proto.java.CustomFee.Builder addCustomFeesBuilder(
int index) {
return getCustomFeesFieldBuilder().addBuilder(
index, com.hederahashgraph.api.proto.java.CustomFee.getDefaultInstance());
}
/**
*
**
* (Optional) The custom fees of this token.
*
*
* repeated .proto.CustomFee custom_fees = 26;
*/
public java.util.List
getCustomFeesBuilderList() {
return getCustomFeesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.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.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* Metadata of the created token definition
*
*
* bytes metadata = 27;
* @return The metadata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMetadata() {
return metadata_;
}
/**
*
**
* Metadata of the created token definition
*
*
* bytes metadata = 27;
* @param value The metadata to set.
* @return This builder for chaining.
*/
public Builder setMetadata(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
return this;
}
/**
*
**
* Metadata of the created token definition
*
*
* bytes metadata = 27;
* @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 and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
* @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 and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
* @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 and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
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 and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
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 and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
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 and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
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 and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
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 and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
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 and individual NFTs).
*
*
* .proto.Key metadata_key = 28;
*/
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.Token)
}
// @@protoc_insertion_point(class_scope:proto.Token)
private static final com.hederahashgraph.api.proto.java.Token DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.Token();
}
public static com.hederahashgraph.api.proto.java.Token getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Token parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Token(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.Token getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}