Module com.hedera.hashgraph.sdk
Class ConsensusTopicResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ConsensusTopicResponse,ConsensusTopicResponse.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ConsensusTopicResponse,ConsensusTopicResponse.Builder>
com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,ConsensusTopicResponseOrBuilder,Cloneable
- Enclosing class:
ConsensusTopicResponse
public static final class ConsensusTopicResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ConsensusTopicResponse,ConsensusTopicResponse.Builder>
implements ConsensusTopicResponseOrBuilder
Protobuf type
com.hedera.mirror.api.proto.ConsensusTopicResponse-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* Optional information of the current chunk in a fragmented message.* The time at which the transaction reached consensus* The message body originally in the ConsensusSubmitMessageTransactionBody.* The running hash (SHA384) of every message.* Version of the SHA-384 digest used to update the running hash.* Starts at 1 for first submitted message.* Optional information of the current chunk in a fragmented message.* The time at which the transaction reached consensuscom.google.protobuf.ByteString* The message body originally in the ConsensusSubmitMessageTransactionBody.com.google.protobuf.ByteString* The running hash (SHA384) of every message.long* Version of the SHA-384 digest used to update the running hash.long* Starts at 1 for first submitted message.boolean* Optional information of the current chunk in a fragmented message.boolean* The time at which the transaction reached consensus* Optional information of the current chunk in a fragmented message.mergeConsensusTimestamp(Timestamp value) * The time at which the transaction reached consensus* Optional information of the current chunk in a fragmented message.setChunkInfo(ConsensusMessageChunkInfo.Builder builderForValue) * Optional information of the current chunk in a fragmented message.setConsensusTimestamp(Timestamp value) * The time at which the transaction reached consensussetConsensusTimestamp(Timestamp.Builder builderForValue) * The time at which the transaction reached consensussetMessage(com.google.protobuf.ByteString value) * The message body originally in the ConsensusSubmitMessageTransactionBody.setRunningHash(com.google.protobuf.ByteString value) * The running hash (SHA384) of every message.setRunningHashVersion(long value) * Version of the SHA-384 digest used to update the running hash.setSequenceNumber(long value) * Starts at 1 for first submitted message.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasConsensusTimestamp
public boolean hasConsensusTimestamp()* The time at which the transaction reached consensus
.proto.Timestamp consensusTimestamp = 1;- Specified by:
hasConsensusTimestampin interfaceConsensusTopicResponseOrBuilder- Returns:
- Whether the consensusTimestamp field is set.
-
getConsensusTimestamp
* The time at which the transaction reached consensus
.proto.Timestamp consensusTimestamp = 1;- Specified by:
getConsensusTimestampin interfaceConsensusTopicResponseOrBuilder- Returns:
- The consensusTimestamp.
-
setConsensusTimestamp
* The time at which the transaction reached consensus
.proto.Timestamp consensusTimestamp = 1; -
setConsensusTimestamp
* The time at which the transaction reached consensus
.proto.Timestamp consensusTimestamp = 1; -
mergeConsensusTimestamp
* The time at which the transaction reached consensus
.proto.Timestamp consensusTimestamp = 1; -
clearConsensusTimestamp
* The time at which the transaction reached consensus
.proto.Timestamp consensusTimestamp = 1; -
getMessage
public com.google.protobuf.ByteString getMessage()* The message body originally in the ConsensusSubmitMessageTransactionBody. Message size will be less than 6KiB.
bytes message = 2;- Specified by:
getMessagein interfaceConsensusTopicResponseOrBuilder- Returns:
- The message.
-
setMessage
* The message body originally in the ConsensusSubmitMessageTransactionBody. Message size will be less than 6KiB.
bytes message = 2;- Parameters:
value- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
* The message body originally in the ConsensusSubmitMessageTransactionBody. Message size will be less than 6KiB.
bytes message = 2;- Returns:
- This builder for chaining.
-
getRunningHash
public com.google.protobuf.ByteString getRunningHash()* The running hash (SHA384) of every message.
bytes runningHash = 3;- Specified by:
getRunningHashin interfaceConsensusTopicResponseOrBuilder- Returns:
- The runningHash.
-
setRunningHash
* The running hash (SHA384) of every message.
bytes runningHash = 3;- Parameters:
value- The runningHash to set.- Returns:
- This builder for chaining.
-
clearRunningHash
* The running hash (SHA384) of every message.
bytes runningHash = 3;- Returns:
- This builder for chaining.
-
getSequenceNumber
public long getSequenceNumber()* Starts at 1 for first submitted message. Incremented on each submitted message.
uint64 sequenceNumber = 4;- Specified by:
getSequenceNumberin interfaceConsensusTopicResponseOrBuilder- Returns:
- The sequenceNumber.
-
setSequenceNumber
* Starts at 1 for first submitted message. Incremented on each submitted message.
uint64 sequenceNumber = 4;- Parameters:
value- The sequenceNumber to set.- Returns:
- This builder for chaining.
-
clearSequenceNumber
* Starts at 1 for first submitted message. Incremented on each submitted message.
uint64 sequenceNumber = 4;- Returns:
- This builder for chaining.
-
getRunningHashVersion
public long getRunningHashVersion()* Version of the SHA-384 digest used to update the running hash.
uint64 runningHashVersion = 5;- Specified by:
getRunningHashVersionin interfaceConsensusTopicResponseOrBuilder- Returns:
- The runningHashVersion.
-
setRunningHashVersion
* Version of the SHA-384 digest used to update the running hash.
uint64 runningHashVersion = 5;- Parameters:
value- The runningHashVersion to set.- Returns:
- This builder for chaining.
-
clearRunningHashVersion
* Version of the SHA-384 digest used to update the running hash.
uint64 runningHashVersion = 5;- Returns:
- This builder for chaining.
-
hasChunkInfo
public boolean hasChunkInfo()* Optional information of the current chunk in a fragmented message.
.proto.ConsensusMessageChunkInfo chunkInfo = 6;- Specified by:
hasChunkInfoin interfaceConsensusTopicResponseOrBuilder- Returns:
- Whether the chunkInfo field is set.
-
getChunkInfo
* Optional information of the current chunk in a fragmented message.
.proto.ConsensusMessageChunkInfo chunkInfo = 6;- Specified by:
getChunkInfoin interfaceConsensusTopicResponseOrBuilder- Returns:
- The chunkInfo.
-
setChunkInfo
* Optional information of the current chunk in a fragmented message.
.proto.ConsensusMessageChunkInfo chunkInfo = 6; -
setChunkInfo
public ConsensusTopicResponse.Builder setChunkInfo(ConsensusMessageChunkInfo.Builder builderForValue) * Optional information of the current chunk in a fragmented message.
.proto.ConsensusMessageChunkInfo chunkInfo = 6; -
mergeChunkInfo
* Optional information of the current chunk in a fragmented message.
.proto.ConsensusMessageChunkInfo chunkInfo = 6; -
clearChunkInfo
* Optional information of the current chunk in a fragmented message.
.proto.ConsensusMessageChunkInfo chunkInfo = 6;
-