implements
// @@protoc_insertion_point(builder_implements:proto.CryptoCreateTransactionBody)
com.hederahashgraph.api.proto.java.CryptoCreateTransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.CryptoCreate.internal_static_proto_CryptoCreateTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.CryptoCreate.internal_static_proto_CryptoCreateTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody.class, com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (keyBuilder_ == null) {
key_ = null;
} else {
key_ = null;
keyBuilder_ = null;
}
initialBalance_ = 0L;
if (proxyAccountIDBuilder_ == null) {
proxyAccountID_ = null;
} else {
proxyAccountID_ = null;
proxyAccountIDBuilder_ = null;
}
sendRecordThreshold_ = 0L;
receiveRecordThreshold_ = 0L;
receiverSigRequired_ = false;
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
if (shardIDBuilder_ == null) {
shardID_ = null;
} else {
shardID_ = null;
shardIDBuilder_ = null;
}
if (realmIDBuilder_ == null) {
realmID_ = null;
} else {
realmID_ = null;
realmIDBuilder_ = null;
}
if (newRealmAdminKeyBuilder_ == null) {
newRealmAdminKey_ = null;
} else {
newRealmAdminKey_ = null;
newRealmAdminKeyBuilder_ = null;
}
memo_ = "";
maxAutomaticTokenAssociations_ = 0;
declineReward_ = false;
alias_ = com.google.protobuf.ByteString.EMPTY;
stakedIdCase_ = 0;
stakedId_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.CryptoCreate.internal_static_proto_CryptoCreateTransactionBody_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody build() {
com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody buildPartial() {
com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody result = new com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody(this);
if (keyBuilder_ == null) {
result.key_ = key_;
} else {
result.key_ = keyBuilder_.build();
}
result.initialBalance_ = initialBalance_;
if (proxyAccountIDBuilder_ == null) {
result.proxyAccountID_ = proxyAccountID_;
} else {
result.proxyAccountID_ = proxyAccountIDBuilder_.build();
}
result.sendRecordThreshold_ = sendRecordThreshold_;
result.receiveRecordThreshold_ = receiveRecordThreshold_;
result.receiverSigRequired_ = receiverSigRequired_;
if (autoRenewPeriodBuilder_ == null) {
result.autoRenewPeriod_ = autoRenewPeriod_;
} else {
result.autoRenewPeriod_ = autoRenewPeriodBuilder_.build();
}
if (shardIDBuilder_ == null) {
result.shardID_ = shardID_;
} else {
result.shardID_ = shardIDBuilder_.build();
}
if (realmIDBuilder_ == null) {
result.realmID_ = realmID_;
} else {
result.realmID_ = realmIDBuilder_.build();
}
if (newRealmAdminKeyBuilder_ == null) {
result.newRealmAdminKey_ = newRealmAdminKey_;
} else {
result.newRealmAdminKey_ = newRealmAdminKeyBuilder_.build();
}
result.memo_ = memo_;
result.maxAutomaticTokenAssociations_ = maxAutomaticTokenAssociations_;
if (stakedIdCase_ == 15) {
if (stakedAccountIdBuilder_ == null) {
result.stakedId_ = stakedId_;
} else {
result.stakedId_ = stakedAccountIdBuilder_.build();
}
}
if (stakedIdCase_ == 16) {
result.stakedId_ = stakedId_;
}
result.declineReward_ = declineReward_;
result.alias_ = alias_;
result.stakedIdCase_ = stakedIdCase_;
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.CryptoCreateTransactionBody) {
return mergeFrom((com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody other) {
if (other == com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody.getDefaultInstance()) return this;
if (other.hasKey()) {
mergeKey(other.getKey());
}
if (other.getInitialBalance() != 0L) {
setInitialBalance(other.getInitialBalance());
}
if (other.hasProxyAccountID()) {
mergeProxyAccountID(other.getProxyAccountID());
}
if (other.getSendRecordThreshold() != 0L) {
setSendRecordThreshold(other.getSendRecordThreshold());
}
if (other.getReceiveRecordThreshold() != 0L) {
setReceiveRecordThreshold(other.getReceiveRecordThreshold());
}
if (other.getReceiverSigRequired() != false) {
setReceiverSigRequired(other.getReceiverSigRequired());
}
if (other.hasAutoRenewPeriod()) {
mergeAutoRenewPeriod(other.getAutoRenewPeriod());
}
if (other.hasShardID()) {
mergeShardID(other.getShardID());
}
if (other.hasRealmID()) {
mergeRealmID(other.getRealmID());
}
if (other.hasNewRealmAdminKey()) {
mergeNewRealmAdminKey(other.getNewRealmAdminKey());
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
onChanged();
}
if (other.getMaxAutomaticTokenAssociations() != 0) {
setMaxAutomaticTokenAssociations(other.getMaxAutomaticTokenAssociations());
}
if (other.getDeclineReward() != false) {
setDeclineReward(other.getDeclineReward());
}
if (other.getAlias() != com.google.protobuf.ByteString.EMPTY) {
setAlias(other.getAlias());
}
switch (other.getStakedIdCase()) {
case STAKED_ACCOUNT_ID: {
mergeStakedAccountId(other.getStakedAccountId());
break;
}
case STAKED_NODE_ID: {
setStakedNodeId(other.getStakedNodeId());
break;
}
case STAKEDID_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.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.CryptoCreateTransactionBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int stakedIdCase_ = 0;
private java.lang.Object stakedId_;
public StakedIdCase
getStakedIdCase() {
return StakedIdCase.forNumber(
stakedIdCase_);
}
public Builder clearStakedId() {
stakedIdCase_ = 0;
stakedId_ = null;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Key key_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> keyBuilder_;
/**
*
**
* The key that must sign each transfer out of the account. If receiverSigRequired is true, then
* it must also sign any transfer into the account.
*
*
* .proto.Key key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return keyBuilder_ != null || key_ != null;
}
/**
*
**
* The key that must sign each transfer out of the account. If receiverSigRequired is true, then
* it must also sign any transfer into the account.
*
*
* .proto.Key key = 1;
* @return The key.
*/
public com.hederahashgraph.api.proto.java.Key getKey() {
if (keyBuilder_ == null) {
return key_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : key_;
} else {
return keyBuilder_.getMessage();
}
}
/**
*
**
* The key that must sign each transfer out of the account. If receiverSigRequired is true, then
* it must also sign any transfer into the account.
*
*
* .proto.Key key = 1;
*/
public Builder setKey(com.hederahashgraph.api.proto.java.Key value) {
if (keyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
} else {
keyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The key that must sign each transfer out of the account. If receiverSigRequired is true, then
* it must also sign any transfer into the account.
*
*
* .proto.Key key = 1;
*/
public Builder setKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (keyBuilder_ == null) {
key_ = builderForValue.build();
onChanged();
} else {
keyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The key that must sign each transfer out of the account. If receiverSigRequired is true, then
* it must also sign any transfer into the account.
*
*
* .proto.Key key = 1;
*/
public Builder mergeKey(com.hederahashgraph.api.proto.java.Key value) {
if (keyBuilder_ == null) {
if (key_ != null) {
key_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(key_).mergeFrom(value).buildPartial();
} else {
key_ = value;
}
onChanged();
} else {
keyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The key that must sign each transfer out of the account. If receiverSigRequired is true, then
* it must also sign any transfer into the account.
*
*
* .proto.Key key = 1;
*/
public Builder clearKey() {
if (keyBuilder_ == null) {
key_ = null;
onChanged();
} else {
key_ = null;
keyBuilder_ = null;
}
return this;
}
/**
*
**
* The key that must sign each transfer out of the account. If receiverSigRequired is true, then
* it must also sign any transfer into the account.
*
*
* .proto.Key key = 1;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getKeyBuilder() {
onChanged();
return getKeyFieldBuilder().getBuilder();
}
/**
*
**
* The key that must sign each transfer out of the account. If receiverSigRequired is true, then
* it must also sign any transfer into the account.
*
*
* .proto.Key key = 1;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getKeyOrBuilder() {
if (keyBuilder_ != null) {
return keyBuilder_.getMessageOrBuilder();
} else {
return key_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : key_;
}
}
/**
*
**
* The key that must sign each transfer out of the account. If receiverSigRequired is true, then
* it must also sign any transfer into the account.
*
*
* .proto.Key key = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getKeyFieldBuilder() {
if (keyBuilder_ == null) {
keyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getKey(),
getParentForChildren(),
isClean());
key_ = null;
}
return keyBuilder_;
}
private long initialBalance_ ;
/**
*
**
* The initial number of tinybars to put into the account
*
*
* uint64 initialBalance = 2;
* @return The initialBalance.
*/
@java.lang.Override
public long getInitialBalance() {
return initialBalance_;
}
/**
*
**
* The initial number of tinybars to put into the account
*
*
* uint64 initialBalance = 2;
* @param value The initialBalance to set.
* @return This builder for chaining.
*/
public Builder setInitialBalance(long value) {
initialBalance_ = value;
onChanged();
return this;
}
/**
*
**
* The initial number of tinybars to put into the account
*
*
* uint64 initialBalance = 2;
* @return This builder for chaining.
*/
public Builder clearInitialBalance() {
initialBalance_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.AccountID proxyAccountID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> proxyAccountIDBuilder_;
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 3 [deprecated = true];
* @deprecated
* @return Whether the proxyAccountID field is set.
*/
@java.lang.Deprecated public boolean hasProxyAccountID() {
return proxyAccountIDBuilder_ != null || proxyAccountID_ != null;
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 3 [deprecated = true];
* @deprecated
* @return The proxyAccountID.
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.AccountID getProxyAccountID() {
if (proxyAccountIDBuilder_ == null) {
return proxyAccountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : proxyAccountID_;
} else {
return proxyAccountIDBuilder_.getMessage();
}
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder setProxyAccountID(com.hederahashgraph.api.proto.java.AccountID value) {
if (proxyAccountIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
proxyAccountID_ = value;
onChanged();
} else {
proxyAccountIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder setProxyAccountID(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (proxyAccountIDBuilder_ == null) {
proxyAccountID_ = builderForValue.build();
onChanged();
} else {
proxyAccountIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeProxyAccountID(com.hederahashgraph.api.proto.java.AccountID value) {
if (proxyAccountIDBuilder_ == null) {
if (proxyAccountID_ != null) {
proxyAccountID_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(proxyAccountID_).mergeFrom(value).buildPartial();
} else {
proxyAccountID_ = value;
}
onChanged();
} else {
proxyAccountIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearProxyAccountID() {
if (proxyAccountIDBuilder_ == null) {
proxyAccountID_ = null;
onChanged();
} else {
proxyAccountID_ = null;
proxyAccountIDBuilder_ = null;
}
return this;
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 3 [deprecated = true];
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.AccountID.Builder getProxyAccountIDBuilder() {
onChanged();
return getProxyAccountIDFieldBuilder().getBuilder();
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 3 [deprecated = true];
*/
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getProxyAccountIDOrBuilder() {
if (proxyAccountIDBuilder_ != null) {
return proxyAccountIDBuilder_.getMessageOrBuilder();
} else {
return proxyAccountID_ == null ?
com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : proxyAccountID_;
}
}
/**
*
**
* [Deprecated] ID of the account to which this account is proxy staked. If proxyAccountID is null, or is an
* invalid account, or is an account that isn't a node, then this account is automatically proxy
* staked to a node chosen by the network, but without earning payments. If the proxyAccountID
* account refuses to accept proxy staking , or if it is not currently running a node, then it
* will behave as if proxyAccountID was null.
*
*
* .proto.AccountID proxyAccountID = 3 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getProxyAccountIDFieldBuilder() {
if (proxyAccountIDBuilder_ == null) {
proxyAccountIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getProxyAccountID(),
getParentForChildren(),
isClean());
proxyAccountID_ = null;
}
return proxyAccountIDBuilder_;
}
private long sendRecordThreshold_ ;
/**
*
**
* [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
* any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated
* @return The sendRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getSendRecordThreshold() {
return sendRecordThreshold_;
}
/**
*
**
* [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
* any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated
* @param value The sendRecordThreshold to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setSendRecordThreshold(long value) {
sendRecordThreshold_ = value;
onChanged();
return this;
}
/**
*
**
* [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
* any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearSendRecordThreshold() {
sendRecordThreshold_ = 0L;
onChanged();
return this;
}
private long receiveRecordThreshold_ ;
/**
*
**
* [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
* any receive/deposit transaction
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated
* @return The receiveRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getReceiveRecordThreshold() {
return receiveRecordThreshold_;
}
/**
*
**
* [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
* any receive/deposit transaction
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated
* @param value The receiveRecordThreshold to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setReceiveRecordThreshold(long value) {
receiveRecordThreshold_ = value;
onChanged();
return this;
}
/**
*
**
* [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
* any receive/deposit transaction
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearReceiveRecordThreshold() {
receiveRecordThreshold_ = 0L;
onChanged();
return this;
}
private boolean receiverSigRequired_ ;
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* bool receiverSigRequired = 8;
* @return The receiverSigRequired.
*/
@java.lang.Override
public boolean getReceiverSigRequired() {
return receiverSigRequired_;
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* bool receiverSigRequired = 8;
* @param value The receiverSigRequired to set.
* @return This builder for chaining.
*/
public Builder setReceiverSigRequired(boolean value) {
receiverSigRequired_ = value;
onChanged();
return this;
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* bool receiverSigRequired = 8;
* @return This builder for chaining.
*/
public Builder clearReceiverSigRequired() {
receiverSigRequired_ = false;
onChanged();
return this;
}
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 account is charged to extend its expiration date every this many seconds. If it doesn't
* have enough balance, it extends as long as possible. If it is empty when it expires, then it
* is deleted.
*
*
* .proto.Duration autoRenewPeriod = 9;
* @return Whether the autoRenewPeriod field is set.
*/
public boolean hasAutoRenewPeriod() {
return autoRenewPeriodBuilder_ != null || autoRenewPeriod_ != null;
}
/**
*
**
* The account is charged to extend its expiration date every this many seconds. If it doesn't
* have enough balance, it extends as long as possible. If it is empty when it expires, then it
* is deleted.
*
*
* .proto.Duration autoRenewPeriod = 9;
* @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 account is charged to extend its expiration date every this many seconds. If it doesn't
* have enough balance, it extends as long as possible. If it is empty when it expires, then it
* is deleted.
*
*
* .proto.Duration autoRenewPeriod = 9;
*/
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 account is charged to extend its expiration date every this many seconds. If it doesn't
* have enough balance, it extends as long as possible. If it is empty when it expires, then it
* is deleted.
*
*
* .proto.Duration autoRenewPeriod = 9;
*/
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 account is charged to extend its expiration date every this many seconds. If it doesn't
* have enough balance, it extends as long as possible. If it is empty when it expires, then it
* is deleted.
*
*
* .proto.Duration autoRenewPeriod = 9;
*/
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 account is charged to extend its expiration date every this many seconds. If it doesn't
* have enough balance, it extends as long as possible. If it is empty when it expires, then it
* is deleted.
*
*
* .proto.Duration autoRenewPeriod = 9;
*/
public Builder clearAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
onChanged();
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
return this;
}
/**
*
**
* The account is charged to extend its expiration date every this many seconds. If it doesn't
* have enough balance, it extends as long as possible. If it is empty when it expires, then it
* is deleted.
*
*
* .proto.Duration autoRenewPeriod = 9;
*/
public com.hederahashgraph.api.proto.java.Duration.Builder getAutoRenewPeriodBuilder() {
onChanged();
return getAutoRenewPeriodFieldBuilder().getBuilder();
}
/**
*
**
* The account is charged to extend its expiration date every this many seconds. If it doesn't
* have enough balance, it extends as long as possible. If it is empty when it expires, then it
* is deleted.
*
*
* .proto.Duration autoRenewPeriod = 9;
*/
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 account is charged to extend its expiration date every this many seconds. If it doesn't
* have enough balance, it extends as long as possible. If it is empty when it expires, then it
* is deleted.
*
*
* .proto.Duration autoRenewPeriod = 9;
*/
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 com.hederahashgraph.api.proto.java.ShardID shardID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ShardID, com.hederahashgraph.api.proto.java.ShardID.Builder, com.hederahashgraph.api.proto.java.ShardIDOrBuilder> shardIDBuilder_;
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
* @return Whether the shardID field is set.
*/
public boolean hasShardID() {
return shardIDBuilder_ != null || shardID_ != null;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
* @return The shardID.
*/
public com.hederahashgraph.api.proto.java.ShardID getShardID() {
if (shardIDBuilder_ == null) {
return shardID_ == null ? com.hederahashgraph.api.proto.java.ShardID.getDefaultInstance() : shardID_;
} else {
return shardIDBuilder_.getMessage();
}
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
public Builder setShardID(com.hederahashgraph.api.proto.java.ShardID value) {
if (shardIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shardID_ = value;
onChanged();
} else {
shardIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
public Builder setShardID(
com.hederahashgraph.api.proto.java.ShardID.Builder builderForValue) {
if (shardIDBuilder_ == null) {
shardID_ = builderForValue.build();
onChanged();
} else {
shardIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
public Builder mergeShardID(com.hederahashgraph.api.proto.java.ShardID value) {
if (shardIDBuilder_ == null) {
if (shardID_ != null) {
shardID_ =
com.hederahashgraph.api.proto.java.ShardID.newBuilder(shardID_).mergeFrom(value).buildPartial();
} else {
shardID_ = value;
}
onChanged();
} else {
shardIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
public Builder clearShardID() {
if (shardIDBuilder_ == null) {
shardID_ = null;
onChanged();
} else {
shardID_ = null;
shardIDBuilder_ = null;
}
return this;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
public com.hederahashgraph.api.proto.java.ShardID.Builder getShardIDBuilder() {
onChanged();
return getShardIDFieldBuilder().getBuilder();
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
public com.hederahashgraph.api.proto.java.ShardIDOrBuilder getShardIDOrBuilder() {
if (shardIDBuilder_ != null) {
return shardIDBuilder_.getMessageOrBuilder();
} else {
return shardID_ == null ?
com.hederahashgraph.api.proto.java.ShardID.getDefaultInstance() : shardID_;
}
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ShardID, com.hederahashgraph.api.proto.java.ShardID.Builder, com.hederahashgraph.api.proto.java.ShardIDOrBuilder>
getShardIDFieldBuilder() {
if (shardIDBuilder_ == null) {
shardIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ShardID, com.hederahashgraph.api.proto.java.ShardID.Builder, com.hederahashgraph.api.proto.java.ShardIDOrBuilder>(
getShardID(),
getParentForChildren(),
isClean());
shardID_ = null;
}
return shardIDBuilder_;
}
private com.hederahashgraph.api.proto.java.RealmID realmID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.RealmID, com.hederahashgraph.api.proto.java.RealmID.Builder, com.hederahashgraph.api.proto.java.RealmIDOrBuilder> realmIDBuilder_;
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
* @return Whether the realmID field is set.
*/
public boolean hasRealmID() {
return realmIDBuilder_ != null || realmID_ != null;
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
* @return The realmID.
*/
public com.hederahashgraph.api.proto.java.RealmID getRealmID() {
if (realmIDBuilder_ == null) {
return realmID_ == null ? com.hederahashgraph.api.proto.java.RealmID.getDefaultInstance() : realmID_;
} else {
return realmIDBuilder_.getMessage();
}
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
public Builder setRealmID(com.hederahashgraph.api.proto.java.RealmID value) {
if (realmIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
realmID_ = value;
onChanged();
} else {
realmIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
public Builder setRealmID(
com.hederahashgraph.api.proto.java.RealmID.Builder builderForValue) {
if (realmIDBuilder_ == null) {
realmID_ = builderForValue.build();
onChanged();
} else {
realmIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
public Builder mergeRealmID(com.hederahashgraph.api.proto.java.RealmID value) {
if (realmIDBuilder_ == null) {
if (realmID_ != null) {
realmID_ =
com.hederahashgraph.api.proto.java.RealmID.newBuilder(realmID_).mergeFrom(value).buildPartial();
} else {
realmID_ = value;
}
onChanged();
} else {
realmIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
public Builder clearRealmID() {
if (realmIDBuilder_ == null) {
realmID_ = null;
onChanged();
} else {
realmID_ = null;
realmIDBuilder_ = null;
}
return this;
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
public com.hederahashgraph.api.proto.java.RealmID.Builder getRealmIDBuilder() {
onChanged();
return getRealmIDFieldBuilder().getBuilder();
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
public com.hederahashgraph.api.proto.java.RealmIDOrBuilder getRealmIDOrBuilder() {
if (realmIDBuilder_ != null) {
return realmIDBuilder_.getMessageOrBuilder();
} else {
return realmID_ == null ?
com.hederahashgraph.api.proto.java.RealmID.getDefaultInstance() : realmID_;
}
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.RealmID, com.hederahashgraph.api.proto.java.RealmID.Builder, com.hederahashgraph.api.proto.java.RealmIDOrBuilder>
getRealmIDFieldBuilder() {
if (realmIDBuilder_ == null) {
realmIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.RealmID, com.hederahashgraph.api.proto.java.RealmID.Builder, com.hederahashgraph.api.proto.java.RealmIDOrBuilder>(
getRealmID(),
getParentForChildren(),
isClean());
realmID_ = null;
}
return realmIDBuilder_;
}
private com.hederahashgraph.api.proto.java.Key newRealmAdminKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> newRealmAdminKeyBuilder_;
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
* @return Whether the newRealmAdminKey field is set.
*/
public boolean hasNewRealmAdminKey() {
return newRealmAdminKeyBuilder_ != null || newRealmAdminKey_ != null;
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
* @return The newRealmAdminKey.
*/
public com.hederahashgraph.api.proto.java.Key getNewRealmAdminKey() {
if (newRealmAdminKeyBuilder_ == null) {
return newRealmAdminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : newRealmAdminKey_;
} else {
return newRealmAdminKeyBuilder_.getMessage();
}
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
public Builder setNewRealmAdminKey(com.hederahashgraph.api.proto.java.Key value) {
if (newRealmAdminKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
newRealmAdminKey_ = value;
onChanged();
} else {
newRealmAdminKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
public Builder setNewRealmAdminKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (newRealmAdminKeyBuilder_ == null) {
newRealmAdminKey_ = builderForValue.build();
onChanged();
} else {
newRealmAdminKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
public Builder mergeNewRealmAdminKey(com.hederahashgraph.api.proto.java.Key value) {
if (newRealmAdminKeyBuilder_ == null) {
if (newRealmAdminKey_ != null) {
newRealmAdminKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(newRealmAdminKey_).mergeFrom(value).buildPartial();
} else {
newRealmAdminKey_ = value;
}
onChanged();
} else {
newRealmAdminKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
public Builder clearNewRealmAdminKey() {
if (newRealmAdminKeyBuilder_ == null) {
newRealmAdminKey_ = null;
onChanged();
} else {
newRealmAdminKey_ = null;
newRealmAdminKeyBuilder_ = null;
}
return this;
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getNewRealmAdminKeyBuilder() {
onChanged();
return getNewRealmAdminKeyFieldBuilder().getBuilder();
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getNewRealmAdminKeyOrBuilder() {
if (newRealmAdminKeyBuilder_ != null) {
return newRealmAdminKeyBuilder_.getMessageOrBuilder();
} else {
return newRealmAdminKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : newRealmAdminKey_;
}
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 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>
getNewRealmAdminKeyFieldBuilder() {
if (newRealmAdminKeyBuilder_ == null) {
newRealmAdminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getNewRealmAdminKey(),
getParentForChildren(),
isClean());
newRealmAdminKey_ = null;
}
return newRealmAdminKeyBuilder_;
}
private java.lang.Object memo_ = "";
/**
*
**
* The memo associated with the account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @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 account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @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 account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @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 account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
onChanged();
return this;
}
/**
*
**
* The memo associated with the account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @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 maxAutomaticTokenAssociations_ ;
/**
*
**
* The maximum number of tokens that can be auto-associated with the account.<br/>
* If this is less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.<br/>
* By default this value is 0 for accounts except for auto-created accounts which default -1.
*
*
* int32 max_automatic_token_associations = 14;
* @return The maxAutomaticTokenAssociations.
*/
@java.lang.Override
public int getMaxAutomaticTokenAssociations() {
return maxAutomaticTokenAssociations_;
}
/**
*
**
* The maximum number of tokens that can be auto-associated with the account.<br/>
* If this is less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.<br/>
* By default this value is 0 for accounts except for auto-created accounts which default -1.
*
*
* int32 max_automatic_token_associations = 14;
* @param value The maxAutomaticTokenAssociations to set.
* @return This builder for chaining.
*/
public Builder setMaxAutomaticTokenAssociations(int value) {
maxAutomaticTokenAssociations_ = value;
onChanged();
return this;
}
/**
*
**
* The maximum number of tokens that can be auto-associated with the account.<br/>
* If this is less than or equal to `used_auto_associations`, or 0, then this account
* MUST manually associate with a token before transacting in that token.<br/>
* This value MAY also be `-1` to indicate no limit.<br/>
* This value MUST NOT be less than `-1`.<br/>
* By default this value is 0 for accounts except for auto-created accounts which default -1.
*
*
* int32 max_automatic_token_associations = 14;
* @return This builder for chaining.
*/
public Builder clearMaxAutomaticTokenAssociations() {
maxAutomaticTokenAssociations_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> stakedAccountIdBuilder_;
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
* @return Whether the stakedAccountId field is set.
*/
@java.lang.Override
public boolean hasStakedAccountId() {
return stakedIdCase_ == 15;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
* @return The stakedAccountId.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountID getStakedAccountId() {
if (stakedAccountIdBuilder_ == null) {
if (stakedIdCase_ == 15) {
return (com.hederahashgraph.api.proto.java.AccountID) stakedId_;
}
return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance();
} else {
if (stakedIdCase_ == 15) {
return stakedAccountIdBuilder_.getMessage();
}
return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance();
}
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
public Builder setStakedAccountId(com.hederahashgraph.api.proto.java.AccountID value) {
if (stakedAccountIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stakedId_ = value;
onChanged();
} else {
stakedAccountIdBuilder_.setMessage(value);
}
stakedIdCase_ = 15;
return this;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
public Builder setStakedAccountId(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (stakedAccountIdBuilder_ == null) {
stakedId_ = builderForValue.build();
onChanged();
} else {
stakedAccountIdBuilder_.setMessage(builderForValue.build());
}
stakedIdCase_ = 15;
return this;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
public Builder mergeStakedAccountId(com.hederahashgraph.api.proto.java.AccountID value) {
if (stakedAccountIdBuilder_ == null) {
if (stakedIdCase_ == 15 &&
stakedId_ != com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance()) {
stakedId_ = com.hederahashgraph.api.proto.java.AccountID.newBuilder((com.hederahashgraph.api.proto.java.AccountID) stakedId_)
.mergeFrom(value).buildPartial();
} else {
stakedId_ = value;
}
onChanged();
} else {
if (stakedIdCase_ == 15) {
stakedAccountIdBuilder_.mergeFrom(value);
}
stakedAccountIdBuilder_.setMessage(value);
}
stakedIdCase_ = 15;
return this;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
public Builder clearStakedAccountId() {
if (stakedAccountIdBuilder_ == null) {
if (stakedIdCase_ == 15) {
stakedIdCase_ = 0;
stakedId_ = null;
onChanged();
}
} else {
if (stakedIdCase_ == 15) {
stakedIdCase_ = 0;
stakedId_ = null;
}
stakedAccountIdBuilder_.clear();
}
return this;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getStakedAccountIdBuilder() {
return getStakedAccountIdFieldBuilder().getBuilder();
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getStakedAccountIdOrBuilder() {
if ((stakedIdCase_ == 15) && (stakedAccountIdBuilder_ != null)) {
return stakedAccountIdBuilder_.getMessageOrBuilder();
} else {
if (stakedIdCase_ == 15) {
return (com.hederahashgraph.api.proto.java.AccountID) stakedId_;
}
return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance();
}
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getStakedAccountIdFieldBuilder() {
if (stakedAccountIdBuilder_ == null) {
if (!(stakedIdCase_ == 15)) {
stakedId_ = com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance();
}
stakedAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
(com.hederahashgraph.api.proto.java.AccountID) stakedId_,
getParentForChildren(),
isClean());
stakedId_ = null;
}
stakedIdCase_ = 15;
onChanged();;
return stakedAccountIdBuilder_;
}
/**
*
**
* ID of the node this account is staked to.
*
*
* int64 staked_node_id = 16;
* @return Whether the stakedNodeId field is set.
*/
public boolean hasStakedNodeId() {
return stakedIdCase_ == 16;
}
/**
*
**
* ID of the node this account is staked to.
*
*
* int64 staked_node_id = 16;
* @return The stakedNodeId.
*/
public long getStakedNodeId() {
if (stakedIdCase_ == 16) {
return (java.lang.Long) stakedId_;
}
return 0L;
}
/**
*
**
* ID of the node this account is staked to.
*
*
* int64 staked_node_id = 16;
* @param value The stakedNodeId to set.
* @return This builder for chaining.
*/
public Builder setStakedNodeId(long value) {
stakedIdCase_ = 16;
stakedId_ = value;
onChanged();
return this;
}
/**
*
**
* ID of the node this account is staked to.
*
*
* int64 staked_node_id = 16;
* @return This builder for chaining.
*/
public Builder clearStakedNodeId() {
if (stakedIdCase_ == 16) {
stakedIdCase_ = 0;
stakedId_ = null;
onChanged();
}
return this;
}
private boolean declineReward_ ;
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* bool decline_reward = 17;
* @return The declineReward.
*/
@java.lang.Override
public boolean getDeclineReward() {
return declineReward_;
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* bool decline_reward = 17;
* @param value The declineReward to set.
* @return This builder for chaining.
*/
public Builder setDeclineReward(boolean value) {
declineReward_ = value;
onChanged();
return this;
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* bool decline_reward = 17;
* @return This builder for chaining.
*/
public Builder clearDeclineReward() {
declineReward_ = false;
onChanged();
return this;
}
private com.google.protobuf.ByteString alias_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The bytes to be used as the account's alias. It will be the
* serialization of a protobuf Key message for an ED25519/ECDSA_SECP256K1 primitive key type. Currently only primitive key bytes are
* supported as the key for an account with an alias. ThresholdKey, KeyList, ContractID, and
* delegatable_contract_id are not supported.
* May also be the EOA 20-byte address to create that is derived from the keccak-256 hash of a ECDSA_SECP256K1 primitive key.
* A given alias can map to at most one account on the network at a time. This uniqueness will be enforced
* relative to aliases currently on the network at alias assignment.
* If a transaction creates an account using an alias, any further crypto transfers to that alias will
* simply be deposited in that account, without creating anything, and with no creation fee being charged.
*
*
* bytes alias = 18;
* @return The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return alias_;
}
/**
*
**
* The bytes to be used as the account's alias. It will be the
* serialization of a protobuf Key message for an ED25519/ECDSA_SECP256K1 primitive key type. Currently only primitive key bytes are
* supported as the key for an account with an alias. ThresholdKey, KeyList, ContractID, and
* delegatable_contract_id are not supported.
* May also be the EOA 20-byte address to create that is derived from the keccak-256 hash of a ECDSA_SECP256K1 primitive key.
* A given alias can map to at most one account on the network at a time. This uniqueness will be enforced
* relative to aliases currently on the network at alias assignment.
* If a transaction creates an account using an alias, any further crypto transfers to that alias will
* simply be deposited in that account, without creating anything, and with no creation fee being charged.
*
*
* bytes alias = 18;
* @param value The alias to set.
* @return This builder for chaining.
*/
public Builder setAlias(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
alias_ = value;
onChanged();
return this;
}
/**
*
**
* The bytes to be used as the account's alias. It will be the
* serialization of a protobuf Key message for an ED25519/ECDSA_SECP256K1 primitive key type. Currently only primitive key bytes are
* supported as the key for an account with an alias. ThresholdKey, KeyList, ContractID, and
* delegatable_contract_id are not supported.
* May also be the EOA 20-byte address to create that is derived from the keccak-256 hash of a ECDSA_SECP256K1 primitive key.
* A given alias can map to at most one account on the network at a time. This uniqueness will be enforced
* relative to aliases currently on the network at alias assignment.
* If a transaction creates an account using an alias, any further crypto transfers to that alias will
* simply be deposited in that account, without creating anything, and with no creation fee being charged.
*
*
* bytes alias = 18;
* @return This builder for chaining.
*/
public Builder clearAlias() {
alias_ = getDefaultInstance().getAlias();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.CryptoCreateTransactionBody)
}
// @@protoc_insertion_point(class_scope:proto.CryptoCreateTransactionBody)
private static final com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody();
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CryptoCreateTransactionBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CryptoCreateTransactionBody(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.CryptoCreateTransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}