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

com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse Maven / Gradle / Ivy

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

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

/**
 * Protobuf type {@code com.hedera.mirror.api.proto.ConsensusTopicResponse}
 */
public  final class ConsensusTopicResponse extends
    com.google.protobuf.GeneratedMessageLite<
        ConsensusTopicResponse, ConsensusTopicResponse.Builder> implements
    // @@protoc_insertion_point(message_implements:com.hedera.mirror.api.proto.ConsensusTopicResponse)
    ConsensusTopicResponseOrBuilder {
  private ConsensusTopicResponse() {
    message_ = com.google.protobuf.ByteString.EMPTY;
    runningHash_ = com.google.protobuf.ByteString.EMPTY;
  }
  private int bitField0_;
  public static final int CONSENSUSTIMESTAMP_FIELD_NUMBER = 1;
  private com.hedera.hashgraph.sdk.proto.Timestamp consensusTimestamp_;
  /**
   * 
   **
   * The time at which the transaction reached consensus
   * 
* * .proto.Timestamp consensusTimestamp = 1; */ @java.lang.Override public boolean hasConsensusTimestamp() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The time at which the transaction reached consensus
   * 
* * .proto.Timestamp consensusTimestamp = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Timestamp getConsensusTimestamp() { return consensusTimestamp_ == null ? com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance() : consensusTimestamp_; } /** *
   **
   * The time at which the transaction reached consensus
   * 
* * .proto.Timestamp consensusTimestamp = 1; */ private void setConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) { value.getClass(); consensusTimestamp_ = value; bitField0_ |= 0x00000001; } /** *
   **
   * The time at which the transaction reached consensus
   * 
* * .proto.Timestamp consensusTimestamp = 1; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) { value.getClass(); if (consensusTimestamp_ != null && consensusTimestamp_ != com.hedera.hashgraph.sdk.proto.Timestamp.getDefaultInstance()) { consensusTimestamp_ = com.hedera.hashgraph.sdk.proto.Timestamp.newBuilder(consensusTimestamp_).mergeFrom(value).buildPartial(); } else { consensusTimestamp_ = value; } bitField0_ |= 0x00000001; } /** *
   **
   * The time at which the transaction reached consensus
   * 
* * .proto.Timestamp consensusTimestamp = 1; */ private void clearConsensusTimestamp() { consensusTimestamp_ = null; bitField0_ = (bitField0_ & ~0x00000001); } public static final int MESSAGE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString message_; /** *
   **
   * The message body originally in the ConsensusSubmitMessageTransactionBody. Message size will
   * be less than 6KiB.
   * 
* * bytes message = 2; * @return The message. */ @java.lang.Override public com.google.protobuf.ByteString getMessage() { return message_; } /** *
   **
   * The message body originally in the ConsensusSubmitMessageTransactionBody. Message size will
   * be less than 6KiB.
   * 
* * bytes message = 2; * @param value The message to set. */ private void setMessage(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); message_ = value; } /** *
   **
   * The message body originally in the ConsensusSubmitMessageTransactionBody. Message size will
   * be less than 6KiB.
   * 
* * bytes message = 2; */ private void clearMessage() { message_ = getDefaultInstance().getMessage(); } public static final int RUNNINGHASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString runningHash_; /** *
   **
   * The running hash (SHA384) of every message.
   * 
* * bytes runningHash = 3; * @return The runningHash. */ @java.lang.Override public com.google.protobuf.ByteString getRunningHash() { return runningHash_; } /** *
   **
   * The running hash (SHA384) of every message.
   * 
* * bytes runningHash = 3; * @param value The runningHash to set. */ private void setRunningHash(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); runningHash_ = value; } /** *
   **
   * The running hash (SHA384) of every message.
   * 
* * bytes runningHash = 3; */ private void clearRunningHash() { runningHash_ = getDefaultInstance().getRunningHash(); } public static final int SEQUENCENUMBER_FIELD_NUMBER = 4; private long sequenceNumber_; /** *
   **
   * Starts at 1 for first submitted message. Incremented on each submitted message.
   * 
* * uint64 sequenceNumber = 4; * @return The sequenceNumber. */ @java.lang.Override public long getSequenceNumber() { return sequenceNumber_; } /** *
   **
   * Starts at 1 for first submitted message. Incremented on each submitted message.
   * 
* * uint64 sequenceNumber = 4; * @param value The sequenceNumber to set. */ private void setSequenceNumber(long value) { sequenceNumber_ = value; } /** *
   **
   * Starts at 1 for first submitted message. Incremented on each submitted message.
   * 
* * uint64 sequenceNumber = 4; */ private void clearSequenceNumber() { sequenceNumber_ = 0L; } public static final int RUNNINGHASHVERSION_FIELD_NUMBER = 5; private long runningHashVersion_; /** *
   **
   * Version of the SHA-384 digest used to update the running hash.
   * 
* * uint64 runningHashVersion = 5; * @return The runningHashVersion. */ @java.lang.Override public long getRunningHashVersion() { return runningHashVersion_; } /** *
   **
   * Version of the SHA-384 digest used to update the running hash.
   * 
* * uint64 runningHashVersion = 5; * @param value The runningHashVersion to set. */ private void setRunningHashVersion(long value) { runningHashVersion_ = value; } /** *
   **
   * Version of the SHA-384 digest used to update the running hash.
   * 
* * uint64 runningHashVersion = 5; */ private void clearRunningHashVersion() { runningHashVersion_ = 0L; } public static final int CHUNKINFO_FIELD_NUMBER = 6; private com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo chunkInfo_; /** *
   **
   * Optional information of the current chunk in a fragmented message.
   * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ @java.lang.Override public boolean hasChunkInfo() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * Optional information of the current chunk in a fragmented message.
   * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo getChunkInfo() { return chunkInfo_ == null ? com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo.getDefaultInstance() : chunkInfo_; } /** *
   **
   * Optional information of the current chunk in a fragmented message.
   * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ private void setChunkInfo(com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo value) { value.getClass(); chunkInfo_ = value; bitField0_ |= 0x00000002; } /** *
   **
   * Optional information of the current chunk in a fragmented message.
   * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeChunkInfo(com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo value) { value.getClass(); if (chunkInfo_ != null && chunkInfo_ != com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo.getDefaultInstance()) { chunkInfo_ = com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo.newBuilder(chunkInfo_).mergeFrom(value).buildPartial(); } else { chunkInfo_ = value; } bitField0_ |= 0x00000002; } /** *
   **
   * Optional information of the current chunk in a fragmented message.
   * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ private void clearChunkInfo() { chunkInfo_ = null; bitField0_ = (bitField0_ & ~0x00000002); } public static com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse 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.mirror.ConsensusTopicResponse 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.mirror.ConsensusTopicResponse 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.mirror.ConsensusTopicResponse 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.mirror.ConsensusTopicResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse 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.mirror.ConsensusTopicResponse 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.mirror.ConsensusTopicResponse 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.mirror.ConsensusTopicResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse 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.mirror.ConsensusTopicResponse 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.mirror.ConsensusTopicResponse 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.mirror.ConsensusTopicResponse prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code com.hedera.mirror.api.proto.ConsensusTopicResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse, Builder> implements // @@protoc_insertion_point(builder_implements:com.hedera.mirror.api.proto.ConsensusTopicResponse) com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponseOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * The time at which the transaction reached consensus
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ @java.lang.Override public boolean hasConsensusTimestamp() { return instance.hasConsensusTimestamp(); } /** *
     **
     * The time at which the transaction reached consensus
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.Timestamp getConsensusTimestamp() { return instance.getConsensusTimestamp(); } /** *
     **
     * The time at which the transaction reached consensus
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ public Builder setConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) { copyOnWrite(); instance.setConsensusTimestamp(value); return this; } /** *
     **
     * The time at which the transaction reached consensus
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ public Builder setConsensusTimestamp( com.hedera.hashgraph.sdk.proto.Timestamp.Builder builderForValue) { copyOnWrite(); instance.setConsensusTimestamp(builderForValue.build()); return this; } /** *
     **
     * The time at which the transaction reached consensus
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ public Builder mergeConsensusTimestamp(com.hedera.hashgraph.sdk.proto.Timestamp value) { copyOnWrite(); instance.mergeConsensusTimestamp(value); return this; } /** *
     **
     * The time at which the transaction reached consensus
     * 
* * .proto.Timestamp consensusTimestamp = 1; */ public Builder clearConsensusTimestamp() { copyOnWrite(); instance.clearConsensusTimestamp(); return this; } /** *
     **
     * The message body originally in the ConsensusSubmitMessageTransactionBody. Message size will
     * be less than 6KiB.
     * 
* * bytes message = 2; * @return The message. */ @java.lang.Override public com.google.protobuf.ByteString getMessage() { return instance.getMessage(); } /** *
     **
     * The message body originally in the ConsensusSubmitMessageTransactionBody. Message size will
     * be less than 6KiB.
     * 
* * bytes message = 2; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setMessage(value); return this; } /** *
     **
     * The message body originally in the ConsensusSubmitMessageTransactionBody. Message size will
     * be less than 6KiB.
     * 
* * bytes message = 2; * @return This builder for chaining. */ public Builder clearMessage() { copyOnWrite(); instance.clearMessage(); return this; } /** *
     **
     * The running hash (SHA384) of every message.
     * 
* * bytes runningHash = 3; * @return The runningHash. */ @java.lang.Override public com.google.protobuf.ByteString getRunningHash() { return instance.getRunningHash(); } /** *
     **
     * The running hash (SHA384) of every message.
     * 
* * bytes runningHash = 3; * @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; } /** *
     **
     * The running hash (SHA384) of every message.
     * 
* * bytes runningHash = 3; * @return This builder for chaining. */ public Builder clearRunningHash() { copyOnWrite(); instance.clearRunningHash(); return this; } /** *
     **
     * Starts at 1 for first submitted message. Incremented on each submitted message.
     * 
* * uint64 sequenceNumber = 4; * @return The sequenceNumber. */ @java.lang.Override public long getSequenceNumber() { return instance.getSequenceNumber(); } /** *
     **
     * Starts at 1 for first submitted message. Incremented on each submitted message.
     * 
* * uint64 sequenceNumber = 4; * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(long value) { copyOnWrite(); instance.setSequenceNumber(value); return this; } /** *
     **
     * Starts at 1 for first submitted message. Incremented on each submitted message.
     * 
* * uint64 sequenceNumber = 4; * @return This builder for chaining. */ public Builder clearSequenceNumber() { copyOnWrite(); instance.clearSequenceNumber(); return this; } /** *
     **
     * Version of the SHA-384 digest used to update the running hash.
     * 
* * uint64 runningHashVersion = 5; * @return The runningHashVersion. */ @java.lang.Override public long getRunningHashVersion() { return instance.getRunningHashVersion(); } /** *
     **
     * Version of the SHA-384 digest used to update the running hash.
     * 
* * uint64 runningHashVersion = 5; * @param value The runningHashVersion to set. * @return This builder for chaining. */ public Builder setRunningHashVersion(long value) { copyOnWrite(); instance.setRunningHashVersion(value); return this; } /** *
     **
     * Version of the SHA-384 digest used to update the running hash.
     * 
* * uint64 runningHashVersion = 5; * @return This builder for chaining. */ public Builder clearRunningHashVersion() { copyOnWrite(); instance.clearRunningHashVersion(); return this; } /** *
     **
     * Optional information of the current chunk in a fragmented message.
     * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ @java.lang.Override public boolean hasChunkInfo() { return instance.hasChunkInfo(); } /** *
     **
     * Optional information of the current chunk in a fragmented message.
     * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ @java.lang.Override public com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo getChunkInfo() { return instance.getChunkInfo(); } /** *
     **
     * Optional information of the current chunk in a fragmented message.
     * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ public Builder setChunkInfo(com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo value) { copyOnWrite(); instance.setChunkInfo(value); return this; } /** *
     **
     * Optional information of the current chunk in a fragmented message.
     * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ public Builder setChunkInfo( com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo.Builder builderForValue) { copyOnWrite(); instance.setChunkInfo(builderForValue.build()); return this; } /** *
     **
     * Optional information of the current chunk in a fragmented message.
     * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ public Builder mergeChunkInfo(com.hedera.hashgraph.sdk.proto.ConsensusMessageChunkInfo value) { copyOnWrite(); instance.mergeChunkInfo(value); return this; } /** *
     **
     * Optional information of the current chunk in a fragmented message.
     * 
* * .proto.ConsensusMessageChunkInfo chunkInfo = 6; */ public Builder clearChunkInfo() { copyOnWrite(); instance.clearChunkInfo(); return this; } // @@protoc_insertion_point(builder_scope:com.hedera.mirror.api.proto.ConsensusTopicResponse) } @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.mirror.ConsensusTopicResponse(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "consensusTimestamp_", "message_", "runningHash_", "sequenceNumber_", "runningHashVersion_", "chunkInfo_", }; java.lang.String info = "\u0000\u0006\u0000\u0001\u0001\u0006\u0006\u0000\u0000\u0000\u0001\u1009\u0000\u0002" + "\n\u0003\n\u0004\u0003\u0005\u0003\u0006\u1009\u0001"; 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.mirror.ConsensusTopicResponse.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:com.hedera.mirror.api.proto.ConsensusTopicResponse) private static final com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse DEFAULT_INSTANCE; static { ConsensusTopicResponse defaultInstance = new ConsensusTopicResponse(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ConsensusTopicResponse.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse 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