All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hederahashgraph.api.proto.java.CryptoCreateTransactionBody Maven / Gradle / Ivy

There is a newer version: 0.59.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: CryptoCreate.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.
 *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() { } @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; } 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); } 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; */ 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; */ 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; */ 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; */ public long getInitialBalance() { return initialBalance_; } public static final int PROXYACCOUNTID_FIELD_NUMBER = 3; private com.hederahashgraph.api.proto.java.AccountID proxyAccountID_; /** *
   * 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; */ public boolean hasProxyAccountID() { return proxyAccountID_ != null; } /** *
   * 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; */ public com.hederahashgraph.api.proto.java.AccountID getProxyAccountID() { return proxyAccountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : proxyAccountID_; } /** *
   * 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; */ 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]; */ @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]; */ @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; */ 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; */ 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; */ 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; */ 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; */ public boolean hasShardID() { return shardID_ != null; } /** *
   * The shard in which this account is created
   * 
* * .proto.ShardID shardID = 10; */ 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; */ 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; */ 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; */ 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; */ 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; */ 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; */ 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; */ public com.hederahashgraph.api.proto.java.KeyOrBuilder getNewRealmAdminKeyOrBuilder() { return getNewRealmAdminKey(); } 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()); } 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()); } 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 (!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 = (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.
   *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; } 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(); } 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()); } 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 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; */ 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; */ 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; */ public long getInitialBalance() { return initialBalance_; } /** *
     * The initial number of tinybars to put into the account
     * 
* * uint64 initialBalance = 2; */ public Builder setInitialBalance(long value) { initialBalance_ = value; onChanged(); return this; } /** *
     * The initial number of tinybars to put into the account
     * 
* * uint64 initialBalance = 2; */ 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_; /** *
     * 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; */ public boolean hasProxyAccountID() { return proxyAccountIDBuilder_ != null || proxyAccountID_ != null; } /** *
     * 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; */ 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(); } } /** *
     * 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; */ 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; } /** *
     * 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; */ 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; } /** *
     * 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; */ 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; } /** *
     * 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; */ public Builder clearProxyAccountID() { if (proxyAccountIDBuilder_ == null) { proxyAccountID_ = null; onChanged(); } else { proxyAccountID_ = null; proxyAccountIDBuilder_ = null; } return this; } /** *
     * 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; */ public com.hederahashgraph.api.proto.java.AccountID.Builder getProxyAccountIDBuilder() { onChanged(); return getProxyAccountIDFieldBuilder().getBuilder(); } /** *
     * 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; */ 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_; } } /** *
     * 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; */ 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]; */ @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]; */ @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]; */ @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]; */ @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]; */ @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]; */ @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; */ 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; */ 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; */ 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; */ 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; */ 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; */ public boolean hasShardID() { return shardIDBuilder_ != null || shardID_ != null; } /** *
     * The shard in which this account is created
     * 
* * .proto.ShardID shardID = 10; */ 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; */ 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; */ 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; */ 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; */ 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_; } @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; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy