io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axonserver-connector-java Show documentation
Show all versions of axonserver-connector-java Show documentation
Connector module providing infrastructure components that connect to AxonServer.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: query.proto
package io.axoniq.axonserver.grpc.query;
/**
*
* Message describing possible interactions for a Subscription Query
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest}
*/
public final class SubscriptionQueryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest)
SubscriptionQueryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubscriptionQueryRequest.newBuilder() to construct.
private SubscriptionQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SubscriptionQueryRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubscriptionQueryRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder subBuilder = null;
if (requestCase_ == 1) {
subBuilder = ((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.query.SubscriptionQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 1;
break;
}
case 18: {
io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder subBuilder = null;
if (requestCase_ == 2) {
subBuilder = ((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.query.SubscriptionQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 2;
break;
}
case 26: {
io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder subBuilder = null;
if (requestCase_ == 3) {
subBuilder = ((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.query.SubscriptionQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 3;
break;
}
case 34: {
io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder subBuilder = null;
if (requestCase_ == 4) {
subBuilder = ((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.query.SubscriptionQuery.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 4;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_SubscriptionQueryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_SubscriptionQueryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.class, io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.Builder.class);
}
private int requestCase_ = 0;
private java.lang.Object request_;
public enum RequestCase
implements com.google.protobuf.Internal.EnumLite {
SUBSCRIBE(1),
UNSUBSCRIBE(2),
GET_INITIAL_RESULT(3),
FLOW_CONTROL(4),
REQUEST_NOT_SET(0);
private final int value;
private RequestCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RequestCase valueOf(int value) {
return forNumber(value);
}
public static RequestCase forNumber(int value) {
switch (value) {
case 1: return SUBSCRIBE;
case 2: return UNSUBSCRIBE;
case 3: return GET_INITIAL_RESULT;
case 4: return FLOW_CONTROL;
case 0: return REQUEST_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RequestCase
getRequestCase() {
return RequestCase.forNumber(
requestCase_);
}
public static final int SUBSCRIBE_FIELD_NUMBER = 1;
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public boolean hasSubscribe() {
return requestCase_ == 1;
}
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery getSubscribe() {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder getSubscribeOrBuilder() {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
public static final int UNSUBSCRIBE_FIELD_NUMBER = 2;
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public boolean hasUnsubscribe() {
return requestCase_ == 2;
}
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery getUnsubscribe() {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder getUnsubscribeOrBuilder() {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
public static final int GET_INITIAL_RESULT_FIELD_NUMBER = 3;
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public boolean hasGetInitialResult() {
return requestCase_ == 3;
}
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery getGetInitialResult() {
if (requestCase_ == 3) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder getGetInitialResultOrBuilder() {
if (requestCase_ == 3) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
public static final int FLOW_CONTROL_FIELD_NUMBER = 4;
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public boolean hasFlowControl() {
return requestCase_ == 4;
}
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery getFlowControl() {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder getFlowControlOrBuilder() {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (requestCase_ == 1) {
output.writeMessage(1, (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
}
if (requestCase_ == 2) {
output.writeMessage(2, (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
}
if (requestCase_ == 3) {
output.writeMessage(3, (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
}
if (requestCase_ == 4) {
output.writeMessage(4, (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (requestCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
}
if (requestCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
}
if (requestCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
}
if (requestCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest)) {
return super.equals(obj);
}
io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest other = (io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) obj;
boolean result = true;
result = result && getRequestCase().equals(
other.getRequestCase());
if (!result) return false;
switch (requestCase_) {
case 1:
result = result && getSubscribe()
.equals(other.getSubscribe());
break;
case 2:
result = result && getUnsubscribe()
.equals(other.getUnsubscribe());
break;
case 3:
result = result && getGetInitialResult()
.equals(other.getGetInitialResult());
break;
case 4:
result = result && getFlowControl()
.equals(other.getFlowControl());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (requestCase_) {
case 1:
hash = (37 * hash) + SUBSCRIBE_FIELD_NUMBER;
hash = (53 * hash) + getSubscribe().hashCode();
break;
case 2:
hash = (37 * hash) + UNSUBSCRIBE_FIELD_NUMBER;
hash = (53 * hash) + getUnsubscribe().hashCode();
break;
case 3:
hash = (37 * hash) + GET_INITIAL_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getGetInitialResult().hashCode();
break;
case 4:
hash = (37 * hash) + FLOW_CONTROL_FIELD_NUMBER;
hash = (53 * hash) + getFlowControl().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Message describing possible interactions for a Subscription Query
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest)
io.axoniq.axonserver.grpc.query.SubscriptionQueryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_SubscriptionQueryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_SubscriptionQueryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.class, io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.Builder.class);
}
// Construct using io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
requestCase_ = 0;
request_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_SubscriptionQueryRequest_descriptor;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest getDefaultInstanceForType() {
return io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.getDefaultInstance();
}
@java.lang.Override
public io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest build() {
io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest buildPartial() {
io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest result = new io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest(this);
if (requestCase_ == 1) {
if (subscribeBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = subscribeBuilder_.build();
}
}
if (requestCase_ == 2) {
if (unsubscribeBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = unsubscribeBuilder_.build();
}
}
if (requestCase_ == 3) {
if (getInitialResultBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = getInitialResultBuilder_.build();
}
}
if (requestCase_ == 4) {
if (flowControlBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = flowControlBuilder_.build();
}
}
result.requestCase_ = requestCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) {
return mergeFrom((io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest other) {
if (other == io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest.getDefaultInstance()) return this;
switch (other.getRequestCase()) {
case SUBSCRIBE: {
mergeSubscribe(other.getSubscribe());
break;
}
case UNSUBSCRIBE: {
mergeUnsubscribe(other.getUnsubscribe());
break;
}
case GET_INITIAL_RESULT: {
mergeGetInitialResult(other.getGetInitialResult());
break;
}
case FLOW_CONTROL: {
mergeFlowControl(other.getFlowControl());
break;
}
case REQUEST_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int requestCase_ = 0;
private java.lang.Object request_;
public RequestCase
getRequestCase() {
return RequestCase.forNumber(
requestCase_);
}
public Builder clearRequest() {
requestCase_ = 0;
request_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder> subscribeBuilder_;
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public boolean hasSubscribe() {
return requestCase_ == 1;
}
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery getSubscribe() {
if (subscribeBuilder_ == null) {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
} else {
if (requestCase_ == 1) {
return subscribeBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
}
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public Builder setSubscribe(io.axoniq.axonserver.grpc.query.SubscriptionQuery value) {
if (subscribeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
subscribeBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public Builder setSubscribe(
io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder builderForValue) {
if (subscribeBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
subscribeBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 1;
return this;
}
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public Builder mergeSubscribe(io.axoniq.axonserver.grpc.query.SubscriptionQuery value) {
if (subscribeBuilder_ == null) {
if (requestCase_ == 1 &&
request_ != io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.query.SubscriptionQuery.newBuilder((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 1) {
subscribeBuilder_.mergeFrom(value);
}
subscribeBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public Builder clearSubscribe() {
if (subscribeBuilder_ == null) {
if (requestCase_ == 1) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 1) {
requestCase_ = 0;
request_ = null;
}
subscribeBuilder_.clear();
}
return this;
}
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder getSubscribeBuilder() {
return getSubscribeFieldBuilder().getBuilder();
}
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder getSubscribeOrBuilder() {
if ((requestCase_ == 1) && (subscribeBuilder_ != null)) {
return subscribeBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
}
/**
*
* Start a Subscription Query with the given details.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery subscribe = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder>
getSubscribeFieldBuilder() {
if (subscribeBuilder_ == null) {
if (!(requestCase_ == 1)) {
request_ = io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
subscribeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder>(
(io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 1;
onChanged();;
return subscribeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder> unsubscribeBuilder_;
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public boolean hasUnsubscribe() {
return requestCase_ == 2;
}
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery getUnsubscribe() {
if (unsubscribeBuilder_ == null) {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
} else {
if (requestCase_ == 2) {
return unsubscribeBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
}
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public Builder setUnsubscribe(io.axoniq.axonserver.grpc.query.SubscriptionQuery value) {
if (unsubscribeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
unsubscribeBuilder_.setMessage(value);
}
requestCase_ = 2;
return this;
}
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public Builder setUnsubscribe(
io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder builderForValue) {
if (unsubscribeBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
unsubscribeBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 2;
return this;
}
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public Builder mergeUnsubscribe(io.axoniq.axonserver.grpc.query.SubscriptionQuery value) {
if (unsubscribeBuilder_ == null) {
if (requestCase_ == 2 &&
request_ != io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.query.SubscriptionQuery.newBuilder((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 2) {
unsubscribeBuilder_.mergeFrom(value);
}
unsubscribeBuilder_.setMessage(value);
}
requestCase_ = 2;
return this;
}
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public Builder clearUnsubscribe() {
if (unsubscribeBuilder_ == null) {
if (requestCase_ == 2) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 2) {
requestCase_ = 0;
request_ = null;
}
unsubscribeBuilder_.clear();
}
return this;
}
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder getUnsubscribeBuilder() {
return getUnsubscribeFieldBuilder().getBuilder();
}
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder getUnsubscribeOrBuilder() {
if ((requestCase_ == 2) && (unsubscribeBuilder_ != null)) {
return unsubscribeBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
}
/**
*
* Ends a previously started Subscription Query with the given details
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery unsubscribe = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder>
getUnsubscribeFieldBuilder() {
if (unsubscribeBuilder_ == null) {
if (!(requestCase_ == 2)) {
request_ = io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
unsubscribeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder>(
(io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 2;
onChanged();;
return unsubscribeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder> getInitialResultBuilder_;
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public boolean hasGetInitialResult() {
return requestCase_ == 3;
}
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery getGetInitialResult() {
if (getInitialResultBuilder_ == null) {
if (requestCase_ == 3) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
} else {
if (requestCase_ == 3) {
return getInitialResultBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
}
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public Builder setGetInitialResult(io.axoniq.axonserver.grpc.query.SubscriptionQuery value) {
if (getInitialResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
getInitialResultBuilder_.setMessage(value);
}
requestCase_ = 3;
return this;
}
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public Builder setGetInitialResult(
io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder builderForValue) {
if (getInitialResultBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
getInitialResultBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 3;
return this;
}
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public Builder mergeGetInitialResult(io.axoniq.axonserver.grpc.query.SubscriptionQuery value) {
if (getInitialResultBuilder_ == null) {
if (requestCase_ == 3 &&
request_ != io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.query.SubscriptionQuery.newBuilder((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 3) {
getInitialResultBuilder_.mergeFrom(value);
}
getInitialResultBuilder_.setMessage(value);
}
requestCase_ = 3;
return this;
}
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public Builder clearGetInitialResult() {
if (getInitialResultBuilder_ == null) {
if (requestCase_ == 3) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 3) {
requestCase_ = 0;
request_ = null;
}
getInitialResultBuilder_.clear();
}
return this;
}
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder getGetInitialResultBuilder() {
return getGetInitialResultFieldBuilder().getBuilder();
}
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder getGetInitialResultOrBuilder() {
if ((requestCase_ == 3) && (getInitialResultBuilder_ != null)) {
return getInitialResultBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 3) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
}
/**
*
* Requests the initial result of a subscription query to be sent. This should always be done after opening the
*subscription query itself, to remove concurrency conflicts with Update messages.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery get_initial_result = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder>
getGetInitialResultFieldBuilder() {
if (getInitialResultBuilder_ == null) {
if (!(requestCase_ == 3)) {
request_ = io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
getInitialResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder>(
(io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 3;
onChanged();;
return getInitialResultBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder> flowControlBuilder_;
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public boolean hasFlowControl() {
return requestCase_ == 4;
}
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery getFlowControl() {
if (flowControlBuilder_ == null) {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
} else {
if (requestCase_ == 4) {
return flowControlBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
}
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public Builder setFlowControl(io.axoniq.axonserver.grpc.query.SubscriptionQuery value) {
if (flowControlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
flowControlBuilder_.setMessage(value);
}
requestCase_ = 4;
return this;
}
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public Builder setFlowControl(
io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder builderForValue) {
if (flowControlBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
flowControlBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 4;
return this;
}
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public Builder mergeFlowControl(io.axoniq.axonserver.grpc.query.SubscriptionQuery value) {
if (flowControlBuilder_ == null) {
if (requestCase_ == 4 &&
request_ != io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.query.SubscriptionQuery.newBuilder((io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 4) {
flowControlBuilder_.mergeFrom(value);
}
flowControlBuilder_.setMessage(value);
}
requestCase_ = 4;
return this;
}
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public Builder clearFlowControl() {
if (flowControlBuilder_ == null) {
if (requestCase_ == 4) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 4) {
requestCase_ = 0;
request_ = null;
}
flowControlBuilder_.clear();
}
return this;
}
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder getFlowControlBuilder() {
return getFlowControlFieldBuilder().getBuilder();
}
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder getFlowControlOrBuilder() {
if ((requestCase_ == 4) && (flowControlBuilder_ != null)) {
return flowControlBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
}
/**
*
* Allows the Server to provide additional Updates to be sent. Only the `number_of_permits` field needs to be
*set on this message.
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQuery flow_control = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder>
getFlowControlFieldBuilder() {
if (flowControlBuilder_ == null) {
if (!(requestCase_ == 4)) {
request_ = io.axoniq.axonserver.grpc.query.SubscriptionQuery.getDefaultInstance();
}
flowControlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQuery, io.axoniq.axonserver.grpc.query.SubscriptionQuery.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryOrBuilder>(
(io.axoniq.axonserver.grpc.query.SubscriptionQuery) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 4;
onChanged();;
return flowControlBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest)
}
// @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest)
private static final io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest();
}
public static io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SubscriptionQueryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubscriptionQueryRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.query.SubscriptionQueryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy