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

com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: consensus_topic_info.proto

// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * 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(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo.class, com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo.Builder.class); } private int bitField0_; public static final int MEMO_FIELD_NUMBER = 1; @SuppressWarnings("serial") 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_ = 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_; } public static final int SEQUENCENUMBER_FIELD_NUMBER = 3; private long sequenceNumber_ = 0L; /** *
   **
   * 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.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * 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.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : expirationTime_; } public static final int ADMINKEY_FIELD_NUMBER = 5; private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * 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.hedera.hashgraph.sdk.proto.Key getAdminKey() { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : adminKey_; } public static final int SUBMITKEY_FIELD_NUMBER = 6; private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000004) != 0); } /** *
   **
   * Access control for ConsensusService.submitMessage. Null if there is no key.
   * 
* * .proto.Key submitKey = 6; * @return The submitKey. */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getSubmitKey() { return submitKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : submitKey_; } /** *
   **
   * Access control for ConsensusService.submitMessage. Null if there is no key.
   * 
* * .proto.Key submitKey = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getSubmitKeyOrBuilder() { return submitKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : submitKey_; } public static final int AUTORENEWPERIOD_FIELD_NUMBER = 7; private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000008) != 0); } /** *
   **
   * 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.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() { return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() { return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance() : autoRenewPeriod_; } public static final int AUTORENEWACCOUNT_FIELD_NUMBER = 8; private com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000010) != 0); } /** *
   **
   * 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.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccount() { return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountOrBuilder() { return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance() : autoRenewAccount_; } public static final int LEDGER_ID_FIELD_NUMBER = 9; 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_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getExpirationTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getAdminKey()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getSubmitKey()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getAutoRenewPeriod()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(8, getAutoRenewAccount()); } if (!ledgerId_.isEmpty()) { output.writeBytes(9, ledgerId_); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExpirationTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAdminKey()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSubmitKey()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getAutoRenewPeriod()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getAutoRenewAccount()); } if (!ledgerId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, ledgerId_); } size += getUnknownFields().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.hedera.hashgraph.sdk.proto.ConsensusTopicInfo)) { return super.equals(obj); } com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo other = (com.hedera.hashgraph.sdk.proto.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.ConsensusTopicInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hashgraph.sdk.proto.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hashgraph.sdk.proto.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo.class, com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo.Builder.class); } // Construct using com.hedera.hashgraph.sdk.proto.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) { getExpirationTimeFieldBuilder(); getAdminKeyFieldBuilder(); getSubmitKeyFieldBuilder(); getAutoRenewPeriodFieldBuilder(); getAutoRenewAccountFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; memo_ = ""; runningHash_ = com.google.protobuf.ByteString.EMPTY; sequenceNumber_ = 0L; expirationTime_ = null; if (expirationTimeBuilder_ != null) { expirationTimeBuilder_.dispose(); expirationTimeBuilder_ = null; } adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } submitKey_ = null; if (submitKeyBuilder_ != null) { submitKeyBuilder_.dispose(); submitKeyBuilder_ = null; } autoRenewPeriod_ = null; if (autoRenewPeriodBuilder_ != null) { autoRenewPeriodBuilder_.dispose(); autoRenewPeriodBuilder_ = null; } autoRenewAccount_ = null; if (autoRenewAccountBuilder_ != null) { autoRenewAccountBuilder_.dispose(); autoRenewAccountBuilder_ = null; } ledgerId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hashgraph.sdk.proto.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_descriptor; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo getDefaultInstanceForType() { return com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo.getDefaultInstance(); } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo build() { com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo buildPartial() { com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo result = new com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.memo_ = memo_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.runningHash_ = runningHash_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.sequenceNumber_ = sequenceNumber_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.expirationTime_ = expirationTimeBuilder_ == null ? expirationTime_ : expirationTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.adminKey_ = adminKeyBuilder_ == null ? adminKey_ : adminKeyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.submitKey_ = submitKeyBuilder_ == null ? submitKey_ : submitKeyBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.autoRenewPeriod_ = autoRenewPeriodBuilder_ == null ? autoRenewPeriod_ : autoRenewPeriodBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { result.autoRenewAccount_ = autoRenewAccountBuilder_ == null ? autoRenewAccount_ : autoRenewAccountBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { result.ledgerId_ = ledgerId_; } result.bitField0_ |= to_bitField0_; } @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.hedera.hashgraph.sdk.proto.ConsensusTopicInfo) { return mergeFrom((com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo other) { if (other == com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo.getDefaultInstance()) return this; if (!other.getMemo().isEmpty()) { memo_ = other.memo_; bitField0_ |= 0x00000001; 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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { memo_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { runningHash_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { sequenceNumber_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getExpirationTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getAdminKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage( getSubmitKeyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getAutoRenewPeriodFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage( getAutoRenewAccountFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { ledgerId_ = input.readBytes(); bitField0_ |= 0x00000100; break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; bitField0_ |= 0x00000001; 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(); bitField0_ = (bitField0_ & ~0x00000001); 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; bitField0_ |= 0x00000001; 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; bitField0_ |= 0x00000002; 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() { bitField0_ = (bitField0_ & ~0x00000002); 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; bitField0_ |= 0x00000004; 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() { bitField0_ = (bitField0_ & ~0x00000004); sequenceNumber_ = 0L; onChanged(); return this; } private com.hedera.hashgraph.sdk.proto.Timestamp expirationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000008) != 0); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.Timestamp getExpirationTime() { if (expirationTimeBuilder_ == null) { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Timestamp value) { if (expirationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expirationTime_ = value; } else { expirationTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) { if (expirationTimeBuilder_ == null) { expirationTime_ = builderForValue.build(); } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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.hedera.hashgraph.sdk.proto.Timestamp value) { if (expirationTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && expirationTime_ != null && expirationTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) { getExpirationTimeBuilder().mergeFrom(value); } else { expirationTime_ = value; } } else { expirationTimeBuilder_.mergeFrom(value); } if (expirationTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000008); expirationTime_ = null; if (expirationTimeBuilder_ != null) { expirationTimeBuilder_.dispose(); expirationTimeBuilder_ = null; } onChanged(); 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.hedera.hashgraph.sdk.proto.Timestamp.Builder getExpirationTimeBuilder() { bitField0_ |= 0x00000008; 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.hedera.hashgraph.sdk.proto.TimestampOrBuilder getExpirationTimeOrBuilder() { if (expirationTimeBuilder_ != null) { return expirationTimeBuilder_.getMessageOrBuilder(); } else { return expirationTime_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder> getExpirationTimeFieldBuilder() { if (expirationTimeBuilder_ == null) { expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Timestamp, com.hedera.hashgraph.sdk.proto.Timestamp.Builder, com.hedera.hashgraph.sdk.proto.TimestampOrBuilder>( getExpirationTime(), getParentForChildren(), isClean()); expirationTime_ = null; } return expirationTimeBuilder_; } private com.hedera.hashgraph.sdk.proto.Key adminKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000010) != 0); } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; * @return The adminKey. */ public com.hedera.hashgraph.sdk.proto.Key getAdminKey() { if (adminKeyBuilder_ == null) { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Key value) { if (adminKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminKey_ = value; } else { adminKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ public Builder setAdminKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (adminKeyBuilder_ == null) { adminKey_ = builderForValue.build(); } else { adminKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ public Builder mergeAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { if (adminKeyBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && adminKey_ != null && adminKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getAdminKeyBuilder().mergeFrom(value); } else { adminKey_ = value; } } else { adminKeyBuilder_.mergeFrom(value); } if (adminKey_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ public Builder clearAdminKey() { bitField0_ = (bitField0_ & ~0x00000010); adminKey_ = null; if (adminKeyBuilder_ != null) { adminKeyBuilder_.dispose(); adminKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getAdminKeyBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAdminKeyFieldBuilder().getBuilder(); } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getAdminKeyOrBuilder() { if (adminKeyBuilder_ != null) { return adminKeyBuilder_.getMessageOrBuilder(); } else { return adminKey_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getAdminKeyFieldBuilder() { if (adminKeyBuilder_ == null) { adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getAdminKey(), getParentForChildren(), isClean()); adminKey_ = null; } return adminKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Key submitKey_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000020) != 0); } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; * @return The submitKey. */ public com.hedera.hashgraph.sdk.proto.Key getSubmitKey() { if (submitKeyBuilder_ == null) { return submitKey_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Key value) { if (submitKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } submitKey_ = value; } else { submitKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ public Builder setSubmitKey( com.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { if (submitKeyBuilder_ == null) { submitKey_ = builderForValue.build(); } else { submitKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ public Builder mergeSubmitKey(com.hedera.hashgraph.sdk.proto.Key value) { if (submitKeyBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && submitKey_ != null && submitKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { getSubmitKeyBuilder().mergeFrom(value); } else { submitKey_ = value; } } else { submitKeyBuilder_.mergeFrom(value); } if (submitKey_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ public Builder clearSubmitKey() { bitField0_ = (bitField0_ & ~0x00000020); submitKey_ = null; if (submitKeyBuilder_ != null) { submitKeyBuilder_.dispose(); submitKeyBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ public com.hedera.hashgraph.sdk.proto.Key.Builder getSubmitKeyBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSubmitKeyFieldBuilder().getBuilder(); } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ public com.hedera.hashgraph.sdk.proto.KeyOrBuilder getSubmitKeyOrBuilder() { if (submitKeyBuilder_ != null) { return submitKeyBuilder_.getMessageOrBuilder(); } else { return submitKey_ == null ? com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance() : submitKey_; } } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder> getSubmitKeyFieldBuilder() { if (submitKeyBuilder_ == null) { submitKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Key, com.hedera.hashgraph.sdk.proto.Key.Builder, com.hedera.hashgraph.sdk.proto.KeyOrBuilder>( getSubmitKey(), getParentForChildren(), isClean()); submitKey_ = null; } return submitKeyBuilder_; } private com.hedera.hashgraph.sdk.proto.Duration autoRenewPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000040) != 0); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.Duration getAutoRenewPeriod() { if (autoRenewPeriodBuilder_ == null) { return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Duration value) { if (autoRenewPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewPeriod_ = value; } else { autoRenewPeriodBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); 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.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriod_ = builderForValue.build(); } else { autoRenewPeriodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); 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.hedera.hashgraph.sdk.proto.Duration value) { if (autoRenewPeriodBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && autoRenewPeriod_ != null && autoRenewPeriod_ != com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance()) { getAutoRenewPeriodBuilder().mergeFrom(value); } else { autoRenewPeriod_ = value; } } else { autoRenewPeriodBuilder_.mergeFrom(value); } if (autoRenewPeriod_ != null) { bitField0_ |= 0x00000040; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000040); autoRenewPeriod_ = null; if (autoRenewPeriodBuilder_ != null) { autoRenewPeriodBuilder_.dispose(); autoRenewPeriodBuilder_ = null; } onChanged(); 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.hedera.hashgraph.sdk.proto.Duration.Builder getAutoRenewPeriodBuilder() { bitField0_ |= 0x00000040; 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.hedera.hashgraph.sdk.proto.DurationOrBuilder getAutoRenewPeriodOrBuilder() { if (autoRenewPeriodBuilder_ != null) { return autoRenewPeriodBuilder_.getMessageOrBuilder(); } else { return autoRenewPeriod_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder> getAutoRenewPeriodFieldBuilder() { if (autoRenewPeriodBuilder_ == null) { autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.Duration, com.hedera.hashgraph.sdk.proto.Duration.Builder, com.hedera.hashgraph.sdk.proto.DurationOrBuilder>( getAutoRenewPeriod(), getParentForChildren(), isClean()); autoRenewPeriod_ = null; } return autoRenewPeriodBuilder_; } private com.hedera.hashgraph.sdk.proto.AccountID autoRenewAccount_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.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 ((bitField0_ & 0x00000080) != 0); } /** *
     **
     * 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.hedera.hashgraph.sdk.proto.AccountID getAutoRenewAccount() { if (autoRenewAccountBuilder_ == null) { return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountID value) { if (autoRenewAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autoRenewAccount_ = value; } else { autoRenewAccountBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); 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.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { if (autoRenewAccountBuilder_ == null) { autoRenewAccount_ = builderForValue.build(); } else { autoRenewAccountBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); 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.hedera.hashgraph.sdk.proto.AccountID value) { if (autoRenewAccountBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && autoRenewAccount_ != null && autoRenewAccount_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { getAutoRenewAccountBuilder().mergeFrom(value); } else { autoRenewAccount_ = value; } } else { autoRenewAccountBuilder_.mergeFrom(value); } if (autoRenewAccount_ != null) { bitField0_ |= 0x00000080; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000080); autoRenewAccount_ = null; if (autoRenewAccountBuilder_ != null) { autoRenewAccountBuilder_.dispose(); autoRenewAccountBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; */ public com.hedera.hashgraph.sdk.proto.AccountID.Builder getAutoRenewAccountBuilder() { bitField0_ |= 0x00000080; 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.hedera.hashgraph.sdk.proto.AccountIDOrBuilder getAutoRenewAccountOrBuilder() { if (autoRenewAccountBuilder_ != null) { return autoRenewAccountBuilder_.getMessageOrBuilder(); } else { return autoRenewAccount_ == null ? com.hedera.hashgraph.sdk.proto.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.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.AccountIDOrBuilder> getAutoRenewAccountFieldBuilder() { if (autoRenewAccountBuilder_ == null) { autoRenewAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hashgraph.sdk.proto.AccountID, com.hedera.hashgraph.sdk.proto.AccountID.Builder, com.hedera.hashgraph.sdk.proto.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; bitField0_ |= 0x00000100; 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() { bitField0_ = (bitField0_ & ~0x00000100); 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.hedera.hashgraph.sdk.proto.ConsensusTopicInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo(); } public static com.hedera.hashgraph.sdk.proto.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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.hedera.hashgraph.sdk.proto.ConsensusTopicInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy