com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: consensus_update_topic.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* All fields left null will not be updated.
* See [ConsensusService.updateTopic()](#proto.ConsensusService)
*
*
* Protobuf type {@code proto.ConsensusUpdateTopicTransactionBody}
*/
public final class ConsensusUpdateTopicTransactionBody extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.ConsensusUpdateTopicTransactionBody)
ConsensusUpdateTopicTransactionBodyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConsensusUpdateTopicTransactionBody.newBuilder() to construct.
private ConsensusUpdateTopicTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConsensusUpdateTopicTransactionBody() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConsensusUpdateTopicTransactionBody();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConsensusUpdateTopicTransactionBody(
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.TopicID.Builder subBuilder = null;
if (topicID_ != null) {
subBuilder = topicID_.toBuilder();
}
topicID_ = input.readMessage(com.hederahashgraph.api.proto.java.TopicID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(topicID_);
topicID_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.google.protobuf.StringValue.Builder subBuilder = null;
if (memo_ != null) {
subBuilder = memo_.toBuilder();
}
memo_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(memo_);
memo_ = subBuilder.buildPartial();
}
break;
}
case 34: {
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 50: {
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 58: {
com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null;
if (submitKey_ != null) {
subBuilder = submitKey_.toBuilder();
}
submitKey_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(submitKey_);
submitKey_ = 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: {
com.hederahashgraph.api.proto.java.AccountID.Builder subBuilder = null;
if (autoRenewAccount_ != null) {
subBuilder = autoRenewAccount_.toBuilder();
}
autoRenewAccount_ = input.readMessage(com.hederahashgraph.api.proto.java.AccountID.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(autoRenewAccount_);
autoRenewAccount_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ConsensusUpdateTopic.internal_static_proto_ConsensusUpdateTopicTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ConsensusUpdateTopic.internal_static_proto_ConsensusUpdateTopicTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody.class, com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody.Builder.class);
}
public static final int TOPICID_FIELD_NUMBER = 1;
private com.hederahashgraph.api.proto.java.TopicID topicID_;
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
* @return Whether the topicID field is set.
*/
@java.lang.Override
public boolean hasTopicID() {
return topicID_ != null;
}
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
* @return The topicID.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TopicID getTopicID() {
return topicID_ == null ? com.hederahashgraph.api.proto.java.TopicID.getDefaultInstance() : topicID_;
}
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TopicIDOrBuilder getTopicIDOrBuilder() {
return getTopicID();
}
public static final int MEMO_FIELD_NUMBER = 2;
private com.google.protobuf.StringValue memo_;
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
* @return Whether the memo field is set.
*/
@java.lang.Override
public boolean hasMemo() {
return memo_ != null;
}
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
* @return The memo.
*/
@java.lang.Override
public com.google.protobuf.StringValue getMemo() {
return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_;
}
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getMemoOrBuilder() {
return getMemo();
}
public static final int EXPIRATIONTIME_FIELD_NUMBER = 4;
private com.hederahashgraph.api.proto.java.Timestamp expirationTime_;
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
* @return Whether the expirationTime field is set.
*/
@java.lang.Override
public boolean hasExpirationTime() {
return expirationTime_ != null;
}
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
* @return The expirationTime.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Timestamp getExpirationTime() {
return expirationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_;
}
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() {
return getExpirationTime();
}
public static final int ADMINKEY_FIELD_NUMBER = 6;
private com.hederahashgraph.api.proto.java.Key adminKey_;
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
* @return Whether the adminKey field is set.
*/
@java.lang.Override
public boolean hasAdminKey() {
return adminKey_ != null;
}
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
* @return The adminKey.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Key getAdminKey() {
return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_;
}
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() {
return getAdminKey();
}
public static final int SUBMITKEY_FIELD_NUMBER = 7;
private com.hederahashgraph.api.proto.java.Key submitKey_;
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
* @return Whether the submitKey field is set.
*/
@java.lang.Override
public boolean hasSubmitKey() {
return submitKey_ != null;
}
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
* @return The submitKey.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Key getSubmitKey() {
return submitKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : submitKey_;
}
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.KeyOrBuilder getSubmitKeyOrBuilder() {
return getSubmitKey();
}
public static final int AUTORENEWPERIOD_FIELD_NUMBER = 8;
private com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_;
/**
*
* The amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .proto.Duration autoRenewPeriod = 8;
* @return Whether the autoRenewPeriod field is set.
*/
@java.lang.Override
public boolean hasAutoRenewPeriod() {
return autoRenewPeriod_ != null;
}
/**
*
* The amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .proto.Duration autoRenewPeriod = 8;
* @return The autoRenewPeriod.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() {
return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : autoRenewPeriod_;
}
/**
*
* The amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
return getAutoRenewPeriod();
}
public static final int AUTORENEWACCOUNT_FIELD_NUMBER = 9;
private com.hederahashgraph.api.proto.java.AccountID autoRenewAccount_;
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
* @return Whether the autoRenewAccount field is set.
*/
@java.lang.Override
public boolean hasAutoRenewAccount() {
return autoRenewAccount_ != null;
}
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
* @return The autoRenewAccount.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountID getAutoRenewAccount() {
return autoRenewAccount_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : autoRenewAccount_;
}
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountOrBuilder() {
return getAutoRenewAccount();
}
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 (topicID_ != null) {
output.writeMessage(1, getTopicID());
}
if (memo_ != null) {
output.writeMessage(2, getMemo());
}
if (expirationTime_ != null) {
output.writeMessage(4, getExpirationTime());
}
if (adminKey_ != null) {
output.writeMessage(6, getAdminKey());
}
if (submitKey_ != null) {
output.writeMessage(7, getSubmitKey());
}
if (autoRenewPeriod_ != null) {
output.writeMessage(8, getAutoRenewPeriod());
}
if (autoRenewAccount_ != null) {
output.writeMessage(9, getAutoRenewAccount());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (topicID_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTopicID());
}
if (memo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMemo());
}
if (expirationTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getExpirationTime());
}
if (adminKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getAdminKey());
}
if (submitKey_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getSubmitKey());
}
if (autoRenewPeriod_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getAutoRenewPeriod());
}
if (autoRenewAccount_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getAutoRenewAccount());
}
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.ConsensusUpdateTopicTransactionBody)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody other = (com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody) obj;
if (hasTopicID() != other.hasTopicID()) return false;
if (hasTopicID()) {
if (!getTopicID()
.equals(other.getTopicID())) return false;
}
if (hasMemo() != other.hasMemo()) return false;
if (hasMemo()) {
if (!getMemo()
.equals(other.getMemo())) 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 (hasSubmitKey() != other.hasSubmitKey()) return false;
if (hasSubmitKey()) {
if (!getSubmitKey()
.equals(other.getSubmitKey())) return false;
}
if (hasAutoRenewPeriod() != other.hasAutoRenewPeriod()) return false;
if (hasAutoRenewPeriod()) {
if (!getAutoRenewPeriod()
.equals(other.getAutoRenewPeriod())) return false;
}
if (hasAutoRenewAccount() != other.hasAutoRenewAccount()) return false;
if (hasAutoRenewAccount()) {
if (!getAutoRenewAccount()
.equals(other.getAutoRenewAccount())) 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 (hasTopicID()) {
hash = (37 * hash) + TOPICID_FIELD_NUMBER;
hash = (53 * hash) + getTopicID().hashCode();
}
if (hasMemo()) {
hash = (37 * hash) + MEMO_FIELD_NUMBER;
hash = (53 * hash) + getMemo().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 (hasSubmitKey()) {
hash = (37 * hash) + SUBMITKEY_FIELD_NUMBER;
hash = (53 * hash) + getSubmitKey().hashCode();
}
if (hasAutoRenewPeriod()) {
hash = (37 * hash) + AUTORENEWPERIOD_FIELD_NUMBER;
hash = (53 * hash) + getAutoRenewPeriod().hashCode();
}
if (hasAutoRenewAccount()) {
hash = (37 * hash) + AUTORENEWACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAutoRenewAccount().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody 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.ConsensusUpdateTopicTransactionBody parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody 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.ConsensusUpdateTopicTransactionBody parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody 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.ConsensusUpdateTopicTransactionBody parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody 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.ConsensusUpdateTopicTransactionBody parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody 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.ConsensusUpdateTopicTransactionBody 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.ConsensusUpdateTopicTransactionBody 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.ConsensusUpdateTopicTransactionBody 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;
}
/**
*
**
* All fields left null will not be updated.
* See [ConsensusService.updateTopic()](#proto.ConsensusService)
*
*
* Protobuf type {@code proto.ConsensusUpdateTopicTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.ConsensusUpdateTopicTransactionBody)
com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBodyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ConsensusUpdateTopic.internal_static_proto_ConsensusUpdateTopicTransactionBody_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ConsensusUpdateTopic.internal_static_proto_ConsensusUpdateTopicTransactionBody_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody.class, com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody.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 (topicIDBuilder_ == null) {
topicID_ = null;
} else {
topicID_ = null;
topicIDBuilder_ = null;
}
if (memoBuilder_ == null) {
memo_ = null;
} else {
memo_ = null;
memoBuilder_ = null;
}
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
if (adminKeyBuilder_ == null) {
adminKey_ = null;
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
if (submitKeyBuilder_ == null) {
submitKey_ = null;
} else {
submitKey_ = null;
submitKeyBuilder_ = null;
}
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
if (autoRenewAccountBuilder_ == null) {
autoRenewAccount_ = null;
} else {
autoRenewAccount_ = null;
autoRenewAccountBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ConsensusUpdateTopic.internal_static_proto_ConsensusUpdateTopicTransactionBody_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody build() {
com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody buildPartial() {
com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody result = new com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody(this);
if (topicIDBuilder_ == null) {
result.topicID_ = topicID_;
} else {
result.topicID_ = topicIDBuilder_.build();
}
if (memoBuilder_ == null) {
result.memo_ = memo_;
} else {
result.memo_ = memoBuilder_.build();
}
if (expirationTimeBuilder_ == null) {
result.expirationTime_ = expirationTime_;
} else {
result.expirationTime_ = expirationTimeBuilder_.build();
}
if (adminKeyBuilder_ == null) {
result.adminKey_ = adminKey_;
} else {
result.adminKey_ = adminKeyBuilder_.build();
}
if (submitKeyBuilder_ == null) {
result.submitKey_ = submitKey_;
} else {
result.submitKey_ = submitKeyBuilder_.build();
}
if (autoRenewPeriodBuilder_ == null) {
result.autoRenewPeriod_ = autoRenewPeriod_;
} else {
result.autoRenewPeriod_ = autoRenewPeriodBuilder_.build();
}
if (autoRenewAccountBuilder_ == null) {
result.autoRenewAccount_ = autoRenewAccount_;
} else {
result.autoRenewAccount_ = autoRenewAccountBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody) {
return mergeFrom((com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody other) {
if (other == com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody.getDefaultInstance()) return this;
if (other.hasTopicID()) {
mergeTopicID(other.getTopicID());
}
if (other.hasMemo()) {
mergeMemo(other.getMemo());
}
if (other.hasExpirationTime()) {
mergeExpirationTime(other.getExpirationTime());
}
if (other.hasAdminKey()) {
mergeAdminKey(other.getAdminKey());
}
if (other.hasSubmitKey()) {
mergeSubmitKey(other.getSubmitKey());
}
if (other.hasAutoRenewPeriod()) {
mergeAutoRenewPeriod(other.getAutoRenewPeriod());
}
if (other.hasAutoRenewAccount()) {
mergeAutoRenewAccount(other.getAutoRenewAccount());
}
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.ConsensusUpdateTopicTransactionBody parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.hederahashgraph.api.proto.java.TopicID topicID_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TopicID, com.hederahashgraph.api.proto.java.TopicID.Builder, com.hederahashgraph.api.proto.java.TopicIDOrBuilder> topicIDBuilder_;
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
* @return Whether the topicID field is set.
*/
public boolean hasTopicID() {
return topicIDBuilder_ != null || topicID_ != null;
}
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
* @return The topicID.
*/
public com.hederahashgraph.api.proto.java.TopicID getTopicID() {
if (topicIDBuilder_ == null) {
return topicID_ == null ? com.hederahashgraph.api.proto.java.TopicID.getDefaultInstance() : topicID_;
} else {
return topicIDBuilder_.getMessage();
}
}
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
*/
public Builder setTopicID(com.hederahashgraph.api.proto.java.TopicID value) {
if (topicIDBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
topicID_ = value;
onChanged();
} else {
topicIDBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
*/
public Builder setTopicID(
com.hederahashgraph.api.proto.java.TopicID.Builder builderForValue) {
if (topicIDBuilder_ == null) {
topicID_ = builderForValue.build();
onChanged();
} else {
topicIDBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
*/
public Builder mergeTopicID(com.hederahashgraph.api.proto.java.TopicID value) {
if (topicIDBuilder_ == null) {
if (topicID_ != null) {
topicID_ =
com.hederahashgraph.api.proto.java.TopicID.newBuilder(topicID_).mergeFrom(value).buildPartial();
} else {
topicID_ = value;
}
onChanged();
} else {
topicIDBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
*/
public Builder clearTopicID() {
if (topicIDBuilder_ == null) {
topicID_ = null;
onChanged();
} else {
topicID_ = null;
topicIDBuilder_ = null;
}
return this;
}
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
*/
public com.hederahashgraph.api.proto.java.TopicID.Builder getTopicIDBuilder() {
onChanged();
return getTopicIDFieldBuilder().getBuilder();
}
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
*/
public com.hederahashgraph.api.proto.java.TopicIDOrBuilder getTopicIDOrBuilder() {
if (topicIDBuilder_ != null) {
return topicIDBuilder_.getMessageOrBuilder();
} else {
return topicID_ == null ?
com.hederahashgraph.api.proto.java.TopicID.getDefaultInstance() : topicID_;
}
}
/**
*
**
* UNDOCUMENTED
*
*
* .proto.TopicID topicID = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TopicID, com.hederahashgraph.api.proto.java.TopicID.Builder, com.hederahashgraph.api.proto.java.TopicIDOrBuilder>
getTopicIDFieldBuilder() {
if (topicIDBuilder_ == null) {
topicIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.TopicID, com.hederahashgraph.api.proto.java.TopicID.Builder, com.hederahashgraph.api.proto.java.TopicIDOrBuilder>(
getTopicID(),
getParentForChildren(),
isClean());
topicID_ = null;
}
return topicIDBuilder_;
}
private com.google.protobuf.StringValue memo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> memoBuilder_;
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
* @return Whether the memo field is set.
*/
public boolean hasMemo() {
return memoBuilder_ != null || memo_ != null;
}
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
* @return The memo.
*/
public com.google.protobuf.StringValue getMemo() {
if (memoBuilder_ == null) {
return memo_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : memo_;
} else {
return memoBuilder_.getMessage();
}
}
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
*/
public Builder setMemo(com.google.protobuf.StringValue value) {
if (memoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
} else {
memoBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
*/
public Builder setMemo(
com.google.protobuf.StringValue.Builder builderForValue) {
if (memoBuilder_ == null) {
memo_ = builderForValue.build();
onChanged();
} else {
memoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
*/
public Builder mergeMemo(com.google.protobuf.StringValue value) {
if (memoBuilder_ == null) {
if (memo_ != null) {
memo_ =
com.google.protobuf.StringValue.newBuilder(memo_).mergeFrom(value).buildPartial();
} else {
memo_ = value;
}
onChanged();
} else {
memoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
*/
public Builder clearMemo() {
if (memoBuilder_ == null) {
memo_ = null;
onChanged();
} else {
memo_ = null;
memoBuilder_ = null;
}
return this;
}
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
*/
public com.google.protobuf.StringValue.Builder getMemoBuilder() {
onChanged();
return getMemoFieldBuilder().getBuilder();
}
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
*/
public com.google.protobuf.StringValueOrBuilder getMemoOrBuilder() {
if (memoBuilder_ != null) {
return memoBuilder_.getMessageOrBuilder();
} else {
return memo_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : memo_;
}
}
/**
*
**
* If set, the new memo to be associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* .google.protobuf.StringValue memo = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getMemoFieldBuilder() {
if (memoBuilder_ == null) {
memoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getMemo(),
getParentForChildren(),
isClean());
memo_ = null;
}
return memoBuilder_;
}
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_;
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
* @return Whether the expirationTime field is set.
*/
public boolean hasExpirationTime() {
return expirationTimeBuilder_ != null || expirationTime_ != null;
}
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
* @return The expirationTime.
*/
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();
}
}
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
*/
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;
}
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
*/
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;
}
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
*/
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;
}
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
*/
public Builder clearExpirationTime() {
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
onChanged();
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
return this;
}
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getExpirationTimeBuilder() {
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
*/
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_;
}
}
/**
*
**
* Effective consensus timestamp at (and after) which all consensus transactions and queries will fail.
* The expirationTime may be no longer than MAX_AUTORENEW_PERIOD (8000001 seconds) from the consensus timestamp of
* this transaction.
* On topics with no adminKey, extending the expirationTime is the only updateTopic option allowed on the topic.
* If unspecified, no change.
*
*
* .proto.Timestamp expirationTime = 4;
*/
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_;
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
* @return Whether the adminKey field is set.
*/
public boolean hasAdminKey() {
return adminKeyBuilder_ != null || adminKey_ != null;
}
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
* @return The adminKey.
*/
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();
}
}
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
*/
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;
}
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
*/
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;
}
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
*/
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;
}
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
*/
public Builder clearAdminKey() {
if (adminKeyBuilder_ == null) {
adminKey_ = null;
onChanged();
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
return this;
}
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() {
onChanged();
return getAdminKeyFieldBuilder().getBuilder();
}
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
*/
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_;
}
}
/**
*
**
* Access control for update/delete of the topic.
* If unspecified, no change.
* If empty keyList - the adminKey is cleared.
*
*
* .proto.Key adminKey = 6;
*/
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.Key submitKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> submitKeyBuilder_;
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
* @return Whether the submitKey field is set.
*/
public boolean hasSubmitKey() {
return submitKeyBuilder_ != null || submitKey_ != null;
}
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
* @return The submitKey.
*/
public com.hederahashgraph.api.proto.java.Key getSubmitKey() {
if (submitKeyBuilder_ == null) {
return submitKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : submitKey_;
} else {
return submitKeyBuilder_.getMessage();
}
}
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
*/
public Builder setSubmitKey(com.hederahashgraph.api.proto.java.Key value) {
if (submitKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
submitKey_ = value;
onChanged();
} else {
submitKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
*/
public Builder setSubmitKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (submitKeyBuilder_ == null) {
submitKey_ = builderForValue.build();
onChanged();
} else {
submitKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
*/
public Builder mergeSubmitKey(com.hederahashgraph.api.proto.java.Key value) {
if (submitKeyBuilder_ == null) {
if (submitKey_ != null) {
submitKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(submitKey_).mergeFrom(value).buildPartial();
} else {
submitKey_ = value;
}
onChanged();
} else {
submitKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
*/
public Builder clearSubmitKey() {
if (submitKeyBuilder_ == null) {
submitKey_ = null;
onChanged();
} else {
submitKey_ = null;
submitKeyBuilder_ = null;
}
return this;
}
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getSubmitKeyBuilder() {
onChanged();
return getSubmitKeyFieldBuilder().getBuilder();
}
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getSubmitKeyOrBuilder() {
if (submitKeyBuilder_ != null) {
return submitKeyBuilder_.getMessageOrBuilder();
} else {
return submitKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : submitKey_;
}
}
/**
*
**
* Access control for ConsensusService.submitMessage.
* If unspecified, no change.
* If empty keyList - the submitKey is cleared.
*
*
* .proto.Key submitKey = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getSubmitKeyFieldBuilder() {
if (submitKeyBuilder_ == null) {
submitKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getSubmitKey(),
getParentForChildren(),
isClean());
submitKey_ = null;
}
return submitKeyBuilder_;
}
private com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder> autoRenewPeriodBuilder_;
/**
*
* The amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .proto.Duration autoRenewPeriod = 8;
* @return Whether the autoRenewPeriod field is set.
*/
public boolean hasAutoRenewPeriod() {
return autoRenewPeriodBuilder_ != null || autoRenewPeriod_ != null;
}
/**
*
* The amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .proto.Duration autoRenewPeriod = 8;
* @return The autoRenewPeriod.
*/
public com.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : autoRenewPeriod_;
} else {
return autoRenewPeriodBuilder_.getMessage();
}
}
/**
*
* The amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .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 amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .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 amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .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 amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
public Builder clearAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
onChanged();
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
return this;
}
/**
*
* The amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .proto.Duration autoRenewPeriod = 8;
*/
public com.hederahashgraph.api.proto.java.Duration.Builder getAutoRenewPeriodBuilder() {
onChanged();
return getAutoRenewPeriodFieldBuilder().getBuilder();
}
/**
*
* The amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .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 amount of time to extend the topic's lifetime automatically at expirationTime if the autoRenewAccount is
* configured and has funds (once autoRenew functionality is supported by HAPI).
* Limited to between MIN_AUTORENEW_PERIOD (6999999 seconds) and MAX_AUTORENEW_PERIOD (8000001 seconds) by
* servers-side configuration (which may change).
* If unspecified, no change.
*
*
* .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.hederahashgraph.api.proto.java.AccountID autoRenewAccount_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> autoRenewAccountBuilder_;
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
* @return Whether the autoRenewAccount field is set.
*/
public boolean hasAutoRenewAccount() {
return autoRenewAccountBuilder_ != null || autoRenewAccount_ != null;
}
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
* @return The autoRenewAccount.
*/
public com.hederahashgraph.api.proto.java.AccountID getAutoRenewAccount() {
if (autoRenewAccountBuilder_ == null) {
return autoRenewAccount_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : autoRenewAccount_;
} else {
return autoRenewAccountBuilder_.getMessage();
}
}
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
*/
public Builder setAutoRenewAccount(com.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewAccount_ = value;
onChanged();
} else {
autoRenewAccountBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
*/
public Builder setAutoRenewAccount(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccount_ = builderForValue.build();
onChanged();
} else {
autoRenewAccountBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
*/
public Builder mergeAutoRenewAccount(com.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountBuilder_ == null) {
if (autoRenewAccount_ != null) {
autoRenewAccount_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(autoRenewAccount_).mergeFrom(value).buildPartial();
} else {
autoRenewAccount_ = value;
}
onChanged();
} else {
autoRenewAccountBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
*/
public Builder clearAutoRenewAccount() {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccount_ = null;
onChanged();
} else {
autoRenewAccount_ = null;
autoRenewAccountBuilder_ = null;
}
return this;
}
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getAutoRenewAccountBuilder() {
onChanged();
return getAutoRenewAccountFieldBuilder().getBuilder();
}
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountOrBuilder() {
if (autoRenewAccountBuilder_ != null) {
return autoRenewAccountBuilder_.getMessageOrBuilder();
} else {
return autoRenewAccount_ == null ?
com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : autoRenewAccount_;
}
}
/**
*
**
* Optional account to be used at the topic's expirationTime to extend the life of the topic.
* Once autoRenew functionality is supported by HAPI, the topic lifetime will be extended up to a maximum of the
* autoRenewPeriod or however long the topic can be extended using all funds on the account (whichever is the
* smaller duration/amount).
* If specified as the default value (0.0.0), the autoRenewAccount will be removed.
* If unspecified, no change.
*
*
* .proto.AccountID autoRenewAccount = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getAutoRenewAccountFieldBuilder() {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getAutoRenewAccount(),
getParentForChildren(),
isClean());
autoRenewAccount_ = null;
}
return autoRenewAccountBuilder_;
}
@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.ConsensusUpdateTopicTransactionBody)
}
// @@protoc_insertion_point(class_scope:proto.ConsensusUpdateTopicTransactionBody)
private static final com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody();
}
public static com.hederahashgraph.api.proto.java.ConsensusUpdateTopicTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConsensusUpdateTopicTransactionBody parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConsensusUpdateTopicTransactionBody(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.ConsensusUpdateTopicTransactionBody getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy