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

package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Current state of a topic.
 * 
* * Protobuf type {@code proto.ConsensusTopicInfo} */ public final class ConsensusTopicInfo extends com.google.protobuf.GeneratedMessageLite< ConsensusTopicInfo, ConsensusTopicInfo.Builder> implements // @@protoc_insertion_point(message_implements:proto.ConsensusTopicInfo) ConsensusTopicInfoOrBuilder { private ConsensusTopicInfo() { memo_ = ""; runningHash_ = com.google.protobuf.ByteString.EMPTY; ledgerId_ = com.google.protobuf.ByteString.EMPTY; } public static final int MEMO_FIELD_NUMBER = 1; private java.lang.String 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() { return memo_; } /** *
   **
   * 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() { return com.google.protobuf.ByteString.copyFromUtf8(memo_); } /** *
   **
   * The memo associated with the topic (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 1; * @param value The memo to set. */ private void setMemo( java.lang.String value) { java.lang.Class valueClass = value.getClass(); memo_ = value; } /** *
   **
   * The memo associated with the topic (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 1; */ private void clearMemo() { memo_ = getDefaultInstance().getMemo(); } /** *
   **
   * The memo associated with the topic (UTF-8 encoding max 100 bytes)
   * 
* * string memo = 1; * @param value The bytes for memo to set. */ private void setMemoBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); memo_ = value.toStringUtf8(); } 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_; } /** *
   **
   * 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. */ private void setRunningHash(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); runningHash_ = value; } /** *
   **
   * 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; */ private void clearRunningHash() { runningHash_ = getDefaultInstance().getRunningHash(); } 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_; } /** *
   **
   * Sequence number (starting at 1 for the first submitMessage) of messages on the topic.
   * 
* * uint64 sequenceNumber = 3; * @param value The sequenceNumber to set. */ private void setSequenceNumber(long value) { sequenceNumber_ = value; } /** *
   **
   * Sequence number (starting at 1 for the first submitMessage) of messages on the topic.
   * 
* * uint64 sequenceNumber = 3; */ private void clearSequenceNumber() { sequenceNumber_ = 0L; } 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; */ @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; */ @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; */ private void setExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) { value.getClass(); expirationTime_ = value; } /** *
   **
   * 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.SuppressWarnings({"ReferenceEquality"}) private void mergeExpirationTime(com.hedera.hashgraph.sdk.proto.Timestamp value) { value.getClass(); if (expirationTime_ != null && expirationTime_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) { expirationTime_ = com.hedera.hashgraph.sdk.proto.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial(); } else { expirationTime_ = value; } } /** *
   **
   * 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 void clearExpirationTime() { expirationTime_ = null; } 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; */ @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; */ @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; */ private void setAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { value.getClass(); adminKey_ = value; } /** *
   **
   * Access control for update/delete of the topic. Null if there is no key.
   * 
* * .proto.Key adminKey = 5; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeAdminKey(com.hedera.hashgraph.sdk.proto.Key value) { value.getClass(); if (adminKey_ != null && adminKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { adminKey_ = com.hedera.hashgraph.sdk.proto.Key.newBuilder(adminKey_).mergeFrom(value).buildPartial(); } else { adminKey_ = value; } } /** *
   **
   * Access control for update/delete of the topic. Null if there is no key.
   * 
* * .proto.Key adminKey = 5; */ private void clearAdminKey() { adminKey_ = null; } 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; */ @java.lang.Override public boolean hasSubmitKey() { return submitKey_ != null; } /** *
   **
   * Access control for ConsensusService.submitMessage. Null if there is no key.
   * 
* * .proto.Key submitKey = 6; */ @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; */ private void setSubmitKey(com.hedera.hashgraph.sdk.proto.Key value) { value.getClass(); submitKey_ = value; } /** *
   **
   * Access control for ConsensusService.submitMessage. Null if there is no key.
   * 
* * .proto.Key submitKey = 6; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeSubmitKey(com.hedera.hashgraph.sdk.proto.Key value) { value.getClass(); if (submitKey_ != null && submitKey_ != com.hedera.hashgraph.sdk.proto.Key.getDefaultInstance()) { submitKey_ = com.hedera.hashgraph.sdk.proto.Key.newBuilder(submitKey_).mergeFrom(value).buildPartial(); } else { submitKey_ = value; } } /** *
   **
   * Access control for ConsensusService.submitMessage. Null if there is no key.
   * 
* * .proto.Key submitKey = 6; */ private void clearSubmitKey() { submitKey_ = null; } 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; */ @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; */ @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; */ private void setAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) { value.getClass(); autoRenewPeriod_ = value; } /** *
   **
   * 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.SuppressWarnings({"ReferenceEquality"}) private void mergeAutoRenewPeriod(com.hedera.hashgraph.sdk.proto.Duration value) { value.getClass(); if (autoRenewPeriod_ != null && autoRenewPeriod_ != com.hedera.hashgraph.sdk.proto.Duration.getDefaultInstance()) { autoRenewPeriod_ = com.hedera.hashgraph.sdk.proto.Duration.newBuilder(autoRenewPeriod_).mergeFrom(value).buildPartial(); } else { autoRenewPeriod_ = value; } } /** *
   **
   * 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 void clearAutoRenewPeriod() { autoRenewPeriod_ = null; } 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; */ @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; */ @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; */ private void setAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) { value.getClass(); autoRenewAccount_ = value; } /** *
   **
   * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
   * 
* * .proto.AccountID autoRenewAccount = 8; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeAutoRenewAccount(com.hedera.hashgraph.sdk.proto.AccountID value) { value.getClass(); if (autoRenewAccount_ != null && autoRenewAccount_ != com.hedera.hashgraph.sdk.proto.AccountID.getDefaultInstance()) { autoRenewAccount_ = com.hedera.hashgraph.sdk.proto.AccountID.newBuilder(autoRenewAccount_).mergeFrom(value).buildPartial(); } else { autoRenewAccount_ = value; } } /** *
   **
   * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
   * 
* * .proto.AccountID autoRenewAccount = 8; */ private void clearAutoRenewAccount() { autoRenewAccount_ = null; } 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_; } /** *
   **
   * 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. */ private void setLedgerId(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); ledgerId_ = value; } /** *
   **
   * 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; */ private void clearLedgerId() { ledgerId_ = getDefaultInstance().getLedgerId(); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * Current state of a topic.
   * 
* * Protobuf type {@code proto.ConsensusTopicInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo, Builder> implements // @@protoc_insertion_point(builder_implements:proto.ConsensusTopicInfo) com.hedera.hashgraph.sdk.proto.ConsensusTopicInfoOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * 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() { return instance.getMemo(); } /** *
     **
     * 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() { return instance.getMemoBytes(); } /** *
     **
     * 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) { copyOnWrite(); instance.setMemo(value); 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() { copyOnWrite(); instance.clearMemo(); 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) { copyOnWrite(); instance.setMemoBytes(value); 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 The runningHash. */ @java.lang.Override public com.google.protobuf.ByteString getRunningHash() { return instance.getRunningHash(); } /** *
     **
     * 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) { copyOnWrite(); instance.setRunningHash(value); 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() { copyOnWrite(); instance.clearRunningHash(); return this; } /** *
     **
     * 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 instance.getSequenceNumber(); } /** *
     **
     * 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) { copyOnWrite(); instance.setSequenceNumber(value); 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() { copyOnWrite(); instance.clearSequenceNumber(); 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; */ @java.lang.Override public boolean hasExpirationTime() { return instance.hasExpirationTime(); } /** *
     **
     * 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.Timestamp getExpirationTime() { return instance.getExpirationTime(); } /** *
     **
     * 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) { copyOnWrite(); instance.setExpirationTime(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.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) { copyOnWrite(); instance.setExpirationTime(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.hedera.hashgraph.sdk.proto.Timestamp value) { copyOnWrite(); instance.mergeExpirationTime(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() { copyOnWrite(); instance.clearExpirationTime(); return this; } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ @java.lang.Override public boolean hasAdminKey() { return instance.hasAdminKey(); } /** *
     **
     * 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.Key getAdminKey() { return instance.getAdminKey(); } /** *
     **
     * 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) { copyOnWrite(); instance.setAdminKey(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.hedera.hashgraph.sdk.proto.Key.Builder builderForValue) { copyOnWrite(); instance.setAdminKey(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.hedera.hashgraph.sdk.proto.Key value) { copyOnWrite(); instance.mergeAdminKey(value); return this; } /** *
     **
     * Access control for update/delete of the topic. Null if there is no key.
     * 
* * .proto.Key adminKey = 5; */ public Builder clearAdminKey() { copyOnWrite(); instance.clearAdminKey(); return this; } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ @java.lang.Override public boolean hasSubmitKey() { return instance.hasSubmitKey(); } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Key getSubmitKey() { return instance.getSubmitKey(); } /** *
     **
     * 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) { copyOnWrite(); instance.setSubmitKey(value); 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) { copyOnWrite(); instance.setSubmitKey(builderForValue.build()); 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) { copyOnWrite(); instance.mergeSubmitKey(value); return this; } /** *
     **
     * Access control for ConsensusService.submitMessage. Null if there is no key.
     * 
* * .proto.Key submitKey = 6; */ public Builder clearSubmitKey() { copyOnWrite(); instance.clearSubmitKey(); 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; */ @java.lang.Override public boolean hasAutoRenewPeriod() { return instance.hasAutoRenewPeriod(); } /** *
     **
     * 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.Duration getAutoRenewPeriod() { return instance.getAutoRenewPeriod(); } /** *
     **
     * 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) { copyOnWrite(); instance.setAutoRenewPeriod(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.hedera.hashgraph.sdk.proto.Duration.Builder builderForValue) { copyOnWrite(); instance.setAutoRenewPeriod(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.hedera.hashgraph.sdk.proto.Duration value) { copyOnWrite(); instance.mergeAutoRenewPeriod(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() { copyOnWrite(); instance.clearAutoRenewPeriod(); return this; } /** *
     **
     * The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
     * 
* * .proto.AccountID autoRenewAccount = 8; */ @java.lang.Override public boolean hasAutoRenewAccount() { return instance.hasAutoRenewAccount(); } /** *
     **
     * 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.AccountID getAutoRenewAccount() { return instance.getAutoRenewAccount(); } /** *
     **
     * 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) { copyOnWrite(); instance.setAutoRenewAccount(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.hedera.hashgraph.sdk.proto.AccountID.Builder builderForValue) { copyOnWrite(); instance.setAutoRenewAccount(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.hedera.hashgraph.sdk.proto.AccountID value) { copyOnWrite(); instance.mergeAutoRenewAccount(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() { copyOnWrite(); instance.clearAutoRenewAccount(); 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 The ledgerId. */ @java.lang.Override public com.google.protobuf.ByteString getLedgerId() { return instance.getLedgerId(); } /** *
     **
     * 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) { copyOnWrite(); instance.setLedgerId(value); 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() { copyOnWrite(); instance.clearLedgerId(); return this; } // @@protoc_insertion_point(builder_scope:proto.ConsensusTopicInfo) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "memo_", "runningHash_", "sequenceNumber_", "expirationTime_", "adminKey_", "submitKey_", "autoRenewPeriod_", "autoRenewAccount_", "ledgerId_", }; java.lang.String info = "\u0000\t\u0000\u0000\u0001\t\t\u0000\u0000\u0000\u0001\u0208\u0002\n\u0003\u0003" + "\u0004\t\u0005\t\u0006\t\u0007\t\b\t\t\n"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.ConsensusTopicInfo) private static final com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo DEFAULT_INSTANCE; static { ConsensusTopicInfo defaultInstance = new ConsensusTopicInfo(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ConsensusTopicInfo.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.ConsensusTopicInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy