implements
// @@protoc_insertion_point(builder_implements:proto.ConsensusTopicInfo)
com.hederahashgraph.api.proto.java.ConsensusTopicInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.ConsensusTopicInfo.class, com.hederahashgraph.api.proto.java.ConsensusTopicInfo.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.ConsensusTopicInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
memo_ = "";
runningHash_ = com.google.protobuf.ByteString.EMPTY;
sequenceNumber_ = 0L;
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
if (adminKeyBuilder_ == null) {
adminKey_ = null;
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
if (submitKeyBuilder_ == null) {
submitKey_ = null;
} else {
submitKey_ = null;
submitKeyBuilder_ = null;
}
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
if (autoRenewAccountBuilder_ == null) {
autoRenewAccount_ = null;
} else {
autoRenewAccount_ = null;
autoRenewAccountBuilder_ = null;
}
ledgerId_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.ConsensusTopicInfoOuterClass.internal_static_proto_ConsensusTopicInfo_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ConsensusTopicInfo getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.ConsensusTopicInfo.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ConsensusTopicInfo build() {
com.hederahashgraph.api.proto.java.ConsensusTopicInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ConsensusTopicInfo buildPartial() {
com.hederahashgraph.api.proto.java.ConsensusTopicInfo result = new com.hederahashgraph.api.proto.java.ConsensusTopicInfo(this);
result.memo_ = memo_;
result.runningHash_ = runningHash_;
result.sequenceNumber_ = sequenceNumber_;
if (expirationTimeBuilder_ == null) {
result.expirationTime_ = expirationTime_;
} else {
result.expirationTime_ = expirationTimeBuilder_.build();
}
if (adminKeyBuilder_ == null) {
result.adminKey_ = adminKey_;
} else {
result.adminKey_ = adminKeyBuilder_.build();
}
if (submitKeyBuilder_ == null) {
result.submitKey_ = submitKey_;
} else {
result.submitKey_ = submitKeyBuilder_.build();
}
if (autoRenewPeriodBuilder_ == null) {
result.autoRenewPeriod_ = autoRenewPeriod_;
} else {
result.autoRenewPeriod_ = autoRenewPeriodBuilder_.build();
}
if (autoRenewAccountBuilder_ == null) {
result.autoRenewAccount_ = autoRenewAccount_;
} else {
result.autoRenewAccount_ = autoRenewAccountBuilder_.build();
}
result.ledgerId_ = ledgerId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.hederahashgraph.api.proto.java.ConsensusTopicInfo) {
return mergeFrom((com.hederahashgraph.api.proto.java.ConsensusTopicInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.ConsensusTopicInfo other) {
if (other == com.hederahashgraph.api.proto.java.ConsensusTopicInfo.getDefaultInstance()) return this;
if (!other.getMemo().isEmpty()) {
memo_ = other.memo_;
onChanged();
}
if (other.getRunningHash() != com.google.protobuf.ByteString.EMPTY) {
setRunningHash(other.getRunningHash());
}
if (other.getSequenceNumber() != 0L) {
setSequenceNumber(other.getSequenceNumber());
}
if (other.hasExpirationTime()) {
mergeExpirationTime(other.getExpirationTime());
}
if (other.hasAdminKey()) {
mergeAdminKey(other.getAdminKey());
}
if (other.hasSubmitKey()) {
mergeSubmitKey(other.getSubmitKey());
}
if (other.hasAutoRenewPeriod()) {
mergeAutoRenewPeriod(other.getAutoRenewPeriod());
}
if (other.hasAutoRenewAccount()) {
mergeAutoRenewAccount(other.getAutoRenewAccount());
}
if (other.getLedgerId() != com.google.protobuf.ByteString.EMPTY) {
setLedgerId(other.getLedgerId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.hederahashgraph.api.proto.java.ConsensusTopicInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.ConsensusTopicInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object memo_ = "";
/**
*
**
* The memo associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* string memo = 1;
* @return The memo.
*/
public java.lang.String getMemo() {
java.lang.Object ref = memo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
memo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The memo associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* string memo = 1;
* @return The bytes for memo.
*/
public com.google.protobuf.ByteString
getMemoBytes() {
java.lang.Object ref = memo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The memo associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* string memo = 1;
* @param value The memo to set.
* @return This builder for chaining.
*/
public Builder setMemo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
memo_ = value;
onChanged();
return this;
}
/**
*
**
* The memo associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* string memo = 1;
* @return This builder for chaining.
*/
public Builder clearMemo() {
memo_ = getDefaultInstance().getMemo();
onChanged();
return this;
}
/**
*
**
* The memo associated with the topic (UTF-8 encoding max 100 bytes)
*
*
* string memo = 1;
* @param value The bytes for memo to set.
* @return This builder for chaining.
*/
public Builder setMemoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
memo_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString runningHash_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* When a topic is created, its running hash is initialized to 48 bytes of binary zeros.
* For each submitted message, the topic's running hash is then updated to the output
* of a particular SHA-384 digest whose input data include the previous running hash.
*
* See the TransactionReceipt.proto documentation for an exact description of the
* data included in the SHA-384 digest used for the update.
*
*
* bytes runningHash = 2;
* @return The runningHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRunningHash() {
return runningHash_;
}
/**
*
**
* When a topic is created, its running hash is initialized to 48 bytes of binary zeros.
* For each submitted message, the topic's running hash is then updated to the output
* of a particular SHA-384 digest whose input data include the previous running hash.
*
* See the TransactionReceipt.proto documentation for an exact description of the
* data included in the SHA-384 digest used for the update.
*
*
* bytes runningHash = 2;
* @param value The runningHash to set.
* @return This builder for chaining.
*/
public Builder setRunningHash(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
runningHash_ = value;
onChanged();
return this;
}
/**
*
**
* When a topic is created, its running hash is initialized to 48 bytes of binary zeros.
* For each submitted message, the topic's running hash is then updated to the output
* of a particular SHA-384 digest whose input data include the previous running hash.
*
* See the TransactionReceipt.proto documentation for an exact description of the
* data included in the SHA-384 digest used for the update.
*
*
* bytes runningHash = 2;
* @return This builder for chaining.
*/
public Builder clearRunningHash() {
runningHash_ = getDefaultInstance().getRunningHash();
onChanged();
return this;
}
private long sequenceNumber_ ;
/**
*
**
* Sequence number (starting at 1 for the first submitMessage) of messages on the topic.
*
*
* uint64 sequenceNumber = 3;
* @return The sequenceNumber.
*/
@java.lang.Override
public long getSequenceNumber() {
return sequenceNumber_;
}
/**
*
**
* Sequence number (starting at 1 for the first submitMessage) of messages on the topic.
*
*
* uint64 sequenceNumber = 3;
* @param value The sequenceNumber to set.
* @return This builder for chaining.
*/
public Builder setSequenceNumber(long value) {
sequenceNumber_ = value;
onChanged();
return this;
}
/**
*
**
* Sequence number (starting at 1 for the first submitMessage) of messages on the topic.
*
*
* uint64 sequenceNumber = 3;
* @return This builder for chaining.
*/
public Builder clearSequenceNumber() {
sequenceNumber_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Timestamp expirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> expirationTimeBuilder_;
/**
*
**
* Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
* and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
*
*
* .proto.Timestamp expirationTime = 4;
* @return Whether the expirationTime field is set.
*/
public boolean hasExpirationTime() {
return expirationTimeBuilder_ != null || expirationTime_ != null;
}
/**
*
**
* Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
* and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
*
*
* .proto.Timestamp expirationTime = 4;
* @return The expirationTime.
*/
public com.hederahashgraph.api.proto.java.Timestamp getExpirationTime() {
if (expirationTimeBuilder_ == null) {
return expirationTime_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_;
} else {
return expirationTimeBuilder_.getMessage();
}
}
/**
*
**
* Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
* and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
*
*
* .proto.Timestamp expirationTime = 4;
*/
public Builder setExpirationTime(com.hederahashgraph.api.proto.java.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expirationTime_ = value;
onChanged();
} else {
expirationTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
* and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
*
*
* .proto.Timestamp expirationTime = 4;
*/
public Builder setExpirationTime(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (expirationTimeBuilder_ == null) {
expirationTime_ = builderForValue.build();
onChanged();
} else {
expirationTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
* and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
*
*
* .proto.Timestamp expirationTime = 4;
*/
public Builder mergeExpirationTime(com.hederahashgraph.api.proto.java.Timestamp value) {
if (expirationTimeBuilder_ == null) {
if (expirationTime_ != null) {
expirationTime_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(expirationTime_).mergeFrom(value).buildPartial();
} else {
expirationTime_ = value;
}
onChanged();
} else {
expirationTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
* and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
*
*
* .proto.Timestamp expirationTime = 4;
*/
public Builder clearExpirationTime() {
if (expirationTimeBuilder_ == null) {
expirationTime_ = null;
onChanged();
} else {
expirationTime_ = null;
expirationTimeBuilder_ = null;
}
return this;
}
/**
*
**
* Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
* and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
*
*
* .proto.Timestamp expirationTime = 4;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getExpirationTimeBuilder() {
onChanged();
return getExpirationTimeFieldBuilder().getBuilder();
}
/**
*
**
* Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
* and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
*
*
* .proto.Timestamp expirationTime = 4;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getExpirationTimeOrBuilder() {
if (expirationTimeBuilder_ != null) {
return expirationTimeBuilder_.getMessageOrBuilder();
} else {
return expirationTime_ == null ?
com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : expirationTime_;
}
}
/**
*
**
* Effective consensus timestamp at (and after) which submitMessage calls will no longer succeed on the topic
* and the topic will expire and after AUTORENEW_GRACE_PERIOD be automatically deleted.
*
*
* .proto.Timestamp expirationTime = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getExpirationTimeFieldBuilder() {
if (expirationTimeBuilder_ == null) {
expirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getExpirationTime(),
getParentForChildren(),
isClean());
expirationTime_ = null;
}
return expirationTimeBuilder_;
}
private com.hederahashgraph.api.proto.java.Key adminKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> adminKeyBuilder_;
/**
*
**
* Access control for update/delete of the topic. Null if there is no key.
*
*
* .proto.Key adminKey = 5;
* @return Whether the adminKey field is set.
*/
public boolean hasAdminKey() {
return adminKeyBuilder_ != null || adminKey_ != null;
}
/**
*
**
* Access control for update/delete of the topic. Null if there is no key.
*
*
* .proto.Key adminKey = 5;
* @return The adminKey.
*/
public com.hederahashgraph.api.proto.java.Key getAdminKey() {
if (adminKeyBuilder_ == null) {
return adminKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_;
} else {
return adminKeyBuilder_.getMessage();
}
}
/**
*
**
* Access control for update/delete of the topic. Null if there is no key.
*
*
* .proto.Key adminKey = 5;
*/
public Builder setAdminKey(com.hederahashgraph.api.proto.java.Key value) {
if (adminKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
adminKey_ = value;
onChanged();
} else {
adminKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Access control for update/delete of the topic. Null if there is no key.
*
*
* .proto.Key adminKey = 5;
*/
public Builder setAdminKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (adminKeyBuilder_ == null) {
adminKey_ = builderForValue.build();
onChanged();
} else {
adminKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Access control for update/delete of the topic. Null if there is no key.
*
*
* .proto.Key adminKey = 5;
*/
public Builder mergeAdminKey(com.hederahashgraph.api.proto.java.Key value) {
if (adminKeyBuilder_ == null) {
if (adminKey_ != null) {
adminKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(adminKey_).mergeFrom(value).buildPartial();
} else {
adminKey_ = value;
}
onChanged();
} else {
adminKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Access control for update/delete of the topic. Null if there is no key.
*
*
* .proto.Key adminKey = 5;
*/
public Builder clearAdminKey() {
if (adminKeyBuilder_ == null) {
adminKey_ = null;
onChanged();
} else {
adminKey_ = null;
adminKeyBuilder_ = null;
}
return this;
}
/**
*
**
* Access control for update/delete of the topic. Null if there is no key.
*
*
* .proto.Key adminKey = 5;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getAdminKeyBuilder() {
onChanged();
return getAdminKeyFieldBuilder().getBuilder();
}
/**
*
**
* Access control for update/delete of the topic. Null if there is no key.
*
*
* .proto.Key adminKey = 5;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getAdminKeyOrBuilder() {
if (adminKeyBuilder_ != null) {
return adminKeyBuilder_.getMessageOrBuilder();
} else {
return adminKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : adminKey_;
}
}
/**
*
**
* Access control for update/delete of the topic. Null if there is no key.
*
*
* .proto.Key adminKey = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getAdminKeyFieldBuilder() {
if (adminKeyBuilder_ == null) {
adminKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getAdminKey(),
getParentForChildren(),
isClean());
adminKey_ = null;
}
return adminKeyBuilder_;
}
private com.hederahashgraph.api.proto.java.Key submitKey_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder> submitKeyBuilder_;
/**
*
**
* Access control for ConsensusService.submitMessage. Null if there is no key.
*
*
* .proto.Key submitKey = 6;
* @return Whether the submitKey field is set.
*/
public boolean hasSubmitKey() {
return submitKeyBuilder_ != null || submitKey_ != null;
}
/**
*
**
* Access control for ConsensusService.submitMessage. Null if there is no key.
*
*
* .proto.Key submitKey = 6;
* @return The submitKey.
*/
public com.hederahashgraph.api.proto.java.Key getSubmitKey() {
if (submitKeyBuilder_ == null) {
return submitKey_ == null ? com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : submitKey_;
} else {
return submitKeyBuilder_.getMessage();
}
}
/**
*
**
* Access control for ConsensusService.submitMessage. Null if there is no key.
*
*
* .proto.Key submitKey = 6;
*/
public Builder setSubmitKey(com.hederahashgraph.api.proto.java.Key value) {
if (submitKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
submitKey_ = value;
onChanged();
} else {
submitKeyBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Access control for ConsensusService.submitMessage. Null if there is no key.
*
*
* .proto.Key submitKey = 6;
*/
public Builder setSubmitKey(
com.hederahashgraph.api.proto.java.Key.Builder builderForValue) {
if (submitKeyBuilder_ == null) {
submitKey_ = builderForValue.build();
onChanged();
} else {
submitKeyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Access control for ConsensusService.submitMessage. Null if there is no key.
*
*
* .proto.Key submitKey = 6;
*/
public Builder mergeSubmitKey(com.hederahashgraph.api.proto.java.Key value) {
if (submitKeyBuilder_ == null) {
if (submitKey_ != null) {
submitKey_ =
com.hederahashgraph.api.proto.java.Key.newBuilder(submitKey_).mergeFrom(value).buildPartial();
} else {
submitKey_ = value;
}
onChanged();
} else {
submitKeyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Access control for ConsensusService.submitMessage. Null if there is no key.
*
*
* .proto.Key submitKey = 6;
*/
public Builder clearSubmitKey() {
if (submitKeyBuilder_ == null) {
submitKey_ = null;
onChanged();
} else {
submitKey_ = null;
submitKeyBuilder_ = null;
}
return this;
}
/**
*
**
* Access control for ConsensusService.submitMessage. Null if there is no key.
*
*
* .proto.Key submitKey = 6;
*/
public com.hederahashgraph.api.proto.java.Key.Builder getSubmitKeyBuilder() {
onChanged();
return getSubmitKeyFieldBuilder().getBuilder();
}
/**
*
**
* Access control for ConsensusService.submitMessage. Null if there is no key.
*
*
* .proto.Key submitKey = 6;
*/
public com.hederahashgraph.api.proto.java.KeyOrBuilder getSubmitKeyOrBuilder() {
if (submitKeyBuilder_ != null) {
return submitKeyBuilder_.getMessageOrBuilder();
} else {
return submitKey_ == null ?
com.hederahashgraph.api.proto.java.Key.getDefaultInstance() : submitKey_;
}
}
/**
*
**
* Access control for ConsensusService.submitMessage. Null if there is no key.
*
*
* .proto.Key submitKey = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>
getSubmitKeyFieldBuilder() {
if (submitKeyBuilder_ == null) {
submitKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Key, com.hederahashgraph.api.proto.java.Key.Builder, com.hederahashgraph.api.proto.java.KeyOrBuilder>(
getSubmitKey(),
getParentForChildren(),
isClean());
submitKey_ = null;
}
return submitKeyBuilder_;
}
private com.hederahashgraph.api.proto.java.Duration autoRenewPeriod_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder> autoRenewPeriodBuilder_;
/**
*
**
* If an auto-renew account is specified, when the topic expires, its lifetime will be extended
* by up to this duration (depending on the solvency of the auto-renew account). If the
* auto-renew account has no funds at all, the topic will be deleted instead.
*
*
* .proto.Duration autoRenewPeriod = 7;
* @return Whether the autoRenewPeriod field is set.
*/
public boolean hasAutoRenewPeriod() {
return autoRenewPeriodBuilder_ != null || autoRenewPeriod_ != null;
}
/**
*
**
* If an auto-renew account is specified, when the topic expires, its lifetime will be extended
* by up to this duration (depending on the solvency of the auto-renew account). If the
* auto-renew account has no funds at all, the topic will be deleted instead.
*
*
* .proto.Duration autoRenewPeriod = 7;
* @return The autoRenewPeriod.
*/
public com.hederahashgraph.api.proto.java.Duration getAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
return autoRenewPeriod_ == null ? com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : autoRenewPeriod_;
} else {
return autoRenewPeriodBuilder_.getMessage();
}
}
/**
*
**
* If an auto-renew account is specified, when the topic expires, its lifetime will be extended
* by up to this duration (depending on the solvency of the auto-renew account). If the
* auto-renew account has no funds at all, the topic will be deleted instead.
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public Builder setAutoRenewPeriod(com.hederahashgraph.api.proto.java.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewPeriod_ = value;
onChanged();
} else {
autoRenewPeriodBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* If an auto-renew account is specified, when the topic expires, its lifetime will be extended
* by up to this duration (depending on the solvency of the auto-renew account). If the
* auto-renew account has no funds at all, the topic will be deleted instead.
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public Builder setAutoRenewPeriod(
com.hederahashgraph.api.proto.java.Duration.Builder builderForValue) {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = builderForValue.build();
onChanged();
} else {
autoRenewPeriodBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* If an auto-renew account is specified, when the topic expires, its lifetime will be extended
* by up to this duration (depending on the solvency of the auto-renew account). If the
* auto-renew account has no funds at all, the topic will be deleted instead.
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public Builder mergeAutoRenewPeriod(com.hederahashgraph.api.proto.java.Duration value) {
if (autoRenewPeriodBuilder_ == null) {
if (autoRenewPeriod_ != null) {
autoRenewPeriod_ =
com.hederahashgraph.api.proto.java.Duration.newBuilder(autoRenewPeriod_).mergeFrom(value).buildPartial();
} else {
autoRenewPeriod_ = value;
}
onChanged();
} else {
autoRenewPeriodBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* If an auto-renew account is specified, when the topic expires, its lifetime will be extended
* by up to this duration (depending on the solvency of the auto-renew account). If the
* auto-renew account has no funds at all, the topic will be deleted instead.
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public Builder clearAutoRenewPeriod() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriod_ = null;
onChanged();
} else {
autoRenewPeriod_ = null;
autoRenewPeriodBuilder_ = null;
}
return this;
}
/**
*
**
* If an auto-renew account is specified, when the topic expires, its lifetime will be extended
* by up to this duration (depending on the solvency of the auto-renew account). If the
* auto-renew account has no funds at all, the topic will be deleted instead.
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public com.hederahashgraph.api.proto.java.Duration.Builder getAutoRenewPeriodBuilder() {
onChanged();
return getAutoRenewPeriodFieldBuilder().getBuilder();
}
/**
*
**
* If an auto-renew account is specified, when the topic expires, its lifetime will be extended
* by up to this duration (depending on the solvency of the auto-renew account). If the
* auto-renew account has no funds at all, the topic will be deleted instead.
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
public com.hederahashgraph.api.proto.java.DurationOrBuilder getAutoRenewPeriodOrBuilder() {
if (autoRenewPeriodBuilder_ != null) {
return autoRenewPeriodBuilder_.getMessageOrBuilder();
} else {
return autoRenewPeriod_ == null ?
com.hederahashgraph.api.proto.java.Duration.getDefaultInstance() : autoRenewPeriod_;
}
}
/**
*
**
* If an auto-renew account is specified, when the topic expires, its lifetime will be extended
* by up to this duration (depending on the solvency of the auto-renew account). If the
* auto-renew account has no funds at all, the topic will be deleted instead.
*
*
* .proto.Duration autoRenewPeriod = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder>
getAutoRenewPeriodFieldBuilder() {
if (autoRenewPeriodBuilder_ == null) {
autoRenewPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Duration, com.hederahashgraph.api.proto.java.Duration.Builder, com.hederahashgraph.api.proto.java.DurationOrBuilder>(
getAutoRenewPeriod(),
getParentForChildren(),
isClean());
autoRenewPeriod_ = null;
}
return autoRenewPeriodBuilder_;
}
private com.hederahashgraph.api.proto.java.AccountID autoRenewAccount_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder> autoRenewAccountBuilder_;
/**
*
**
* The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
*
*
* .proto.AccountID autoRenewAccount = 8;
* @return Whether the autoRenewAccount field is set.
*/
public boolean hasAutoRenewAccount() {
return autoRenewAccountBuilder_ != null || autoRenewAccount_ != null;
}
/**
*
**
* The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
*
*
* .proto.AccountID autoRenewAccount = 8;
* @return The autoRenewAccount.
*/
public com.hederahashgraph.api.proto.java.AccountID getAutoRenewAccount() {
if (autoRenewAccountBuilder_ == null) {
return autoRenewAccount_ == null ? com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : autoRenewAccount_;
} else {
return autoRenewAccountBuilder_.getMessage();
}
}
/**
*
**
* The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
*
*
* .proto.AccountID autoRenewAccount = 8;
*/
public Builder setAutoRenewAccount(com.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoRenewAccount_ = value;
onChanged();
} else {
autoRenewAccountBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
*
*
* .proto.AccountID autoRenewAccount = 8;
*/
public Builder setAutoRenewAccount(
com.hederahashgraph.api.proto.java.AccountID.Builder builderForValue) {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccount_ = builderForValue.build();
onChanged();
} else {
autoRenewAccountBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
*
*
* .proto.AccountID autoRenewAccount = 8;
*/
public Builder mergeAutoRenewAccount(com.hederahashgraph.api.proto.java.AccountID value) {
if (autoRenewAccountBuilder_ == null) {
if (autoRenewAccount_ != null) {
autoRenewAccount_ =
com.hederahashgraph.api.proto.java.AccountID.newBuilder(autoRenewAccount_).mergeFrom(value).buildPartial();
} else {
autoRenewAccount_ = value;
}
onChanged();
} else {
autoRenewAccountBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
*
*
* .proto.AccountID autoRenewAccount = 8;
*/
public Builder clearAutoRenewAccount() {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccount_ = null;
onChanged();
} else {
autoRenewAccount_ = null;
autoRenewAccountBuilder_ = null;
}
return this;
}
/**
*
**
* The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
*
*
* .proto.AccountID autoRenewAccount = 8;
*/
public com.hederahashgraph.api.proto.java.AccountID.Builder getAutoRenewAccountBuilder() {
onChanged();
return getAutoRenewAccountFieldBuilder().getBuilder();
}
/**
*
**
* The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
*
*
* .proto.AccountID autoRenewAccount = 8;
*/
public com.hederahashgraph.api.proto.java.AccountIDOrBuilder getAutoRenewAccountOrBuilder() {
if (autoRenewAccountBuilder_ != null) {
return autoRenewAccountBuilder_.getMessageOrBuilder();
} else {
return autoRenewAccount_ == null ?
com.hederahashgraph.api.proto.java.AccountID.getDefaultInstance() : autoRenewAccount_;
}
}
/**
*
**
* The account, if any, to charge for automatic renewal of the topic's lifetime upon expiry.
*
*
* .proto.AccountID autoRenewAccount = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>
getAutoRenewAccountFieldBuilder() {
if (autoRenewAccountBuilder_ == null) {
autoRenewAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.AccountID, com.hederahashgraph.api.proto.java.AccountID.Builder, com.hederahashgraph.api.proto.java.AccountIDOrBuilder>(
getAutoRenewAccount(),
getParentForChildren(),
isClean());
autoRenewAccount_ = null;
}
return autoRenewAccountBuilder_;
}
private com.google.protobuf.ByteString ledgerId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 9;
* @return The ledgerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLedgerId() {
return ledgerId_;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 9;
* @param value The ledgerId to set.
* @return This builder for chaining.
*/
public Builder setLedgerId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ledgerId_ = value;
onChanged();
return this;
}
/**
*
**
* The ledger ID the response was returned from; please see <a href="https://github.com/hashgraph/hedera-improvement-proposal/blob/master/HIP/hip-198.md">HIP-198</a> for the network-specific IDs.
*
*
* bytes ledger_id = 9;
* @return This builder for chaining.
*/
public Builder clearLedgerId() {
ledgerId_ = getDefaultInstance().getLedgerId();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto.ConsensusTopicInfo)
}
// @@protoc_insertion_point(class_scope:proto.ConsensusTopicInfo)
private static final com.hederahashgraph.api.proto.java.ConsensusTopicInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.ConsensusTopicInfo();
}
public static com.hederahashgraph.api.proto.java.ConsensusTopicInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConsensusTopicInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConsensusTopicInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.ConsensusTopicInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}