Class Umadb.ReadRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Umadb.ReadRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<Umadb.ReadRequest.Builder>
umadb.v1.Umadb.ReadRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Umadb.ReadRequestOrBuilder
- Enclosing class:
Umadb.ReadRequest
public static final class Umadb.ReadRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Umadb.ReadRequest.Builder>
implements Umadb.ReadRequestOrBuilder
Request parameters for querying historical events from the store.Protobuf type
umadb.v1.ReadRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If true, reads events in reverse order (from newest to oldest).The maximum number of events to include in a single response chunk/batch.The maximum number of events to return in the entire read operation.The filter criteria to apply.The sequence position to start reading from.Deprecated.umadb.v1.ReadRequest.subscribe is deprecated.booleanIf true, reads events in reverse order (from newest to oldest).intThe maximum number of events to include in a single response chunk/batch.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetLimit()The maximum number of events to return in the entire read operation.getQuery()The filter criteria to apply.The filter criteria to apply.The filter criteria to apply.longgetStart()The sequence position to start reading from.booleanDeprecated.umadb.v1.ReadRequest.subscribe is deprecated.booleanIf true, reads events in reverse order (from newest to oldest).booleanThe maximum number of events to include in a single response chunk/batch.booleanhasLimit()The maximum number of events to return in the entire read operation.booleanhasQuery()The filter criteria to apply.booleanhasStart()The sequence position to start reading from.booleanDeprecated.umadb.v1.ReadRequest.subscribe is deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Umadb.ReadRequest other) mergeQuery(Umadb.Query value) The filter criteria to apply.setBackwards(boolean value) If true, reads events in reverse order (from newest to oldest).setBatchSize(int value) The maximum number of events to include in a single response chunk/batch.setLimit(int value) The maximum number of events to return in the entire read operation.setQuery(Umadb.Query value) The filter criteria to apply.setQuery(Umadb.Query.Builder builderForValue) The filter criteria to apply.setStart(long value) The sequence position to start reading from.setSubscribe(boolean value) Deprecated.umadb.v1.ReadRequest.subscribe is deprecated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Umadb.ReadRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Umadb.ReadRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Umadb.ReadRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Umadb.ReadRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Umadb.ReadRequest.Builder>
-
mergeFrom
public Umadb.ReadRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Umadb.ReadRequest.Builder>- Throws:
IOException
-
hasQuery
public boolean hasQuery()The filter criteria to apply. If omitted, all events are returned.
optional .umadb.v1.Query query = 1;- Specified by:
hasQueryin interfaceUmadb.ReadRequestOrBuilder- Returns:
- Whether the query field is set.
-
getQuery
The filter criteria to apply. If omitted, all events are returned.
optional .umadb.v1.Query query = 1;- Specified by:
getQueryin interfaceUmadb.ReadRequestOrBuilder- Returns:
- The query.
-
setQuery
The filter criteria to apply. If omitted, all events are returned.
optional .umadb.v1.Query query = 1; -
setQuery
The filter criteria to apply. If omitted, all events are returned.
optional .umadb.v1.Query query = 1; -
mergeQuery
The filter criteria to apply. If omitted, all events are returned.
optional .umadb.v1.Query query = 1; -
clearQuery
The filter criteria to apply. If omitted, all events are returned.
optional .umadb.v1.Query query = 1; -
getQueryBuilder
The filter criteria to apply. If omitted, all events are returned.
optional .umadb.v1.Query query = 1; -
getQueryOrBuilder
The filter criteria to apply. If omitted, all events are returned.
optional .umadb.v1.Query query = 1;- Specified by:
getQueryOrBuilderin interfaceUmadb.ReadRequestOrBuilder
-
hasStart
public boolean hasStart()The sequence position to start reading from.
optional uint64 start = 2;- Specified by:
hasStartin interfaceUmadb.ReadRequestOrBuilder- Returns:
- Whether the start field is set.
-
getStart
public long getStart()The sequence position to start reading from.
optional uint64 start = 2;- Specified by:
getStartin interfaceUmadb.ReadRequestOrBuilder- Returns:
- The start.
-
setStart
The sequence position to start reading from.
optional uint64 start = 2;- Parameters:
value- The start to set.- Returns:
- This builder for chaining.
-
clearStart
The sequence position to start reading from.
optional uint64 start = 2;- Returns:
- This builder for chaining.
-
hasBackwards
public boolean hasBackwards()If true, reads events in reverse order (from newest to oldest).
optional bool backwards = 3;- Specified by:
hasBackwardsin interfaceUmadb.ReadRequestOrBuilder- Returns:
- Whether the backwards field is set.
-
getBackwards
public boolean getBackwards()If true, reads events in reverse order (from newest to oldest).
optional bool backwards = 3;- Specified by:
getBackwardsin interfaceUmadb.ReadRequestOrBuilder- Returns:
- The backwards.
-
setBackwards
If true, reads events in reverse order (from newest to oldest).
optional bool backwards = 3;- Parameters:
value- The backwards to set.- Returns:
- This builder for chaining.
-
clearBackwards
If true, reads events in reverse order (from newest to oldest).
optional bool backwards = 3;- Returns:
- This builder for chaining.
-
hasLimit
public boolean hasLimit()The maximum number of events to return in the entire read operation.
optional uint32 limit = 4;- Specified by:
hasLimitin interfaceUmadb.ReadRequestOrBuilder- Returns:
- Whether the limit field is set.
-
getLimit
public int getLimit()The maximum number of events to return in the entire read operation.
optional uint32 limit = 4;- Specified by:
getLimitin interfaceUmadb.ReadRequestOrBuilder- Returns:
- The limit.
-
setLimit
The maximum number of events to return in the entire read operation.
optional uint32 limit = 4;- Parameters:
value- The limit to set.- Returns:
- This builder for chaining.
-
clearLimit
The maximum number of events to return in the entire read operation.
optional uint32 limit = 4;- Returns:
- This builder for chaining.
-
hasSubscribe
Deprecated.umadb.v1.ReadRequest.subscribe is deprecated. See v1/umadb.proto;l=69Deprecated: Use the separate Subscribe RPC instead for streaming new events.
optional bool subscribe = 5 [deprecated = true];- Specified by:
hasSubscribein interfaceUmadb.ReadRequestOrBuilder- Returns:
- Whether the subscribe field is set.
-
getSubscribe
Deprecated.umadb.v1.ReadRequest.subscribe is deprecated. See v1/umadb.proto;l=69Deprecated: Use the separate Subscribe RPC instead for streaming new events.
optional bool subscribe = 5 [deprecated = true];- Specified by:
getSubscribein interfaceUmadb.ReadRequestOrBuilder- Returns:
- The subscribe.
-
setSubscribe
Deprecated.umadb.v1.ReadRequest.subscribe is deprecated. See v1/umadb.proto;l=69Deprecated: Use the separate Subscribe RPC instead for streaming new events.
optional bool subscribe = 5 [deprecated = true];- Parameters:
value- The subscribe to set.- Returns:
- This builder for chaining.
-
clearSubscribe
Deprecated.umadb.v1.ReadRequest.subscribe is deprecated. See v1/umadb.proto;l=69Deprecated: Use the separate Subscribe RPC instead for streaming new events.
optional bool subscribe = 5 [deprecated = true];- Returns:
- This builder for chaining.
-
hasBatchSize
public boolean hasBatchSize()The maximum number of events to include in a single response chunk/batch.
optional uint32 batch_size = 6;- Specified by:
hasBatchSizein interfaceUmadb.ReadRequestOrBuilder- Returns:
- Whether the batchSize field is set.
-
getBatchSize
public int getBatchSize()The maximum number of events to include in a single response chunk/batch.
optional uint32 batch_size = 6;- Specified by:
getBatchSizein interfaceUmadb.ReadRequestOrBuilder- Returns:
- The batchSize.
-
setBatchSize
The maximum number of events to include in a single response chunk/batch.
optional uint32 batch_size = 6;- Parameters:
value- The batchSize to set.- Returns:
- This builder for chaining.
-
clearBatchSize
The maximum number of events to include in a single response chunk/batch.
optional uint32 batch_size = 6;- Returns:
- This builder for chaining.
-