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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ContractCreate.proto

package com.hederahashgraph.api.proto.java;

/**
 * 
 *Start a new smart contract instance. After the instance is created, the ContractID for it is in the receipt, and can be
 *retrieved by the Record or with a GetByKey query. The instance will run the bytecode stored in a previously created
 *file, referenced either by FileID or by the transaction ID of the transaction that created the file
 *The constructor will be executed using the given amount of gas, and any unspent gas will be refunded to the paying account. Constructor inputs come from the given constructorParameters.
 * The instance will exist for autoRenewPeriod seconds. When that is reached, it will renew itself for another autoRenewPeriod seconds by charging its associated cryptocurrency account (which it creates here). If it has insufficient cryptocurrency to extend that long, it will extend as long as it can. If its balance is zero, the instance will be deleted.
 * A smart contract instance normally enforces rules, so "the code is law". For example, an ERC-20 contract prevents a transfer from being undone without a signature by the recipient of the transfer. This is always enforced if the contract instance was created with the adminKeys being null. But for some uses, it might be desirable to create something like an ERC-20 contract that has a specific group of trusted individuals who can act as a "supreme court" with the ability to override the normal operation, when a sufficient number of them agree to do so. If adminKeys is not null, then they can sign a transaction that can change the state of the smart contract in arbitrary ways, such as to reverse a transaction that violates some standard of behavior that is not covered by the code itself. The admin keys can also be used to change the autoRenewPeriod, and change the adminKeys field itself. The API currently does not implement this ability. But it does allow the adminKeys field to be set and queried, and will in the future implement such admin abilities for any instance that has a non-null adminKeys.
 * If this constructor stores information, it is charged gas to store it. There is a fee in hbars to maintain that storage until the expiration time, and that fee is added as part of the transaction fee.
 * 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.
 * The optional memo field can contain a string whose length is up to 100 bytes. That is the size after Unicode NFD then UTF-8 conversion. This field can be used to describe the smart contract. It could also be used for other purposes. One recommended purpose is to hold a hexadecimal string that is the SHA-384 hash of a PDF file containing a human-readable legal contract. Then, if the admin keys are the public keys of human arbitrators, they can use that legal document to guide their decisions during a binding arbitration tribunal, convened to consider any changes to the smart contract in the future. The memo field can only be changed using the admin keys. If there are no admin keys, then it cannot be changed after the smart contract is created.
 * 
* * Protobuf type {@code proto.ContractCreateTransactionBody} */ public final class ContractCreateTransactionBody extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ContractCreateTransactionBody) ContractCreateTransactionBodyOrBuilder { private static final long serialVersionUID = 0L; // Use ContractCreateTransactionBody.newBuilder() to construct. private ContractCreateTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContractCreateTransactionBody() { gas_ = 0L; initialBalance_ = 0L; constructorParameters_ = com.google.protobuf.ByteString.EMPTY; memo_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContractCreateTransactionBody( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.hederahashgraph.api.proto.java.FileID.Builder subBuilder = null; if (fileID_ != null) { subBuilder = fileID_.toBuilder(); } fileID_ = input.readMessage(com.hederahashgraph.api.proto.java.FileID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fileID_); fileID_ = subBuilder.buildPartial(); } break; } case 26: { com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null; if (adminKey_ != null) { subBuilder = adminKey_.toBuilder(); } adminKey_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(adminKey_); adminKey_ = subBuilder.buildPartial(); } break; } case 32: { gas_ = input.readInt64(); break; } case 40: { initialBalance_ = input.readInt64(); break; } case 50: { 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 66: { 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 74: { constructorParameters_ = input.readBytes(); 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; } } } } 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.ContractCreate.internal_static_proto_ContractCreateTransactionBody_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.ContractCreate.internal_static_proto_ContractCreateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.ContractCreateTransactionBody.class, com.hederahashgraph.api.proto.java.ContractCreateTransactionBody.Builder.class); } public static final int FILEID_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.FileID fileID_; /** *
   * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
   * 
* * .proto.FileID fileID = 1; */ public boolean hasFileID() { return fileID_ != null; } /** *
   * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
   * 
* * .proto.FileID fileID = 1; */ public com.hederahashgraph.api.proto.java.FileID getFileID() { return fileID_ == null ? com.hederahashgraph.api.proto.java.FileID.getDefaultInstance() : fileID_; } /** *
   * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
   * 
* * .proto.FileID fileID = 1; */ public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { return getFileID(); } public static final int ADMINKEY_FIELD_NUMBER = 3; private com.hederahashgraph.api.proto.java.Key adminKey_; /** *
   * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
   * 
* * .proto.Key adminKey = 3; */ public boolean hasAdminKey() { return adminKey_ != null; } /** *
   * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
   * 
* * .proto.Key adminKey = 3; */ public com.hederahashgraph.api.proto.java.Key getAdminKey() { return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_; } /** *
   * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
   * 
* * .proto.Key adminKey = 3; */ public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() { return getAdminKey(); } public static final int GAS_FIELD_NUMBER = 4; private long gas_; /** *
   * gas to run the constructor
   * 
* * int64 gas = 4; */ public long getGas() { return gas_; } public static final int INITIALBALANCE_FIELD_NUMBER = 5; private long initialBalance_; /** *
   * initial number of tinybars to put into the cryptocurrency account associated with and owned by the smart contract
   * 
* * int64 initialBalance = 5; */ public long getInitialBalance() { return initialBalance_; } public static final int PROXYACCOUNTID_FIELD_NUMBER = 6; 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 = 6; */ 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 = 6; */ 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 = 6; */ public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getProxyAccountIDOrBuilder() { return getProxyAccountID(); } public static final int AUTORENEWPERIOD_FIELD_NUMBER = 8; private com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_; /** *
   * the instance will charge its account every this many seconds to renew for this long
   * 
* * .proto.Duration autoRenewPeriod = 8; */ public boolean hasAutoRenewPeriod() { return autoRenewPeriod_ != null; } /** *
   * the instance will charge its account every this many seconds to renew for this long
   * 
* * .proto.Duration autoRenewPeriod = 8; */ public com.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() { return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : autoRenewPeriod_; } /** *
   * the instance will charge its account every this many seconds to renew for this long
   * 
* * .proto.Duration autoRenewPeriod = 8; */ public com.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() { return getAutoRenewPeriod(); } public static final int CONSTRUCTORPARAMETERS_FIELD_NUMBER = 9; private com.google.protobuf.ByteString constructorParameters_; /** *
   * parameters to pass to the constructor
   * 
* * bytes constructorParameters = 9; */ public com.google.protobuf.ByteString getConstructorParameters() { return constructorParameters_; } public static final int SHARDID_FIELD_NUMBER = 10; private com.hederahashgraph.api.proto.java.ShardID shardID_; /** *
   * shard in which to create this
   * 
* * .proto.ShardID shardID = 10; */ public boolean hasShardID() { return shardID_ != null; } /** *
   * shard in which to create this
   * 
* * .proto.ShardID shardID = 10; */ public com.hederahashgraph.api.proto.java.ShardID getShardID() { return shardID_ == null ? com.hederahashgraph.api.proto.java.ShardID.getDefaultInstance() : shardID_; } /** *
   * shard in which to create this
   * 
* * .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_; /** *
   * realm in which to create this (leave this null to create a new realm)
   * 
* * .proto.RealmID realmID = 11; */ public boolean hasRealmID() { return realmID_ != null; } /** *
   * realm in which to create this (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_; } /** *
   * realm in which to create this (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(); } public static final int MEMO_FIELD_NUMBER = 13; private volatile java.lang.Object memo_; /** *
   * the memo that was submitted as part of the contract (max 100 bytes)
   * 
* * string memo = 13; */ 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 that was submitted as part of the contract (max 100 bytes)
   * 
* * string memo = 13; */ 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; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (fileID_ != null) { output.writeMessage(1, getFileID()); } if (adminKey_ != null) { output.writeMessage(3, getAdminKey()); } if (gas_ != 0L) { output.writeInt64(4, gas_); } if (initialBalance_ != 0L) { output.writeInt64(5, initialBalance_); } if (proxyAccountID_ != null) { output.writeMessage(6, getProxyAccountID()); } if (autoRenewPeriod_ != null) { output.writeMessage(8, getAutoRenewPeriod()); } if (!constructorParameters_.isEmpty()) { output.writeBytes(9, constructorParameters_); } if (shardID_ != null) { output.writeMessage(10, getShardID()); } if (realmID_ != null) { output.writeMessage(11, getRealmID()); } if (newRealmAdminKey_ != null) { output.writeMessage(12, getNewRealmAdminKey()); } if (!getMemoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, memo_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fileID_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFileID()); } if (adminKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAdminKey()); } if (gas_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, gas_); } if (initialBalance_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, initialBalance_); } if (proxyAccountID_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getProxyAccountID()); } if (autoRenewPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getAutoRenewPeriod()); } if (!constructorParameters_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, constructorParameters_); } 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 (!getMemoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, memo_); } 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.ContractCreateTransactionBody)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.ContractCreateTransactionBody other = (com.hederahashgraph.api.proto.java.ContractCreateTransactionBody) obj; boolean result = true; result = result && (hasFileID() == other.hasFileID()); if (hasFileID()) { result = result && getFileID() .equals(other.getFileID()); } result = result && (hasAdminKey() == other.hasAdminKey()); if (hasAdminKey()) { result = result && getAdminKey() .equals(other.getAdminKey()); } result = result && (getGas() == other.getGas()); result = result && (getInitialBalance() == other.getInitialBalance()); result = result && (hasProxyAccountID() == other.hasProxyAccountID()); if (hasProxyAccountID()) { result = result && getProxyAccountID() .equals(other.getProxyAccountID()); } result = result && (hasAutoRenewPeriod() == other.hasAutoRenewPeriod()); if (hasAutoRenewPeriod()) { result = result && getAutoRenewPeriod() .equals(other.getAutoRenewPeriod()); } result = result && getConstructorParameters() .equals(other.getConstructorParameters()); result = result && (hasShardID() == other.hasShardID()); if (hasShardID()) { result = result && getShardID() .equals(other.getShardID()); } result = result && (hasRealmID() == other.hasRealmID()); if (hasRealmID()) { result = result && getRealmID() .equals(other.getRealmID()); } result = result && (hasNewRealmAdminKey() == other.hasNewRealmAdminKey()); if (hasNewRealmAdminKey()) { result = result && getNewRealmAdminKey() .equals(other.getNewRealmAdminKey()); } result = result && getMemo() .equals(other.getMemo()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFileID()) { hash = (37 * hash) + FILEID_FIELD_NUMBER; hash = (53 * hash) + getFileID().hashCode(); } if (hasAdminKey()) { hash = (37 * hash) + ADMINKEY_FIELD_NUMBER; hash = (53 * hash) + getAdminKey().hashCode(); } hash = (37 * hash) + GAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGas()); 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(); } if (hasAutoRenewPeriod()) { hash = (37 * hash) + AUTORENEWPERIOD_FIELD_NUMBER; hash = (53 * hash) + getAutoRenewPeriod().hashCode(); } hash = (37 * hash) + CONSTRUCTORPARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getConstructorParameters().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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.ContractCreateTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ContractCreateTransactionBody 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.ContractCreateTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ContractCreateTransactionBody 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.ContractCreateTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ContractCreateTransactionBody 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.ContractCreateTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ContractCreateTransactionBody 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.ContractCreateTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ContractCreateTransactionBody 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.ContractCreateTransactionBody 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.ContractCreateTransactionBody parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hederahashgraph.api.proto.java.ContractCreateTransactionBody prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
   *Start a new smart contract instance. After the instance is created, the ContractID for it is in the receipt, and can be
   *retrieved by the Record or with a GetByKey query. The instance will run the bytecode stored in a previously created
   *file, referenced either by FileID or by the transaction ID of the transaction that created the file
   *The constructor will be executed using the given amount of gas, and any unspent gas will be refunded to the paying account. Constructor inputs come from the given constructorParameters.
   * The instance will exist for autoRenewPeriod seconds. When that is reached, it will renew itself for another autoRenewPeriod seconds by charging its associated cryptocurrency account (which it creates here). If it has insufficient cryptocurrency to extend that long, it will extend as long as it can. If its balance is zero, the instance will be deleted.
   * A smart contract instance normally enforces rules, so "the code is law". For example, an ERC-20 contract prevents a transfer from being undone without a signature by the recipient of the transfer. This is always enforced if the contract instance was created with the adminKeys being null. But for some uses, it might be desirable to create something like an ERC-20 contract that has a specific group of trusted individuals who can act as a "supreme court" with the ability to override the normal operation, when a sufficient number of them agree to do so. If adminKeys is not null, then they can sign a transaction that can change the state of the smart contract in arbitrary ways, such as to reverse a transaction that violates some standard of behavior that is not covered by the code itself. The admin keys can also be used to change the autoRenewPeriod, and change the adminKeys field itself. The API currently does not implement this ability. But it does allow the adminKeys field to be set and queried, and will in the future implement such admin abilities for any instance that has a non-null adminKeys.
   * If this constructor stores information, it is charged gas to store it. There is a fee in hbars to maintain that storage until the expiration time, and that fee is added as part of the transaction fee.
   * 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.
   * The optional memo field can contain a string whose length is up to 100 bytes. That is the size after Unicode NFD then UTF-8 conversion. This field can be used to describe the smart contract. It could also be used for other purposes. One recommended purpose is to hold a hexadecimal string that is the SHA-384 hash of a PDF file containing a human-readable legal contract. Then, if the admin keys are the public keys of human arbitrators, they can use that legal document to guide their decisions during a binding arbitration tribunal, convened to consider any changes to the smart contract in the future. The memo field can only be changed using the admin keys. If there are no admin keys, then it cannot be changed after the smart contract is created.
   * 
