io.axoniq.axonserver.grpc.event.QueryEventsResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: event.proto
package io.axoniq.axonserver.grpc.event;
/**
*
* A message describing a response to a Query request
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.event.QueryEventsResponse}
*/
public final class QueryEventsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.axoniq.axonserver.grpc.event.QueryEventsResponse)
QueryEventsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryEventsResponse.newBuilder() to construct.
private QueryEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryEventsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryEventsResponse(
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.event.ColumnsResponse.Builder subBuilder = null;
if (dataCase_ == 1) {
subBuilder = ((io.axoniq.axonserver.grpc.event.ColumnsResponse) data_).toBuilder();
}
data_ =
input.readMessage(io.axoniq.axonserver.grpc.event.ColumnsResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.event.ColumnsResponse) data_);
data_ = subBuilder.buildPartial();
}
dataCase_ = 1;
break;
}
case 18: {
io.axoniq.axonserver.grpc.event.RowResponse.Builder subBuilder = null;
if (dataCase_ == 2) {
subBuilder = ((io.axoniq.axonserver.grpc.event.RowResponse) data_).toBuilder();
}
data_ =
input.readMessage(io.axoniq.axonserver.grpc.event.RowResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.event.RowResponse) data_);
data_ = subBuilder.buildPartial();
}
dataCase_ = 2;
break;
}
case 26: {
io.axoniq.axonserver.grpc.event.Confirmation.Builder subBuilder = null;
if (dataCase_ == 3) {
subBuilder = ((io.axoniq.axonserver.grpc.event.Confirmation) data_).toBuilder();
}
data_ =
input.readMessage(io.axoniq.axonserver.grpc.event.Confirmation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.event.Confirmation) data_);
data_ = subBuilder.buildPartial();
}
dataCase_ = 3;
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.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_QueryEventsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.axonserver.grpc.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_QueryEventsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.event.QueryEventsResponse.class, io.axoniq.axonserver.grpc.event.QueryEventsResponse.Builder.class);
}
private int dataCase_ = 0;
private java.lang.Object data_;
public enum DataCase
implements com.google.protobuf.Internal.EnumLite {
COLUMNS(1),
ROW(2),
FILES_COMPLETED(3),
DATA_NOT_SET(0);
private final int value;
private DataCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataCase valueOf(int value) {
return forNumber(value);
}
public static DataCase forNumber(int value) {
switch (value) {
case 1: return COLUMNS;
case 2: return ROW;
case 3: return FILES_COMPLETED;
case 0: return DATA_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DataCase
getDataCase() {
return DataCase.forNumber(
dataCase_);
}
public static final int COLUMNS_FIELD_NUMBER = 1;
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public boolean hasColumns() {
return dataCase_ == 1;
}
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public io.axoniq.axonserver.grpc.event.ColumnsResponse getColumns() {
if (dataCase_ == 1) {
return (io.axoniq.axonserver.grpc.event.ColumnsResponse) data_;
}
return io.axoniq.axonserver.grpc.event.ColumnsResponse.getDefaultInstance();
}
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public io.axoniq.axonserver.grpc.event.ColumnsResponseOrBuilder getColumnsOrBuilder() {
if (dataCase_ == 1) {
return (io.axoniq.axonserver.grpc.event.ColumnsResponse) data_;
}
return io.axoniq.axonserver.grpc.event.ColumnsResponse.getDefaultInstance();
}
public static final int ROW_FIELD_NUMBER = 2;
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public boolean hasRow() {
return dataCase_ == 2;
}
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public io.axoniq.axonserver.grpc.event.RowResponse getRow() {
if (dataCase_ == 2) {
return (io.axoniq.axonserver.grpc.event.RowResponse) data_;
}
return io.axoniq.axonserver.grpc.event.RowResponse.getDefaultInstance();
}
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public io.axoniq.axonserver.grpc.event.RowResponseOrBuilder getRowOrBuilder() {
if (dataCase_ == 2) {
return (io.axoniq.axonserver.grpc.event.RowResponse) data_;
}
return io.axoniq.axonserver.grpc.event.RowResponse.getDefaultInstance();
}
public static final int FILES_COMPLETED_FIELD_NUMBER = 3;
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public boolean hasFilesCompleted() {
return dataCase_ == 3;
}
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public io.axoniq.axonserver.grpc.event.Confirmation getFilesCompleted() {
if (dataCase_ == 3) {
return (io.axoniq.axonserver.grpc.event.Confirmation) data_;
}
return io.axoniq.axonserver.grpc.event.Confirmation.getDefaultInstance();
}
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public io.axoniq.axonserver.grpc.event.ConfirmationOrBuilder getFilesCompletedOrBuilder() {
if (dataCase_ == 3) {
return (io.axoniq.axonserver.grpc.event.Confirmation) data_;
}
return io.axoniq.axonserver.grpc.event.Confirmation.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (dataCase_ == 1) {
output.writeMessage(1, (io.axoniq.axonserver.grpc.event.ColumnsResponse) data_);
}
if (dataCase_ == 2) {
output.writeMessage(2, (io.axoniq.axonserver.grpc.event.RowResponse) data_);
}
if (dataCase_ == 3) {
output.writeMessage(3, (io.axoniq.axonserver.grpc.event.Confirmation) data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dataCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.axoniq.axonserver.grpc.event.ColumnsResponse) data_);
}
if (dataCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.axoniq.axonserver.grpc.event.RowResponse) data_);
}
if (dataCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.axoniq.axonserver.grpc.event.Confirmation) data_);
}
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.event.QueryEventsResponse)) {
return super.equals(obj);
}
io.axoniq.axonserver.grpc.event.QueryEventsResponse other = (io.axoniq.axonserver.grpc.event.QueryEventsResponse) obj;
boolean result = true;
result = result && getDataCase().equals(
other.getDataCase());
if (!result) return false;
switch (dataCase_) {
case 1:
result = result && getColumns()
.equals(other.getColumns());
break;
case 2:
result = result && getRow()
.equals(other.getRow());
break;
case 3:
result = result && getFilesCompleted()
.equals(other.getFilesCompleted());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (dataCase_) {
case 1:
hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getColumns().hashCode();
break;
case 2:
hash = (37 * hash) + ROW_FIELD_NUMBER;
hash = (53 * hash) + getRow().hashCode();
break;
case 3:
hash = (37 * hash) + FILES_COMPLETED_FIELD_NUMBER;
hash = (53 * hash) + getFilesCompleted().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.axoniq.axonserver.grpc.event.QueryEventsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.event.QueryEventsResponse 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.event.QueryEventsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.event.QueryEventsResponse 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.event.QueryEventsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.event.QueryEventsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.event.QueryEventsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.event.QueryEventsResponse 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.event.QueryEventsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.event.QueryEventsResponse 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.event.QueryEventsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.event.QueryEventsResponse 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.event.QueryEventsResponse 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;
}
/**
*
* A message describing a response to a Query request
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.event.QueryEventsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.axoniq.axonserver.grpc.event.QueryEventsResponse)
io.axoniq.axonserver.grpc.event.QueryEventsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.axonserver.grpc.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_QueryEventsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.axonserver.grpc.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_QueryEventsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.event.QueryEventsResponse.class, io.axoniq.axonserver.grpc.event.QueryEventsResponse.Builder.class);
}
// Construct using io.axoniq.axonserver.grpc.event.QueryEventsResponse.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();
dataCase_ = 0;
data_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.axoniq.axonserver.grpc.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_QueryEventsResponse_descriptor;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.event.QueryEventsResponse getDefaultInstanceForType() {
return io.axoniq.axonserver.grpc.event.QueryEventsResponse.getDefaultInstance();
}
@java.lang.Override
public io.axoniq.axonserver.grpc.event.QueryEventsResponse build() {
io.axoniq.axonserver.grpc.event.QueryEventsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.event.QueryEventsResponse buildPartial() {
io.axoniq.axonserver.grpc.event.QueryEventsResponse result = new io.axoniq.axonserver.grpc.event.QueryEventsResponse(this);
if (dataCase_ == 1) {
if (columnsBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = columnsBuilder_.build();
}
}
if (dataCase_ == 2) {
if (rowBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = rowBuilder_.build();
}
}
if (dataCase_ == 3) {
if (filesCompletedBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = filesCompletedBuilder_.build();
}
}
result.dataCase_ = dataCase_;
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.event.QueryEventsResponse) {
return mergeFrom((io.axoniq.axonserver.grpc.event.QueryEventsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.axoniq.axonserver.grpc.event.QueryEventsResponse other) {
if (other == io.axoniq.axonserver.grpc.event.QueryEventsResponse.getDefaultInstance()) return this;
switch (other.getDataCase()) {
case COLUMNS: {
mergeColumns(other.getColumns());
break;
}
case ROW: {
mergeRow(other.getRow());
break;
}
case FILES_COMPLETED: {
mergeFilesCompleted(other.getFilesCompleted());
break;
}
case DATA_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.event.QueryEventsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.axoniq.axonserver.grpc.event.QueryEventsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int dataCase_ = 0;
private java.lang.Object data_;
public DataCase
getDataCase() {
return DataCase.forNumber(
dataCase_);
}
public Builder clearData() {
dataCase_ = 0;
data_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.event.ColumnsResponse, io.axoniq.axonserver.grpc.event.ColumnsResponse.Builder, io.axoniq.axonserver.grpc.event.ColumnsResponseOrBuilder> columnsBuilder_;
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public boolean hasColumns() {
return dataCase_ == 1;
}
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public io.axoniq.axonserver.grpc.event.ColumnsResponse getColumns() {
if (columnsBuilder_ == null) {
if (dataCase_ == 1) {
return (io.axoniq.axonserver.grpc.event.ColumnsResponse) data_;
}
return io.axoniq.axonserver.grpc.event.ColumnsResponse.getDefaultInstance();
} else {
if (dataCase_ == 1) {
return columnsBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.event.ColumnsResponse.getDefaultInstance();
}
}
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public Builder setColumns(io.axoniq.axonserver.grpc.event.ColumnsResponse value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
columnsBuilder_.setMessage(value);
}
dataCase_ = 1;
return this;
}
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public Builder setColumns(
io.axoniq.axonserver.grpc.event.ColumnsResponse.Builder builderForValue) {
if (columnsBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
columnsBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 1;
return this;
}
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public Builder mergeColumns(io.axoniq.axonserver.grpc.event.ColumnsResponse value) {
if (columnsBuilder_ == null) {
if (dataCase_ == 1 &&
data_ != io.axoniq.axonserver.grpc.event.ColumnsResponse.getDefaultInstance()) {
data_ = io.axoniq.axonserver.grpc.event.ColumnsResponse.newBuilder((io.axoniq.axonserver.grpc.event.ColumnsResponse) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 1) {
columnsBuilder_.mergeFrom(value);
}
columnsBuilder_.setMessage(value);
}
dataCase_ = 1;
return this;
}
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public Builder clearColumns() {
if (columnsBuilder_ == null) {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
}
columnsBuilder_.clear();
}
return this;
}
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public io.axoniq.axonserver.grpc.event.ColumnsResponse.Builder getColumnsBuilder() {
return getColumnsFieldBuilder().getBuilder();
}
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
public io.axoniq.axonserver.grpc.event.ColumnsResponseOrBuilder getColumnsOrBuilder() {
if ((dataCase_ == 1) && (columnsBuilder_ != null)) {
return columnsBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 1) {
return (io.axoniq.axonserver.grpc.event.ColumnsResponse) data_;
}
return io.axoniq.axonserver.grpc.event.ColumnsResponse.getDefaultInstance();
}
}
/**
*
* Provided when the response contains the names of the columns the response contains. This message typically arrives first.
*
*
* .io.axoniq.axonserver.grpc.event.ColumnsResponse columns = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.event.ColumnsResponse, io.axoniq.axonserver.grpc.event.ColumnsResponse.Builder, io.axoniq.axonserver.grpc.event.ColumnsResponseOrBuilder>
getColumnsFieldBuilder() {
if (columnsBuilder_ == null) {
if (!(dataCase_ == 1)) {
data_ = io.axoniq.axonserver.grpc.event.ColumnsResponse.getDefaultInstance();
}
columnsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.event.ColumnsResponse, io.axoniq.axonserver.grpc.event.ColumnsResponse.Builder, io.axoniq.axonserver.grpc.event.ColumnsResponseOrBuilder>(
(io.axoniq.axonserver.grpc.event.ColumnsResponse) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 1;
onChanged();;
return columnsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.event.RowResponse, io.axoniq.axonserver.grpc.event.RowResponse.Builder, io.axoniq.axonserver.grpc.event.RowResponseOrBuilder> rowBuilder_;
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public boolean hasRow() {
return dataCase_ == 2;
}
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public io.axoniq.axonserver.grpc.event.RowResponse getRow() {
if (rowBuilder_ == null) {
if (dataCase_ == 2) {
return (io.axoniq.axonserver.grpc.event.RowResponse) data_;
}
return io.axoniq.axonserver.grpc.event.RowResponse.getDefaultInstance();
} else {
if (dataCase_ == 2) {
return rowBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.event.RowResponse.getDefaultInstance();
}
}
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public Builder setRow(io.axoniq.axonserver.grpc.event.RowResponse value) {
if (rowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
rowBuilder_.setMessage(value);
}
dataCase_ = 2;
return this;
}
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public Builder setRow(
io.axoniq.axonserver.grpc.event.RowResponse.Builder builderForValue) {
if (rowBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
rowBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 2;
return this;
}
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public Builder mergeRow(io.axoniq.axonserver.grpc.event.RowResponse value) {
if (rowBuilder_ == null) {
if (dataCase_ == 2 &&
data_ != io.axoniq.axonserver.grpc.event.RowResponse.getDefaultInstance()) {
data_ = io.axoniq.axonserver.grpc.event.RowResponse.newBuilder((io.axoniq.axonserver.grpc.event.RowResponse) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 2) {
rowBuilder_.mergeFrom(value);
}
rowBuilder_.setMessage(value);
}
dataCase_ = 2;
return this;
}
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public Builder clearRow() {
if (rowBuilder_ == null) {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
}
rowBuilder_.clear();
}
return this;
}
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public io.axoniq.axonserver.grpc.event.RowResponse.Builder getRowBuilder() {
return getRowFieldBuilder().getBuilder();
}
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
public io.axoniq.axonserver.grpc.event.RowResponseOrBuilder getRowOrBuilder() {
if ((dataCase_ == 2) && (rowBuilder_ != null)) {
return rowBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 2) {
return (io.axoniq.axonserver.grpc.event.RowResponse) data_;
}
return io.axoniq.axonserver.grpc.event.RowResponse.getDefaultInstance();
}
}
/**
*
* Provided when the response message contains results of the Query
*
*
* .io.axoniq.axonserver.grpc.event.RowResponse row = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.event.RowResponse, io.axoniq.axonserver.grpc.event.RowResponse.Builder, io.axoniq.axonserver.grpc.event.RowResponseOrBuilder>
getRowFieldBuilder() {
if (rowBuilder_ == null) {
if (!(dataCase_ == 2)) {
data_ = io.axoniq.axonserver.grpc.event.RowResponse.getDefaultInstance();
}
rowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.event.RowResponse, io.axoniq.axonserver.grpc.event.RowResponse.Builder, io.axoniq.axonserver.grpc.event.RowResponseOrBuilder>(
(io.axoniq.axonserver.grpc.event.RowResponse) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 2;
onChanged();;
return rowBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.event.Confirmation, io.axoniq.axonserver.grpc.event.Confirmation.Builder, io.axoniq.axonserver.grpc.event.ConfirmationOrBuilder> filesCompletedBuilder_;
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public boolean hasFilesCompleted() {
return dataCase_ == 3;
}
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public io.axoniq.axonserver.grpc.event.Confirmation getFilesCompleted() {
if (filesCompletedBuilder_ == null) {
if (dataCase_ == 3) {
return (io.axoniq.axonserver.grpc.event.Confirmation) data_;
}
return io.axoniq.axonserver.grpc.event.Confirmation.getDefaultInstance();
} else {
if (dataCase_ == 3) {
return filesCompletedBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.event.Confirmation.getDefaultInstance();
}
}
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public Builder setFilesCompleted(io.axoniq.axonserver.grpc.event.Confirmation value) {
if (filesCompletedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
filesCompletedBuilder_.setMessage(value);
}
dataCase_ = 3;
return this;
}
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public Builder setFilesCompleted(
io.axoniq.axonserver.grpc.event.Confirmation.Builder builderForValue) {
if (filesCompletedBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
filesCompletedBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 3;
return this;
}
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public Builder mergeFilesCompleted(io.axoniq.axonserver.grpc.event.Confirmation value) {
if (filesCompletedBuilder_ == null) {
if (dataCase_ == 3 &&
data_ != io.axoniq.axonserver.grpc.event.Confirmation.getDefaultInstance()) {
data_ = io.axoniq.axonserver.grpc.event.Confirmation.newBuilder((io.axoniq.axonserver.grpc.event.Confirmation) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 3) {
filesCompletedBuilder_.mergeFrom(value);
}
filesCompletedBuilder_.setMessage(value);
}
dataCase_ = 3;
return this;
}
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public Builder clearFilesCompleted() {
if (filesCompletedBuilder_ == null) {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
}
filesCompletedBuilder_.clear();
}
return this;
}
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public io.axoniq.axonserver.grpc.event.Confirmation.Builder getFilesCompletedBuilder() {
return getFilesCompletedFieldBuilder().getBuilder();
}
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
public io.axoniq.axonserver.grpc.event.ConfirmationOrBuilder getFilesCompletedOrBuilder() {
if ((dataCase_ == 3) && (filesCompletedBuilder_ != null)) {
return filesCompletedBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 3) {
return (io.axoniq.axonserver.grpc.event.Confirmation) data_;
}
return io.axoniq.axonserver.grpc.event.Confirmation.getDefaultInstance();
}
}
/**
*
* Provided when all historic events have been included in the query results
*
*
* .io.axoniq.axonserver.grpc.event.Confirmation files_completed = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.event.Confirmation, io.axoniq.axonserver.grpc.event.Confirmation.Builder, io.axoniq.axonserver.grpc.event.ConfirmationOrBuilder>
getFilesCompletedFieldBuilder() {
if (filesCompletedBuilder_ == null) {
if (!(dataCase_ == 3)) {
data_ = io.axoniq.axonserver.grpc.event.Confirmation.getDefaultInstance();
}
filesCompletedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.event.Confirmation, io.axoniq.axonserver.grpc.event.Confirmation.Builder, io.axoniq.axonserver.grpc.event.ConfirmationOrBuilder>(
(io.axoniq.axonserver.grpc.event.Confirmation) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 3;
onChanged();;
return filesCompletedBuilder_;
}
@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.event.QueryEventsResponse)
}
// @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.event.QueryEventsResponse)
private static final io.axoniq.axonserver.grpc.event.QueryEventsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.axoniq.axonserver.grpc.event.QueryEventsResponse();
}
public static io.axoniq.axonserver.grpc.event.QueryEventsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryEventsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryEventsResponse(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.event.QueryEventsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy