io.axoniq.axonserver.grpc.query.QueryProviderOutbound Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: query.proto
package io.axoniq.axonserver.grpc.query;
/**
*
* Message containing Query related instructions for Axon Server
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.query.QueryProviderOutbound}
*/
public final class QueryProviderOutbound extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.axoniq.axonserver.grpc.query.QueryProviderOutbound)
QueryProviderOutboundOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryProviderOutbound.newBuilder() to construct.
private QueryProviderOutbound(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryProviderOutbound() {
instructionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryProviderOutbound(
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.QuerySubscription.Builder subBuilder = null;
if (requestCase_ == 1) {
subBuilder = ((io.axoniq.axonserver.grpc.query.QuerySubscription) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.query.QuerySubscription.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.QuerySubscription) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 1;
break;
}
case 18: {
io.axoniq.axonserver.grpc.query.QuerySubscription.Builder subBuilder = null;
if (requestCase_ == 2) {
subBuilder = ((io.axoniq.axonserver.grpc.query.QuerySubscription) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.query.QuerySubscription.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.QuerySubscription) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 2;
break;
}
case 26: {
io.axoniq.axonserver.grpc.FlowControl.Builder subBuilder = null;
if (requestCase_ == 3) {
subBuilder = ((io.axoniq.axonserver.grpc.FlowControl) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.FlowControl.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.FlowControl) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 3;
break;
}
case 34: {
io.axoniq.axonserver.grpc.query.QueryResponse.Builder subBuilder = null;
if (requestCase_ == 4) {
subBuilder = ((io.axoniq.axonserver.grpc.query.QueryResponse) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.query.QueryResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.QueryResponse) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 4;
break;
}
case 42: {
io.axoniq.axonserver.grpc.query.QueryComplete.Builder subBuilder = null;
if (requestCase_ == 5) {
subBuilder = ((io.axoniq.axonserver.grpc.query.QueryComplete) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.query.QueryComplete.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.QueryComplete) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 5;
break;
}
case 50: {
io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.Builder subBuilder = null;
if (requestCase_ == 6) {
subBuilder = ((io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 6;
break;
}
case 58: {
io.axoniq.axonserver.grpc.InstructionAck.Builder subBuilder = null;
if (requestCase_ == 7) {
subBuilder = ((io.axoniq.axonserver.grpc.InstructionAck) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.InstructionAck.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.InstructionAck) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 7;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
instructionId_ = s;
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_QueryProviderOutbound_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_QueryProviderOutbound_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.query.QueryProviderOutbound.class, io.axoniq.axonserver.grpc.query.QueryProviderOutbound.Builder.class);
}
private int requestCase_ = 0;
private java.lang.Object request_;
public enum RequestCase
implements com.google.protobuf.Internal.EnumLite {
SUBSCRIBE(1),
UNSUBSCRIBE(2),
FLOW_CONTROL(3),
QUERY_RESPONSE(4),
QUERY_COMPLETE(5),
SUBSCRIPTION_QUERY_RESPONSE(6),
ACK(7),
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 FLOW_CONTROL;
case 4: return QUERY_RESPONSE;
case 5: return QUERY_COMPLETE;
case 6: return SUBSCRIPTION_QUERY_RESPONSE;
case 7: return ACK;
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;
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
public boolean hasSubscribe() {
return requestCase_ == 1;
}
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
public io.axoniq.axonserver.grpc.query.QuerySubscription getSubscribe() {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.query.QuerySubscription) request_;
}
return io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
}
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
public io.axoniq.axonserver.grpc.query.QuerySubscriptionOrBuilder getSubscribeOrBuilder() {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.query.QuerySubscription) request_;
}
return io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
}
public static final int UNSUBSCRIBE_FIELD_NUMBER = 2;
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
public boolean hasUnsubscribe() {
return requestCase_ == 2;
}
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.query.QuerySubscription getUnsubscribe() {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.query.QuerySubscription) request_;
}
return io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
}
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.query.QuerySubscriptionOrBuilder getUnsubscribeOrBuilder() {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.query.QuerySubscription) request_;
}
return io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
}
public static final int FLOW_CONTROL_FIELD_NUMBER = 3;
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public boolean hasFlowControl() {
return requestCase_ == 3;
}
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public io.axoniq.axonserver.grpc.FlowControl getFlowControl() {
if (requestCase_ == 3) {
return (io.axoniq.axonserver.grpc.FlowControl) request_;
}
return io.axoniq.axonserver.grpc.FlowControl.getDefaultInstance();
}
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public io.axoniq.axonserver.grpc.FlowControlOrBuilder getFlowControlOrBuilder() {
if (requestCase_ == 3) {
return (io.axoniq.axonserver.grpc.FlowControl) request_;
}
return io.axoniq.axonserver.grpc.FlowControl.getDefaultInstance();
}
public static final int QUERY_RESPONSE_FIELD_NUMBER = 4;
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public boolean hasQueryResponse() {
return requestCase_ == 4;
}
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public io.axoniq.axonserver.grpc.query.QueryResponse getQueryResponse() {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.query.QueryResponse) request_;
}
return io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance();
}
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public io.axoniq.axonserver.grpc.query.QueryResponseOrBuilder getQueryResponseOrBuilder() {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.query.QueryResponse) request_;
}
return io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance();
}
public static final int QUERY_COMPLETE_FIELD_NUMBER = 5;
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public boolean hasQueryComplete() {
return requestCase_ == 5;
}
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public io.axoniq.axonserver.grpc.query.QueryComplete getQueryComplete() {
if (requestCase_ == 5) {
return (io.axoniq.axonserver.grpc.query.QueryComplete) request_;
}
return io.axoniq.axonserver.grpc.query.QueryComplete.getDefaultInstance();
}
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public io.axoniq.axonserver.grpc.query.QueryCompleteOrBuilder getQueryCompleteOrBuilder() {
if (requestCase_ == 5) {
return (io.axoniq.axonserver.grpc.query.QueryComplete) request_;
}
return io.axoniq.axonserver.grpc.query.QueryComplete.getDefaultInstance();
}
public static final int SUBSCRIPTION_QUERY_RESPONSE_FIELD_NUMBER = 6;
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public boolean hasSubscriptionQueryResponse() {
return requestCase_ == 6;
}
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse getSubscriptionQueryResponse() {
if (requestCase_ == 6) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.getDefaultInstance();
}
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryResponseOrBuilder getSubscriptionQueryResponseOrBuilder() {
if (requestCase_ == 6) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.getDefaultInstance();
}
public static final int ACK_FIELD_NUMBER = 7;
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public boolean hasAck() {
return requestCase_ == 7;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public io.axoniq.axonserver.grpc.InstructionAck getAck() {
if (requestCase_ == 7) {
return (io.axoniq.axonserver.grpc.InstructionAck) request_;
}
return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance();
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public io.axoniq.axonserver.grpc.InstructionAckOrBuilder getAckOrBuilder() {
if (requestCase_ == 7) {
return (io.axoniq.axonserver.grpc.InstructionAck) request_;
}
return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance();
}
public static final int INSTRUCTION_ID_FIELD_NUMBER = 8;
private volatile java.lang.Object instructionId_;
/**
*
* Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream
*
*
* string instruction_id = 8;
*/
public java.lang.String getInstructionId() {
java.lang.Object ref = instructionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instructionId_ = s;
return s;
}
}
/**
*
* Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream
*
*
* string instruction_id = 8;
*/
public com.google.protobuf.ByteString
getInstructionIdBytes() {
java.lang.Object ref = instructionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instructionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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.QuerySubscription) request_);
}
if (requestCase_ == 2) {
output.writeMessage(2, (io.axoniq.axonserver.grpc.query.QuerySubscription) request_);
}
if (requestCase_ == 3) {
output.writeMessage(3, (io.axoniq.axonserver.grpc.FlowControl) request_);
}
if (requestCase_ == 4) {
output.writeMessage(4, (io.axoniq.axonserver.grpc.query.QueryResponse) request_);
}
if (requestCase_ == 5) {
output.writeMessage(5, (io.axoniq.axonserver.grpc.query.QueryComplete) request_);
}
if (requestCase_ == 6) {
output.writeMessage(6, (io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) request_);
}
if (requestCase_ == 7) {
output.writeMessage(7, (io.axoniq.axonserver.grpc.InstructionAck) request_);
}
if (!getInstructionIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, instructionId_);
}
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.QuerySubscription) request_);
}
if (requestCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.axoniq.axonserver.grpc.query.QuerySubscription) request_);
}
if (requestCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.axoniq.axonserver.grpc.FlowControl) request_);
}
if (requestCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.axoniq.axonserver.grpc.query.QueryResponse) request_);
}
if (requestCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.axoniq.axonserver.grpc.query.QueryComplete) request_);
}
if (requestCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) request_);
}
if (requestCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.axoniq.axonserver.grpc.InstructionAck) request_);
}
if (!getInstructionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, instructionId_);
}
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.QueryProviderOutbound)) {
return super.equals(obj);
}
io.axoniq.axonserver.grpc.query.QueryProviderOutbound other = (io.axoniq.axonserver.grpc.query.QueryProviderOutbound) obj;
boolean result = true;
result = result && getInstructionId()
.equals(other.getInstructionId());
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 && getFlowControl()
.equals(other.getFlowControl());
break;
case 4:
result = result && getQueryResponse()
.equals(other.getQueryResponse());
break;
case 5:
result = result && getQueryComplete()
.equals(other.getQueryComplete());
break;
case 6:
result = result && getSubscriptionQueryResponse()
.equals(other.getSubscriptionQueryResponse());
break;
case 7:
result = result && getAck()
.equals(other.getAck());
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();
hash = (37 * hash) + INSTRUCTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstructionId().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) + FLOW_CONTROL_FIELD_NUMBER;
hash = (53 * hash) + getFlowControl().hashCode();
break;
case 4:
hash = (37 * hash) + QUERY_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getQueryResponse().hashCode();
break;
case 5:
hash = (37 * hash) + QUERY_COMPLETE_FIELD_NUMBER;
hash = (53 * hash) + getQueryComplete().hashCode();
break;
case 6:
hash = (37 * hash) + SUBSCRIPTION_QUERY_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getSubscriptionQueryResponse().hashCode();
break;
case 7:
hash = (37 * hash) + ACK_FIELD_NUMBER;
hash = (53 * hash) + getAck().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.axoniq.axonserver.grpc.query.QueryProviderOutbound parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.query.QueryProviderOutbound 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.QueryProviderOutbound parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.query.QueryProviderOutbound 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.QueryProviderOutbound parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.query.QueryProviderOutbound 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.QueryProviderOutbound parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.query.QueryProviderOutbound 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.QueryProviderOutbound parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.query.QueryProviderOutbound 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.QueryProviderOutbound 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.QueryProviderOutbound 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.QueryProviderOutbound 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 containing Query related instructions for Axon Server
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.query.QueryProviderOutbound}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.axoniq.axonserver.grpc.query.QueryProviderOutbound)
io.axoniq.axonserver.grpc.query.QueryProviderOutboundOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.axonserver.grpc.query.Query.internal_static_io_axoniq_axonserver_grpc_query_QueryProviderOutbound_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_QueryProviderOutbound_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.query.QueryProviderOutbound.class, io.axoniq.axonserver.grpc.query.QueryProviderOutbound.Builder.class);
}
// Construct using io.axoniq.axonserver.grpc.query.QueryProviderOutbound.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();
instructionId_ = "";
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_QueryProviderOutbound_descriptor;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.query.QueryProviderOutbound getDefaultInstanceForType() {
return io.axoniq.axonserver.grpc.query.QueryProviderOutbound.getDefaultInstance();
}
@java.lang.Override
public io.axoniq.axonserver.grpc.query.QueryProviderOutbound build() {
io.axoniq.axonserver.grpc.query.QueryProviderOutbound result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.query.QueryProviderOutbound buildPartial() {
io.axoniq.axonserver.grpc.query.QueryProviderOutbound result = new io.axoniq.axonserver.grpc.query.QueryProviderOutbound(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 (flowControlBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = flowControlBuilder_.build();
}
}
if (requestCase_ == 4) {
if (queryResponseBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = queryResponseBuilder_.build();
}
}
if (requestCase_ == 5) {
if (queryCompleteBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = queryCompleteBuilder_.build();
}
}
if (requestCase_ == 6) {
if (subscriptionQueryResponseBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = subscriptionQueryResponseBuilder_.build();
}
}
if (requestCase_ == 7) {
if (ackBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = ackBuilder_.build();
}
}
result.instructionId_ = instructionId_;
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.QueryProviderOutbound) {
return mergeFrom((io.axoniq.axonserver.grpc.query.QueryProviderOutbound)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.axoniq.axonserver.grpc.query.QueryProviderOutbound other) {
if (other == io.axoniq.axonserver.grpc.query.QueryProviderOutbound.getDefaultInstance()) return this;
if (!other.getInstructionId().isEmpty()) {
instructionId_ = other.instructionId_;
onChanged();
}
switch (other.getRequestCase()) {
case SUBSCRIBE: {
mergeSubscribe(other.getSubscribe());
break;
}
case UNSUBSCRIBE: {
mergeUnsubscribe(other.getUnsubscribe());
break;
}
case FLOW_CONTROL: {
mergeFlowControl(other.getFlowControl());
break;
}
case QUERY_RESPONSE: {
mergeQueryResponse(other.getQueryResponse());
break;
}
case QUERY_COMPLETE: {
mergeQueryComplete(other.getQueryComplete());
break;
}
case SUBSCRIPTION_QUERY_RESPONSE: {
mergeSubscriptionQueryResponse(other.getSubscriptionQueryResponse());
break;
}
case ACK: {
mergeAck(other.getAck());
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.QueryProviderOutbound parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.axoniq.axonserver.grpc.query.QueryProviderOutbound) 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.QuerySubscription, io.axoniq.axonserver.grpc.query.QuerySubscription.Builder, io.axoniq.axonserver.grpc.query.QuerySubscriptionOrBuilder> subscribeBuilder_;
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
public boolean hasSubscribe() {
return requestCase_ == 1;
}
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
public io.axoniq.axonserver.grpc.query.QuerySubscription getSubscribe() {
if (subscribeBuilder_ == null) {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.query.QuerySubscription) request_;
}
return io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
} else {
if (requestCase_ == 1) {
return subscribeBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
}
}
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
public Builder setSubscribe(io.axoniq.axonserver.grpc.query.QuerySubscription value) {
if (subscribeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
subscribeBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
public Builder setSubscribe(
io.axoniq.axonserver.grpc.query.QuerySubscription.Builder builderForValue) {
if (subscribeBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
subscribeBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 1;
return this;
}
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
public Builder mergeSubscribe(io.axoniq.axonserver.grpc.query.QuerySubscription value) {
if (subscribeBuilder_ == null) {
if (requestCase_ == 1 &&
request_ != io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.query.QuerySubscription.newBuilder((io.axoniq.axonserver.grpc.query.QuerySubscription) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 1) {
subscribeBuilder_.mergeFrom(value);
}
subscribeBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription 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;
}
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
public io.axoniq.axonserver.grpc.query.QuerySubscription.Builder getSubscribeBuilder() {
return getSubscribeFieldBuilder().getBuilder();
}
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
public io.axoniq.axonserver.grpc.query.QuerySubscriptionOrBuilder getSubscribeOrBuilder() {
if ((requestCase_ == 1) && (subscribeBuilder_ != null)) {
return subscribeBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.query.QuerySubscription) request_;
}
return io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
}
}
/**
*
* Registers a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription subscribe = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QuerySubscription, io.axoniq.axonserver.grpc.query.QuerySubscription.Builder, io.axoniq.axonserver.grpc.query.QuerySubscriptionOrBuilder>
getSubscribeFieldBuilder() {
if (subscribeBuilder_ == null) {
if (!(requestCase_ == 1)) {
request_ = io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
}
subscribeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QuerySubscription, io.axoniq.axonserver.grpc.query.QuerySubscription.Builder, io.axoniq.axonserver.grpc.query.QuerySubscriptionOrBuilder>(
(io.axoniq.axonserver.grpc.query.QuerySubscription) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 1;
onChanged();;
return subscribeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QuerySubscription, io.axoniq.axonserver.grpc.query.QuerySubscription.Builder, io.axoniq.axonserver.grpc.query.QuerySubscriptionOrBuilder> unsubscribeBuilder_;
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
public boolean hasUnsubscribe() {
return requestCase_ == 2;
}
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.query.QuerySubscription getUnsubscribe() {
if (unsubscribeBuilder_ == null) {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.query.QuerySubscription) request_;
}
return io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
} else {
if (requestCase_ == 2) {
return unsubscribeBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
}
}
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
public Builder setUnsubscribe(io.axoniq.axonserver.grpc.query.QuerySubscription value) {
if (unsubscribeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
unsubscribeBuilder_.setMessage(value);
}
requestCase_ = 2;
return this;
}
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
public Builder setUnsubscribe(
io.axoniq.axonserver.grpc.query.QuerySubscription.Builder builderForValue) {
if (unsubscribeBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
unsubscribeBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 2;
return this;
}
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
public Builder mergeUnsubscribe(io.axoniq.axonserver.grpc.query.QuerySubscription value) {
if (unsubscribeBuilder_ == null) {
if (requestCase_ == 2 &&
request_ != io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.query.QuerySubscription.newBuilder((io.axoniq.axonserver.grpc.query.QuerySubscription) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 2) {
unsubscribeBuilder_.mergeFrom(value);
}
unsubscribeBuilder_.setMessage(value);
}
requestCase_ = 2;
return this;
}
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription 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;
}
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.query.QuerySubscription.Builder getUnsubscribeBuilder() {
return getUnsubscribeFieldBuilder().getBuilder();
}
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.query.QuerySubscriptionOrBuilder getUnsubscribeOrBuilder() {
if ((requestCase_ == 2) && (unsubscribeBuilder_ != null)) {
return unsubscribeBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.query.QuerySubscription) request_;
}
return io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
}
}
/**
*
* Unregisters a Query Handler with AxonServer
*
*
* .io.axoniq.axonserver.grpc.query.QuerySubscription unsubscribe = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QuerySubscription, io.axoniq.axonserver.grpc.query.QuerySubscription.Builder, io.axoniq.axonserver.grpc.query.QuerySubscriptionOrBuilder>
getUnsubscribeFieldBuilder() {
if (unsubscribeBuilder_ == null) {
if (!(requestCase_ == 2)) {
request_ = io.axoniq.axonserver.grpc.query.QuerySubscription.getDefaultInstance();
}
unsubscribeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QuerySubscription, io.axoniq.axonserver.grpc.query.QuerySubscription.Builder, io.axoniq.axonserver.grpc.query.QuerySubscriptionOrBuilder>(
(io.axoniq.axonserver.grpc.query.QuerySubscription) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 2;
onChanged();;
return unsubscribeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.FlowControl, io.axoniq.axonserver.grpc.FlowControl.Builder, io.axoniq.axonserver.grpc.FlowControlOrBuilder> flowControlBuilder_;
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public boolean hasFlowControl() {
return requestCase_ == 3;
}
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public io.axoniq.axonserver.grpc.FlowControl getFlowControl() {
if (flowControlBuilder_ == null) {
if (requestCase_ == 3) {
return (io.axoniq.axonserver.grpc.FlowControl) request_;
}
return io.axoniq.axonserver.grpc.FlowControl.getDefaultInstance();
} else {
if (requestCase_ == 3) {
return flowControlBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.FlowControl.getDefaultInstance();
}
}
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public Builder setFlowControl(io.axoniq.axonserver.grpc.FlowControl value) {
if (flowControlBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
flowControlBuilder_.setMessage(value);
}
requestCase_ = 3;
return this;
}
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public Builder setFlowControl(
io.axoniq.axonserver.grpc.FlowControl.Builder builderForValue) {
if (flowControlBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
flowControlBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 3;
return this;
}
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public Builder mergeFlowControl(io.axoniq.axonserver.grpc.FlowControl value) {
if (flowControlBuilder_ == null) {
if (requestCase_ == 3 &&
request_ != io.axoniq.axonserver.grpc.FlowControl.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.FlowControl.newBuilder((io.axoniq.axonserver.grpc.FlowControl) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 3) {
flowControlBuilder_.mergeFrom(value);
}
flowControlBuilder_.setMessage(value);
}
requestCase_ = 3;
return this;
}
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public Builder clearFlowControl() {
if (flowControlBuilder_ == null) {
if (requestCase_ == 3) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 3) {
requestCase_ = 0;
request_ = null;
}
flowControlBuilder_.clear();
}
return this;
}
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public io.axoniq.axonserver.grpc.FlowControl.Builder getFlowControlBuilder() {
return getFlowControlFieldBuilder().getBuilder();
}
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public io.axoniq.axonserver.grpc.FlowControlOrBuilder getFlowControlOrBuilder() {
if ((requestCase_ == 3) && (flowControlBuilder_ != null)) {
return flowControlBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 3) {
return (io.axoniq.axonserver.grpc.FlowControl) request_;
}
return io.axoniq.axonserver.grpc.FlowControl.getDefaultInstance();
}
}
/**
*
* Grant permits to AxonServer to send a number of messages to the client
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.FlowControl, io.axoniq.axonserver.grpc.FlowControl.Builder, io.axoniq.axonserver.grpc.FlowControlOrBuilder>
getFlowControlFieldBuilder() {
if (flowControlBuilder_ == null) {
if (!(requestCase_ == 3)) {
request_ = io.axoniq.axonserver.grpc.FlowControl.getDefaultInstance();
}
flowControlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.FlowControl, io.axoniq.axonserver.grpc.FlowControl.Builder, io.axoniq.axonserver.grpc.FlowControlOrBuilder>(
(io.axoniq.axonserver.grpc.FlowControl) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 3;
onChanged();;
return flowControlBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QueryResponse, io.axoniq.axonserver.grpc.query.QueryResponse.Builder, io.axoniq.axonserver.grpc.query.QueryResponseOrBuilder> queryResponseBuilder_;
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public boolean hasQueryResponse() {
return requestCase_ == 4;
}
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public io.axoniq.axonserver.grpc.query.QueryResponse getQueryResponse() {
if (queryResponseBuilder_ == null) {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.query.QueryResponse) request_;
}
return io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance();
} else {
if (requestCase_ == 4) {
return queryResponseBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance();
}
}
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public Builder setQueryResponse(io.axoniq.axonserver.grpc.query.QueryResponse value) {
if (queryResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
queryResponseBuilder_.setMessage(value);
}
requestCase_ = 4;
return this;
}
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public Builder setQueryResponse(
io.axoniq.axonserver.grpc.query.QueryResponse.Builder builderForValue) {
if (queryResponseBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
queryResponseBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 4;
return this;
}
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public Builder mergeQueryResponse(io.axoniq.axonserver.grpc.query.QueryResponse value) {
if (queryResponseBuilder_ == null) {
if (requestCase_ == 4 &&
request_ != io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.query.QueryResponse.newBuilder((io.axoniq.axonserver.grpc.query.QueryResponse) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 4) {
queryResponseBuilder_.mergeFrom(value);
}
queryResponseBuilder_.setMessage(value);
}
requestCase_ = 4;
return this;
}
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public Builder clearQueryResponse() {
if (queryResponseBuilder_ == null) {
if (requestCase_ == 4) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 4) {
requestCase_ = 0;
request_ = null;
}
queryResponseBuilder_.clear();
}
return this;
}
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public io.axoniq.axonserver.grpc.query.QueryResponse.Builder getQueryResponseBuilder() {
return getQueryResponseFieldBuilder().getBuilder();
}
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
public io.axoniq.axonserver.grpc.query.QueryResponseOrBuilder getQueryResponseOrBuilder() {
if ((requestCase_ == 4) && (queryResponseBuilder_ != null)) {
return queryResponseBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.query.QueryResponse) request_;
}
return io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance();
}
}
/**
*
* Sends a Response to a Query received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.QueryResponse query_response = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QueryResponse, io.axoniq.axonserver.grpc.query.QueryResponse.Builder, io.axoniq.axonserver.grpc.query.QueryResponseOrBuilder>
getQueryResponseFieldBuilder() {
if (queryResponseBuilder_ == null) {
if (!(requestCase_ == 4)) {
request_ = io.axoniq.axonserver.grpc.query.QueryResponse.getDefaultInstance();
}
queryResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QueryResponse, io.axoniq.axonserver.grpc.query.QueryResponse.Builder, io.axoniq.axonserver.grpc.query.QueryResponseOrBuilder>(
(io.axoniq.axonserver.grpc.query.QueryResponse) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 4;
onChanged();;
return queryResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QueryComplete, io.axoniq.axonserver.grpc.query.QueryComplete.Builder, io.axoniq.axonserver.grpc.query.QueryCompleteOrBuilder> queryCompleteBuilder_;
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public boolean hasQueryComplete() {
return requestCase_ == 5;
}
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public io.axoniq.axonserver.grpc.query.QueryComplete getQueryComplete() {
if (queryCompleteBuilder_ == null) {
if (requestCase_ == 5) {
return (io.axoniq.axonserver.grpc.query.QueryComplete) request_;
}
return io.axoniq.axonserver.grpc.query.QueryComplete.getDefaultInstance();
} else {
if (requestCase_ == 5) {
return queryCompleteBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.query.QueryComplete.getDefaultInstance();
}
}
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public Builder setQueryComplete(io.axoniq.axonserver.grpc.query.QueryComplete value) {
if (queryCompleteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
queryCompleteBuilder_.setMessage(value);
}
requestCase_ = 5;
return this;
}
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public Builder setQueryComplete(
io.axoniq.axonserver.grpc.query.QueryComplete.Builder builderForValue) {
if (queryCompleteBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
queryCompleteBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 5;
return this;
}
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public Builder mergeQueryComplete(io.axoniq.axonserver.grpc.query.QueryComplete value) {
if (queryCompleteBuilder_ == null) {
if (requestCase_ == 5 &&
request_ != io.axoniq.axonserver.grpc.query.QueryComplete.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.query.QueryComplete.newBuilder((io.axoniq.axonserver.grpc.query.QueryComplete) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 5) {
queryCompleteBuilder_.mergeFrom(value);
}
queryCompleteBuilder_.setMessage(value);
}
requestCase_ = 5;
return this;
}
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public Builder clearQueryComplete() {
if (queryCompleteBuilder_ == null) {
if (requestCase_ == 5) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 5) {
requestCase_ = 0;
request_ = null;
}
queryCompleteBuilder_.clear();
}
return this;
}
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public io.axoniq.axonserver.grpc.query.QueryComplete.Builder getQueryCompleteBuilder() {
return getQueryCompleteFieldBuilder().getBuilder();
}
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
public io.axoniq.axonserver.grpc.query.QueryCompleteOrBuilder getQueryCompleteOrBuilder() {
if ((requestCase_ == 5) && (queryCompleteBuilder_ != null)) {
return queryCompleteBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 5) {
return (io.axoniq.axonserver.grpc.query.QueryComplete) request_;
}
return io.axoniq.axonserver.grpc.query.QueryComplete.getDefaultInstance();
}
}
/**
*
* Indicator that all responses for Query have been sent
*
*
* .io.axoniq.axonserver.grpc.query.QueryComplete query_complete = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QueryComplete, io.axoniq.axonserver.grpc.query.QueryComplete.Builder, io.axoniq.axonserver.grpc.query.QueryCompleteOrBuilder>
getQueryCompleteFieldBuilder() {
if (queryCompleteBuilder_ == null) {
if (!(requestCase_ == 5)) {
request_ = io.axoniq.axonserver.grpc.query.QueryComplete.getDefaultInstance();
}
queryCompleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.QueryComplete, io.axoniq.axonserver.grpc.query.QueryComplete.Builder, io.axoniq.axonserver.grpc.query.QueryCompleteOrBuilder>(
(io.axoniq.axonserver.grpc.query.QueryComplete) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 5;
onChanged();;
return queryCompleteBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse, io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryResponseOrBuilder> subscriptionQueryResponseBuilder_;
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public boolean hasSubscriptionQueryResponse() {
return requestCase_ == 6;
}
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse getSubscriptionQueryResponse() {
if (subscriptionQueryResponseBuilder_ == null) {
if (requestCase_ == 6) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.getDefaultInstance();
} else {
if (requestCase_ == 6) {
return subscriptionQueryResponseBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.getDefaultInstance();
}
}
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public Builder setSubscriptionQueryResponse(io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse value) {
if (subscriptionQueryResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
subscriptionQueryResponseBuilder_.setMessage(value);
}
requestCase_ = 6;
return this;
}
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public Builder setSubscriptionQueryResponse(
io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.Builder builderForValue) {
if (subscriptionQueryResponseBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
subscriptionQueryResponseBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 6;
return this;
}
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public Builder mergeSubscriptionQueryResponse(io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse value) {
if (subscriptionQueryResponseBuilder_ == null) {
if (requestCase_ == 6 &&
request_ != io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.newBuilder((io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 6) {
subscriptionQueryResponseBuilder_.mergeFrom(value);
}
subscriptionQueryResponseBuilder_.setMessage(value);
}
requestCase_ = 6;
return this;
}
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public Builder clearSubscriptionQueryResponse() {
if (subscriptionQueryResponseBuilder_ == null) {
if (requestCase_ == 6) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 6) {
requestCase_ = 0;
request_ = null;
}
subscriptionQueryResponseBuilder_.clear();
}
return this;
}
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.Builder getSubscriptionQueryResponseBuilder() {
return getSubscriptionQueryResponseFieldBuilder().getBuilder();
}
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
public io.axoniq.axonserver.grpc.query.SubscriptionQueryResponseOrBuilder getSubscriptionQueryResponseOrBuilder() {
if ((requestCase_ == 6) && (subscriptionQueryResponseBuilder_ != null)) {
return subscriptionQueryResponseBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 6) {
return (io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) request_;
}
return io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.getDefaultInstance();
}
}
/**
*
* Sends a response for a Subscription Query that has been received via the inbound stream
*
*
* .io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse subscription_query_response = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse, io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryResponseOrBuilder>
getSubscriptionQueryResponseFieldBuilder() {
if (subscriptionQueryResponseBuilder_ == null) {
if (!(requestCase_ == 6)) {
request_ = io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.getDefaultInstance();
}
subscriptionQueryResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse, io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse.Builder, io.axoniq.axonserver.grpc.query.SubscriptionQueryResponseOrBuilder>(
(io.axoniq.axonserver.grpc.query.SubscriptionQueryResponse) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 6;
onChanged();;
return subscriptionQueryResponseBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.InstructionAck, io.axoniq.axonserver.grpc.InstructionAck.Builder, io.axoniq.axonserver.grpc.InstructionAckOrBuilder> ackBuilder_;
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public boolean hasAck() {
return requestCase_ == 7;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public io.axoniq.axonserver.grpc.InstructionAck getAck() {
if (ackBuilder_ == null) {
if (requestCase_ == 7) {
return (io.axoniq.axonserver.grpc.InstructionAck) request_;
}
return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance();
} else {
if (requestCase_ == 7) {
return ackBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance();
}
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public Builder setAck(io.axoniq.axonserver.grpc.InstructionAck value) {
if (ackBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
ackBuilder_.setMessage(value);
}
requestCase_ = 7;
return this;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public Builder setAck(
io.axoniq.axonserver.grpc.InstructionAck.Builder builderForValue) {
if (ackBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
ackBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 7;
return this;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public Builder mergeAck(io.axoniq.axonserver.grpc.InstructionAck value) {
if (ackBuilder_ == null) {
if (requestCase_ == 7 &&
request_ != io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.InstructionAck.newBuilder((io.axoniq.axonserver.grpc.InstructionAck) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 7) {
ackBuilder_.mergeFrom(value);
}
ackBuilder_.setMessage(value);
}
requestCase_ = 7;
return this;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public Builder clearAck() {
if (ackBuilder_ == null) {
if (requestCase_ == 7) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 7) {
requestCase_ = 0;
request_ = null;
}
ackBuilder_.clear();
}
return this;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public io.axoniq.axonserver.grpc.InstructionAck.Builder getAckBuilder() {
return getAckFieldBuilder().getBuilder();
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
public io.axoniq.axonserver.grpc.InstructionAckOrBuilder getAckOrBuilder() {
if ((requestCase_ == 7) && (ackBuilder_ != null)) {
return ackBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 7) {
return (io.axoniq.axonserver.grpc.InstructionAck) request_;
}
return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance();
}
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.InstructionAck, io.axoniq.axonserver.grpc.InstructionAck.Builder, io.axoniq.axonserver.grpc.InstructionAckOrBuilder>
getAckFieldBuilder() {
if (ackBuilder_ == null) {
if (!(requestCase_ == 7)) {
request_ = io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance();
}
ackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.InstructionAck, io.axoniq.axonserver.grpc.InstructionAck.Builder, io.axoniq.axonserver.grpc.InstructionAckOrBuilder>(
(io.axoniq.axonserver.grpc.InstructionAck) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 7;
onChanged();;
return ackBuilder_;
}
private java.lang.Object instructionId_ = "";
/**
*
* Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream
*
*
* string instruction_id = 8;
*/
public java.lang.String getInstructionId() {
java.lang.Object ref = instructionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instructionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream
*
*
* string instruction_id = 8;
*/
public com.google.protobuf.ByteString
getInstructionIdBytes() {
java.lang.Object ref = instructionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instructionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream
*
*
* string instruction_id = 8;
*/
public Builder setInstructionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instructionId_ = value;
onChanged();
return this;
}
/**
*
* Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream
*
*
* string instruction_id = 8;
*/
public Builder clearInstructionId() {
instructionId_ = getDefaultInstance().getInstructionId();
onChanged();
return this;
}
/**
*
* Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream
*
*
* string instruction_id = 8;
*/
public Builder setInstructionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instructionId_ = value;
onChanged();
return this;
}
@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.QueryProviderOutbound)
}
// @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.query.QueryProviderOutbound)
private static final io.axoniq.axonserver.grpc.query.QueryProviderOutbound DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.axoniq.axonserver.grpc.query.QueryProviderOutbound();
}
public static io.axoniq.axonserver.grpc.query.QueryProviderOutbound getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryProviderOutbound parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryProviderOutbound(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.QueryProviderOutbound getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy