Package io.axoniq.axonserver.grpc.event
Class QueryEventsRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.axoniq.axonserver.grpc.event.QueryEventsRequest
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,QueryEventsRequestOrBuilder,Serializable
@Generated public final class QueryEventsRequest extends com.google.protobuf.GeneratedMessage implements QueryEventsRequestOrBuilder
Message providing the parameters for executing a Query against AxonServer.
Protobuf typeio.axoniq.axonserver.grpc.event.QueryEventsRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQueryEventsRequest.BuilderMessage providing the parameters for executing a Query against AxonServer.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCONTEXT_NAME_FIELD_NUMBERstatic intFORCE_READ_FROM_LEADER_FIELD_NUMBERstatic intLIVE_EVENTS_FIELD_NUMBERstatic intNUMBER_OF_PERMITS_FIELD_NUMBERstatic intQUERY_FIELD_NUMBERstatic intQUERY_SNAPSHOTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetContextName()Query from this context, not from the default context of the connectioncom.google.protobuf.ByteStringgetContextNameBytes()Query from this context, not from the default context of the connectionstatic QueryEventsRequestgetDefaultInstance()QueryEventsRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetForceReadFromLeader()Indicates whether to force querying events from the leader node of an Axon Server.booleangetLiveEvents()Whether to keep the query running against incoming events once the Head of the Stream is reachedlonggetNumberOfPermits()The number of results AxonServer may send before new permits need to be providedcom.google.protobuf.Parser<QueryEventsRequest>getParserForType()StringgetQuery()The query to execute against the Event Streamcom.google.protobuf.ByteStringgetQueryBytes()The query to execute against the Event StreambooleangetQuerySnapshots()If true, snapshots will be queried instead of eventsintgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static QueryEventsRequest.BuildernewBuilder()static QueryEventsRequest.BuildernewBuilder(QueryEventsRequest prototype)QueryEventsRequest.BuildernewBuilderForType()protected QueryEventsRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static QueryEventsRequestparseDelimitedFrom(InputStream input)static QueryEventsRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueryEventsRequestparseFrom(byte[] data)static QueryEventsRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueryEventsRequestparseFrom(com.google.protobuf.ByteString data)static QueryEventsRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueryEventsRequestparseFrom(com.google.protobuf.CodedInputStream input)static QueryEventsRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueryEventsRequestparseFrom(InputStream input)static QueryEventsRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static QueryEventsRequestparseFrom(ByteBuffer data)static QueryEventsRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<QueryEventsRequest>parser()QueryEventsRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NUMBER_OF_PERMITS_FIELD_NUMBER
public static final int NUMBER_OF_PERMITS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIVE_EVENTS_FIELD_NUMBER
public static final int LIVE_EVENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORCE_READ_FROM_LEADER_FIELD_NUMBER
public static final int FORCE_READ_FROM_LEADER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_SNAPSHOTS_FIELD_NUMBER
public static final int QUERY_SNAPSHOTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTEXT_NAME_FIELD_NUMBER
public static final int CONTEXT_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getQuery
public String getQuery()
The query to execute against the Event Stream
string query = 1;- Specified by:
getQueryin interfaceQueryEventsRequestOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()
The query to execute against the Event Stream
string query = 1;- Specified by:
getQueryBytesin interfaceQueryEventsRequestOrBuilder- Returns:
- The bytes for query.
-
getNumberOfPermits
public long getNumberOfPermits()
The number of results AxonServer may send before new permits need to be provided
int64 number_of_permits = 2;- Specified by:
getNumberOfPermitsin interfaceQueryEventsRequestOrBuilder- Returns:
- The numberOfPermits.
-
getLiveEvents
public boolean getLiveEvents()
Whether to keep the query running against incoming events once the Head of the Stream is reached
bool live_events = 3;- Specified by:
getLiveEventsin interfaceQueryEventsRequestOrBuilder- Returns:
- The liveEvents.
-
getForceReadFromLeader
public boolean getForceReadFromLeader()
Indicates whether to force querying events from the leader node of an Axon Server. Forcing reads from leader reduces the staleness of the data read, but also puts extra burden on the leader, reducing overall scalability. <p> This property has no effect on connections to AxonServer SE. </p>
bool force_read_from_leader = 4;- Specified by:
getForceReadFromLeaderin interfaceQueryEventsRequestOrBuilder- Returns:
- The forceReadFromLeader.
-
getQuerySnapshots
public boolean getQuerySnapshots()
If true, snapshots will be queried instead of events
bool query_snapshots = 5;- Specified by:
getQuerySnapshotsin interfaceQueryEventsRequestOrBuilder- Returns:
- The querySnapshots.
-
getContextName
public String getContextName()
Query from this context, not from the default context of the connection
string context_name = 6;- Specified by:
getContextNamein interfaceQueryEventsRequestOrBuilder- Returns:
- The contextName.
-
getContextNameBytes
public com.google.protobuf.ByteString getContextNameBytes()
Query from this context, not from the default context of the connection
string context_name = 6;- Specified by:
getContextNameBytesin interfaceQueryEventsRequestOrBuilder- Returns:
- The bytes for contextName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static QueryEventsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryEventsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryEventsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryEventsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryEventsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryEventsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QueryEventsRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static QueryEventsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static QueryEventsRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static QueryEventsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static QueryEventsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static QueryEventsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public QueryEventsRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static QueryEventsRequest.Builder newBuilder()
-
newBuilder
public static QueryEventsRequest.Builder newBuilder(QueryEventsRequest prototype)
-
toBuilder
public QueryEventsRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected QueryEventsRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static QueryEventsRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<QueryEventsRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<QueryEventsRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public QueryEventsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-