io.axoniq.axonserver.grpc.command.CommandProviderOutbound Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: command.proto
package io.axoniq.axonserver.grpc.command;
/**
*
* An instruction from the components that provides the Command Handler towards AxonServer.
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.command.CommandProviderOutbound}
*/
public final class CommandProviderOutbound extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.axoniq.axonserver.grpc.command.CommandProviderOutbound)
CommandProviderOutboundOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommandProviderOutbound.newBuilder() to construct.
private CommandProviderOutbound(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommandProviderOutbound() {
instructionId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommandProviderOutbound(
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.command.CommandSubscription.Builder subBuilder = null;
if (requestCase_ == 1) {
subBuilder = ((io.axoniq.axonserver.grpc.command.CommandSubscription) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.command.CommandSubscription.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.command.CommandSubscription) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 1;
break;
}
case 18: {
io.axoniq.axonserver.grpc.command.CommandSubscription.Builder subBuilder = null;
if (requestCase_ == 2) {
subBuilder = ((io.axoniq.axonserver.grpc.command.CommandSubscription) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.command.CommandSubscription.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.command.CommandSubscription) 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.command.CommandResponse.Builder subBuilder = null;
if (requestCase_ == 4) {
subBuilder = ((io.axoniq.axonserver.grpc.command.CommandResponse) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.axonserver.grpc.command.CommandResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.command.CommandResponse) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 4;
break;
}
case 42: {
io.axoniq.axonserver.grpc.InstructionAck.Builder subBuilder = null;
if (requestCase_ == 5) {
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_ = 5;
break;
}
case 50: {
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.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandProviderOutbound_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandProviderOutbound_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.command.CommandProviderOutbound.class, io.axoniq.axonserver.grpc.command.CommandProviderOutbound.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),
COMMAND_RESPONSE(4),
ACK(5),
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 COMMAND_RESPONSE;
case 5: 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;
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
public boolean hasSubscribe() {
return requestCase_ == 1;
}
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
public io.axoniq.axonserver.grpc.command.CommandSubscription getSubscribe() {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.command.CommandSubscription) request_;
}
return io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
}
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
public io.axoniq.axonserver.grpc.command.CommandSubscriptionOrBuilder getSubscribeOrBuilder() {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.command.CommandSubscription) request_;
}
return io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
}
public static final int UNSUBSCRIBE_FIELD_NUMBER = 2;
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
public boolean hasUnsubscribe() {
return requestCase_ == 2;
}
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.command.CommandSubscription getUnsubscribe() {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.command.CommandSubscription) request_;
}
return io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
}
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.command.CommandSubscriptionOrBuilder getUnsubscribeOrBuilder() {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.command.CommandSubscription) request_;
}
return io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
}
public static final int FLOW_CONTROL_FIELD_NUMBER = 3;
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public boolean hasFlowControl() {
return requestCase_ == 3;
}
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .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();
}
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .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 COMMAND_RESPONSE_FIELD_NUMBER = 4;
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public boolean hasCommandResponse() {
return requestCase_ == 4;
}
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public io.axoniq.axonserver.grpc.command.CommandResponse getCommandResponse() {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.command.CommandResponse) request_;
}
return io.axoniq.axonserver.grpc.command.CommandResponse.getDefaultInstance();
}
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public io.axoniq.axonserver.grpc.command.CommandResponseOrBuilder getCommandResponseOrBuilder() {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.command.CommandResponse) request_;
}
return io.axoniq.axonserver.grpc.command.CommandResponse.getDefaultInstance();
}
public static final int ACK_FIELD_NUMBER = 5;
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 5;
*/
public boolean hasAck() {
return requestCase_ == 5;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 5;
*/
public io.axoniq.axonserver.grpc.InstructionAck getAck() {
if (requestCase_ == 5) {
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 = 5;
*/
public io.axoniq.axonserver.grpc.InstructionAckOrBuilder getAckOrBuilder() {
if (requestCase_ == 5) {
return (io.axoniq.axonserver.grpc.InstructionAck) request_;
}
return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance();
}
public static final int INSTRUCTION_ID_FIELD_NUMBER = 6;
private volatile java.lang.Object instructionId_;
/**
*
* Instruction identifier. If this identifier is set, this instruction will be acknowledged via inbound stream
*
*
* string instruction_id = 6;
*/
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 = 6;
*/
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.command.CommandSubscription) request_);
}
if (requestCase_ == 2) {
output.writeMessage(2, (io.axoniq.axonserver.grpc.command.CommandSubscription) request_);
}
if (requestCase_ == 3) {
output.writeMessage(3, (io.axoniq.axonserver.grpc.FlowControl) request_);
}
if (requestCase_ == 4) {
output.writeMessage(4, (io.axoniq.axonserver.grpc.command.CommandResponse) request_);
}
if (requestCase_ == 5) {
output.writeMessage(5, (io.axoniq.axonserver.grpc.InstructionAck) request_);
}
if (!getInstructionIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, 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.command.CommandSubscription) request_);
}
if (requestCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.axoniq.axonserver.grpc.command.CommandSubscription) 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.command.CommandResponse) request_);
}
if (requestCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.axoniq.axonserver.grpc.InstructionAck) request_);
}
if (!getInstructionIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.command.CommandProviderOutbound)) {
return super.equals(obj);
}
io.axoniq.axonserver.grpc.command.CommandProviderOutbound other = (io.axoniq.axonserver.grpc.command.CommandProviderOutbound) 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 && getCommandResponse()
.equals(other.getCommandResponse());
break;
case 5:
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) + COMMAND_RESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getCommandResponse().hashCode();
break;
case 5:
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.command.CommandProviderOutbound parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.command.CommandProviderOutbound 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.command.CommandProviderOutbound parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.command.CommandProviderOutbound 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.command.CommandProviderOutbound parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.command.CommandProviderOutbound parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.command.CommandProviderOutbound parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.command.CommandProviderOutbound 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.command.CommandProviderOutbound parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.command.CommandProviderOutbound 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.command.CommandProviderOutbound parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.command.CommandProviderOutbound 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.command.CommandProviderOutbound 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;
}
/**
*
* An instruction from the components that provides the Command Handler towards AxonServer.
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.command.CommandProviderOutbound}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.axoniq.axonserver.grpc.command.CommandProviderOutbound)
io.axoniq.axonserver.grpc.command.CommandProviderOutboundOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandProviderOutbound_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandProviderOutbound_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.command.CommandProviderOutbound.class, io.axoniq.axonserver.grpc.command.CommandProviderOutbound.Builder.class);
}
// Construct using io.axoniq.axonserver.grpc.command.CommandProviderOutbound.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.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandProviderOutbound_descriptor;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.command.CommandProviderOutbound getDefaultInstanceForType() {
return io.axoniq.axonserver.grpc.command.CommandProviderOutbound.getDefaultInstance();
}
@java.lang.Override
public io.axoniq.axonserver.grpc.command.CommandProviderOutbound build() {
io.axoniq.axonserver.grpc.command.CommandProviderOutbound result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.command.CommandProviderOutbound buildPartial() {
io.axoniq.axonserver.grpc.command.CommandProviderOutbound result = new io.axoniq.axonserver.grpc.command.CommandProviderOutbound(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 (commandResponseBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = commandResponseBuilder_.build();
}
}
if (requestCase_ == 5) {
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.command.CommandProviderOutbound) {
return mergeFrom((io.axoniq.axonserver.grpc.command.CommandProviderOutbound)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.axoniq.axonserver.grpc.command.CommandProviderOutbound other) {
if (other == io.axoniq.axonserver.grpc.command.CommandProviderOutbound.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 COMMAND_RESPONSE: {
mergeCommandResponse(other.getCommandResponse());
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.command.CommandProviderOutbound parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.axoniq.axonserver.grpc.command.CommandProviderOutbound) 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.command.CommandSubscription, io.axoniq.axonserver.grpc.command.CommandSubscription.Builder, io.axoniq.axonserver.grpc.command.CommandSubscriptionOrBuilder> subscribeBuilder_;
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
public boolean hasSubscribe() {
return requestCase_ == 1;
}
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
public io.axoniq.axonserver.grpc.command.CommandSubscription getSubscribe() {
if (subscribeBuilder_ == null) {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.command.CommandSubscription) request_;
}
return io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
} else {
if (requestCase_ == 1) {
return subscribeBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
}
}
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
public Builder setSubscribe(io.axoniq.axonserver.grpc.command.CommandSubscription value) {
if (subscribeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
subscribeBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
public Builder setSubscribe(
io.axoniq.axonserver.grpc.command.CommandSubscription.Builder builderForValue) {
if (subscribeBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
subscribeBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 1;
return this;
}
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
public Builder mergeSubscribe(io.axoniq.axonserver.grpc.command.CommandSubscription value) {
if (subscribeBuilder_ == null) {
if (requestCase_ == 1 &&
request_ != io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.command.CommandSubscription.newBuilder((io.axoniq.axonserver.grpc.command.CommandSubscription) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 1) {
subscribeBuilder_.mergeFrom(value);
}
subscribeBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription 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;
}
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
public io.axoniq.axonserver.grpc.command.CommandSubscription.Builder getSubscribeBuilder() {
return getSubscribeFieldBuilder().getBuilder();
}
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
public io.axoniq.axonserver.grpc.command.CommandSubscriptionOrBuilder getSubscribeOrBuilder() {
if ((requestCase_ == 1) && (subscribeBuilder_ != null)) {
return subscribeBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 1) {
return (io.axoniq.axonserver.grpc.command.CommandSubscription) request_;
}
return io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
}
}
/**
*
* Instruction to subscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription subscribe = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.command.CommandSubscription, io.axoniq.axonserver.grpc.command.CommandSubscription.Builder, io.axoniq.axonserver.grpc.command.CommandSubscriptionOrBuilder>
getSubscribeFieldBuilder() {
if (subscribeBuilder_ == null) {
if (!(requestCase_ == 1)) {
request_ = io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
}
subscribeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.command.CommandSubscription, io.axoniq.axonserver.grpc.command.CommandSubscription.Builder, io.axoniq.axonserver.grpc.command.CommandSubscriptionOrBuilder>(
(io.axoniq.axonserver.grpc.command.CommandSubscription) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 1;
onChanged();;
return subscribeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.command.CommandSubscription, io.axoniq.axonserver.grpc.command.CommandSubscription.Builder, io.axoniq.axonserver.grpc.command.CommandSubscriptionOrBuilder> unsubscribeBuilder_;
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
public boolean hasUnsubscribe() {
return requestCase_ == 2;
}
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.command.CommandSubscription getUnsubscribe() {
if (unsubscribeBuilder_ == null) {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.command.CommandSubscription) request_;
}
return io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
} else {
if (requestCase_ == 2) {
return unsubscribeBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
}
}
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
public Builder setUnsubscribe(io.axoniq.axonserver.grpc.command.CommandSubscription value) {
if (unsubscribeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
unsubscribeBuilder_.setMessage(value);
}
requestCase_ = 2;
return this;
}
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
public Builder setUnsubscribe(
io.axoniq.axonserver.grpc.command.CommandSubscription.Builder builderForValue) {
if (unsubscribeBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
unsubscribeBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 2;
return this;
}
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
public Builder mergeUnsubscribe(io.axoniq.axonserver.grpc.command.CommandSubscription value) {
if (unsubscribeBuilder_ == null) {
if (requestCase_ == 2 &&
request_ != io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.command.CommandSubscription.newBuilder((io.axoniq.axonserver.grpc.command.CommandSubscription) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 2) {
unsubscribeBuilder_.mergeFrom(value);
}
unsubscribeBuilder_.setMessage(value);
}
requestCase_ = 2;
return this;
}
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription 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;
}
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.command.CommandSubscription.Builder getUnsubscribeBuilder() {
return getUnsubscribeFieldBuilder().getBuilder();
}
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
public io.axoniq.axonserver.grpc.command.CommandSubscriptionOrBuilder getUnsubscribeOrBuilder() {
if ((requestCase_ == 2) && (unsubscribeBuilder_ != null)) {
return unsubscribeBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 2) {
return (io.axoniq.axonserver.grpc.command.CommandSubscription) request_;
}
return io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
}
}
/**
*
* Instruction to unsubscribe this component as handler of a specific type of command
*
*
* .io.axoniq.axonserver.grpc.command.CommandSubscription unsubscribe = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.command.CommandSubscription, io.axoniq.axonserver.grpc.command.CommandSubscription.Builder, io.axoniq.axonserver.grpc.command.CommandSubscriptionOrBuilder>
getUnsubscribeFieldBuilder() {
if (unsubscribeBuilder_ == null) {
if (!(requestCase_ == 2)) {
request_ = io.axoniq.axonserver.grpc.command.CommandSubscription.getDefaultInstance();
}
unsubscribeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.command.CommandSubscription, io.axoniq.axonserver.grpc.command.CommandSubscription.Builder, io.axoniq.axonserver.grpc.command.CommandSubscriptionOrBuilder>(
(io.axoniq.axonserver.grpc.command.CommandSubscription) 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_;
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public boolean hasFlowControl() {
return requestCase_ == 3;
}
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .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();
}
}
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .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;
}
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .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;
}
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .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;
}
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .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;
}
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .io.axoniq.axonserver.grpc.FlowControl flow_control = 3;
*/
public io.axoniq.axonserver.grpc.FlowControl.Builder getFlowControlBuilder() {
return getFlowControlFieldBuilder().getBuilder();
}
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .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();
}
}
/**
*
* Instruction to increase the number of instructions AxonServer may send to this component
*
*
* .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.command.CommandResponse, io.axoniq.axonserver.grpc.command.CommandResponse.Builder, io.axoniq.axonserver.grpc.command.CommandResponseOrBuilder> commandResponseBuilder_;
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public boolean hasCommandResponse() {
return requestCase_ == 4;
}
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public io.axoniq.axonserver.grpc.command.CommandResponse getCommandResponse() {
if (commandResponseBuilder_ == null) {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.command.CommandResponse) request_;
}
return io.axoniq.axonserver.grpc.command.CommandResponse.getDefaultInstance();
} else {
if (requestCase_ == 4) {
return commandResponseBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.command.CommandResponse.getDefaultInstance();
}
}
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public Builder setCommandResponse(io.axoniq.axonserver.grpc.command.CommandResponse value) {
if (commandResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
commandResponseBuilder_.setMessage(value);
}
requestCase_ = 4;
return this;
}
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public Builder setCommandResponse(
io.axoniq.axonserver.grpc.command.CommandResponse.Builder builderForValue) {
if (commandResponseBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
commandResponseBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 4;
return this;
}
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public Builder mergeCommandResponse(io.axoniq.axonserver.grpc.command.CommandResponse value) {
if (commandResponseBuilder_ == null) {
if (requestCase_ == 4 &&
request_ != io.axoniq.axonserver.grpc.command.CommandResponse.getDefaultInstance()) {
request_ = io.axoniq.axonserver.grpc.command.CommandResponse.newBuilder((io.axoniq.axonserver.grpc.command.CommandResponse) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 4) {
commandResponseBuilder_.mergeFrom(value);
}
commandResponseBuilder_.setMessage(value);
}
requestCase_ = 4;
return this;
}
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public Builder clearCommandResponse() {
if (commandResponseBuilder_ == null) {
if (requestCase_ == 4) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 4) {
requestCase_ = 0;
request_ = null;
}
commandResponseBuilder_.clear();
}
return this;
}
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public io.axoniq.axonserver.grpc.command.CommandResponse.Builder getCommandResponseBuilder() {
return getCommandResponseFieldBuilder().getBuilder();
}
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
public io.axoniq.axonserver.grpc.command.CommandResponseOrBuilder getCommandResponseOrBuilder() {
if ((requestCase_ == 4) && (commandResponseBuilder_ != null)) {
return commandResponseBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 4) {
return (io.axoniq.axonserver.grpc.command.CommandResponse) request_;
}
return io.axoniq.axonserver.grpc.command.CommandResponse.getDefaultInstance();
}
}
/**
*
* Sends a result of Command processing
*
*
* .io.axoniq.axonserver.grpc.command.CommandResponse command_response = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.command.CommandResponse, io.axoniq.axonserver.grpc.command.CommandResponse.Builder, io.axoniq.axonserver.grpc.command.CommandResponseOrBuilder>
getCommandResponseFieldBuilder() {
if (commandResponseBuilder_ == null) {
if (!(requestCase_ == 4)) {
request_ = io.axoniq.axonserver.grpc.command.CommandResponse.getDefaultInstance();
}
commandResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.command.CommandResponse, io.axoniq.axonserver.grpc.command.CommandResponse.Builder, io.axoniq.axonserver.grpc.command.CommandResponseOrBuilder>(
(io.axoniq.axonserver.grpc.command.CommandResponse) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 4;
onChanged();;
return commandResponseBuilder_;
}
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 = 5;
*/
public boolean hasAck() {
return requestCase_ == 5;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 5;
*/
public io.axoniq.axonserver.grpc.InstructionAck getAck() {
if (ackBuilder_ == null) {
if (requestCase_ == 5) {
return (io.axoniq.axonserver.grpc.InstructionAck) request_;
}
return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance();
} else {
if (requestCase_ == 5) {
return ackBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance();
}
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 5;
*/
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_ = 5;
return this;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 5;
*/
public Builder setAck(
io.axoniq.axonserver.grpc.InstructionAck.Builder builderForValue) {
if (ackBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
ackBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 5;
return this;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 5;
*/
public Builder mergeAck(io.axoniq.axonserver.grpc.InstructionAck value) {
if (ackBuilder_ == null) {
if (requestCase_ == 5 &&
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_ == 5) {
ackBuilder_.mergeFrom(value);
}
ackBuilder_.setMessage(value);
}
requestCase_ = 5;
return this;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 5;
*/
public Builder clearAck() {
if (ackBuilder_ == null) {
if (requestCase_ == 5) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 5) {
requestCase_ = 0;
request_ = null;
}
ackBuilder_.clear();
}
return this;
}
/**
*
* Acknowledgement of previously sent instruction via inbound stream
*
*
* .io.axoniq.axonserver.grpc.InstructionAck ack = 5;
*/
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 = 5;
*/
public io.axoniq.axonserver.grpc.InstructionAckOrBuilder getAckOrBuilder() {
if ((requestCase_ == 5) && (ackBuilder_ != null)) {
return ackBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 5) {
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 = 5;
*/
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_ == 5)) {
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_ = 5;
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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
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.command.CommandProviderOutbound)
}
// @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.command.CommandProviderOutbound)
private static final io.axoniq.axonserver.grpc.command.CommandProviderOutbound DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.axoniq.axonserver.grpc.command.CommandProviderOutbound();
}
public static io.axoniq.axonserver.grpc.command.CommandProviderOutbound getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommandProviderOutbound parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommandProviderOutbound(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.command.CommandProviderOutbound getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy