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
  • Method Details

    • hasConsensusTimestamp

      public boolean hasConsensusTimestamp()
       *
       The time at which the transaction reached consensus
       
      .proto.Timestamp consensusTimestamp = 1;
      Specified by:
      hasConsensusTimestamp in interface ConsensusTopicResponseOrBuilder
      Returns:
      Whether the consensusTimestamp field is set.
    • getConsensusTimestamp

      public Timestamp getConsensusTimestamp()
       *
       The time at which the transaction reached consensus
       
      .proto.Timestamp consensusTimestamp = 1;
      Specified by:
      getConsensusTimestamp in interface ConsensusTopicResponseOrBuilder
      Returns:
      The consensusTimestamp.
    • setConsensusTimestamp

      public ConsensusTopicResponse.Builder setConsensusTimestamp(Timestamp value)
       *
       The time at which the transaction reached consensus
       
      .proto.Timestamp consensusTimestamp = 1;
    • setConsensusTimestamp

      public ConsensusTopicResponse.Builder setConsensusTimestamp(Timestamp.Builder builderForValue)
       *
       The time at which the transaction reached consensus
       
      .proto.Timestamp consensusTimestamp = 1;
    • mergeConsensusTimestamp

      public ConsensusTopicResponse.Builder mergeConsensusTimestamp(Timestamp value)
       *
       The time at which the transaction reached consensus
       
      .proto.Timestamp consensusTimestamp = 1;
    • clearConsensusTimestamp

      public ConsensusTopicResponse.Builder 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:
      getMessage in interface ConsensusTopicResponseOrBuilder
      Returns:
      The message.
    • setMessage

      public ConsensusTopicResponse.Builder setMessage(com.google.protobuf.ByteString value)
       *
       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

      public ConsensusTopicResponse.Builder 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:
      getRunningHash in interface ConsensusTopicResponseOrBuilder
      Returns:
      The runningHash.
    • setRunningHash

      public ConsensusTopicResponse.Builder setRunningHash(com.google.protobuf.ByteString value)
       *
       The running hash (SHA384) of every message.
       
      bytes runningHash = 3;
      Parameters:
      value - The runningHash to set.
      Returns:
      This builder for chaining.
    • clearRunningHash

      public ConsensusTopicResponse.Builder 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:
      getSequenceNumber in interface ConsensusTopicResponseOrBuilder
      Returns:
      The sequenceNumber.
    • setSequenceNumber

      public ConsensusTopicResponse.Builder setSequenceNumber(long value)
       *
       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

      public ConsensusTopicResponse.Builder 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:
      getRunningHashVersion in interface ConsensusTopicResponseOrBuilder
      Returns:
      The runningHashVersion.
    • setRunningHashVersion

      public ConsensusTopicResponse.Builder setRunningHashVersion(long value)
       *
       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

      public ConsensusTopicResponse.Builder 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:
      hasChunkInfo in interface ConsensusTopicResponseOrBuilder
      Returns:
      Whether the chunkInfo field is set.
    • getChunkInfo

      public ConsensusMessageChunkInfo getChunkInfo()
       *
       Optional information of the current chunk in a fragmented message.
       
      .proto.ConsensusMessageChunkInfo chunkInfo = 6;
      Specified by:
      getChunkInfo in interface ConsensusTopicResponseOrBuilder
      Returns:
      The chunkInfo.
    • setChunkInfo

       *
       Optional information of the current chunk in a fragmented message.
       
      .proto.ConsensusMessageChunkInfo chunkInfo = 6;
    • setChunkInfo

       *
       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

      public ConsensusTopicResponse.Builder clearChunkInfo()
       *
       Optional information of the current chunk in a fragmented message.
       
      .proto.ConsensusMessageChunkInfo chunkInfo = 6;