Module com.hedera.hashgraph.sdk
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* Include messages which reached consensus before this time.* Include messages which reached consensus on or after this time.* The maximum number of messages to receive before stopping.* A required topic ID to retrieve messages for.* Include messages which reached consensus before this time.* Include messages which reached consensus on or after this time.longgetLimit()* The maximum number of messages to receive before stopping.* A required topic ID to retrieve messages for.boolean* Include messages which reached consensus before this time.boolean* Include messages which reached consensus on or after this time.boolean* A required topic ID to retrieve messages for.mergeConsensusEndTime(Timestamp value) * Include messages which reached consensus before this time.mergeConsensusStartTime(Timestamp value) * Include messages which reached consensus on or after this time.mergeTopicID(TopicID value) * A required topic ID to retrieve messages for.setConsensusEndTime(Timestamp value) * Include messages which reached consensus before this time.setConsensusEndTime(Timestamp.Builder builderForValue) * Include messages which reached consensus before this time.setConsensusStartTime(Timestamp value) * Include messages which reached consensus on or after this time.setConsensusStartTime(Timestamp.Builder builderForValue) * Include messages which reached consensus on or after this time.setLimit(long value) * The maximum number of messages to receive before stopping.setTopicID(TopicID value) * A required topic ID to retrieve messages for.setTopicID(TopicID.Builder builderForValue) * A required topic ID to retrieve messages for.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
-
hasTopicID
public boolean hasTopicID()* A required topic ID to retrieve messages for.
.proto.TopicID topicID = 1;- Specified by:
hasTopicIDin interfaceConsensusTopicQueryOrBuilder- Returns:
- Whether the topicID field is set.
-
getTopicID
* A required topic ID to retrieve messages for.
.proto.TopicID topicID = 1;- Specified by:
getTopicIDin interfaceConsensusTopicQueryOrBuilder- Returns:
- The topicID.
-
setTopicID
* A required topic ID to retrieve messages for.
.proto.TopicID topicID = 1; -
setTopicID
* A required topic ID to retrieve messages for.
.proto.TopicID topicID = 1; -
mergeTopicID
* A required topic ID to retrieve messages for.
.proto.TopicID topicID = 1; -
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:
hasConsensusStartTimein interfaceConsensusTopicQueryOrBuilder- Returns:
- Whether the consensusStartTime field is set.
-
getConsensusStartTime
* Include messages which reached consensus on or after this time. Defaults to current time if not set.
.proto.Timestamp consensusStartTime = 2;- Specified by:
getConsensusStartTimein interfaceConsensusTopicQueryOrBuilder- Returns:
- The consensusStartTime.
-
setConsensusStartTime
* Include messages which reached consensus on or after this time. Defaults to current time if not set.
.proto.Timestamp consensusStartTime = 2; -
setConsensusStartTime
* Include messages which reached consensus on or after this time. Defaults to current time if not set.
.proto.Timestamp consensusStartTime = 2; -
mergeConsensusStartTime
* Include messages which reached consensus on or after this time. Defaults to current time if not set.
.proto.Timestamp consensusStartTime = 2; -
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:
hasConsensusEndTimein interfaceConsensusTopicQueryOrBuilder- Returns:
- Whether the consensusEndTime field is set.
-
getConsensusEndTime
* Include messages which reached consensus before this time. If not set it will receive indefinitely.
.proto.Timestamp consensusEndTime = 3;- Specified by:
getConsensusEndTimein interfaceConsensusTopicQueryOrBuilder- Returns:
- The consensusEndTime.
-
setConsensusEndTime
* Include messages which reached consensus before this time. If not set it will receive indefinitely.
.proto.Timestamp consensusEndTime = 3; -
setConsensusEndTime
* Include messages which reached consensus before this time. If not set it will receive indefinitely.
.proto.Timestamp consensusEndTime = 3; -
mergeConsensusEndTime
* Include messages which reached consensus before this time. If not set it will receive indefinitely.
.proto.Timestamp consensusEndTime = 3; -
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:
getLimitin interfaceConsensusTopicQueryOrBuilder- Returns:
- The limit.
-
setLimit
* 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
* 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.
-