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

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

There is a newer version: 0.57.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: consensus_create_topic.proto

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * See [ConsensusService.createTopic()](#proto.ConsensusService)
 * 
* * Protobuf type {@code proto.ConsensusCreateTopicTransactionBody} */ public final class ConsensusCreateTopicTransactionBody extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ConsensusCreateTopicTransactionBody) ConsensusCreateTopicTransactionBodyOrBuilder { private static final long serialVersionUID = 0L; // Use ConsensusCreateTopicTransactionBody.newBuilder() to construct. private ConsensusCreateTopicTransactionBody(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConsensusCreateTopicTransactionBody() { memo_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConsensusCreateTopicTransactionBody(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConsensusCreateTopicTransactionBody( 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: { java.lang.String s = input.readStringRequireUtf8(); memo_ = s; break; } case 18: { 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 26: { 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 50: { 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 58: { 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.ConsensusCreateTopic.internal_static_proto_ConsensusCreateTopicTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.ConsensusCreateTopic.internal_static_proto_ConsensusCreateTopicTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody.class, com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody.Builder.class); } public static final int MEMO_FIELD_NUMBER = 1; private volatile java.lang.Object memo_; /** *
   **
   * Short publicly visible memo about the topic. No guarantee of uniqueness.
   * 
* * string memo = 1; * @return The memo. */ @java.lang.Override public java.lang.String getMemo() { java.lang.Object ref = memo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memo_ = s; return s; } } /** *
   **
   * Short publicly visible memo about the topic. No guarantee of uniqueness.
   * 
* * string memo = 1; * @return The bytes for memo. */ @java.lang.Override public com.google.protobuf.ByteString getMemoBytes() { java.lang.Object ref = memo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADMINKEY_FIELD_NUMBER = 2; private com.hederahashgraph.api.proto.java.Key adminKey_; /** *
   **
   * Access control for updateTopic/deleteTopic.
   * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
   * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
   * is disallowed.
   * 
* * .proto.Key adminKey = 2; * @return Whether the adminKey field is set. */ @java.lang.Override public boolean hasAdminKey() { return adminKey_ != null; } /** *
   **
   * Access control for updateTopic/deleteTopic.
   * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
   * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
   * is disallowed.
   * 
* * .proto.Key adminKey = 2; * @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 updateTopic/deleteTopic.
   * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
   * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
   * is disallowed.
   * 
* * .proto.Key adminKey = 2; */ @java.lang.Override public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() { return getAdminKey(); } public static final int SUBMITKEY_FIELD_NUMBER = 3; private com.hederahashgraph.api.proto.java.Key submitKey_; /** *
   **
   * Access control for submitMessage.
   * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
   * 
* * .proto.Key submitKey = 3; * @return Whether the submitKey field is set. */ @java.lang.Override public boolean hasSubmitKey() { return submitKey_ != null; } /** *
   **
   * Access control for submitMessage.
   * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
   * 
* * .proto.Key submitKey = 3; * @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 submitMessage.
   * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
   * 
* * .proto.Key submitKey = 3; */ @java.lang.Override public com.hederahashgraph.api.proto.java.KeyOrBuilder getSubmitKeyOrBuilder() { return getSubmitKey(); } public static final int AUTORENEWPERIOD_FIELD_NUMBER = 6; private com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_; /** *
   **
   * The initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
   * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
   * is supported by HAPI).
   * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
   * Required.
   * 
* * .proto.Duration autoRenewPeriod = 6; * @return Whether the autoRenewPeriod field is set. */ @java.lang.Override public boolean hasAutoRenewPeriod() { return autoRenewPeriod_ != null; } /** *
   **
   * The initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
   * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
   * is supported by HAPI).
   * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
   * Required.
   * 
* * .proto.Duration autoRenewPeriod = 6; * @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 initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
   * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
   * is supported by HAPI).
   * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
   * Required.
   * 
* * .proto.Duration autoRenewPeriod = 6; */ @java.lang.Override public com.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() { return getAutoRenewPeriod(); } public static final int AUTORENEWACCOUNT_FIELD_NUMBER = 7; 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 and if any extension
   * is possible with the account's funds).
   * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
   * 
* * .proto.AccountID autoRenewAccount = 7; * @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 and if any extension
   * is possible with the account's funds).
   * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
   * 
* * .proto.AccountID autoRenewAccount = 7; * @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 and if any extension
   * is possible with the account's funds).
   * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
   * 
* * .proto.AccountID autoRenewAccount = 7; */ @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 (!getMemoBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, memo_); } if (adminKey_ != null) { output.writeMessage(2, getAdminKey()); } if (submitKey_ != null) { output.writeMessage(3, getSubmitKey()); } if (autoRenewPeriod_ != null) { output.writeMessage(6, getAutoRenewPeriod()); } if (autoRenewAccount_ != null) { output.writeMessage(7, getAutoRenewAccount()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMemoBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, memo_); } if (adminKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAdminKey()); } if (submitKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSubmitKey()); } if (autoRenewPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getAutoRenewPeriod()); } if (autoRenewAccount_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, 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.ConsensusCreateTopicTransactionBody)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody other = (com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody) obj; if (!getMemo() .equals(other.getMemo())) 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(); hash = (37 * hash) + MEMO_FIELD_NUMBER; hash = (53 * hash) + getMemo().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.ConsensusCreateTopicTransactionBody parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody 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.ConsensusCreateTopicTransactionBody parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody 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.ConsensusCreateTopicTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody 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.ConsensusCreateTopicTransactionBody parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody 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.ConsensusCreateTopicTransactionBody parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody 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.ConsensusCreateTopicTransactionBody 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.ConsensusCreateTopicTransactionBody 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.ConsensusCreateTopicTransactionBody 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; } /** *
   **
   * See [ConsensusService.createTopic()](#proto.ConsensusService)
   * 
* * Protobuf type {@code proto.ConsensusCreateTopicTransactionBody} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ConsensusCreateTopicTransactionBody) com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBodyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.ConsensusCreateTopic.internal_static_proto_ConsensusCreateTopicTransactionBody_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.ConsensusCreateTopic.internal_static_proto_ConsensusCreateTopicTransactionBody_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody.class, com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody.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(); memo_ = ""; 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.ConsensusCreateTopic.internal_static_proto_ConsensusCreateTopicTransactionBody_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody build() { com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody buildPartial() { com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody result = new com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody(this); result.memo_ = memo_; 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.ConsensusCreateTopicTransactionBody) { return mergeFrom((com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody other) { if (other == com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody.getDefaultInstance()) return this; if (!other.getMemo().isEmpty()) { memo_ = other.memo_; onChanged(); } 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.ConsensusCreateTopicTransactionBody parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object memo_ = ""; /** *
     **
     * Short publicly visible memo about the topic. No guarantee of uniqueness.
     * 
* * string memo = 1; * @return The memo. */ public java.lang.String getMemo() { java.lang.Object ref = memo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); memo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * Short publicly visible memo about the topic. No guarantee of uniqueness.
     * 
* * string memo = 1; * @return The bytes for memo. */ public com.google.protobuf.ByteString getMemoBytes() { java.lang.Object ref = memo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * Short publicly visible memo about the topic. No guarantee of uniqueness.
     * 
* * string memo = 1; * @param value The memo to set. * @return This builder for chaining. */ public Builder setMemo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } memo_ = value; onChanged(); return this; } /** *
     **
     * Short publicly visible memo about the topic. No guarantee of uniqueness.
     * 
* * string memo = 1; * @return This builder for chaining. */ public Builder clearMemo() { memo_ = getDefaultInstance().getMemo(); onChanged(); return this; } /** *
     **
     * Short publicly visible memo about the topic. No guarantee of uniqueness.
     * 
* * string memo = 1; * @param value The bytes for memo to set. * @return This builder for chaining. */ public Builder setMemoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); memo_ = value; onChanged(); return this; } private 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 updateTopic/deleteTopic.
     * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
     * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
     * is disallowed.
     * 
* * .proto.Key adminKey = 2; * @return Whether the adminKey field is set. */ public boolean hasAdminKey() { return adminKeyBuilder_ != null || adminKey_ != null; } /** *
     **
     * Access control for updateTopic/deleteTopic.
     * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
     * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
     * is disallowed.
     * 
* * .proto.Key adminKey = 2; * @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 updateTopic/deleteTopic.
     * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
     * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
     * is disallowed.
     * 
* * .proto.Key adminKey = 2; */ 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 updateTopic/deleteTopic.
     * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
     * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
     * is disallowed.
     * 
* * .proto.Key adminKey = 2; */ 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 updateTopic/deleteTopic.
     * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
     * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
     * is disallowed.
     * 
* * .proto.Key adminKey = 2; */ 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 updateTopic/deleteTopic.
     * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
     * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
     * is disallowed.
     * 
* * .proto.Key adminKey = 2; */ public Builder clearAdminKey() { if (adminKeyBuilder_ == null) { adminKey_ = null; onChanged(); } else { adminKey_ = null; adminKeyBuilder_ = null; } return this; } /** *
     **
     * Access control for updateTopic/deleteTopic.
     * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
     * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
     * is disallowed.
     * 
* * .proto.Key adminKey = 2; */ public com.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() { onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
     **
     * Access control for updateTopic/deleteTopic.
     * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
     * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
     * is disallowed.
     * 
* * .proto.Key adminKey = 2; */ 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 updateTopic/deleteTopic.
     * Anyone can increase the topic's expirationTime via ConsensusService.updateTopic(), regardless of the adminKey.
     * If no adminKey is specified, updateTopic may only be used to extend the topic's expirationTime, and deleteTopic
     * is disallowed.
     * 
* * .proto.Key adminKey = 2; */ 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 submitMessage.
     * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
     * 
* * .proto.Key submitKey = 3; * @return Whether the submitKey field is set. */ public boolean hasSubmitKey() { return submitKeyBuilder_ != null || submitKey_ != null; } /** *
     **
     * Access control for submitMessage.
     * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
     * 
* * .proto.Key submitKey = 3; * @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 submitMessage.
     * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
     * 
* * .proto.Key submitKey = 3; */ 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 submitMessage.
     * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
     * 
* * .proto.Key submitKey = 3; */ 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 submitMessage.
     * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
     * 
* * .proto.Key submitKey = 3; */ 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 submitMessage.
     * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
     * 
* * .proto.Key submitKey = 3; */ public Builder clearSubmitKey() { if (submitKeyBuilder_ == null) { submitKey_ = null; onChanged(); } else { submitKey_ = null; submitKeyBuilder_ = null; } return this; } /** *
     **
     * Access control for submitMessage.
     * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
     * 
* * .proto.Key submitKey = 3; */ public com.hederahashgraph.api.proto.java.Key.Builder getSubmitKeyBuilder() { onChanged(); return getSubmitKeyFieldBuilder().getBuilder(); } /** *
     **
     * Access control for submitMessage.
     * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
     * 
* * .proto.Key submitKey = 3; */ 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 submitMessage.
     * If unspecified, no access control is performed on ConsensusService.submitMessage (all submissions are allowed).
     * 
* * .proto.Key submitKey = 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> 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 initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
     * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
     * is supported by HAPI).
     * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
     * Required.
     * 
* * .proto.Duration autoRenewPeriod = 6; * @return Whether the autoRenewPeriod field is set. */ public boolean hasAutoRenewPeriod() { return autoRenewPeriodBuilder_ != null || autoRenewPeriod_ != null; } /** *
     **
     * The initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
     * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
     * is supported by HAPI).
     * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
     * Required.
     * 
* * .proto.Duration autoRenewPeriod = 6; * @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 initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
     * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
     * is supported by HAPI).
     * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
     * Required.
     * 
* * .proto.Duration autoRenewPeriod = 6; */ 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 initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
     * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
     * is supported by HAPI).
     * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
     * Required.
     * 
* * .proto.Duration autoRenewPeriod = 6; */ 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 initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
     * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
     * is supported by HAPI).
     * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
     * Required.
     * 
* * .proto.Duration autoRenewPeriod = 6; */ 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 initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
     * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
     * is supported by HAPI).
     * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
     * Required.
     * 
* * .proto.Duration autoRenewPeriod = 6; */ public Builder clearAutoRenewPeriod() { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = null; onChanged(); } else { autoRenewPeriod_ = null; autoRenewPeriodBuilder_ = null; } return this; } /** *
     **
     * The initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
     * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
     * is supported by HAPI).
     * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
     * Required.
     * 
* * .proto.Duration autoRenewPeriod = 6; */ public com.hederahashgraph.api.proto.java.Duration.Builder getAutoRenewPeriodBuilder() { onChanged(); return getAutoRenewPeriodFieldBuilder().getBuilder(); } /** *
     **
     * The initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
     * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
     * is supported by HAPI).
     * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
     * Required.
     * 
* * .proto.Duration autoRenewPeriod = 6; */ 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 initial lifetime of the topic and the amount of time to attempt to extend the topic's lifetime by
     * automatically at the topic's expirationTime, if the autoRenewAccount is configured (once autoRenew functionality
     * is supported by HAPI).
     * Limited to MIN_AUTORENEW_PERIOD and MAX_AUTORENEW_PERIOD value by server-side configuration.
     * Required.
     * 
* * .proto.Duration autoRenewPeriod = 6; */ 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 and if any extension
     * is possible with the account's funds).
     * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
     * 
* * .proto.AccountID autoRenewAccount = 7; * @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 and if any extension
     * is possible with the account's funds).
     * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
     * 
* * .proto.AccountID autoRenewAccount = 7; * @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 and if any extension
     * is possible with the account's funds).
     * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
     * 
* * .proto.AccountID autoRenewAccount = 7; */ 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 and if any extension
     * is possible with the account's funds).
     * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
     * 
* * .proto.AccountID autoRenewAccount = 7; */ 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 and if any extension
     * is possible with the account's funds).
     * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
     * 
* * .proto.AccountID autoRenewAccount = 7; */ 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 and if any extension
     * is possible with the account's funds).
     * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
     * 
* * .proto.AccountID autoRenewAccount = 7; */ 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 and if any extension
     * is possible with the account's funds).
     * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
     * 
* * .proto.AccountID autoRenewAccount = 7; */ 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 and if any extension
     * is possible with the account's funds).
     * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
     * 
* * .proto.AccountID autoRenewAccount = 7; */ 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 and if any extension
     * is possible with the account's funds).
     * If specified, there must be an adminKey and the autoRenewAccount must sign this transaction.
     * 
* * .proto.AccountID autoRenewAccount = 7; */ 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.ConsensusCreateTopicTransactionBody) } // @@protoc_insertion_point(class_scope:proto.ConsensusCreateTopicTransactionBody) private static final com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody(); } public static com.hederahashgraph.api.proto.java.ConsensusCreateTopicTransactionBody getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConsensusCreateTopicTransactionBody parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConsensusCreateTopicTransactionBody(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.ConsensusCreateTopicTransactionBody getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy