io.axoniq.platform.grpc.PlatformInboundInstruction Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: platform_api.proto
package io.axoniq.platform.grpc;
/**
* Protobuf type {@code io.axoniq.platform.grpc.PlatformInboundInstruction}
*/
public final class PlatformInboundInstruction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.axoniq.platform.grpc.PlatformInboundInstruction)
PlatformInboundInstructionOrBuilder {
// Use PlatformInboundInstruction.newBuilder() to construct.
private PlatformInboundInstruction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PlatformInboundInstruction() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PlatformInboundInstruction(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
io.axoniq.platform.grpc.ClientIdentification.Builder subBuilder = null;
if (requestCase_ == 1) {
subBuilder = ((io.axoniq.platform.grpc.ClientIdentification) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.platform.grpc.ClientIdentification.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.platform.grpc.ClientIdentification) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 1;
break;
}
case 82: {
io.axoniq.platform.grpc.Application.Builder subBuilder = null;
if (requestCase_ == 10) {
subBuilder = ((io.axoniq.platform.grpc.Application) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.platform.grpc.Application.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.platform.grpc.Application) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 10;
break;
}
case 90: {
io.axoniq.platform.grpc.User.Builder subBuilder = null;
if (requestCase_ == 11) {
subBuilder = ((io.axoniq.platform.grpc.User) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.platform.grpc.User.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.platform.grpc.User) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 11;
break;
}
case 98: {
io.axoniq.platform.grpc.ContextUpdate.Builder subBuilder = null;
if (requestCase_ == 12) {
subBuilder = ((io.axoniq.platform.grpc.ContextUpdate) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.platform.grpc.ContextUpdate.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.platform.grpc.ContextUpdate) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 12;
break;
}
case 794: {
io.axoniq.platform.grpc.HeartbeatResponse.Builder subBuilder = null;
if (requestCase_ == 99) {
subBuilder = ((io.axoniq.platform.grpc.HeartbeatResponse) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.platform.grpc.HeartbeatResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.platform.grpc.HeartbeatResponse) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 99;
break;
}
case 802: {
io.axoniq.platform.grpc.UnknownRequest.Builder subBuilder = null;
if (requestCase_ == 100) {
subBuilder = ((io.axoniq.platform.grpc.UnknownRequest) request_).toBuilder();
}
request_ =
input.readMessage(io.axoniq.platform.grpc.UnknownRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.platform.grpc.UnknownRequest) request_);
request_ = subBuilder.buildPartial();
}
requestCase_ = 100;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.platform.grpc.PlatformApi.internal_static_io_axoniq_platform_grpc_PlatformInboundInstruction_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.platform.grpc.PlatformApi.internal_static_io_axoniq_platform_grpc_PlatformInboundInstruction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.platform.grpc.PlatformInboundInstruction.class, io.axoniq.platform.grpc.PlatformInboundInstruction.Builder.class);
}
private int requestCase_ = 0;
private java.lang.Object request_;
public enum RequestCase
implements com.google.protobuf.Internal.EnumLite {
REGISTER(1),
APPLICATION(10),
USER(11),
CONTEXT(12),
HEARTBEAT(99),
UNKNOWN_REQUEST(100),
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 REGISTER;
case 10: return APPLICATION;
case 11: return USER;
case 12: return CONTEXT;
case 99: return HEARTBEAT;
case 100: return UNKNOWN_REQUEST;
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 REGISTER_FIELD_NUMBER = 1;
/**
* optional .io.axoniq.platform.grpc.ClientIdentification register = 1;
*/
public io.axoniq.platform.grpc.ClientIdentification getRegister() {
if (requestCase_ == 1) {
return (io.axoniq.platform.grpc.ClientIdentification) request_;
}
return io.axoniq.platform.grpc.ClientIdentification.getDefaultInstance();
}
/**
* optional .io.axoniq.platform.grpc.ClientIdentification register = 1;
*/
public io.axoniq.platform.grpc.ClientIdentificationOrBuilder getRegisterOrBuilder() {
if (requestCase_ == 1) {
return (io.axoniq.platform.grpc.ClientIdentification) request_;
}
return io.axoniq.platform.grpc.ClientIdentification.getDefaultInstance();
}
public static final int APPLICATION_FIELD_NUMBER = 10;
/**
* optional .io.axoniq.platform.grpc.Application application = 10;
*/
public io.axoniq.platform.grpc.Application getApplication() {
if (requestCase_ == 10) {
return (io.axoniq.platform.grpc.Application) request_;
}
return io.axoniq.platform.grpc.Application.getDefaultInstance();
}
/**
* optional .io.axoniq.platform.grpc.Application application = 10;
*/
public io.axoniq.platform.grpc.ApplicationOrBuilder getApplicationOrBuilder() {
if (requestCase_ == 10) {
return (io.axoniq.platform.grpc.Application) request_;
}
return io.axoniq.platform.grpc.Application.getDefaultInstance();
}
public static final int USER_FIELD_NUMBER = 11;
/**
* optional .io.axoniq.platform.grpc.User user = 11;
*/
public io.axoniq.platform.grpc.User getUser() {
if (requestCase_ == 11) {
return (io.axoniq.platform.grpc.User) request_;
}
return io.axoniq.platform.grpc.User.getDefaultInstance();
}
/**
* optional .io.axoniq.platform.grpc.User user = 11;
*/
public io.axoniq.platform.grpc.UserOrBuilder getUserOrBuilder() {
if (requestCase_ == 11) {
return (io.axoniq.platform.grpc.User) request_;
}
return io.axoniq.platform.grpc.User.getDefaultInstance();
}
public static final int CONTEXT_FIELD_NUMBER = 12;
/**
* optional .io.axoniq.platform.grpc.ContextUpdate context = 12;
*/
public io.axoniq.platform.grpc.ContextUpdate getContext() {
if (requestCase_ == 12) {
return (io.axoniq.platform.grpc.ContextUpdate) request_;
}
return io.axoniq.platform.grpc.ContextUpdate.getDefaultInstance();
}
/**
* optional .io.axoniq.platform.grpc.ContextUpdate context = 12;
*/
public io.axoniq.platform.grpc.ContextUpdateOrBuilder getContextOrBuilder() {
if (requestCase_ == 12) {
return (io.axoniq.platform.grpc.ContextUpdate) request_;
}
return io.axoniq.platform.grpc.ContextUpdate.getDefaultInstance();
}
public static final int HEARTBEAT_FIELD_NUMBER = 99;
/**
* optional .io.axoniq.platform.grpc.HeartbeatResponse heartbeat = 99;
*/
public io.axoniq.platform.grpc.HeartbeatResponse getHeartbeat() {
if (requestCase_ == 99) {
return (io.axoniq.platform.grpc.HeartbeatResponse) request_;
}
return io.axoniq.platform.grpc.HeartbeatResponse.getDefaultInstance();
}
/**
* optional .io.axoniq.platform.grpc.HeartbeatResponse heartbeat = 99;
*/
public io.axoniq.platform.grpc.HeartbeatResponseOrBuilder getHeartbeatOrBuilder() {
if (requestCase_ == 99) {
return (io.axoniq.platform.grpc.HeartbeatResponse) request_;
}
return io.axoniq.platform.grpc.HeartbeatResponse.getDefaultInstance();
}
public static final int UNKNOWN_REQUEST_FIELD_NUMBER = 100;
/**
* optional .io.axoniq.platform.grpc.UnknownRequest unknown_request = 100;
*/
public io.axoniq.platform.grpc.UnknownRequest getUnknownRequest() {
if (requestCase_ == 100) {
return (io.axoniq.platform.grpc.UnknownRequest) request_;
}
return io.axoniq.platform.grpc.UnknownRequest.getDefaultInstance();
}
/**
* optional .io.axoniq.platform.grpc.UnknownRequest unknown_request = 100;
*/
public io.axoniq.platform.grpc.UnknownRequestOrBuilder getUnknownRequestOrBuilder() {
if (requestCase_ == 100) {
return (io.axoniq.platform.grpc.UnknownRequest) request_;
}
return io.axoniq.platform.grpc.UnknownRequest.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (requestCase_ == 1) {
output.writeMessage(1, (io.axoniq.platform.grpc.ClientIdentification) request_);
}
if (requestCase_ == 10) {
output.writeMessage(10, (io.axoniq.platform.grpc.Application) request_);
}
if (requestCase_ == 11) {
output.writeMessage(11, (io.axoniq.platform.grpc.User) request_);
}
if (requestCase_ == 12) {
output.writeMessage(12, (io.axoniq.platform.grpc.ContextUpdate) request_);
}
if (requestCase_ == 99) {
output.writeMessage(99, (io.axoniq.platform.grpc.HeartbeatResponse) request_);
}
if (requestCase_ == 100) {
output.writeMessage(100, (io.axoniq.platform.grpc.UnknownRequest) request_);
}
}
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.platform.grpc.ClientIdentification) request_);
}
if (requestCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (io.axoniq.platform.grpc.Application) request_);
}
if (requestCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (io.axoniq.platform.grpc.User) request_);
}
if (requestCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (io.axoniq.platform.grpc.ContextUpdate) request_);
}
if (requestCase_ == 99) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(99, (io.axoniq.platform.grpc.HeartbeatResponse) request_);
}
if (requestCase_ == 100) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(100, (io.axoniq.platform.grpc.UnknownRequest) request_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.axoniq.platform.grpc.PlatformInboundInstruction)) {
return super.equals(obj);
}
io.axoniq.platform.grpc.PlatformInboundInstruction other = (io.axoniq.platform.grpc.PlatformInboundInstruction) obj;
boolean result = true;
result = result && getRequestCase().equals(
other.getRequestCase());
if (!result) return false;
switch (requestCase_) {
case 1:
result = result && getRegister()
.equals(other.getRegister());
break;
case 10:
result = result && getApplication()
.equals(other.getApplication());
break;
case 11:
result = result && getUser()
.equals(other.getUser());
break;
case 12:
result = result && getContext()
.equals(other.getContext());
break;
case 99:
result = result && getHeartbeat()
.equals(other.getHeartbeat());
break;
case 100:
result = result && getUnknownRequest()
.equals(other.getUnknownRequest());
break;
case 0:
default:
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
switch (requestCase_) {
case 1:
hash = (37 * hash) + REGISTER_FIELD_NUMBER;
hash = (53 * hash) + getRegister().hashCode();
break;
case 10:
hash = (37 * hash) + APPLICATION_FIELD_NUMBER;
hash = (53 * hash) + getApplication().hashCode();
break;
case 11:
hash = (37 * hash) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
break;
case 12:
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
break;
case 99:
hash = (37 * hash) + HEARTBEAT_FIELD_NUMBER;
hash = (53 * hash) + getHeartbeat().hashCode();
break;
case 100:
hash = (37 * hash) + UNKNOWN_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getUnknownRequest().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.axoniq.platform.grpc.PlatformInboundInstruction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.platform.grpc.PlatformInboundInstruction 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.platform.grpc.PlatformInboundInstruction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.platform.grpc.PlatformInboundInstruction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.platform.grpc.PlatformInboundInstruction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.platform.grpc.PlatformInboundInstruction 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.platform.grpc.PlatformInboundInstruction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.axoniq.platform.grpc.PlatformInboundInstruction 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.platform.grpc.PlatformInboundInstruction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.platform.grpc.PlatformInboundInstruction parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.axoniq.platform.grpc.PlatformInboundInstruction prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
* Protobuf type {@code io.axoniq.platform.grpc.PlatformInboundInstruction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.axoniq.platform.grpc.PlatformInboundInstruction)
io.axoniq.platform.grpc.PlatformInboundInstructionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.platform.grpc.PlatformApi.internal_static_io_axoniq_platform_grpc_PlatformInboundInstruction_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.platform.grpc.PlatformApi.internal_static_io_axoniq_platform_grpc_PlatformInboundInstruction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.platform.grpc.PlatformInboundInstruction.class, io.axoniq.platform.grpc.PlatformInboundInstruction.Builder.class);
}
// Construct using io.axoniq.platform.grpc.PlatformInboundInstruction.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
requestCase_ = 0;
request_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.axoniq.platform.grpc.PlatformApi.internal_static_io_axoniq_platform_grpc_PlatformInboundInstruction_descriptor;
}
public io.axoniq.platform.grpc.PlatformInboundInstruction getDefaultInstanceForType() {
return io.axoniq.platform.grpc.PlatformInboundInstruction.getDefaultInstance();
}
public io.axoniq.platform.grpc.PlatformInboundInstruction build() {
io.axoniq.platform.grpc.PlatformInboundInstruction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.axoniq.platform.grpc.PlatformInboundInstruction buildPartial() {
io.axoniq.platform.grpc.PlatformInboundInstruction result = new io.axoniq.platform.grpc.PlatformInboundInstruction(this);
if (requestCase_ == 1) {
if (registerBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = registerBuilder_.build();
}
}
if (requestCase_ == 10) {
if (applicationBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = applicationBuilder_.build();
}
}
if (requestCase_ == 11) {
if (userBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = userBuilder_.build();
}
}
if (requestCase_ == 12) {
if (contextBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = contextBuilder_.build();
}
}
if (requestCase_ == 99) {
if (heartbeatBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = heartbeatBuilder_.build();
}
}
if (requestCase_ == 100) {
if (unknownRequestBuilder_ == null) {
result.request_ = request_;
} else {
result.request_ = unknownRequestBuilder_.build();
}
}
result.requestCase_ = requestCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.axoniq.platform.grpc.PlatformInboundInstruction) {
return mergeFrom((io.axoniq.platform.grpc.PlatformInboundInstruction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.axoniq.platform.grpc.PlatformInboundInstruction other) {
if (other == io.axoniq.platform.grpc.PlatformInboundInstruction.getDefaultInstance()) return this;
switch (other.getRequestCase()) {
case REGISTER: {
mergeRegister(other.getRegister());
break;
}
case APPLICATION: {
mergeApplication(other.getApplication());
break;
}
case USER: {
mergeUser(other.getUser());
break;
}
case CONTEXT: {
mergeContext(other.getContext());
break;
}
case HEARTBEAT: {
mergeHeartbeat(other.getHeartbeat());
break;
}
case UNKNOWN_REQUEST: {
mergeUnknownRequest(other.getUnknownRequest());
break;
}
case REQUEST_NOT_SET: {
break;
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.axoniq.platform.grpc.PlatformInboundInstruction parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.axoniq.platform.grpc.PlatformInboundInstruction) 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.platform.grpc.ClientIdentification, io.axoniq.platform.grpc.ClientIdentification.Builder, io.axoniq.platform.grpc.ClientIdentificationOrBuilder> registerBuilder_;
/**
* optional .io.axoniq.platform.grpc.ClientIdentification register = 1;
*/
public io.axoniq.platform.grpc.ClientIdentification getRegister() {
if (registerBuilder_ == null) {
if (requestCase_ == 1) {
return (io.axoniq.platform.grpc.ClientIdentification) request_;
}
return io.axoniq.platform.grpc.ClientIdentification.getDefaultInstance();
} else {
if (requestCase_ == 1) {
return registerBuilder_.getMessage();
}
return io.axoniq.platform.grpc.ClientIdentification.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.ClientIdentification register = 1;
*/
public Builder setRegister(io.axoniq.platform.grpc.ClientIdentification value) {
if (registerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
registerBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
* optional .io.axoniq.platform.grpc.ClientIdentification register = 1;
*/
public Builder setRegister(
io.axoniq.platform.grpc.ClientIdentification.Builder builderForValue) {
if (registerBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
registerBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 1;
return this;
}
/**
* optional .io.axoniq.platform.grpc.ClientIdentification register = 1;
*/
public Builder mergeRegister(io.axoniq.platform.grpc.ClientIdentification value) {
if (registerBuilder_ == null) {
if (requestCase_ == 1 &&
request_ != io.axoniq.platform.grpc.ClientIdentification.getDefaultInstance()) {
request_ = io.axoniq.platform.grpc.ClientIdentification.newBuilder((io.axoniq.platform.grpc.ClientIdentification) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 1) {
registerBuilder_.mergeFrom(value);
}
registerBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
* optional .io.axoniq.platform.grpc.ClientIdentification register = 1;
*/
public Builder clearRegister() {
if (registerBuilder_ == null) {
if (requestCase_ == 1) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 1) {
requestCase_ = 0;
request_ = null;
}
registerBuilder_.clear();
}
return this;
}
/**
* optional .io.axoniq.platform.grpc.ClientIdentification register = 1;
*/
public io.axoniq.platform.grpc.ClientIdentification.Builder getRegisterBuilder() {
return getRegisterFieldBuilder().getBuilder();
}
/**
* optional .io.axoniq.platform.grpc.ClientIdentification register = 1;
*/
public io.axoniq.platform.grpc.ClientIdentificationOrBuilder getRegisterOrBuilder() {
if ((requestCase_ == 1) && (registerBuilder_ != null)) {
return registerBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 1) {
return (io.axoniq.platform.grpc.ClientIdentification) request_;
}
return io.axoniq.platform.grpc.ClientIdentification.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.ClientIdentification register = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.ClientIdentification, io.axoniq.platform.grpc.ClientIdentification.Builder, io.axoniq.platform.grpc.ClientIdentificationOrBuilder>
getRegisterFieldBuilder() {
if (registerBuilder_ == null) {
if (!(requestCase_ == 1)) {
request_ = io.axoniq.platform.grpc.ClientIdentification.getDefaultInstance();
}
registerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.ClientIdentification, io.axoniq.platform.grpc.ClientIdentification.Builder, io.axoniq.platform.grpc.ClientIdentificationOrBuilder>(
(io.axoniq.platform.grpc.ClientIdentification) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 1;
onChanged();;
return registerBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.Application, io.axoniq.platform.grpc.Application.Builder, io.axoniq.platform.grpc.ApplicationOrBuilder> applicationBuilder_;
/**
* optional .io.axoniq.platform.grpc.Application application = 10;
*/
public io.axoniq.platform.grpc.Application getApplication() {
if (applicationBuilder_ == null) {
if (requestCase_ == 10) {
return (io.axoniq.platform.grpc.Application) request_;
}
return io.axoniq.platform.grpc.Application.getDefaultInstance();
} else {
if (requestCase_ == 10) {
return applicationBuilder_.getMessage();
}
return io.axoniq.platform.grpc.Application.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.Application application = 10;
*/
public Builder setApplication(io.axoniq.platform.grpc.Application value) {
if (applicationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
applicationBuilder_.setMessage(value);
}
requestCase_ = 10;
return this;
}
/**
* optional .io.axoniq.platform.grpc.Application application = 10;
*/
public Builder setApplication(
io.axoniq.platform.grpc.Application.Builder builderForValue) {
if (applicationBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
applicationBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 10;
return this;
}
/**
* optional .io.axoniq.platform.grpc.Application application = 10;
*/
public Builder mergeApplication(io.axoniq.platform.grpc.Application value) {
if (applicationBuilder_ == null) {
if (requestCase_ == 10 &&
request_ != io.axoniq.platform.grpc.Application.getDefaultInstance()) {
request_ = io.axoniq.platform.grpc.Application.newBuilder((io.axoniq.platform.grpc.Application) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 10) {
applicationBuilder_.mergeFrom(value);
}
applicationBuilder_.setMessage(value);
}
requestCase_ = 10;
return this;
}
/**
* optional .io.axoniq.platform.grpc.Application application = 10;
*/
public Builder clearApplication() {
if (applicationBuilder_ == null) {
if (requestCase_ == 10) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 10) {
requestCase_ = 0;
request_ = null;
}
applicationBuilder_.clear();
}
return this;
}
/**
* optional .io.axoniq.platform.grpc.Application application = 10;
*/
public io.axoniq.platform.grpc.Application.Builder getApplicationBuilder() {
return getApplicationFieldBuilder().getBuilder();
}
/**
* optional .io.axoniq.platform.grpc.Application application = 10;
*/
public io.axoniq.platform.grpc.ApplicationOrBuilder getApplicationOrBuilder() {
if ((requestCase_ == 10) && (applicationBuilder_ != null)) {
return applicationBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 10) {
return (io.axoniq.platform.grpc.Application) request_;
}
return io.axoniq.platform.grpc.Application.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.Application application = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.Application, io.axoniq.platform.grpc.Application.Builder, io.axoniq.platform.grpc.ApplicationOrBuilder>
getApplicationFieldBuilder() {
if (applicationBuilder_ == null) {
if (!(requestCase_ == 10)) {
request_ = io.axoniq.platform.grpc.Application.getDefaultInstance();
}
applicationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.Application, io.axoniq.platform.grpc.Application.Builder, io.axoniq.platform.grpc.ApplicationOrBuilder>(
(io.axoniq.platform.grpc.Application) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 10;
onChanged();;
return applicationBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.User, io.axoniq.platform.grpc.User.Builder, io.axoniq.platform.grpc.UserOrBuilder> userBuilder_;
/**
* optional .io.axoniq.platform.grpc.User user = 11;
*/
public io.axoniq.platform.grpc.User getUser() {
if (userBuilder_ == null) {
if (requestCase_ == 11) {
return (io.axoniq.platform.grpc.User) request_;
}
return io.axoniq.platform.grpc.User.getDefaultInstance();
} else {
if (requestCase_ == 11) {
return userBuilder_.getMessage();
}
return io.axoniq.platform.grpc.User.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.User user = 11;
*/
public Builder setUser(io.axoniq.platform.grpc.User value) {
if (userBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
userBuilder_.setMessage(value);
}
requestCase_ = 11;
return this;
}
/**
* optional .io.axoniq.platform.grpc.User user = 11;
*/
public Builder setUser(
io.axoniq.platform.grpc.User.Builder builderForValue) {
if (userBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
userBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 11;
return this;
}
/**
* optional .io.axoniq.platform.grpc.User user = 11;
*/
public Builder mergeUser(io.axoniq.platform.grpc.User value) {
if (userBuilder_ == null) {
if (requestCase_ == 11 &&
request_ != io.axoniq.platform.grpc.User.getDefaultInstance()) {
request_ = io.axoniq.platform.grpc.User.newBuilder((io.axoniq.platform.grpc.User) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 11) {
userBuilder_.mergeFrom(value);
}
userBuilder_.setMessage(value);
}
requestCase_ = 11;
return this;
}
/**
* optional .io.axoniq.platform.grpc.User user = 11;
*/
public Builder clearUser() {
if (userBuilder_ == null) {
if (requestCase_ == 11) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 11) {
requestCase_ = 0;
request_ = null;
}
userBuilder_.clear();
}
return this;
}
/**
* optional .io.axoniq.platform.grpc.User user = 11;
*/
public io.axoniq.platform.grpc.User.Builder getUserBuilder() {
return getUserFieldBuilder().getBuilder();
}
/**
* optional .io.axoniq.platform.grpc.User user = 11;
*/
public io.axoniq.platform.grpc.UserOrBuilder getUserOrBuilder() {
if ((requestCase_ == 11) && (userBuilder_ != null)) {
return userBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 11) {
return (io.axoniq.platform.grpc.User) request_;
}
return io.axoniq.platform.grpc.User.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.User user = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.User, io.axoniq.platform.grpc.User.Builder, io.axoniq.platform.grpc.UserOrBuilder>
getUserFieldBuilder() {
if (userBuilder_ == null) {
if (!(requestCase_ == 11)) {
request_ = io.axoniq.platform.grpc.User.getDefaultInstance();
}
userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.User, io.axoniq.platform.grpc.User.Builder, io.axoniq.platform.grpc.UserOrBuilder>(
(io.axoniq.platform.grpc.User) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 11;
onChanged();;
return userBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.ContextUpdate, io.axoniq.platform.grpc.ContextUpdate.Builder, io.axoniq.platform.grpc.ContextUpdateOrBuilder> contextBuilder_;
/**
* optional .io.axoniq.platform.grpc.ContextUpdate context = 12;
*/
public io.axoniq.platform.grpc.ContextUpdate getContext() {
if (contextBuilder_ == null) {
if (requestCase_ == 12) {
return (io.axoniq.platform.grpc.ContextUpdate) request_;
}
return io.axoniq.platform.grpc.ContextUpdate.getDefaultInstance();
} else {
if (requestCase_ == 12) {
return contextBuilder_.getMessage();
}
return io.axoniq.platform.grpc.ContextUpdate.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.ContextUpdate context = 12;
*/
public Builder setContext(io.axoniq.platform.grpc.ContextUpdate value) {
if (contextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
contextBuilder_.setMessage(value);
}
requestCase_ = 12;
return this;
}
/**
* optional .io.axoniq.platform.grpc.ContextUpdate context = 12;
*/
public Builder setContext(
io.axoniq.platform.grpc.ContextUpdate.Builder builderForValue) {
if (contextBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
contextBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 12;
return this;
}
/**
* optional .io.axoniq.platform.grpc.ContextUpdate context = 12;
*/
public Builder mergeContext(io.axoniq.platform.grpc.ContextUpdate value) {
if (contextBuilder_ == null) {
if (requestCase_ == 12 &&
request_ != io.axoniq.platform.grpc.ContextUpdate.getDefaultInstance()) {
request_ = io.axoniq.platform.grpc.ContextUpdate.newBuilder((io.axoniq.platform.grpc.ContextUpdate) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 12) {
contextBuilder_.mergeFrom(value);
}
contextBuilder_.setMessage(value);
}
requestCase_ = 12;
return this;
}
/**
* optional .io.axoniq.platform.grpc.ContextUpdate context = 12;
*/
public Builder clearContext() {
if (contextBuilder_ == null) {
if (requestCase_ == 12) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 12) {
requestCase_ = 0;
request_ = null;
}
contextBuilder_.clear();
}
return this;
}
/**
* optional .io.axoniq.platform.grpc.ContextUpdate context = 12;
*/
public io.axoniq.platform.grpc.ContextUpdate.Builder getContextBuilder() {
return getContextFieldBuilder().getBuilder();
}
/**
* optional .io.axoniq.platform.grpc.ContextUpdate context = 12;
*/
public io.axoniq.platform.grpc.ContextUpdateOrBuilder getContextOrBuilder() {
if ((requestCase_ == 12) && (contextBuilder_ != null)) {
return contextBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 12) {
return (io.axoniq.platform.grpc.ContextUpdate) request_;
}
return io.axoniq.platform.grpc.ContextUpdate.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.ContextUpdate context = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.ContextUpdate, io.axoniq.platform.grpc.ContextUpdate.Builder, io.axoniq.platform.grpc.ContextUpdateOrBuilder>
getContextFieldBuilder() {
if (contextBuilder_ == null) {
if (!(requestCase_ == 12)) {
request_ = io.axoniq.platform.grpc.ContextUpdate.getDefaultInstance();
}
contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.ContextUpdate, io.axoniq.platform.grpc.ContextUpdate.Builder, io.axoniq.platform.grpc.ContextUpdateOrBuilder>(
(io.axoniq.platform.grpc.ContextUpdate) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 12;
onChanged();;
return contextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.HeartbeatResponse, io.axoniq.platform.grpc.HeartbeatResponse.Builder, io.axoniq.platform.grpc.HeartbeatResponseOrBuilder> heartbeatBuilder_;
/**
* optional .io.axoniq.platform.grpc.HeartbeatResponse heartbeat = 99;
*/
public io.axoniq.platform.grpc.HeartbeatResponse getHeartbeat() {
if (heartbeatBuilder_ == null) {
if (requestCase_ == 99) {
return (io.axoniq.platform.grpc.HeartbeatResponse) request_;
}
return io.axoniq.platform.grpc.HeartbeatResponse.getDefaultInstance();
} else {
if (requestCase_ == 99) {
return heartbeatBuilder_.getMessage();
}
return io.axoniq.platform.grpc.HeartbeatResponse.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.HeartbeatResponse heartbeat = 99;
*/
public Builder setHeartbeat(io.axoniq.platform.grpc.HeartbeatResponse value) {
if (heartbeatBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
heartbeatBuilder_.setMessage(value);
}
requestCase_ = 99;
return this;
}
/**
* optional .io.axoniq.platform.grpc.HeartbeatResponse heartbeat = 99;
*/
public Builder setHeartbeat(
io.axoniq.platform.grpc.HeartbeatResponse.Builder builderForValue) {
if (heartbeatBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
heartbeatBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 99;
return this;
}
/**
* optional .io.axoniq.platform.grpc.HeartbeatResponse heartbeat = 99;
*/
public Builder mergeHeartbeat(io.axoniq.platform.grpc.HeartbeatResponse value) {
if (heartbeatBuilder_ == null) {
if (requestCase_ == 99 &&
request_ != io.axoniq.platform.grpc.HeartbeatResponse.getDefaultInstance()) {
request_ = io.axoniq.platform.grpc.HeartbeatResponse.newBuilder((io.axoniq.platform.grpc.HeartbeatResponse) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 99) {
heartbeatBuilder_.mergeFrom(value);
}
heartbeatBuilder_.setMessage(value);
}
requestCase_ = 99;
return this;
}
/**
* optional .io.axoniq.platform.grpc.HeartbeatResponse heartbeat = 99;
*/
public Builder clearHeartbeat() {
if (heartbeatBuilder_ == null) {
if (requestCase_ == 99) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 99) {
requestCase_ = 0;
request_ = null;
}
heartbeatBuilder_.clear();
}
return this;
}
/**
* optional .io.axoniq.platform.grpc.HeartbeatResponse heartbeat = 99;
*/
public io.axoniq.platform.grpc.HeartbeatResponse.Builder getHeartbeatBuilder() {
return getHeartbeatFieldBuilder().getBuilder();
}
/**
* optional .io.axoniq.platform.grpc.HeartbeatResponse heartbeat = 99;
*/
public io.axoniq.platform.grpc.HeartbeatResponseOrBuilder getHeartbeatOrBuilder() {
if ((requestCase_ == 99) && (heartbeatBuilder_ != null)) {
return heartbeatBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 99) {
return (io.axoniq.platform.grpc.HeartbeatResponse) request_;
}
return io.axoniq.platform.grpc.HeartbeatResponse.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.HeartbeatResponse heartbeat = 99;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.HeartbeatResponse, io.axoniq.platform.grpc.HeartbeatResponse.Builder, io.axoniq.platform.grpc.HeartbeatResponseOrBuilder>
getHeartbeatFieldBuilder() {
if (heartbeatBuilder_ == null) {
if (!(requestCase_ == 99)) {
request_ = io.axoniq.platform.grpc.HeartbeatResponse.getDefaultInstance();
}
heartbeatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.HeartbeatResponse, io.axoniq.platform.grpc.HeartbeatResponse.Builder, io.axoniq.platform.grpc.HeartbeatResponseOrBuilder>(
(io.axoniq.platform.grpc.HeartbeatResponse) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 99;
onChanged();;
return heartbeatBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.UnknownRequest, io.axoniq.platform.grpc.UnknownRequest.Builder, io.axoniq.platform.grpc.UnknownRequestOrBuilder> unknownRequestBuilder_;
/**
* optional .io.axoniq.platform.grpc.UnknownRequest unknown_request = 100;
*/
public io.axoniq.platform.grpc.UnknownRequest getUnknownRequest() {
if (unknownRequestBuilder_ == null) {
if (requestCase_ == 100) {
return (io.axoniq.platform.grpc.UnknownRequest) request_;
}
return io.axoniq.platform.grpc.UnknownRequest.getDefaultInstance();
} else {
if (requestCase_ == 100) {
return unknownRequestBuilder_.getMessage();
}
return io.axoniq.platform.grpc.UnknownRequest.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.UnknownRequest unknown_request = 100;
*/
public Builder setUnknownRequest(io.axoniq.platform.grpc.UnknownRequest value) {
if (unknownRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
unknownRequestBuilder_.setMessage(value);
}
requestCase_ = 100;
return this;
}
/**
* optional .io.axoniq.platform.grpc.UnknownRequest unknown_request = 100;
*/
public Builder setUnknownRequest(
io.axoniq.platform.grpc.UnknownRequest.Builder builderForValue) {
if (unknownRequestBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
unknownRequestBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 100;
return this;
}
/**
* optional .io.axoniq.platform.grpc.UnknownRequest unknown_request = 100;
*/
public Builder mergeUnknownRequest(io.axoniq.platform.grpc.UnknownRequest value) {
if (unknownRequestBuilder_ == null) {
if (requestCase_ == 100 &&
request_ != io.axoniq.platform.grpc.UnknownRequest.getDefaultInstance()) {
request_ = io.axoniq.platform.grpc.UnknownRequest.newBuilder((io.axoniq.platform.grpc.UnknownRequest) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 100) {
unknownRequestBuilder_.mergeFrom(value);
}
unknownRequestBuilder_.setMessage(value);
}
requestCase_ = 100;
return this;
}
/**
* optional .io.axoniq.platform.grpc.UnknownRequest unknown_request = 100;
*/
public Builder clearUnknownRequest() {
if (unknownRequestBuilder_ == null) {
if (requestCase_ == 100) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 100) {
requestCase_ = 0;
request_ = null;
}
unknownRequestBuilder_.clear();
}
return this;
}
/**
* optional .io.axoniq.platform.grpc.UnknownRequest unknown_request = 100;
*/
public io.axoniq.platform.grpc.UnknownRequest.Builder getUnknownRequestBuilder() {
return getUnknownRequestFieldBuilder().getBuilder();
}
/**
* optional .io.axoniq.platform.grpc.UnknownRequest unknown_request = 100;
*/
public io.axoniq.platform.grpc.UnknownRequestOrBuilder getUnknownRequestOrBuilder() {
if ((requestCase_ == 100) && (unknownRequestBuilder_ != null)) {
return unknownRequestBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 100) {
return (io.axoniq.platform.grpc.UnknownRequest) request_;
}
return io.axoniq.platform.grpc.UnknownRequest.getDefaultInstance();
}
}
/**
* optional .io.axoniq.platform.grpc.UnknownRequest unknown_request = 100;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.UnknownRequest, io.axoniq.platform.grpc.UnknownRequest.Builder, io.axoniq.platform.grpc.UnknownRequestOrBuilder>
getUnknownRequestFieldBuilder() {
if (unknownRequestBuilder_ == null) {
if (!(requestCase_ == 100)) {
request_ = io.axoniq.platform.grpc.UnknownRequest.getDefaultInstance();
}
unknownRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.platform.grpc.UnknownRequest, io.axoniq.platform.grpc.UnknownRequest.Builder, io.axoniq.platform.grpc.UnknownRequestOrBuilder>(
(io.axoniq.platform.grpc.UnknownRequest) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 100;
onChanged();;
return unknownRequestBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:io.axoniq.platform.grpc.PlatformInboundInstruction)
}
// @@protoc_insertion_point(class_scope:io.axoniq.platform.grpc.PlatformInboundInstruction)
private static final io.axoniq.platform.grpc.PlatformInboundInstruction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.axoniq.platform.grpc.PlatformInboundInstruction();
}
public static io.axoniq.platform.grpc.PlatformInboundInstruction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PlatformInboundInstruction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PlatformInboundInstruction(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.axoniq.platform.grpc.PlatformInboundInstruction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}