public final class QueryEventsRequest extends com.google.protobuf.GeneratedMessageV3 implements QueryEventsRequestOrBuilder
Message providing the parameters for executing a Query against AxonServer.Protobuf type
io.axoniq.axonserver.grpc.event.QueryEventsRequest| Modifier and Type | Class and Description |
|---|---|
static class |
QueryEventsRequest.Builder
Message providing the parameters for executing a Query against AxonServer.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FORCE_READ_FROM_LEADER_FIELD_NUMBER |
static int |
LIVE_EVENTS_FIELD_NUMBER |
static int |
NUMBER_OF_PERMITS_FIELD_NUMBER |
static int |
QUERY_FIELD_NUMBER |
static int |
QUERY_SNAPSHOTS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static QueryEventsRequest |
getDefaultInstance() |
QueryEventsRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getForceReadFromLeader()
Indicates whether to force querying events from the leader node of an Axon Server.
|
boolean |
getLiveEvents()
Whether to keep the query running against incoming events once the Head of the Stream is reached
|
long |
getNumberOfPermits()
The number of results AxonServer may send before new permits need to be provided
|
com.google.protobuf.Parser<QueryEventsRequest> |
getParserForType() |
String |
getQuery()
The query to execute against the Event Stream
|
com.google.protobuf.ByteString |
getQueryBytes()
The query to execute against the Event Stream
|
boolean |
getQuerySnapshots()
If true, snapshots will be queried instead of events
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static QueryEventsRequest.Builder |
newBuilder() |
static QueryEventsRequest.Builder |
newBuilder(QueryEventsRequest prototype) |
QueryEventsRequest.Builder |
newBuilderForType() |
protected QueryEventsRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static QueryEventsRequest |
parseDelimitedFrom(InputStream input) |
static QueryEventsRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryEventsRequest |
parseFrom(byte[] data) |
static QueryEventsRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryEventsRequest |
parseFrom(ByteBuffer data) |
static QueryEventsRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryEventsRequest |
parseFrom(com.google.protobuf.ByteString data) |
static QueryEventsRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryEventsRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QueryEventsRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryEventsRequest |
parseFrom(InputStream input) |
static QueryEventsRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QueryEventsRequest> |
parser() |
QueryEventsRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int QUERY_FIELD_NUMBER
public static final int NUMBER_OF_PERMITS_FIELD_NUMBER
public static final int LIVE_EVENTS_FIELD_NUMBER
public static final int FORCE_READ_FROM_LEADER_FIELD_NUMBER
public static final int QUERY_SNAPSHOTS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getQuery()
The query to execute against the Event Stream
string query = 1;getQuery in interface QueryEventsRequestOrBuilderpublic com.google.protobuf.ByteString getQueryBytes()
The query to execute against the Event Stream
string query = 1;getQueryBytes in interface QueryEventsRequestOrBuilderpublic long getNumberOfPermits()
The number of results AxonServer may send before new permits need to be provided
int64 number_of_permits = 2;getNumberOfPermits in interface QueryEventsRequestOrBuilderpublic boolean getLiveEvents()
Whether to keep the query running against incoming events once the Head of the Stream is reached
bool live_events = 3;getLiveEvents in interface QueryEventsRequestOrBuilderpublic 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;getForceReadFromLeader in interface QueryEventsRequestOrBuilderpublic boolean getQuerySnapshots()
If true, snapshots will be queried instead of events
bool query_snapshots = 5;getQuerySnapshots in interface QueryEventsRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static QueryEventsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryEventsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryEventsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryEventsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryEventsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryEventsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryEventsRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static QueryEventsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QueryEventsRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static QueryEventsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QueryEventsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static QueryEventsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic QueryEventsRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static QueryEventsRequest.Builder newBuilder()
public static QueryEventsRequest.Builder newBuilder(QueryEventsRequest prototype)
public QueryEventsRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected QueryEventsRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static QueryEventsRequest getDefaultInstance()
public static com.google.protobuf.Parser<QueryEventsRequest> parser()
public com.google.protobuf.Parser<QueryEventsRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public QueryEventsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020–2022 AxonIQ BV. All rights reserved.