* * Protobuf type {@code proto.ContractCreateTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ContractCreateTransactionBody) com.hederahashgraph.api.proto.java.ContractCreateTransactionBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.ContractCreate.internal_static_proto_ContractCreateTransactionBody_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.ContractCreate.internal_static_proto_ContractCreateTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.ContractCreateTransactionBody.class, com.hederahashgraph.api.proto.java.ContractCreateTransactionBody.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.ContractCreateTransactionBody.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (fileIDBuilder_ == null) { fileID_ = null; } else { fileID_ = null; fileIDBuilder_ = null; } if (adminKeyBuilder_ == null) { adminKey_ = null; } else { adminKey_ = null; adminKeyBuilder_ = null; } gas_ = 0L; initialBalance_ = 0L; if (proxyAccountIDBuilder_ == null) { proxyAccountID_ = null; } else { proxyAccountID_ = null; proxyAccountIDBuilder_ = null; } if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = null; } else { autoRenewPeriod_ = null; autoRenewPeriodBuilder_ = null; } constructorParameters_ = com.google.protobuf.ByteString.EMPTY; 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_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.ContractCreate.internal_static_proto_ContractCreateTransactionBody_descriptor; } public com.hederahashgraph.api.proto.java.ContractCreateTransactionBody getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.ContractCreateTransactionBody.getDefaultInstance(); } public com.hederahashgraph.api.proto.java.ContractCreateTransactionBody build() { com.hederahashgraph.api.proto.java.ContractCreateTransactionBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.hederahashgraph.api.proto.java.ContractCreateTransactionBody buildPartial() { com.hederahashgraph.api.proto.java.ContractCreateTransactionBody result = new com.hederahashgraph.api.proto.java.ContractCreateTransactionBody(this); if (fileIDBuilder_ == null) { result.fileID_ = fileID_; } else { result.fileID_ = fileIDBuilder_.build(); } if (adminKeyBuilder_ == null) { result.adminKey_ = adminKey_; } else { result.adminKey_ = adminKeyBuilder_.build(); } result.gas_ = gas_; result.initialBalance_ = initialBalance_; if (proxyAccountIDBuilder_ == null) { result.proxyAccountID_ = proxyAccountID_; } else { result.proxyAccountID_ = proxyAccountIDBuilder_.build(); } if (autoRenewPeriodBuilder_ == null) { result.autoRenewPeriod_ = autoRenewPeriod_; } else { result.autoRenewPeriod_ = autoRenewPeriodBuilder_.build(); } result.constructorParameters_ = constructorParameters_; 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_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hederahashgraph.api.proto.java.ContractCreateTransactionBody) { return mergeFrom((com.hederahashgraph.api.proto.java.ContractCreateTransactionBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.ContractCreateTransactionBody other) { if (other == com.hederahashgraph.api.proto.java.ContractCreateTransactionBody.getDefaultInstance()) return this; if (other.hasFileID()) { mergeFileID(other.getFileID()); } if (other.hasAdminKey()) { mergeAdminKey(other.getAdminKey()); } if (other.getGas() != 0L) { setGas(other.getGas()); } if (other.getInitialBalance() != 0L) { setInitialBalance(other.getInitialBalance()); } if (other.hasProxyAccountID()) { mergeProxyAccountID(other.getProxyAccountID()); } if (other.hasAutoRenewPeriod()) { mergeAutoRenewPeriod(other.getAutoRenewPeriod()); } if (other.getConstructorParameters() != com.google.protobuf.ByteString.EMPTY) { setConstructorParameters(other.getConstructorParameters()); } 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(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.hederahashgraph.api.proto.java.ContractCreateTransactionBody parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.ContractCreateTransactionBody) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.hederahashgraph.api.proto.java.FileID fileID_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> fileIDBuilder_; /** *
     * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
     * 
* * .proto.FileID fileID = 1; */ public boolean hasFileID() { return fileIDBuilder_ != null || fileID_ != null; } /** *
     * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
     * 
* * .proto.FileID fileID = 1; */ public com.hederahashgraph.api.proto.java.FileID getFileID() { if (fileIDBuilder_ == null) { return fileID_ == null ? com.hederahashgraph.api.proto.java.FileID.getDefaultInstance() : fileID_; } else { return fileIDBuilder_.getMessage(); } } /** *
     * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
     * 
* * .proto.FileID fileID = 1; */ public Builder setFileID(com.hederahashgraph.api.proto.java.FileID value) { if (fileIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fileID_ = value; onChanged(); } else { fileIDBuilder_.setMessage(value); } return this; } /** *
     * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
     * 
* * .proto.FileID fileID = 1; */ public Builder setFileID( com.hederahashgraph.api.proto.java.FileID.Builder builderForValue) { if (fileIDBuilder_ == null) { fileID_ = builderForValue.build(); onChanged(); } else { fileIDBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
     * 
* * .proto.FileID fileID = 1; */ public Builder mergeFileID(com.hederahashgraph.api.proto.java.FileID value) { if (fileIDBuilder_ == null) { if (fileID_ != null) { fileID_ = com.hederahashgraph.api.proto.java.FileID.newBuilder(fileID_).mergeFrom(value).buildPartial(); } else { fileID_ = value; } onChanged(); } else { fileIDBuilder_.mergeFrom(value); } return this; } /** *
     * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
     * 
* * .proto.FileID fileID = 1; */ public Builder clearFileID() { if (fileIDBuilder_ == null) { fileID_ = null; onChanged(); } else { fileID_ = null; fileIDBuilder_ = null; } return this; } /** *
     * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
     * 
* * .proto.FileID fileID = 1; */ public com.hederahashgraph.api.proto.java.FileID.Builder getFileIDBuilder() { onChanged(); return getFileIDFieldBuilder().getBuilder(); } /** *
     * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
     * 
* * .proto.FileID fileID = 1; */ public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() { if (fileIDBuilder_ != null) { return fileIDBuilder_.getMessageOrBuilder(); } else { return fileID_ == null ? com.hederahashgraph.api.proto.java.FileID.getDefaultInstance() : fileID_; } } /** *
     * the file containing the smart contract byte code. A copy will be made and held by the contract instance, and have the same expiration time as the instance. The file is referenced one of two ways:
     * 
* * .proto.FileID fileID = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder> getFileIDFieldBuilder() { if (fileIDBuilder_ == null) { fileIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.FileID, com.hederahashgraph.api.proto.java.FileID.Builder, com.hederahashgraph.api.proto.java.FileIDOrBuilder>( getFileID(), getParentForChildren(), isClean()); fileID_ = null; } return fileIDBuilder_; } private com.hederahashgraph.api.proto.java.Key adminKey_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> adminKeyBuilder_; /** *
     * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
     * 
* * .proto.Key adminKey = 3; */ public boolean hasAdminKey() { return adminKeyBuilder_ != null || adminKey_ != null; } /** *
     * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
     * 
* * .proto.Key adminKey = 3; */ public com.hederahashgraph.api.proto.java.Key getAdminKey() { if (adminKeyBuilder_ == null) { return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_; } else { return adminKeyBuilder_.getMessage(); } } /** *
     * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
     * 
* * .proto.Key adminKey = 3; */ public Builder setAdminKey(com.hederahashgraph.api.proto.java.Key value) { if (adminKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminKey_ = value; onChanged(); } else { adminKeyBuilder_.setMessage(value); } return this; } /** *
     * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
     * 
* * .proto.Key adminKey = 3; */ public Builder setAdminKey( com.hederahashgraph.api.proto.java.Key.Builder builderForValue) { if (adminKeyBuilder_ == null) { adminKey_ = builderForValue.build(); onChanged(); } else { adminKeyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
     * 
* * .proto.Key adminKey = 3; */ public Builder mergeAdminKey(com.hederahashgraph.api.proto.java.Key value) { if (adminKeyBuilder_ == null) { if (adminKey_ != null) { adminKey_ = com.hederahashgraph.api.proto.java.Key.newBuilder(adminKey_).mergeFrom(value).buildPartial(); } else { adminKey_ = value; } onChanged(); } else { adminKeyBuilder_.mergeFrom(value); } return this; } /** *
     * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
     * 
* * .proto.Key adminKey = 3; */ public Builder clearAdminKey() { if (adminKeyBuilder_ == null) { adminKey_ = null; onChanged(); } else { adminKey_ = null; adminKeyBuilder_ = null; } return this; } /** *
     * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
     * 
* * .proto.Key adminKey = 3; */ public com.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() { onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
     * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
     * 
* * .proto.Key adminKey = 3; */ public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() { if (adminKeyBuilder_ != null) { return adminKeyBuilder_.getMessageOrBuilder(); } else { return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_; } } /** *
     * the state of the instance and its fields can be modified arbitrarily if this key signs a transaction to modify it. If this is null, then such modifications are not possible, and there is no administrator that can override the normal operation of this smart contract instance. Note that if it is created with no admin keys, then there is no administrator to authorize changing the admin keys, so there can never be any admin keys for that instance.
     * 
* * .proto.Key adminKey = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> getAdminKeyFieldBuilder() { if (adminKeyBuilder_ == null) { adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>( getAdminKey(), getParentForChildren(), isClean()); adminKey_ = null; } return adminKeyBuilder_; } private long gas_ ; /** *
     * gas to run the constructor
     * 
* * int64 gas = 4; */ public long getGas() { return gas_; } /** *
     * gas to run the constructor
     * 
* * int64 gas = 4; */ public Builder setGas(long value) { gas_ = value; onChanged(); return this; } /** *
     * gas to run the constructor
     * 
* * int64 gas = 4; */ public Builder clearGas() { gas_ = 0L; onChanged(); return this; } private long initialBalance_ ; /** *
     * initial number of tinybars to put into the cryptocurrency account associated with and owned by the smart contract
     * 
* * int64 initialBalance = 5; */ public long getInitialBalance() { return initialBalance_; } /** *
     * initial number of tinybars to put into the cryptocurrency account associated with and owned by the smart contract
     * 
* * int64 initialBalance = 5; */ public Builder setInitialBalance(long value) { initialBalance_ = value; onChanged(); return this; } /** *
     * initial number of tinybars to put into the cryptocurrency account associated with and owned by the smart contract
     * 
* * int64 initialBalance = 5; */ public Builder clearInitialBalance() { initialBalance_ = 0L; onChanged(); return this; } private com.hederahashgraph.api.proto.java.AccountID proxyAccountID_ = null; 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 = 6; */ 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 = 6; */ 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 = 6; */ 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 = 6; */ 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 = 6; */ 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 = 6; */ 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 = 6; */ 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 = 6; */ 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 = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> 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 com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_ = null; 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 instance will charge its account every this many seconds to renew for this long
     * 
* * .proto.Duration autoRenewPeriod = 8; */ public boolean hasAutoRenewPeriod() { return autoRenewPeriodBuilder_ != null || autoRenewPeriod_ != null; } /** *
     * the instance will charge its account every this many seconds to renew for this long
     * 
* * .proto.Duration autoRenewPeriod = 8; */ 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 instance will charge its account every this many seconds to renew for this long
     * 
* * .proto.Duration autoRenewPeriod = 8; */ 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 instance will charge its account every this many seconds to renew for this long
     * 
* * .proto.Duration autoRenewPeriod = 8; */ 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 instance will charge its account every this many seconds to renew for this long
     * 
* * .proto.Duration autoRenewPeriod = 8; */ 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 instance will charge its account every this many seconds to renew for this long
     * 
* * .proto.Duration autoRenewPeriod = 8; */ public Builder clearAutoRenewPeriod() { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = null; onChanged(); } else { autoRenewPeriod_ = null; autoRenewPeriodBuilder_ = null; } return this; } /** *
     * the instance will charge its account every this many seconds to renew for this long
     * 
* * .proto.Duration autoRenewPeriod = 8; */ public com.hederahashgraph.api.proto.java.Duration.Builder getAutoRenewPeriodBuilder() { onChanged(); return getAutoRenewPeriodFieldBuilder().getBuilder(); } /** *
     * the instance will charge its account every this many seconds to renew for this long
     * 
* * .proto.Duration autoRenewPeriod = 8; */ 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 instance will charge its account every this many seconds to renew for this long
     * 
* * .proto.Duration autoRenewPeriod = 8; */ 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.google.protobuf.ByteString constructorParameters_ = com.google.protobuf.ByteString.EMPTY; /** *
     * parameters to pass to the constructor
     * 
* * bytes constructorParameters = 9; */ public com.google.protobuf.ByteString getConstructorParameters() { return constructorParameters_; } /** *
     * parameters to pass to the constructor
     * 
* * bytes constructorParameters = 9; */ public Builder setConstructorParameters(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } constructorParameters_ = value; onChanged(); return this; } /** *
     * parameters to pass to the constructor
     * 
* * bytes constructorParameters = 9; */ public Builder clearConstructorParameters() { constructorParameters_ = getDefaultInstance().getConstructorParameters(); onChanged(); return this; } private com.hederahashgraph.api.proto.java.ShardID shardID_ = null; 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_; /** *
     * shard in which to create this
     * 
* * .proto.ShardID shardID = 10; */ public boolean hasShardID() { return shardIDBuilder_ != null || shardID_ != null; } /** *
     * shard in which to create this
     * 
* * .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(); } } /** *
     * shard in which to create this
     * 
* * .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; } /** *
     * shard in which to create this
     * 
* * .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; } /** *
     * shard in which to create this
     * 
* * .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; } /** *
     * shard in which to create this
     * 
* * .proto.ShardID shardID = 10; */ public Builder clearShardID() { if (shardIDBuilder_ == null) { shardID_ = null; onChanged(); } else { shardID_ = null; shardIDBuilder_ = null; } return this; } /** *
     * shard in which to create this
     * 
* * .proto.ShardID shardID = 10; */ public com.hederahashgraph.api.proto.java.ShardID.Builder getShardIDBuilder() { onChanged(); return getShardIDFieldBuilder().getBuilder(); } /** *
     * shard in which to create this
     * 
* * .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_; } } /** *
     * shard in which to create this
     * 
* * .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_ = null; 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_; /** *
     * realm in which to create this (leave this null to create a new realm)
     * 
* * .proto.RealmID realmID = 11; */ public boolean hasRealmID() { return realmIDBuilder_ != null || realmID_ != null; } /** *
     * realm in which to create this (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(); } } /** *
     * realm in which to create this (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; } /** *
     * realm in which to create this (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; } /** *
     * realm in which to create this (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; } /** *
     * realm in which to create this (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; } /** *
     * realm in which to create this (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(); } /** *
     * realm in which to create this (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_; } } /** *
     * realm in which to create this (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_ = null; 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_; } private java.lang.Object memo_ = ""; /** *
     * the memo that was submitted as part of the contract (max 100 bytes)
     * 
* * string memo = 13; */ 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 that was submitted as part of the contract (max 100 bytes)
     * 
* * string memo = 13; */ 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 that was submitted as part of the contract (max 100 bytes)
     * 
* * string memo = 13; */ public Builder setMemo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } memo_ = value; onChanged(); return this; } /** *
     * the memo that was submitted as part of the contract (max 100 bytes)
     * 
* * string memo = 13; */ public Builder clearMemo() { memo_ = getDefaultInstance().getMemo(); onChanged(); return this; } /** *
     * the memo that was submitted as part of the contract (max 100 bytes)
     * 
* * string memo = 13; */ public Builder setMemoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); memo_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.ContractCreateTransactionBody) } // @@protoc_insertion_point(class_scope:proto.ContractCreateTransactionBody) private static final com.hederahashgraph.api.proto.java.ContractCreateTransactionBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ContractCreateTransactionBody(); } public static com.hederahashgraph.api.proto.java.ContractCreateTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ContractCreateTransactionBody parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContractCreateTransactionBody(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.hederahashgraph.api.proto.java.ContractCreateTransactionBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy