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

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

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

package com.hederahashgraph.api.proto.java;

/**
 * 
 **
 * Current state of a topic.
 * 
* * Protobuf type {@code proto.ConsensusTopicInfo} */ public final class ConsensusTopicInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.ConsensusTopicInfo) ConsensusTopicInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ConsensusTopicInfo.newBuilder() to construct. private ConsensusTopicInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConsensusTopicInfo() { memo_ = ""; runningHash_ = com.google.protobuf.ByteString.EMPTY; ledgerId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConsensusTopicInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConsensusTopicInfo( 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: { runningHash_ = input.readBytes(); break; } case 24: { sequenceNumber_ = input.readUInt64(); 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 42: { com.hederahashgraph.api.proto.java.Key.Builder subBuilder = null; if (adminKey_ != null) { subBuilder = adminKey_.toBuilder(); } adminKey_ = input.readMessage(com.hederahashgraph.api.proto.java.Key.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(adminKey_); adminKey_ = subBuilder.buildPartial(); } break; } case 50: { com.hederahashgraph.api.proto.java.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 58: { com.hederahashgraph.api.proto.java.Duration.Builder subBuilder = null; if (autoRenewPeriod_ != null) { subBuilder = autoRenewPeriod_.toBuilder(); } autoRenewPeriod_ = input.readMessage(com.hederahashgraph.api.proto.java.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(autoRenewPeriod_); autoRenewPeriod_ = subBuilder.buildPartial(); } break; } case 66: { com.hederahashgraph.api.proto.java.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; } case 74: { ledgerId_ = input.readBytes(); 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.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.ConsensusTopicInfo.class, com.hederahashgraph.api.proto.java.ConsensusTopicInfo.Builder.class); } public static final int MEMO_FIELD_NUMBER = 1; private volatile java.lang.Object memo_; /** *
   **
   * The memo associated with the topic (UTF-8 encoding max 100 bytes)
   * 
* * 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; } } /** *
   **
   * The memo associated with the topic (UTF-8 encoding max 100 bytes)
   * 
* * 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 RUNNINGHASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString runningHash_; /** *
   **
   * When a topic is created, its running hash is initialized to 48 bytes of binary zeros.
   * For each submitted message, the topic's running hash is then updated to the output
   * of a particular SHA-384 digest whose input data include the previous running hash.
   * 
   * See the TransactionReceipt.proto documentation for an exact description of the
   * data included in the SHA-384 digest used for the update.
   * 
* * bytes runningHash = 2; * @return The runningHash. */ @java.lang.Override public com.google.protobuf.ByteString getRunningHash() { return runningHash_; } public static final int SEQUENCENUMBER_FIELD_NUMBER = 3; private long sequenceNumber_; /** *
   **
   * Sequence number (starting at 1 for the first submitMessage) of messages on the topic.
   * 
* * uint64 sequenceNumber = 3; * @return The sequenceNumber. */ @java.lang.Override public long getSequenceNumber() { return sequenceNumber_; } public static final int EXPIRATIONTIME_FIELD_NUMBER = 4; private com.hederahashgraph.api.proto.java.Timestamp expirationTime_; /** *
   **
   * Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
   * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
   * 
* * .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 submitMessage calls will no longer succeed on the topic
   * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
   * 
* * .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 submitMessage calls will no longer succeed on the topic
   * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
   * 
* * .proto.Timestamp expirationTime = 4; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() { return getExpirationTime(); } public static final int ADMINKEY_FIELD_NUMBER = 5; private com.hederahashgraph.api.proto.java.Key adminKey_; /** *
   **
   * Access control for update/delete of the topic. Null if there is no key.
   * 
* * .proto.Key adminKey = 5; * @return Whether the adminKey field is set. */ @java.lang.Override public boolean hasAdminKey() { return adminKey_ != null; } /** *
   **
   * Access control for update/delete of the topic. Null if there is no key.
   * 
* * .proto.Key adminKey = 5; * @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. Null if there is no key.
   * 
* * .proto.Key adminKey = 5; */ @java.lang.Override public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() { return getAdminKey(); } public static final int SUBMITKEY_FIELD_NUMBER = 6; private com.hederahashgraph.api.proto.java.Key submitKey_; /** *
   **
   * Access control for ConsensusService.submitMessage. Null if there is no key.
   * 
* * .proto.Key submitKey = 6; * @return Whether the submitKey field is set. */ @java.lang.Override public boolean hasSubmitKey() { return submitKey_ != null; } /** *
   **
   * Access control for ConsensusService.submitMessage. Null if there is no key.
   * 
* * .proto.Key submitKey = 6; * @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. Null if there is no key.
   * 
* * .proto.Key submitKey = 6; */ @java.lang.Override public com.hederahashgraph.api.proto.java.KeyOrBuilder getSubmitKeyOrBuilder() { return getSubmitKey(); } public static final int AUTORENEWPERIOD_FIELD_NUMBER = 7; private com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_; /** *
   **
   * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
   * by up to this duration (depending on the solvency of the auto-renew account). If the
   * auto-renew account has no funds at all, the topic will be deleted instead.
   * 
* * .proto.Duration autoRenewPeriod = 7; * @return Whether the autoRenewPeriod field is set. */ @java.lang.Override public boolean hasAutoRenewPeriod() { return autoRenewPeriod_ != null; } /** *
   **
   * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
   * by up to this duration (depending on the solvency of the auto-renew account). If the
   * auto-renew account has no funds at all, the topic will be deleted instead.
   * 
* * .proto.Duration autoRenewPeriod = 7; * @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_; } /** *
   **
   * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
   * by up to this duration (depending on the solvency of the auto-renew account). If the
   * auto-renew account has no funds at all, the topic will be deleted instead.
   * 
* * .proto.Duration autoRenewPeriod = 7; */ @java.lang.Override public com.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() { return getAutoRenewPeriod(); } public static final int AUTORENEWACCOUNT_FIELD_NUMBER = 8; private com.hederahashgraph.api.proto.java.AccountID autoRenewAccount_; /** *
   **
   * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
   * 
* * .proto.AccountID autoRenewAccount = 8; * @return Whether the autoRenewAccount field is set. */ @java.lang.Override public boolean hasAutoRenewAccount() { return autoRenewAccount_ != null; } /** *
   **
   * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
   * 
* * .proto.AccountID autoRenewAccount = 8; * @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_; } /** *
   **
   * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
   * 
* * .proto.AccountID autoRenewAccount = 8; */ @java.lang.Override public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountOrBuilder() { return getAutoRenewAccount(); } public static final int LEDGER_ID_FIELD_NUMBER = 9; private com.google.protobuf.ByteString ledgerId_; /** *
   **
   * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
   * 
* * bytes ledger_id = 9; * @return The ledgerId. */ @java.lang.Override public com.google.protobuf.ByteString getLedgerId() { return ledgerId_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, memo_); } if (!runningHash_.isEmpty()) { output.writeBytes(2, runningHash_); } if (sequenceNumber_ != 0L) { output.writeUInt64(3, sequenceNumber_); } if (expirationTime_ != null) { output.writeMessage(4, getExpirationTime()); } if (adminKey_ != null) { output.writeMessage(5, getAdminKey()); } if (submitKey_ != null) { output.writeMessage(6, getSubmitKey()); } if (autoRenewPeriod_ != null) { output.writeMessage(7, getAutoRenewPeriod()); } if (autoRenewAccount_ != null) { output.writeMessage(8, getAutoRenewAccount()); } if (!ledgerId_.isEmpty()) { output.writeBytes(9, ledgerId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(memo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, memo_); } if (!runningHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, runningHash_); } if (sequenceNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, sequenceNumber_); } if (expirationTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExpirationTime()); } if (adminKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAdminKey()); } if (submitKey_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSubmitKey()); } if (autoRenewPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getAutoRenewPeriod()); } if (autoRenewAccount_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getAutoRenewAccount()); } if (!ledgerId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, ledgerId_); } 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.ConsensusTopicInfo)) { return super.equals(obj); } com.hederahashgraph.api.proto.java.ConsensusTopicInfo other = (com.hederahashgraph.api.proto.java.ConsensusTopicInfo) obj; if (!getMemo() .equals(other.getMemo())) return false; if (!getRunningHash() .equals(other.getRunningHash())) return false; if (getSequenceNumber() != other.getSequenceNumber()) 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 (!getLedgerId() .equals(other.getLedgerId())) 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(); hash = (37 * hash) + RUNNINGHASH_FIELD_NUMBER; hash = (53 * hash) + getRunningHash().hashCode(); hash = (37 * hash) + SEQUENCENUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSequenceNumber()); 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 = (37 * hash) + LEDGER_ID_FIELD_NUMBER; hash = (53 * hash) + getLedgerId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hederahashgraph.api.proto.java.ConsensusTopicInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ConsensusTopicInfo 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.ConsensusTopicInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ConsensusTopicInfo 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.ConsensusTopicInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hederahashgraph.api.proto.java.ConsensusTopicInfo 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.ConsensusTopicInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ConsensusTopicInfo 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.ConsensusTopicInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hederahashgraph.api.proto.java.ConsensusTopicInfo 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.ConsensusTopicInfo 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.ConsensusTopicInfo 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.ConsensusTopicInfo 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; } /** *
   **
   * Current state of a topic.
   * 
* * Protobuf type {@code proto.ConsensusTopicInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.ConsensusTopicInfo) com.hederahashgraph.api.proto.java.ConsensusTopicInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hederahashgraph.api.proto.java.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hederahashgraph.api.proto.java.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hederahashgraph.api.proto.java.ConsensusTopicInfo.class, com.hederahashgraph.api.proto.java.ConsensusTopicInfo.Builder.class); } // Construct using com.hederahashgraph.api.proto.java.ConsensusTopicInfo.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_ = ""; runningHash_ = com.google.protobuf.ByteString.EMPTY; sequenceNumber_ = 0L; 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; } ledgerId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hederahashgraph.api.proto.java.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_descriptor; } @java.lang.Override public com.hederahashgraph.api.proto.java.ConsensusTopicInfo getDefaultInstanceForType() { return com.hederahashgraph.api.proto.java.ConsensusTopicInfo.getDefaultInstance(); } @java.lang.Override public com.hederahashgraph.api.proto.java.ConsensusTopicInfo build() { com.hederahashgraph.api.proto.java.ConsensusTopicInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hederahashgraph.api.proto.java.ConsensusTopicInfo buildPartial() { com.hederahashgraph.api.proto.java.ConsensusTopicInfo result = new com.hederahashgraph.api.proto.java.ConsensusTopicInfo(this); result.memo_ = memo_; result.runningHash_ = runningHash_; result.sequenceNumber_ = sequenceNumber_; 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(); } result.ledgerId_ = ledgerId_; 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.ConsensusTopicInfo) { return mergeFrom((com.hederahashgraph.api.proto.java.ConsensusTopicInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hederahashgraph.api.proto.java.ConsensusTopicInfo other) { if (other == com.hederahashgraph.api.proto.java.ConsensusTopicInfo.getDefaultInstance()) return this; if (!other.getMemo().isEmpty()) { memo_ = other.memo_; onChanged(); } if (other.getRunningHash() != com.google.protobuf.ByteString.EMPTY) { setRunningHash(other.getRunningHash()); } if (other.getSequenceNumber() != 0L) { setSequenceNumber(other.getSequenceNumber()); } 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()); } if (other.getLedgerId() != com.google.protobuf.ByteString.EMPTY) { setLedgerId(other.getLedgerId()); } 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.ConsensusTopicInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hederahashgraph.api.proto.java.ConsensusTopicInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object memo_ = ""; /** *
     **
     * The memo associated with the topic (UTF-8 encoding max 100 bytes)
     * 
* * 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; } } /** *
     **
     * The memo associated with the topic (UTF-8 encoding max 100 bytes)
     * 
* * 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; } } /** *
     **
     * The memo associated with the topic (UTF-8 encoding max 100 bytes)
     * 
* * 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; } /** *
     **
     * The memo associated with the topic (UTF-8 encoding max 100 bytes)
     * 
* * string memo = 1; * @return This builder for chaining. */ public Builder clearMemo() { memo_ = getDefaultInstance().getMemo(); onChanged(); return this; } /** *
     **
     * The memo associated with the topic (UTF-8 encoding max 100 bytes)
     * 
* * 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.google.protobuf.ByteString runningHash_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * When a topic is created, its running hash is initialized to 48 bytes of binary zeros.
     * For each submitted message, the topic's running hash is then updated to the output
     * of a particular SHA-384 digest whose input data include the previous running hash.
     * 
     * See the TransactionReceipt.proto documentation for an exact description of the
     * data included in the SHA-384 digest used for the update.
     * 
* * bytes runningHash = 2; * @return The runningHash. */ @java.lang.Override public com.google.protobuf.ByteString getRunningHash() { return runningHash_; } /** *
     **
     * When a topic is created, its running hash is initialized to 48 bytes of binary zeros.
     * For each submitted message, the topic's running hash is then updated to the output
     * of a particular SHA-384 digest whose input data include the previous running hash.
     * 
     * See the TransactionReceipt.proto documentation for an exact description of the
     * data included in the SHA-384 digest used for the update.
     * 
* * bytes runningHash = 2; * @param value The runningHash to set. * @return This builder for chaining. */ public Builder setRunningHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } runningHash_ = value; onChanged(); return this; } /** *
     **
     * When a topic is created, its running hash is initialized to 48 bytes of binary zeros.
     * For each submitted message, the topic's running hash is then updated to the output
     * of a particular SHA-384 digest whose input data include the previous running hash.
     * 
     * See the TransactionReceipt.proto documentation for an exact description of the
     * data included in the SHA-384 digest used for the update.
     * 
* * bytes runningHash = 2; * @return This builder for chaining. */ public Builder clearRunningHash() { runningHash_ = getDefaultInstance().getRunningHash(); onChanged(); return this; } private long sequenceNumber_ ; /** *
     **
     * Sequence number (starting at 1 for the first submitMessage) of messages on the topic.
     * 
* * uint64 sequenceNumber = 3; * @return The sequenceNumber. */ @java.lang.Override public long getSequenceNumber() { return sequenceNumber_; } /** *
     **
     * Sequence number (starting at 1 for the first submitMessage) of messages on the topic.
     * 
* * uint64 sequenceNumber = 3; * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(long value) { sequenceNumber_ = value; onChanged(); return this; } /** *
     **
     * Sequence number (starting at 1 for the first submitMessage) of messages on the topic.
     * 
* * uint64 sequenceNumber = 3; * @return This builder for chaining. */ public Builder clearSequenceNumber() { sequenceNumber_ = 0L; onChanged(); return this; } 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 submitMessage calls will no longer succeed on the topic
     * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
     * 
* * .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 submitMessage calls will no longer succeed on the topic
     * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
     * 
* * .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 submitMessage calls will no longer succeed on the topic
     * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
     * 
* * .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 submitMessage calls will no longer succeed on the topic
     * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
     * 
* * .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 submitMessage calls will no longer succeed on the topic
     * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
     * 
* * .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 submitMessage calls will no longer succeed on the topic
     * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
     * 
* * .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 submitMessage calls will no longer succeed on the topic
     * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
     * 
* * .proto.Timestamp expirationTime = 4; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder getExpirationTimeBuilder() { onChanged(); return getExpirationTimeFieldBuilder().getBuilder(); } /** *
     **
     * Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
     * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
     * 
* * .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 submitMessage calls will no longer succeed on the topic
     * and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
     * 
* * .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. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; * @return Whether the adminKey field is set. */ public boolean hasAdminKey() { return adminKeyBuilder_ != null || adminKey_ != null; } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; * @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. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ 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. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ 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. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ 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. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ public Builder clearAdminKey() { if (adminKeyBuilder_ == null) { adminKey_ = null; onChanged(); } else { adminKey_ = null; adminKeyBuilder_ = null; } return this; } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ public com.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() { onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ 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. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ 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. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; * @return Whether the submitKey field is set. */ public boolean hasSubmitKey() { return submitKeyBuilder_ != null || submitKey_ != null; } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; * @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. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ 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. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ 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. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ 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. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ public Builder clearSubmitKey() { if (submitKeyBuilder_ == null) { submitKey_ = null; onChanged(); } else { submitKey_ = null; submitKeyBuilder_ = null; } return this; } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ public com.hederahashgraph.api.proto.java.Key.Builder getSubmitKeyBuilder() { onChanged(); return getSubmitKeyFieldBuilder().getBuilder(); } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ 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. Null if there is no key.
     * 
* * .proto.Key submitKey = 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> 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_; /** *
     **
     * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
     * by up to this duration (depending on the solvency of the auto-renew account). If the
     * auto-renew account has no funds at all, the topic will be deleted instead.
     * 
* * .proto.Duration autoRenewPeriod = 7; * @return Whether the autoRenewPeriod field is set. */ public boolean hasAutoRenewPeriod() { return autoRenewPeriodBuilder_ != null || autoRenewPeriod_ != null; } /** *
     **
     * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
     * by up to this duration (depending on the solvency of the auto-renew account). If the
     * auto-renew account has no funds at all, the topic will be deleted instead.
     * 
* * .proto.Duration autoRenewPeriod = 7; * @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(); } } /** *
     **
     * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
     * by up to this duration (depending on the solvency of the auto-renew account). If the
     * auto-renew account has no funds at all, the topic will be deleted instead.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ public Builder setAutoRenewPeriod(com.hederahashgraph.api.proto.java.Duration value) { if (autoRenewPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewPeriod_ = value; onChanged(); } else { autoRenewPeriodBuilder_.setMessage(value); } return this; } /** *
     **
     * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
     * by up to this duration (depending on the solvency of the auto-renew account). If the
     * auto-renew account has no funds at all, the topic will be deleted instead.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ public Builder setAutoRenewPeriod( com.hederahashgraph.api.proto.java.Duration.Builder builderForValue) { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = builderForValue.build(); onChanged(); } else { autoRenewPeriodBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
     * by up to this duration (depending on the solvency of the auto-renew account). If the
     * auto-renew account has no funds at all, the topic will be deleted instead.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ public Builder mergeAutoRenewPeriod(com.hederahashgraph.api.proto.java.Duration value) { if (autoRenewPeriodBuilder_ == null) { if (autoRenewPeriod_ != null) { autoRenewPeriod_ = com.hederahashgraph.api.proto.java.Duration.newBuilder(autoRenewPeriod_).mergeFrom(value).buildPartial(); } else { autoRenewPeriod_ = value; } onChanged(); } else { autoRenewPeriodBuilder_.mergeFrom(value); } return this; } /** *
     **
     * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
     * by up to this duration (depending on the solvency of the auto-renew account). If the
     * auto-renew account has no funds at all, the topic will be deleted instead.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ public Builder clearAutoRenewPeriod() { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = null; onChanged(); } else { autoRenewPeriod_ = null; autoRenewPeriodBuilder_ = null; } return this; } /** *
     **
     * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
     * by up to this duration (depending on the solvency of the auto-renew account). If the
     * auto-renew account has no funds at all, the topic will be deleted instead.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ public com.hederahashgraph.api.proto.java.Duration.Builder getAutoRenewPeriodBuilder() { onChanged(); return getAutoRenewPeriodFieldBuilder().getBuilder(); } /** *
     **
     * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
     * by up to this duration (depending on the solvency of the auto-renew account). If the
     * auto-renew account has no funds at all, the topic will be deleted instead.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ public com.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() { if (autoRenewPeriodBuilder_ != null) { return autoRenewPeriodBuilder_.getMessageOrBuilder(); } else { return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : autoRenewPeriod_; } } /** *
     **
     * If an auto-renew account is specified, when the topic expires, its lifetime will be extended
     * by up to this duration (depending on the solvency of the auto-renew account). If the
     * auto-renew account has no funds at all, the topic will be deleted instead.
     * 
* * .proto.Duration autoRenewPeriod = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder> getAutoRenewPeriodFieldBuilder() { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder>( getAutoRenewPeriod(), getParentForChildren(), isClean()); autoRenewPeriod_ = null; } return autoRenewPeriodBuilder_; } private com.hederahashgraph.api.proto.java.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_; /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; * @return Whether the autoRenewAccount field is set. */ public boolean hasAutoRenewAccount() { return autoRenewAccountBuilder_ != null || autoRenewAccount_ != null; } /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; * @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(); } } /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; */ 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; } /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; */ 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; } /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; */ 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; } /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; */ public Builder clearAutoRenewAccount() { if (autoRenewAccountBuilder_ == null) { autoRenewAccount_ = null; onChanged(); } else { autoRenewAccount_ = null; autoRenewAccountBuilder_ = null; } return this; } /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; */ public com.hederahashgraph.api.proto.java.AccountID.Builder getAutoRenewAccountBuilder() { onChanged(); return getAutoRenewAccountFieldBuilder().getBuilder(); } /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; */ 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_; } } /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; */ 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_; } private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
     * 
* * bytes ledger_id = 9; * @return The ledgerId. */ @java.lang.Override public com.google.protobuf.ByteString getLedgerId() { return ledgerId_; } /** *
     **
     * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
     * 
* * bytes ledger_id = 9; * @param value The ledgerId to set. * @return This builder for chaining. */ public Builder setLedgerId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ledgerId_ = value; onChanged(); return this; } /** *
     **
     * The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs. 
     * 
* * bytes ledger_id = 9; * @return This builder for chaining. */ public Builder clearLedgerId() { ledgerId_ = getDefaultInstance().getLedgerId(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.ConsensusTopicInfo) } // @@protoc_insertion_point(class_scope:proto.ConsensusTopicInfo) private static final com.hederahashgraph.api.proto.java.ConsensusTopicInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ConsensusTopicInfo(); } public static com.hederahashgraph.api.proto.java.ConsensusTopicInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConsensusTopicInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConsensusTopicInfo(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.ConsensusTopicInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy