com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-jdk7 Show documentation
Show all versions of sdk-jdk7 Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crypto_create.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
*
* Create a new account. After the account is created, the AccountID for it is in the receipt. It
* can also be retrieved with a GetByKey query. Threshold values can be defined, and records are
* generated and stored for 25 hours for any transfer that exceeds the thresholds. This account is
* charged for each record generated, so the thresholds are useful for limiting record generation to
* happen only for large transactions.
*
* The Key field is the key used to sign transactions for this account. If the account has
* receiverSigRequired set to true, then all cryptocurrency transfers must be signed by this
* account's key, both for transfers in and out. If it is false, then only transfers out have to be
* signed by it. When the account is created, the payer account is charged enough hbars so that the
* new account will not expire for the next autoRenewPeriod seconds. When it reaches the expiration
* time, the new account will then be automatically charged to renew for another autoRenewPeriod
* seconds. If it does not have enough hbars to renew for that long, then the remaining hbars are
* used to extend its expiration as long as possible. If it is has a zero balance when it expires,
* then it is deleted. This transaction must be signed by the payer account. If receiverSigRequired
* is false, then the transaction does not have to be signed by the keys in the keys field. If it is
* true, then it must be signed by them, in addition to the keys of the payer account. If the
* auto_renew_account field is set, the key of the referenced account must sign.
*
* An entity (account, file, or smart contract instance) must be created in a particular realm. If
* the realmID is left null, then a new realm will be created with the given admin key. If a new
* realm has a null adminKey, then anyone can create/modify/delete entities in that realm. But if an
* admin key is given, then any transaction to create/modify/delete an entity in that realm must be
* signed by that key, though anyone can still call functions on smart contract instances that exist
* in that realm. A realm ceases to exist when everything within it has expired and no longer
* exists.
*
* The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0
* and realm 0, with a null key. Future versions of the API will support multiple realms and
* multiple shards.
*
*
* Protobuf type {@code proto.CryptoCreateTransactionBody}
*/
public final class CryptoCreateTransactionBody extends
com.google.protobuf.GeneratedMessageLite<
CryptoCreateTransactionBody, CryptoCreateTransactionBody.Builder> implements
// @@protoc_insertion_point(message_implements:proto.CryptoCreateTransactionBody)
CryptoCreateTransactionBodyOrBuilder {
private CryptoCreateTransactionBody() {
memo_ = "";
alias_ = com.google.protobuf.ByteString.EMPTY;
}
private int stakedIdCase_ = 0;
private java.lang.Object stakedId_;
public enum StakedIdCase {
STAKED_ACCOUNT_ID(15),
STAKED_NODE_ID(16),
STAKEDID_NOT_SET(0);
private final int value;
private StakedIdCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StakedIdCase valueOf(int value) {
return forNumber(value);
}
public static StakedIdCase forNumber(int value) {
switch (value) {
case 15: return STAKED_ACCOUNT_ID;
case 16: return STAKED_NODE_ID;
case 0: return STAKEDID_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public StakedIdCase
getStakedIdCase() {
return StakedIdCase.forNumber(
stakedIdCase_);
}
private void clearStakedId() {
stakedIdCase_ = 0;
stakedId_ = null;
}
public static final int KEY_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.Key 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;
*/
@java.lang.Override
public boolean hasKey() {
return 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;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getKey() {
return key_ == null ? com.hedera.hashgraph.sdk.proto.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 void setKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
key_ = value;
}
/**
*
**
* 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;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (key_ != null &&
key_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
key_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(key_).mergeFrom(value).buildPartial();
} else {
key_ = value;
}
}
/**
*
**
* 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 void clearKey() { key_ = null;
}
public static final int INITIALBALANCE_FIELD_NUMBER = 2;
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.
*/
private void setInitialBalance(long value) {
initialBalance_ = value;
}
/**
*
**
* The initial number of tinybars to put into the account
*
*
* uint64 initialBalance = 2;
*/
private void clearInitialBalance() {
initialBalance_ = 0L;
}
public static final int PROXYACCOUNTID_FIELD_NUMBER = 3;
private com.hedera.hashgraph.sdk.proto.AccountID 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];
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasProxyAccountID() {
return 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];
*/
@java.lang.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID getProxyAccountID() {
return proxyAccountID_ == null ? com.hedera.hashgraph.sdk.proto.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 void setProxyAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
proxyAccountID_ = value;
}
/**
*
**
* [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.SuppressWarnings({"ReferenceEquality"})
private void mergeProxyAccountID(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
if (proxyAccountID_ != null &&
proxyAccountID_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
proxyAccountID_ =
com.hedera.hashgraph.sdk.proto.AccountID.newBuilder(proxyAccountID_).mergeFrom(value).buildPartial();
} else {
proxyAccountID_ = value;
}
}
/**
*
**
* [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 void clearProxyAccountID() { proxyAccountID_ = null;
}
public static final int SENDRECORDTHRESHOLD_FIELD_NUMBER = 6;
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 proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_create.proto;l=88
* @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 proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_create.proto;l=88
* @param value The sendRecordThreshold to set.
*/
private void setSendRecordThreshold(long value) {
sendRecordThreshold_ = value;
}
/**
*
**
* [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
* any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_create.proto;l=88
*/
private void clearSendRecordThreshold() {
sendRecordThreshold_ = 0L;
}
public static final int RECEIVERECORDTHRESHOLD_FIELD_NUMBER = 7;
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 proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_create.proto;l=94
* @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 proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_create.proto;l=94
* @param value The receiveRecordThreshold to set.
*/
private void setReceiveRecordThreshold(long value) {
receiveRecordThreshold_ = value;
}
/**
*
**
* [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
* any receive/deposit transaction
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_create.proto;l=94
*/
private void clearReceiveRecordThreshold() {
receiveRecordThreshold_ = 0L;
}
public static final int RECEIVERSIGREQUIRED_FIELD_NUMBER = 8;
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.
*/
private void setReceiverSigRequired(boolean value) {
receiverSigRequired_ = value;
}
/**
*
**
* If true, this account's key must sign any transaction depositing into this account (in
* addition to all withdrawals)
*
*
* bool receiverSigRequired = 8;
*/
private void clearReceiverSigRequired() {
receiverSigRequired_ = false;
}
public static final int AUTORENEWPERIOD_FIELD_NUMBER = 9;
private com.hedera.hashgraph.sdk.proto.Duration 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;
*/
@java.lang.Override
public boolean hasAutoRenewPeriod() {
return 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;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.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 void setAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
value.getClass();
autoRenewPeriod_ = value;
}
/**
*
**
* 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;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) {
value.getClass();
if (autoRenewPeriod_ != null &&
autoRenewPeriod_ != com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance()) {
autoRenewPeriod_ =
com.hedera.hashgraph.sdk.proto.Duration.newBuilder(autoRenewPeriod_).mergeFrom(value).buildPartial();
} else {
autoRenewPeriod_ = value;
}
}
/**
*
**
* 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 void clearAutoRenewPeriod() { autoRenewPeriod_ = null;
}
public static final int SHARDID_FIELD_NUMBER = 10;
private com.hedera.hashgraph.sdk.proto.ShardID shardID_;
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
@java.lang.Override
public boolean hasShardID() {
return shardID_ != null;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ShardID getShardID() {
return shardID_ == null ? com.hedera.hashgraph.sdk.proto.ShardID.getDefaultInstance() : shardID_;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
private void setShardID(com.hedera.hashgraph.sdk.proto.ShardID value) {
value.getClass();
shardID_ = value;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeShardID(com.hedera.hashgraph.sdk.proto.ShardID value) {
value.getClass();
if (shardID_ != null &&
shardID_ != com.hedera.hashgraph.sdk.proto.ShardID.getDefaultInstance()) {
shardID_ =
com.hedera.hashgraph.sdk.proto.ShardID.newBuilder(shardID_).mergeFrom(value).buildPartial();
} else {
shardID_ = value;
}
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
private void clearShardID() { shardID_ = null;
}
public static final int REALMID_FIELD_NUMBER = 11;
private com.hedera.hashgraph.sdk.proto.RealmID realmID_;
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
@java.lang.Override
public boolean hasRealmID() {
return realmID_ != null;
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.RealmID getRealmID() {
return realmID_ == null ? com.hedera.hashgraph.sdk.proto.RealmID.getDefaultInstance() : realmID_;
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
private void setRealmID(com.hedera.hashgraph.sdk.proto.RealmID value) {
value.getClass();
realmID_ = value;
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeRealmID(com.hedera.hashgraph.sdk.proto.RealmID value) {
value.getClass();
if (realmID_ != null &&
realmID_ != com.hedera.hashgraph.sdk.proto.RealmID.getDefaultInstance()) {
realmID_ =
com.hedera.hashgraph.sdk.proto.RealmID.newBuilder(realmID_).mergeFrom(value).buildPartial();
} else {
realmID_ = value;
}
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
private void clearRealmID() { realmID_ = null;
}
public static final int NEWREALMADMINKEY_FIELD_NUMBER = 12;
private com.hedera.hashgraph.sdk.proto.Key newRealmAdminKey_;
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
@java.lang.Override
public boolean hasNewRealmAdminKey() {
return newRealmAdminKey_ != null;
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getNewRealmAdminKey() {
return newRealmAdminKey_ == null ? com.hedera.hashgraph.sdk.proto.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 void setNewRealmAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
newRealmAdminKey_ = value;
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeNewRealmAdminKey(com.hedera.hashgraph.sdk.proto.Key value) {
value.getClass();
if (newRealmAdminKey_ != null &&
newRealmAdminKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) {
newRealmAdminKey_ =
com.hedera.hashgraph.sdk.proto.Key.newBuilder(newRealmAdminKey_).mergeFrom(value).buildPartial();
} else {
newRealmAdminKey_ = value;
}
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
private void clearNewRealmAdminKey() { newRealmAdminKey_ = null;
}
public static final int MEMO_FIELD_NUMBER = 13;
private java.lang.String memo_;
/**
*
**
* The memo associated with the account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
return memo_;
}
/**
*
**
* The memo associated with the account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(memo_);
}
/**
*
**
* The memo associated with the account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @param value The memo to set.
*/
private void setMemo(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
memo_ = value;
}
/**
*
**
* The memo associated with the account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
*/
private void clearMemo() {
memo_ = getDefaultInstance().getMemo();
}
/**
*
**
* The memo associated with the account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @param value The bytes for memo to set.
*/
private void setMemoBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
memo_ = value.toStringUtf8();
}
public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER = 14;
private int maxAutomaticTokenAssociations_;
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with. Defaults to 0
* and up to a maximum value of 1000.
*
*
* int32 max_automatic_token_associations = 14;
* @return The maxAutomaticTokenAssociations.
*/
@java.lang.Override
public int getMaxAutomaticTokenAssociations() {
return maxAutomaticTokenAssociations_;
}
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with. Defaults to 0
* and up to a maximum value of 1000.
*
*
* int32 max_automatic_token_associations = 14;
* @param value The maxAutomaticTokenAssociations to set.
*/
private void setMaxAutomaticTokenAssociations(int value) {
maxAutomaticTokenAssociations_ = value;
}
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with. Defaults to 0
* and up to a maximum value of 1000.
*
*
* int32 max_automatic_token_associations = 14;
*/
private void clearMaxAutomaticTokenAssociations() {
maxAutomaticTokenAssociations_ = 0;
}
public static final int STAKED_ACCOUNT_ID_FIELD_NUMBER = 15;
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
@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;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getStakedAccountId() {
if (stakedIdCase_ == 15) {
return (com.hedera.hashgraph.sdk.proto.AccountID) stakedId_;
}
return com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance();
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
private void setStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
stakedId_ = value;
stakedIdCase_ = 15;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
private void mergeStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
value.getClass();
if (stakedIdCase_ == 15 &&
stakedId_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) {
stakedId_ = com.hedera.hashgraph.sdk.proto.AccountID.newBuilder((com.hedera.hashgraph.sdk.proto.AccountID) stakedId_)
.mergeFrom(value).buildPartial();
} else {
stakedId_ = value;
}
stakedIdCase_ = 15;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
private void clearStakedAccountId() {
if (stakedIdCase_ == 15) {
stakedIdCase_ = 0;
stakedId_ = null;
}
}
public static final int STAKED_NODE_ID_FIELD_NUMBER = 16;
/**
*
**
* ID of the node this account is staked to.
*
*
* int64 staked_node_id = 16;
* @return Whether the stakedNodeId field is set.
*/
@java.lang.Override
public boolean hasStakedNodeId() {
return stakedIdCase_ == 16;
}
/**
*
**
* ID of the node this account is staked to.
*
*
* int64 staked_node_id = 16;
* @return The stakedNodeId.
*/
@java.lang.Override
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.
*/
private void setStakedNodeId(long value) {
stakedIdCase_ = 16;
stakedId_ = value;
}
/**
*
**
* ID of the node this account is staked to.
*
*
* int64 staked_node_id = 16;
*/
private void clearStakedNodeId() {
if (stakedIdCase_ == 16) {
stakedIdCase_ = 0;
stakedId_ = null;
}
}
public static final int DECLINE_REWARD_FIELD_NUMBER = 17;
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.
*/
private void setDeclineReward(boolean value) {
declineReward_ = value;
}
/**
*
**
* If true, the account declines receiving a staking reward. The default value is false.
*
*
* bool decline_reward = 17;
*/
private void clearDeclineReward() {
declineReward_ = false;
}
public static final int ALIAS_FIELD_NUMBER = 18;
private com.google.protobuf.ByteString 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;
* @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.
*/
private void setAlias(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
alias_ = value;
}
/**
*
**
* 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;
*/
private void clearAlias() {
alias_ = getDefaultInstance().getAlias();
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
*
* Create a new account. After the account is created, the AccountID for it is in the receipt. It
* can also be retrieved with a GetByKey query. Threshold values can be defined, and records are
* generated and stored for 25 hours for any transfer that exceeds the thresholds. This account is
* charged for each record generated, so the thresholds are useful for limiting record generation to
* happen only for large transactions.
*
* The Key field is the key used to sign transactions for this account. If the account has
* receiverSigRequired set to true, then all cryptocurrency transfers must be signed by this
* account's key, both for transfers in and out. If it is false, then only transfers out have to be
* signed by it. When the account is created, the payer account is charged enough hbars so that the
* new account will not expire for the next autoRenewPeriod seconds. When it reaches the expiration
* time, the new account will then be automatically charged to renew for another autoRenewPeriod
* seconds. If it does not have enough hbars to renew for that long, then the remaining hbars are
* used to extend its expiration as long as possible. If it is has a zero balance when it expires,
* then it is deleted. This transaction must be signed by the payer account. If receiverSigRequired
* is false, then the transaction does not have to be signed by the keys in the keys field. If it is
* true, then it must be signed by them, in addition to the keys of the payer account. If the
* auto_renew_account field is set, the key of the referenced account must sign.
*
* An entity (account, file, or smart contract instance) must be created in a particular realm. If
* the realmID is left null, then a new realm will be created with the given admin key. If a new
* realm has a null adminKey, then anyone can create/modify/delete entities in that realm. But if an
* admin key is given, then any transaction to create/modify/delete an entity in that realm must be
* signed by that key, though anyone can still call functions on smart contract instances that exist
* in that realm. A realm ceases to exist when everything within it has expired and no longer
* exists.
*
* The current API ignores shardID, realmID, and newRealmAdminKey, and creates everything in shard 0
* and realm 0, with a null key. Future versions of the API will support multiple realms and
* multiple shards.
*
*
* Protobuf type {@code proto.CryptoCreateTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.CryptoCreateTransactionBody)
com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBodyOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public StakedIdCase
getStakedIdCase() {
return instance.getStakedIdCase();
}
public Builder clearStakedId() {
copyOnWrite();
instance.clearStakedId();
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;
*/
@java.lang.Override
public boolean hasKey() {
return instance.hasKey();
}
/**
*
**
* 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;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getKey() {
return instance.getKey();
}
/**
*
**
* 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.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setKey(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.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setKey(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.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeKey(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() { copyOnWrite();
instance.clearKey();
return this;
}
/**
*
**
* The initial number of tinybars to put into the account
*
*
* uint64 initialBalance = 2;
* @return The initialBalance.
*/
@java.lang.Override
public long getInitialBalance() {
return instance.getInitialBalance();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setInitialBalance(value);
return this;
}
/**
*
**
* The initial number of tinybars to put into the account
*
*
* uint64 initialBalance = 2;
* @return This builder for chaining.
*/
public Builder clearInitialBalance() {
copyOnWrite();
instance.clearInitialBalance();
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.Override
@java.lang.Deprecated public boolean hasProxyAccountID() {
return instance.hasProxyAccountID();
}
/**
*
**
* [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.Override
@java.lang.Deprecated public com.hedera.hashgraph.sdk.proto.AccountID getProxyAccountID() {
return instance.getProxyAccountID();
}
/**
*
**
* [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.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.setProxyAccountID(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.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
copyOnWrite();
instance.setProxyAccountID(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.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.mergeProxyAccountID(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() { copyOnWrite();
instance.clearProxyAccountID();
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 proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_create.proto;l=88
* @return The sendRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getSendRecordThreshold() {
return instance.getSendRecordThreshold();
}
/**
*
**
* [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
* any send/withdraw transaction
*
*
* uint64 sendRecordThreshold = 6 [deprecated = true];
* @deprecated proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_create.proto;l=88
* @param value The sendRecordThreshold to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setSendRecordThreshold(long value) {
copyOnWrite();
instance.setSendRecordThreshold(value);
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 proto.CryptoCreateTransactionBody.sendRecordThreshold is deprecated.
* See crypto_create.proto;l=88
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearSendRecordThreshold() {
copyOnWrite();
instance.clearSendRecordThreshold();
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 proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_create.proto;l=94
* @return The receiveRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getReceiveRecordThreshold() {
return instance.getReceiveRecordThreshold();
}
/**
*
**
* [Deprecated]. The threshold amount (in tinybars) for which an account record is created for
* any receive/deposit transaction
*
*
* uint64 receiveRecordThreshold = 7 [deprecated = true];
* @deprecated proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_create.proto;l=94
* @param value The receiveRecordThreshold to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setReceiveRecordThreshold(long value) {
copyOnWrite();
instance.setReceiveRecordThreshold(value);
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 proto.CryptoCreateTransactionBody.receiveRecordThreshold is deprecated.
* See crypto_create.proto;l=94
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearReceiveRecordThreshold() {
copyOnWrite();
instance.clearReceiveRecordThreshold();
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 The receiverSigRequired.
*/
@java.lang.Override
public boolean getReceiverSigRequired() {
return instance.getReceiverSigRequired();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setReceiverSigRequired(value);
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() {
copyOnWrite();
instance.clearReceiverSigRequired();
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;
*/
@java.lang.Override
public boolean hasAutoRenewPeriod() {
return instance.hasAutoRenewPeriod();
}
/**
*
**
* 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;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() {
return instance.getAutoRenewPeriod();
}
/**
*
**
* 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.hedera.hashgraph.sdk.proto.Duration value) {
copyOnWrite();
instance.setAutoRenewPeriod(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.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) {
copyOnWrite();
instance.setAutoRenewPeriod(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.hedera.hashgraph.sdk.proto.Duration value) {
copyOnWrite();
instance.mergeAutoRenewPeriod(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() { copyOnWrite();
instance.clearAutoRenewPeriod();
return this;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
@java.lang.Override
public boolean hasShardID() {
return instance.hasShardID();
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.ShardID getShardID() {
return instance.getShardID();
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
public Builder setShardID(com.hedera.hashgraph.sdk.proto.ShardID value) {
copyOnWrite();
instance.setShardID(value);
return this;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
public Builder setShardID(
com.hedera.hashgraph.sdk.proto.ShardID.Builder builderForValue) {
copyOnWrite();
instance.setShardID(builderForValue.build());
return this;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
public Builder mergeShardID(com.hedera.hashgraph.sdk.proto.ShardID value) {
copyOnWrite();
instance.mergeShardID(value);
return this;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
public Builder clearShardID() { copyOnWrite();
instance.clearShardID();
return this;
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
@java.lang.Override
public boolean hasRealmID() {
return instance.hasRealmID();
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.RealmID getRealmID() {
return instance.getRealmID();
}
/**
*
**
* The realm in which this account is created (leave this null to create a new realm)
*
*
* .proto.RealmID realmID = 11;
*/
public Builder setRealmID(com.hedera.hashgraph.sdk.proto.RealmID value) {
copyOnWrite();
instance.setRealmID(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.hedera.hashgraph.sdk.proto.RealmID.Builder builderForValue) {
copyOnWrite();
instance.setRealmID(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.hedera.hashgraph.sdk.proto.RealmID value) {
copyOnWrite();
instance.mergeRealmID(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() { copyOnWrite();
instance.clearRealmID();
return this;
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
@java.lang.Override
public boolean hasNewRealmAdminKey() {
return instance.hasNewRealmAdminKey();
}
/**
*
**
* If realmID is null, then this the admin key for the new realm that will be created
*
*
* .proto.Key newRealmAdminKey = 12;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.Key getNewRealmAdminKey() {
return instance.getNewRealmAdminKey();
}
/**
*
**
* 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.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.setNewRealmAdminKey(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.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) {
copyOnWrite();
instance.setNewRealmAdminKey(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.hedera.hashgraph.sdk.proto.Key value) {
copyOnWrite();
instance.mergeNewRealmAdminKey(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() { copyOnWrite();
instance.clearNewRealmAdminKey();
return this;
}
/**
*
**
* The memo associated with the account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @return The memo.
*/
@java.lang.Override
public java.lang.String getMemo() {
return instance.getMemo();
}
/**
*
**
* The memo associated with the account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
return instance.getMemoBytes();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setMemo(value);
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() {
copyOnWrite();
instance.clearMemo();
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) {
copyOnWrite();
instance.setMemoBytes(value);
return this;
}
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with. Defaults to 0
* and up to a maximum value of 1000.
*
*
* int32 max_automatic_token_associations = 14;
* @return The maxAutomaticTokenAssociations.
*/
@java.lang.Override
public int getMaxAutomaticTokenAssociations() {
return instance.getMaxAutomaticTokenAssociations();
}
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with. Defaults to 0
* and up to a maximum value of 1000.
*
*
* int32 max_automatic_token_associations = 14;
* @param value The maxAutomaticTokenAssociations to set.
* @return This builder for chaining.
*/
public Builder setMaxAutomaticTokenAssociations(int value) {
copyOnWrite();
instance.setMaxAutomaticTokenAssociations(value);
return this;
}
/**
*
**
* The maximum number of tokens that an Account can be implicitly associated with. Defaults to 0
* and up to a maximum value of 1000.
*
*
* int32 max_automatic_token_associations = 14;
* @return This builder for chaining.
*/
public Builder clearMaxAutomaticTokenAssociations() {
copyOnWrite();
instance.clearMaxAutomaticTokenAssociations();
return this;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
@java.lang.Override
public boolean hasStakedAccountId() {
return instance.hasStakedAccountId();
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
@java.lang.Override
public com.hedera.hashgraph.sdk.proto.AccountID getStakedAccountId() {
return instance.getStakedAccountId();
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
public Builder setStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.setStakedAccountId(value);
return this;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
public Builder setStakedAccountId(
com.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) {
copyOnWrite();
instance.setStakedAccountId(builderForValue.build());
return this;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
public Builder mergeStakedAccountId(com.hedera.hashgraph.sdk.proto.AccountID value) {
copyOnWrite();
instance.mergeStakedAccountId(value);
return this;
}
/**
*
**
* ID of the account to which this account is staking.
*
*
* .proto.AccountID staked_account_id = 15;
*/
public Builder clearStakedAccountId() {
copyOnWrite();
instance.clearStakedAccountId();
return this;
}
/**
*
**
* ID of the node this account is staked to.
*
*
* int64 staked_node_id = 16;
* @return Whether the stakedNodeId field is set.
*/
@java.lang.Override
public boolean hasStakedNodeId() {
return instance.hasStakedNodeId();
}
/**
*
**
* ID of the node this account is staked to.
*
*
* int64 staked_node_id = 16;
* @return The stakedNodeId.
*/
@java.lang.Override
public long getStakedNodeId() {
return instance.getStakedNodeId();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setStakedNodeId(value);
return this;
}
/**
*
**
* ID of the node this account is staked to.
*
*
* int64 staked_node_id = 16;
* @return This builder for chaining.
*/
public Builder clearStakedNodeId() {
copyOnWrite();
instance.clearStakedNodeId();
return this;
}
/**
*
**
* 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 instance.getDeclineReward();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setDeclineReward(value);
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() {
copyOnWrite();
instance.clearDeclineReward();
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 The alias.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAlias() {
return instance.getAlias();
}
/**
*
**
* 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) {
copyOnWrite();
instance.setAlias(value);
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() {
copyOnWrite();
instance.clearAlias();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.CryptoCreateTransactionBody)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"stakedId_",
"stakedIdCase_",
"key_",
"initialBalance_",
"proxyAccountID_",
"sendRecordThreshold_",
"receiveRecordThreshold_",
"receiverSigRequired_",
"autoRenewPeriod_",
"shardID_",
"realmID_",
"newRealmAdminKey_",
"memo_",
"maxAutomaticTokenAssociations_",
com.hedera.hashgraph.sdk.proto.AccountID.class,
"declineReward_",
"alias_",
};
java.lang.String info =
"\u0000\u0010\u0001\u0000\u0001\u0012\u0010\u0000\u0000\u0000\u0001\t\u0002\u0003" +
"\u0003\t\u0006\u0003\u0007\u0003\b\u0007\t\t\n\t\u000b\t\f\t\r\u0208\u000e\u0004" +
"\u000f<\u0000\u00105\u0000\u0011\u0007\u0012\n";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.CryptoCreateTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody DEFAULT_INSTANCE;
static {
CryptoCreateTransactionBody defaultInstance = new CryptoCreateTransactionBody();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CryptoCreateTransactionBody.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.CryptoCreateTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy