com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crypto_create.proto
package com.hederahashgraph.api.proto.java;
/**
*
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.CryptoCreateTransactionBody)
CryptoCreateTransactionBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use CryptoCreateTransactionBody.newBuilder() to construct.
private CryptoCreateTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CryptoCreateTransactionBody() {
memo_ = "";
alias_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CryptoCreateTransactionBody();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CryptoCreateTransactionBody(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null;
if (key_ != null) {
subBuilder = key_.toBuilder();
}
key_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(key_);
key_ = subBuilder.buildPartial();
}
break;
}
case 16: {
initialBalance_ = input.readUInt64();
break;
}
case 26: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (proxyAccountID_ != null) {
subBuilder = proxyAccountID_.toBuilder();
}
proxyAccountID_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(proxyAccountID_);
proxyAccountID_ = subBuilder.buildPartial();
}
break;
}
case 48: {
sendRecordThreshold_ = input.readUInt64();
break;
}
case 56: {
receiveRecordThreshold_ = input.readUInt64();
break;
}
case 64: {
receiverSigRequired_ = input.readBool();
break;
}
case 74: {
com.hederahashgraph.api.proto.java.Duration.Builder subBuilder = null;
if (autoRenewPeriod_ != null) {
subBuilder = autoRenewPeriod_.toBuilder();
}
autoRenewPeriod_ = input.readMessage(com.hederahashgraph.api.proto.java.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(autoRenewPeriod_);
autoRenewPeriod_ = subBuilder.buildPartial();
}
break;
}
case 82: {
com.hederahashgraph.api.proto.java.ShardID.Builder subBuilder = null;
if (shardID_ != null) {
subBuilder = shardID_.toBuilder();
}
shardID_ = input.readMessage(com.hederahashgraph.api.proto.java.ShardID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shardID_);
shardID_ = subBuilder.buildPartial();
}
break;
}
case 90: {
com.hederahashgraph.api.proto.java.RealmID.Builder subBuilder = null;
if (realmID_ != null) {
subBuilder = realmID_.toBuilder();
}
realmID_ = input.readMessage(com.hederahashgraph.api.proto.java.RealmID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(realmID_);
realmID_ = subBuilder.buildPartial();
}
break;
}
case 98: {
com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null;
if (newRealmAdminKey_ != null) {
subBuilder = newRealmAdminKey_.toBuilder();
}
newRealmAdminKey_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(newRealmAdminKey_);
newRealmAdminKey_ = subBuilder.buildPartial();
}
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
memo_ = s;
break;
}
case 112: {
maxAutomaticTokenAssociations_ = input.readInt32();
break;
}
case 122: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (stakedIdCase_ == 15) {
subBuilder = ((com.hederahashgraph.api.proto.java.AccountID) stakedId_).toBuilder();
}
stakedId_ =
input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.hederahashgraph.api.proto.java.AccountID) stakedId_);
stakedId_ = subBuilder.buildPartial();
}
stakedIdCase_ = 15;
break;
}
case 128: {
stakedId_ = input.readInt64();
stakedIdCase_ = 16;
break;
}
case 136: {
declineReward_ = input.readBool();
break;
}
case 146: {
alias_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
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);
}
private int stakedIdCase_ = 0;
private java.lang.Object stakedId_;
public enum StakedIdCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
STAKED_ACCOUNT_ID(15),
STAKED_NODE_ID(16),
STAKEDID_NOT_SET(0);
private final int value;
private StakedIdCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @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;
}
};
public StakedIdCase
getStakedIdCase() {
return StakedIdCase.forNumber(
stakedIdCase_);
}
public static final int KEY_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.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;
* @return Whether the key field is set.
*/
@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;
* @return The key.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Key getKey() {
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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.KeyOrBuilder getKeyOrBuilder() {
return getKey();
}
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_;
}
public static final int PROXYACCOUNTID_FIELD_NUMBER = 3;
private com.hederahashgraph.api.proto.java.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];
* @deprecated
* @return Whether the proxyAccountID field is set.
*/
@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];
* @deprecated
* @return The proxyAccountID.
*/
@java.lang.Override
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.AccountID getProxyAccountID() {
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];
*/
@java.lang.Override
@java.lang.Deprecated public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getProxyAccountIDOrBuilder() {
return getProxyAccountID();
}
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
* @return The sendRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getSendRecordThreshold() {
return sendRecordThreshold_;
}
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
* @return The receiveRecordThreshold.
*/
@java.lang.Override
@java.lang.Deprecated public long getReceiveRecordThreshold() {
return receiveRecordThreshold_;
}
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_;
}
public static final int AUTORENEWPERIOD_FIELD_NUMBER = 9;
private com.hederahashgraph.api.proto.java.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;
* @return Whether the autoRenewPeriod field is set.
*/
@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;
* @return The autoRenewPeriod.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() {
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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
return getAutoRenewPeriod();
}
public static final int SHARDID_FIELD_NUMBER = 10;
private com.hederahashgraph.api.proto.java.ShardID shardID_;
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
* @return Whether the shardID field is set.
*/
@java.lang.Override
public boolean hasShardID() {
return shardID_ != null;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
* @return The shardID.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ShardID getShardID() {
return shardID_ == null ? com.hederahashgraph.api.proto.java.ShardID.getDefaultInstance() : shardID_;
}
/**
*
**
* The shard in which this account is created
*
*
* .proto.ShardID shardID = 10;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.ShardIDOrBuilder getShardIDOrBuilder() {
return getShardID();
}
public static final int REALMID_FIELD_NUMBER = 11;
private com.hederahashgraph.api.proto.java.RealmID realmID_;
/**
*
**
* 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.
*/
@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;
* @return The realmID.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.RealmID getRealmID() {
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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.RealmIDOrBuilder getRealmIDOrBuilder() {
return getRealmID();
}
public static final int NEWREALMADMINKEY_FIELD_NUMBER = 12;
private com.hederahashgraph.api.proto.java.Key newRealmAdminKey_;
/**
*
**
* 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.
*/
@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;
* @return The newRealmAdminKey.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Key getNewRealmAdminKey() {
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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.KeyOrBuilder getNewRealmAdminKeyOrBuilder() {
return getNewRealmAdminKey();
}
public static final int MEMO_FIELD_NUMBER = 13;
private volatile java.lang.Object 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() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
}
}
/**
*
**
* The memo associated with the account (UTF-8 encoding max 100 bytes)
*
*
* string memo = 13;
* @return The bytes for memo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER = 14;
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_;
}
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;
* @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 (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;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getStakedAccountIdOrBuilder() {
if (stakedIdCase_ == 15) {
return (com.hederahashgraph.api.proto.java.AccountID) stakedId_;
}
return com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance();
}
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;
}
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_;
}
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_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (key_ != null) {
output.writeMessage(1, getKey());
}
if (initialBalance_ != 0L) {
output.writeUInt64(2, initialBalance_);
}
if (proxyAccountID_ != null) {
output.writeMessage(3, getProxyAccountID());
}
if (sendRecordThreshold_ != 0L) {
output.writeUInt64(6, sendRecordThreshold_);
}
if (receiveRecordThreshold_ != 0L) {
output.writeUInt64(7, receiveRecordThreshold_);
}
if (receiverSigRequired_ != false) {
output.writeBool(8, receiverSigRequired_);
}
if (autoRenewPeriod_ != null) {
output.writeMessage(9, getAutoRenewPeriod());
}
if (shardID_ != null) {
output.writeMessage(10, getShardID());
}
if (realmID_ != null) {
output.writeMessage(11, getRealmID());
}
if (newRealmAdminKey_ != null) {
output.writeMessage(12, getNewRealmAdminKey());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, memo_);
}
if (maxAutomaticTokenAssociations_ != 0) {
output.writeInt32(14, maxAutomaticTokenAssociations_);
}
if (stakedIdCase_ == 15) {
output.writeMessage(15, (com.hederahashgraph.api.proto.java.AccountID) stakedId_);
}
if (stakedIdCase_ == 16) {
output.writeInt64(
16, (long)((java.lang.Long) stakedId_));
}
if (declineReward_ != false) {
output.writeBool(17, declineReward_);
}
if (!alias_.isEmpty()) {
output.writeBytes(18, alias_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (key_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getKey());
}
if (initialBalance_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, initialBalance_);
}
if (proxyAccountID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getProxyAccountID());
}
if (sendRecordThreshold_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, sendRecordThreshold_);
}
if (receiveRecordThreshold_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, receiveRecordThreshold_);
}
if (receiverSigRequired_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, receiverSigRequired_);
}
if (autoRenewPeriod_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getAutoRenewPeriod());
}
if (shardID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getShardID());
}
if (realmID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getRealmID());
}
if (newRealmAdminKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getNewRealmAdminKey());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, memo_);
}
if (maxAutomaticTokenAssociations_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, maxAutomaticTokenAssociations_);
}
if (stakedIdCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (com.hederahashgraph.api.proto.java.AccountID) stakedId_);
}
if (stakedIdCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
16, (long)((java.lang.Long) stakedId_));
}
if (declineReward_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(17, declineReward_);
}
if (!alias_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(18, alias_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody other = (com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (getInitialBalance()
!= other.getInitialBalance()) return false;
if (hasProxyAccountID() != other.hasProxyAccountID()) return false;
if (hasProxyAccountID()) {
if (!getProxyAccountID()
.equals(other.getProxyAccountID())) return false;
}
if (getSendRecordThreshold()
!= other.getSendRecordThreshold()) return false;
if (getReceiveRecordThreshold()
!= other.getReceiveRecordThreshold()) return false;
if (getReceiverSigRequired()
!= other.getReceiverSigRequired()) return false;
if (hasAutoRenewPeriod() != other.hasAutoRenewPeriod()) return false;
if (hasAutoRenewPeriod()) {
if (!getAutoRenewPeriod()
.equals(other.getAutoRenewPeriod())) return false;
}
if (hasShardID() != other.hasShardID()) return false;
if (hasShardID()) {
if (!getShardID()
.equals(other.getShardID())) return false;
}
if (hasRealmID() != other.hasRealmID()) return false;
if (hasRealmID()) {
if (!getRealmID()
.equals(other.getRealmID())) return false;
}
if (hasNewRealmAdminKey() != other.hasNewRealmAdminKey()) return false;
if (hasNewRealmAdminKey()) {
if (!getNewRealmAdminKey()
.equals(other.getNewRealmAdminKey())) return false;
}
if (!getMemo()
.equals(other.getMemo())) return false;
if (getMaxAutomaticTokenAssociations()
!= other.getMaxAutomaticTokenAssociations()) return false;
if (getDeclineReward()
!= other.getDeclineReward()) return false;
if (!getAlias()
.equals(other.getAlias())) return false;
if (!getStakedIdCase().equals(other.getStakedIdCase())) return false;
switch (stakedIdCase_) {
case 15:
if (!getStakedAccountId()
.equals(other.getStakedAccountId())) return false;
break;
case 16:
if (getStakedNodeId()
!= other.getStakedNodeId()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
hash = (37 * hash) + INITIALBALANCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getInitialBalance());
if (hasProxyAccountID()) {
hash = (37 * hash) + PROXYACCOUNTID_FIELD_NUMBER;
hash = (53 * hash) + getProxyAccountID().hashCode();
}
hash = (37 * hash) + SENDRECORDTHRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSendRecordThreshold());
hash = (37 * hash) + RECEIVERECORDTHRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReceiveRecordThreshold());
hash = (37 * hash) + RECEIVERSIGREQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReceiverSigRequired());
if (hasAutoRenewPeriod()) {
hash = (37 * hash) + AUTORENEWPERIOD_FIELD_NUMBER;
hash = (53 * hash) + getAutoRenewPeriod().hashCode();
}
if (hasShardID()) {
hash = (37 * hash) + SHARDID_FIELD_NUMBER;
hash = (53 * hash) + getShardID().hashCode();
}
if (hasRealmID()) {
hash = (37 * hash) + REALMID_FIELD_NUMBER;
hash = (53 * hash) + getRealmID().hashCode();
}
if (hasNewRealmAdminKey()) {
hash = (37 * hash) + NEWREALMADMINKEY_FIELD_NUMBER;
hash = (53 * hash) + getNewRealmAdminKey().hashCode();
}
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().hashCode();
hash = (37 * hash) + MAX_AUTOMATIC_TOKEN_ASSOCIATIONS_FIELD_NUMBER;
hash = (53 * hash) + getMaxAutomaticTokenAssociations();
hash = (37 * hash) + DECLINE_REWARD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeclineReward());
hash = (37 * hash) + ALIAS_FIELD_NUMBER;
hash = (53 * hash) + getAlias().hashCode();
switch (stakedIdCase_) {
case 15:
hash = (37 * hash) + STAKED_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getStakedAccountId().hashCode();
break;
case 16:
hash = (37 * hash) + STAKED_NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStakedNodeId());
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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.GeneratedMessageV3.Builder 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;
}
}