
com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ContractUpdate.proto
package com.hederahashgraph.api.proto.java;
/**
*
*At consensus, updates the fields of a smart contract to the given values.
*If no value is given for a field, that field is left unchanged on the contract. For an immutable smart contract (that is, a contract created without an adminKey), only the expirationTime may be updated; setting any other field in this case will cause the transaction status to resolve to MODIFYING_IMMUTABLE_CONTRACT.
*--- Signing Requirements ---
*1. Whether or not a contract has an admin Key, its expiry can be extended with only the transaction payer's signature.
*2. Updating any other field of a mutable contract requires the admin key's signature.
*3. If the update transaction includes a new admin key, this new key must also sign <b>unless</b> it is exactly an empty <tt>KeyList</tt>. This special sentinel key removes the existing admin key and causes the contract to become immutable. (Other <tt>Key</tt> structures without a constituent <tt>Ed25519</tt> key will be rejected with <tt>INVALID_ADMIN_KEY</tt>.)
*
*
* Protobuf type {@code proto.ContractUpdateTransactionBody}
*/
public final class ContractUpdateTransactionBody extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.ContractUpdateTransactionBody)
ContractUpdateTransactionBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContractUpdateTransactionBody.newBuilder() to construct.
private ContractUpdateTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContractUpdateTransactionBody() {
memo_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContractUpdateTransactionBody();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContractUpdateTransactionBody(
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.ContractID.Builder subBuilder = null;
if (contractID_ != null) {
subBuilder = contractID_.toBuilder();
}
contractID_ = input.readMessage(com.hederahashgraph.api.proto.java.ContractID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contractID_);
contractID_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null;
if (expirationTime_ != null) {
subBuilder = expirationTime_.toBuilder();
}
expirationTime_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expirationTime_);
expirationTime_ = 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 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 58: {
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 66: {
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 74: {
java.lang.String s = input.readStringRequireUtf8();
memo_ = s;
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.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.class, com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.Builder.class);
}
public static final int CONTRACTID_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.ContractID contractID_;
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public boolean hasContractID() {
return contractID_ != null;
}
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public com.hederahashgraph.api.proto.java.ContractID getContractID() {
return contractID_ == null ? com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_;
}
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() {
return getContractID();
}
public static final int EXPIRATIONTIME_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.Timestamp expirationTime_;
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public boolean hasExpirationTime() {
return expirationTime_ != null;
}
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public com.hederahashgraph.api.proto.java.Timestamp getExpirationTime() {
return expirationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_;
}
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() {
return getExpirationTime();
}
public static final int ADMINKEY_FIELD_NUMBER = 3;
private com.hederahashgraph.api.proto.java.Key adminKey_;
/**
*
* The new key to control updates to the contract
*
*
* .proto.Key adminKey = 3;
*/
public boolean hasAdminKey() {
return adminKey_ != null;
}
/**
*
* The new key to control updates to the contract
*
*
* .proto.Key adminKey = 3;
*/
public com.hederahashgraph.api.proto.java.Key getAdminKey() {
return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_;
}
/**
*
* The new key to control updates to the contract
*
*
* .proto.Key adminKey = 3;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() {
return getAdminKey();
}
public static final int PROXYACCOUNTID_FIELD_NUMBER = 6;
private com.hederahashgraph.api.proto.java.AccountID proxyAccountID_;
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .proto.AccountID proxyAccountID = 6;
*/
public boolean hasProxyAccountID() {
return proxyAccountID_ != null;
}
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .proto.AccountID proxyAccountID = 6;
*/
public com.hederahashgraph.api.proto.java.AccountID getProxyAccountID() {
return proxyAccountID_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : proxyAccountID_;
}
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .proto.AccountID proxyAccountID = 6;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getProxyAccountIDOrBuilder() {
return getProxyAccountID();
}
public static final int AUTORENEWPERIOD_FIELD_NUMBER = 7;
private com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_;
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public boolean hasAutoRenewPeriod() {
return autoRenewPeriod_ != null;
}
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public com.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() {
return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : autoRenewPeriod_;
}
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public com.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
return getAutoRenewPeriod();
}
public static final int FILEID_FIELD_NUMBER = 8;
private com.hederahashgraph.api.proto.java.FileID fileID_;
/**
*
* The new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
public boolean hasFileID() {
return fileID_ != null;
}
/**
*
* The new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
public com.hederahashgraph.api.proto.java.FileID getFileID() {
return fileID_ == null ? com.hederahashgraph.api.proto.java.FileID.getDefaultInstance() : fileID_;
}
/**
*
* The new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
public com.hederahashgraph.api.proto.java.FileIDOrBuilder getFileIDOrBuilder() {
return getFileID();
}
public static final int MEMO_FIELD_NUMBER = 9;
private volatile java.lang.Object memo_;
/**
*
* The new contract memo, assumed to be Unicode encoded with UTF-8 (at most 100 bytes)
*
*
* string memo = 9;
*/
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 new contract memo, assumed to be Unicode encoded with UTF-8 (at most 100 bytes)
*
*
* string memo = 9;
*/
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;
@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 (contractID_ != null) {
output.writeMessage(1, getContractID());
}
if (expirationTime_ != null) {
output.writeMessage(2, getExpirationTime());
}
if (adminKey_ != null) {
output.writeMessage(3, getAdminKey());
}
if (proxyAccountID_ != null) {
output.writeMessage(6, getProxyAccountID());
}
if (autoRenewPeriod_ != null) {
output.writeMessage(7, getAutoRenewPeriod());
}
if (fileID_ != null) {
output.writeMessage(8, getFileID());
}
if (!getMemoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, memo_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contractID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContractID());
}
if (expirationTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getExpirationTime());
}
if (adminKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAdminKey());
}
if (proxyAccountID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getProxyAccountID());
}
if (autoRenewPeriod_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getAutoRenewPeriod());
}
if (fileID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getFileID());
}
if (!getMemoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, 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.ContractUpdateTransactionBody)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody other = (com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody) obj;
if (hasContractID() != other.hasContractID()) return false;
if (hasContractID()) {
if (!getContractID()
.equals(other.getContractID())) return false;
}
if (hasExpirationTime() != other.hasExpirationTime()) return false;
if (hasExpirationTime()) {
if (!getExpirationTime()
.equals(other.getExpirationTime())) return false;
}
if (hasAdminKey() != other.hasAdminKey()) return false;
if (hasAdminKey()) {
if (!getAdminKey()
.equals(other.getAdminKey())) return false;
}
if (hasProxyAccountID() != other.hasProxyAccountID()) return false;
if (hasProxyAccountID()) {
if (!getProxyAccountID()
.equals(other.getProxyAccountID())) return false;
}
if (hasAutoRenewPeriod() != other.hasAutoRenewPeriod()) return false;
if (hasAutoRenewPeriod()) {
if (!getAutoRenewPeriod()
.equals(other.getAutoRenewPeriod())) return false;
}
if (hasFileID() != other.hasFileID()) return false;
if (hasFileID()) {
if (!getFileID()
.equals(other.getFileID())) return false;
}
if (!getMemo()
.equals(other.getMemo())) 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 (hasContractID()) {
hash = (37 * hash) + CONTRACTID_FIELD_NUMBER;
hash = (53 * hash) + getContractID().hashCode();
}
if (hasExpirationTime()) {
hash = (37 * hash) + EXPIRATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getExpirationTime().hashCode();
}
if (hasAdminKey()) {
hash = (37 * hash) + ADMINKEY_FIELD_NUMBER;
hash = (53 * hash) + getAdminKey().hashCode();
}
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();
}
if (hasFileID()) {
hash = (37 * hash) + FILEID_FIELD_NUMBER;
hash = (53 * hash) + getFileID().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.ContractUpdateTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody 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.ContractUpdateTransactionBody 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;
}
/**
*
*At consensus, updates the fields of a smart contract to the given values.
*If no value is given for a field, that field is left unchanged on the contract. For an immutable smart contract (that is, a contract created without an adminKey), only the expirationTime may be updated; setting any other field in this case will cause the transaction status to resolve to MODIFYING_IMMUTABLE_CONTRACT.
*--- Signing Requirements ---
*1. Whether or not a contract has an admin Key, its expiry can be extended with only the transaction payer's signature.
*2. Updating any other field of a mutable contract requires the admin key's signature.
*3. If the update transaction includes a new admin key, this new key must also sign <b>unless</b> it is exactly an empty <tt>KeyList</tt>. This special sentinel key removes the existing admin key and causes the contract to become immutable. (Other <tt>Key</tt> structures without a constituent <tt>Ed25519</tt> key will be rejected with <tt>INVALID_ADMIN_KEY</tt>.)
*
*
* Protobuf type {@code proto.ContractUpdateTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.ContractUpdateTransactionBody)
com.hederahashgraph.api.proto.java.ContractUpdateTransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.class, com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.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 (contractIDBuilder_ == null) {
contractID_ = null;
} else {
contractID_ = null;
contractIDBuilder_ = null;
}
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
if (adminKeyBuilder_ == null) {
adminKey_ = null;
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
if (proxyAccountIDBuilder_ == null) {
proxyAccountID_ = null;
} else {
proxyAccountID_ = null;
proxyAccountIDBuilder_ = null;
}
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
if (fileIDBuilder_ == null) {
fileID_ = null;
} else {
fileID_ = null;
fileIDBuilder_ = null;
}
memo_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ContractUpdate.internal_static_proto_ContractUpdateTransactionBody_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody build() {
com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody buildPartial() {
com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody result = new com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody(this);
if (contractIDBuilder_ == null) {
result.contractID_ = contractID_;
} else {
result.contractID_ = contractIDBuilder_.build();
}
if (expirationTimeBuilder_ == null) {
result.expirationTime_ = expirationTime_;
} else {
result.expirationTime_ = expirationTimeBuilder_.build();
}
if (adminKeyBuilder_ == null) {
result.adminKey_ = adminKey_;
} else {
result.adminKey_ = adminKeyBuilder_.build();
}
if (proxyAccountIDBuilder_ == null) {
result.proxyAccountID_ = proxyAccountID_;
} else {
result.proxyAccountID_ = proxyAccountIDBuilder_.build();
}
if (autoRenewPeriodBuilder_ == null) {
result.autoRenewPeriod_ = autoRenewPeriod_;
} else {
result.autoRenewPeriod_ = autoRenewPeriodBuilder_.build();
}
if (fileIDBuilder_ == null) {
result.fileID_ = fileID_;
} else {
result.fileID_ = fileIDBuilder_.build();
}
result.memo_ = memo_;
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.ContractUpdateTransactionBody) {
return mergeFrom((com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody other) {
if (other == com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody.getDefaultInstance()) return this;
if (other.hasContractID()) {
mergeContractID(other.getContractID());
}
if (other.hasExpirationTime()) {
mergeExpirationTime(other.getExpirationTime());
}
if (other.hasAdminKey()) {
mergeAdminKey(other.getAdminKey());
}
if (other.hasProxyAccountID()) {
mergeProxyAccountID(other.getProxyAccountID());
}
if (other.hasAutoRenewPeriod()) {
mergeAutoRenewPeriod(other.getAutoRenewPeriod());
}
if (other.hasFileID()) {
mergeFileID(other.getFileID());
}
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
onChanged();
}
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.ContractUpdateTransactionBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.hederahashgraph.api.proto.java.ContractID contractID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder> contractIDBuilder_;
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public boolean hasContractID() {
return contractIDBuilder_ != null || contractID_ != null;
}
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public com.hederahashgraph.api.proto.java.ContractID getContractID() {
if (contractIDBuilder_ == null) {
return contractID_ == null ? com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_;
} else {
return contractIDBuilder_.getMessage();
}
}
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public Builder setContractID(com.hederahashgraph.api.proto.java.ContractID value) {
if (contractIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contractID_ = value;
onChanged();
} else {
contractIDBuilder_.setMessage(value);
}
return this;
}
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public Builder setContractID(
com.hederahashgraph.api.proto.java.ContractID.Builder builderForValue) {
if (contractIDBuilder_ == null) {
contractID_ = builderForValue.build();
onChanged();
} else {
contractIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public Builder mergeContractID(com.hederahashgraph.api.proto.java.ContractID value) {
if (contractIDBuilder_ == null) {
if (contractID_ != null) {
contractID_ =
com.hederahashgraph.api.proto.java.ContractID.newBuilder(contractID_).mergeFrom(value).buildPartial();
} else {
contractID_ = value;
}
onChanged();
} else {
contractIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public Builder clearContractID() {
if (contractIDBuilder_ == null) {
contractID_ = null;
onChanged();
} else {
contractID_ = null;
contractIDBuilder_ = null;
}
return this;
}
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public com.hederahashgraph.api.proto.java.ContractID.Builder getContractIDBuilder() {
onChanged();
return getContractIDFieldBuilder().getBuilder();
}
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
public com.hederahashgraph.api.proto.java.ContractIDOrBuilder getContractIDOrBuilder() {
if (contractIDBuilder_ != null) {
return contractIDBuilder_.getMessageOrBuilder();
} else {
return contractID_ == null ?
com.hederahashgraph.api.proto.java.ContractID.getDefaultInstance() : contractID_;
}
}
/**
*
* The id of the contract to be updated
*
*
* .proto.ContractID contractID = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>
getContractIDFieldBuilder() {
if (contractIDBuilder_ == null) {
contractIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.ContractID, com.hederahashgraph.api.proto.java.ContractID.Builder, com.hederahashgraph.api.proto.java.ContractIDOrBuilder>(
getContractID(),
getParentForChildren(),
isClean());
contractID_ = null;
}
return contractIDBuilder_;
}
private com.hederahashgraph.api.proto.java.Timestamp expirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> expirationTimeBuilder_;
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public boolean hasExpirationTime() {
return expirationTimeBuilder_ != null || expirationTime_ != null;
}
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public com.hederahashgraph.api.proto.java.Timestamp getExpirationTime() {
if (expirationTimeBuilder_ == null) {
return expirationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_;
} else {
return expirationTimeBuilder_.getMessage();
}
}
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public Builder setExpirationTime(com.hederahashgraph.api.proto.java.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTime_ = value;
onChanged();
} else {
expirationTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public Builder setExpirationTime(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
onChanged();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public Builder mergeExpirationTime(com.hederahashgraph.api.proto.java.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (expirationTime_ != null) {
expirationTime_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial();
} else {
expirationTime_ = value;
}
onChanged();
} else {
expirationTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public Builder clearExpirationTime() {
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
onChanged();
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
return this;
}
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getExpirationTimeBuilder() {
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() {
if (expirationTimeBuilder_ != null) {
return expirationTimeBuilder_.getMessageOrBuilder();
} else {
return expirationTime_ == null ?
com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_;
}
}
/**
*
* The new expiry of the contract, no earlier than the current expiry (resolves to EXPIRATION_REDUCTION_NOT_ALLOWED otherwise)
*
*
* .proto.Timestamp expirationTime = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getExpirationTimeFieldBuilder() {
if (expirationTimeBuilder_ == null) {
expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getExpirationTime(),
getParentForChildren(),
isClean());
expirationTime_ = null;
}
return expirationTimeBuilder_;
}
private com.hederahashgraph.api.proto.java.Key adminKey_;
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 new key to control updates to the contract
*
*
* .proto.Key adminKey = 3;
*/
public boolean hasAdminKey() {
return adminKeyBuilder_ != null || adminKey_ != null;
}
/**
*
* The new key to control updates to the contract
*
*
* .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 new key to control updates to the contract
*
*
* .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 new key to control updates to the contract
*
*
* .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 new key to control updates to the contract
*
*
* .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 new key to control updates to the contract
*
*
* .proto.Key adminKey = 3;
*/
public Builder clearAdminKey() {
if (adminKeyBuilder_ == null) {
adminKey_ = null;
onChanged();
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
return this;
}
/**
*
* The new key to control updates to the contract
*
*
* .proto.Key adminKey = 3;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() {
onChanged();
return getAdminKeyFieldBuilder().getBuilder();
}
/**
*
* The new key to control updates to the contract
*
*
* .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 new key to control updates to the contract
*
*
* .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 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_;
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .proto.AccountID proxyAccountID = 6;
*/
public boolean hasProxyAccountID() {
return proxyAccountIDBuilder_ != null || proxyAccountID_ != null;
}
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .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();
}
}
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .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;
}
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .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;
}
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .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;
}
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .proto.AccountID proxyAccountID = 6;
*/
public Builder clearProxyAccountID() {
if (proxyAccountIDBuilder_ == null) {
proxyAccountID_ = null;
onChanged();
} else {
proxyAccountID_ = null;
proxyAccountIDBuilder_ = null;
}
return this;
}
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .proto.AccountID proxyAccountID = 6;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getProxyAccountIDBuilder() {
onChanged();
return getProxyAccountIDFieldBuilder().getBuilder();
}
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .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_;
}
}
/**
*
* (NOT YET IMPLEMENTED) The new id of the account to which the contract is proxy staked
*
*
* .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_;
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_;
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public boolean hasAutoRenewPeriod() {
return autoRenewPeriodBuilder_ != null || autoRenewPeriod_ != null;
}
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
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();
}
}
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
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;
}
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
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;
}
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
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;
}
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public Builder clearAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
onChanged();
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
return this;
}
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public com.hederahashgraph.api.proto.java.Duration.Builder getAutoRenewPeriodBuilder() {
onChanged();
return getAutoRenewPeriodFieldBuilder().getBuilder();
}
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
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_;
}
}
/**
*
* (NOT YET IMPLEMENTED) The new interval at which the contract will pay to extend its expiry (by the same interval)
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
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.FileID fileID_;
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 new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
public boolean hasFileID() {
return fileIDBuilder_ != null || fileID_ != null;
}
/**
*
* The new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
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 new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
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 new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
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 new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
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 new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
public Builder clearFileID() {
if (fileIDBuilder_ == null) {
fileID_ = null;
onChanged();
} else {
fileID_ = null;
fileIDBuilder_ = null;
}
return this;
}
/**
*
* The new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
public com.hederahashgraph.api.proto.java.FileID.Builder getFileIDBuilder() {
onChanged();
return getFileIDFieldBuilder().getBuilder();
}
/**
*
* The new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
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 new id of the file asserted to contain the bytecode of the Solidity transaction that created this contract
*
*
* .proto.FileID fileID = 8;
*/
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 java.lang.Object memo_ = "";
/**
*
* The new contract memo, assumed to be Unicode encoded with UTF-8 (at most 100 bytes)
*
*
* string memo = 9;
*/
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 new contract memo, assumed to be Unicode encoded with UTF-8 (at most 100 bytes)
*
*
* string memo = 9;
*/
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 new contract memo, assumed to be Unicode encoded with UTF-8 (at most 100 bytes)
*
*
* string memo = 9;
*/
public Builder setMemo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
return this;
}
/**
*
* The new contract memo, assumed to be Unicode encoded with UTF-8 (at most 100 bytes)
*
*
* string memo = 9;
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
onChanged();
return this;
}
/**
*
* The new contract memo, assumed to be Unicode encoded with UTF-8 (at most 100 bytes)
*
*
* string memo = 9;
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
memo_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.ContractUpdateTransactionBody)
}
// @@protoc_insertion_point(class_scope:proto.ContractUpdateTransactionBody)
private static final com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody();
}
public static com.hederahashgraph.api.proto.java.ContractUpdateTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContractUpdateTransactionBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContractUpdateTransactionBody(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.ContractUpdateTransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy