Class ConsensusTopicQuery.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<ConsensusTopicQuery,ConsensusTopicQuery.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<ConsensusTopicQuery,ConsensusTopicQuery.Builder>
com.hedera.hashgraph.sdk.proto.mirror.ConsensusTopicQuery.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, ConsensusTopicQueryOrBuilder, Cloneable
Enclosing class:
ConsensusTopicQuery

public static final class ConsensusTopicQuery.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ConsensusTopicQuery,ConsensusTopicQuery.Builder> implements ConsensusTopicQueryOrBuilder
Protobuf type com.hedera.mirror.api.proto.ConsensusTopicQuery
  • Method Details

    • hasTopicID

      public boolean hasTopicID()
       *
       A required topic ID to retrieve messages for.
       
      .proto.TopicID topicID = 1;
      Specified by:
      hasTopicID in interface ConsensusTopicQueryOrBuilder
      Returns:
      Whether the topicID field is set.
    • getTopicID

      public TopicID getTopicID()
       *
       A required topic ID to retrieve messages for.
       
      .proto.TopicID topicID = 1;
      Specified by:
      getTopicID in interface ConsensusTopicQueryOrBuilder
      Returns:
      The topicID.
    • setTopicID

      public ConsensusTopicQuery.Builder setTopicID(TopicID value)
       *
       A required topic ID to retrieve messages for.
       
      .proto.TopicID topicID = 1;
    • setTopicID

      public ConsensusTopicQuery.Builder setTopicID(TopicID.Builder builderForValue)
       *
       A required topic ID to retrieve messages for.
       
      .proto.TopicID topicID = 1;
    • mergeTopicID

      public ConsensusTopicQuery.Builder mergeTopicID(TopicID value)
       *
       A required topic ID to retrieve messages for.
       
      .proto.TopicID topicID = 1;
    • clearTopicID

      public ConsensusTopicQuery.Builder clearTopicID()
       *
       A required topic ID to retrieve messages for.
       
      .proto.TopicID topicID = 1;
    • hasConsensusStartTime

      public boolean hasConsensusStartTime()
       *
       Include messages which reached consensus on or after this time. Defaults to current time if
       not set.
       
      .proto.Timestamp consensusStartTime = 2;
      Specified by:
      hasConsensusStartTime in interface ConsensusTopicQueryOrBuilder
      Returns:
      Whether the consensusStartTime field is set.
    • getConsensusStartTime

      public Timestamp getConsensusStartTime()
       *
       Include messages which reached consensus on or after this time. Defaults to current time if
       not set.
       
      .proto.Timestamp consensusStartTime = 2;
      Specified by:
      getConsensusStartTime in interface ConsensusTopicQueryOrBuilder
      Returns:
      The consensusStartTime.
    • setConsensusStartTime

      public ConsensusTopicQuery.Builder setConsensusStartTime(Timestamp value)
       *
       Include messages which reached consensus on or after this time. Defaults to current time if
       not set.
       
      .proto.Timestamp consensusStartTime = 2;
    • setConsensusStartTime

      public ConsensusTopicQuery.Builder setConsensusStartTime(Timestamp.Builder builderForValue)
       *
       Include messages which reached consensus on or after this time. Defaults to current time if
       not set.
       
      .proto.Timestamp consensusStartTime = 2;
    • mergeConsensusStartTime

      public ConsensusTopicQuery.Builder mergeConsensusStartTime(Timestamp value)
       *
       Include messages which reached consensus on or after this time. Defaults to current time if
       not set.
       
      .proto.Timestamp consensusStartTime = 2;
    • clearConsensusStartTime

      public ConsensusTopicQuery.Builder clearConsensusStartTime()
       *
       Include messages which reached consensus on or after this time. Defaults to current time if
       not set.
       
      .proto.Timestamp consensusStartTime = 2;
    • hasConsensusEndTime

      public boolean hasConsensusEndTime()
       *
       Include messages which reached consensus before this time. If not set it will receive
       indefinitely.
       
      .proto.Timestamp consensusEndTime = 3;
      Specified by:
      hasConsensusEndTime in interface ConsensusTopicQueryOrBuilder
      Returns:
      Whether the consensusEndTime field is set.
    • getConsensusEndTime

      public Timestamp getConsensusEndTime()
       *
       Include messages which reached consensus before this time. If not set it will receive
       indefinitely.
       
      .proto.Timestamp consensusEndTime = 3;
      Specified by:
      getConsensusEndTime in interface ConsensusTopicQueryOrBuilder
      Returns:
      The consensusEndTime.
    • setConsensusEndTime

      public ConsensusTopicQuery.Builder setConsensusEndTime(Timestamp value)
       *
       Include messages which reached consensus before this time. If not set it will receive
       indefinitely.
       
      .proto.Timestamp consensusEndTime = 3;
    • setConsensusEndTime

      public ConsensusTopicQuery.Builder setConsensusEndTime(Timestamp.Builder builderForValue)
       *
       Include messages which reached consensus before this time. If not set it will receive
       indefinitely.
       
      .proto.Timestamp consensusEndTime = 3;
    • mergeConsensusEndTime

      public ConsensusTopicQuery.Builder mergeConsensusEndTime(Timestamp value)
       *
       Include messages which reached consensus before this time. If not set it will receive
       indefinitely.
       
      .proto.Timestamp consensusEndTime = 3;
    • clearConsensusEndTime

      public ConsensusTopicQuery.Builder clearConsensusEndTime()
       *
       Include messages which reached consensus before this time. If not set it will receive
       indefinitely.
       
      .proto.Timestamp consensusEndTime = 3;
    • getLimit

      public long getLimit()
       *
       The maximum number of messages to receive before stopping. If not set or set to zero it will
       return messages indefinitely.
       
      uint64 limit = 4;
      Specified by:
      getLimit in interface ConsensusTopicQueryOrBuilder
      Returns:
      The limit.
    • setLimit

      public ConsensusTopicQuery.Builder setLimit(long value)
       *
       The maximum number of messages to receive before stopping. If not set or set to zero it will
       return messages indefinitely.
       
      uint64 limit = 4;
      Parameters:
      value - The limit to set.
      Returns:
      This builder for chaining.
    • clearLimit

      public ConsensusTopicQuery.Builder clearLimit()
       *
       The maximum number of messages to receive before stopping. If not set or set to zero it will
       return messages indefinitely.
       
      uint64 limit = 4;
      Returns:
      This builder for chaining.