java.io.deephaven.proto.backplane.grpc.AggregateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-proto-backplane-grpc Show documentation
Show all versions of deephaven-proto-backplane-grpc Show documentation
The Deephaven proto-backplane-grpc
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: deephaven/proto/table.proto
// Protobuf Java Version: 3.25.3
package io.deephaven.proto.backplane.grpc;
/**
* Protobuf type {@code io.deephaven.proto.backplane.grpc.AggregateRequest}
*/
public final class AggregateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.grpc.AggregateRequest)
AggregateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AggregateRequest.newBuilder() to construct.
private AggregateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AggregateRequest() {
aggregations_ = java.util.Collections.emptyList();
groupByColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AggregateRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_AggregateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_AggregateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.AggregateRequest.class, io.deephaven.proto.backplane.grpc.AggregateRequest.Builder.class);
}
private int bitField0_;
public static final int RESULT_ID_FIELD_NUMBER = 1;
private io.deephaven.proto.backplane.grpc.Ticket resultId_;
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
* @return Whether the resultId field is set.
*/
@java.lang.Override
public boolean hasResultId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
* @return The resultId.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.Ticket getResultId() {
return resultId_ == null ? io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : resultId_;
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.TicketOrBuilder getResultIdOrBuilder() {
return resultId_ == null ? io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : resultId_;
}
public static final int SOURCE_ID_FIELD_NUMBER = 2;
private io.deephaven.proto.backplane.grpc.TableReference sourceId_;
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
* @return Whether the sourceId field is set.
*/
@java.lang.Override
public boolean hasSourceId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
* @return The sourceId.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.TableReference getSourceId() {
return sourceId_ == null ? io.deephaven.proto.backplane.grpc.TableReference.getDefaultInstance() : sourceId_;
}
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.TableReferenceOrBuilder getSourceIdOrBuilder() {
return sourceId_ == null ? io.deephaven.proto.backplane.grpc.TableReference.getDefaultInstance() : sourceId_;
}
public static final int INITIAL_GROUPS_ID_FIELD_NUMBER = 3;
private io.deephaven.proto.backplane.grpc.TableReference initialGroupsId_;
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
* @return Whether the initialGroupsId field is set.
*/
@java.lang.Override
public boolean hasInitialGroupsId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
* @return The initialGroupsId.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.TableReference getInitialGroupsId() {
return initialGroupsId_ == null ? io.deephaven.proto.backplane.grpc.TableReference.getDefaultInstance() : initialGroupsId_;
}
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.TableReferenceOrBuilder getInitialGroupsIdOrBuilder() {
return initialGroupsId_ == null ? io.deephaven.proto.backplane.grpc.TableReference.getDefaultInstance() : initialGroupsId_;
}
public static final int PRESERVE_EMPTY_FIELD_NUMBER = 4;
private boolean preserveEmpty_ = false;
/**
*
* Whether to keep result rows for groups that are initially empty or become empty as a result
* of updates. Each aggregation operator defines its own value for empty groups.
*
*
* bool preserve_empty = 4;
* @return The preserveEmpty.
*/
@java.lang.Override
public boolean getPreserveEmpty() {
return preserveEmpty_;
}
public static final int AGGREGATIONS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List aggregations_;
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
@java.lang.Override
public java.util.List getAggregationsList() {
return aggregations_;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
@java.lang.Override
public java.util.List extends io.deephaven.proto.backplane.grpc.AggregationOrBuilder>
getAggregationsOrBuilderList() {
return aggregations_;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
@java.lang.Override
public int getAggregationsCount() {
return aggregations_.size();
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.Aggregation getAggregations(int index) {
return aggregations_.get(index);
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.AggregationOrBuilder getAggregationsOrBuilder(
int index) {
return aggregations_.get(index);
}
public static final int GROUP_BY_COLUMNS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList groupByColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string group_by_columns = 6;
* @return A list containing the groupByColumns.
*/
public com.google.protobuf.ProtocolStringList
getGroupByColumnsList() {
return groupByColumns_;
}
/**
* repeated string group_by_columns = 6;
* @return The count of groupByColumns.
*/
public int getGroupByColumnsCount() {
return groupByColumns_.size();
}
/**
* repeated string group_by_columns = 6;
* @param index The index of the element to return.
* @return The groupByColumns at the given index.
*/
public java.lang.String getGroupByColumns(int index) {
return groupByColumns_.get(index);
}
/**
* repeated string group_by_columns = 6;
* @param index The index of the value to return.
* @return The bytes of the groupByColumns at the given index.
*/
public com.google.protobuf.ByteString
getGroupByColumnsBytes(int index) {
return groupByColumns_.getByteString(index);
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getResultId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getSourceId());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getInitialGroupsId());
}
if (preserveEmpty_ != false) {
output.writeBool(4, preserveEmpty_);
}
for (int i = 0; i < aggregations_.size(); i++) {
output.writeMessage(5, aggregations_.get(i));
}
for (int i = 0; i < groupByColumns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, groupByColumns_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getResultId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSourceId());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getInitialGroupsId());
}
if (preserveEmpty_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, preserveEmpty_);
}
for (int i = 0; i < aggregations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, aggregations_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < groupByColumns_.size(); i++) {
dataSize += computeStringSizeNoTag(groupByColumns_.getRaw(i));
}
size += dataSize;
size += 1 * getGroupByColumnsList().size();
}
size += getUnknownFields().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.deephaven.proto.backplane.grpc.AggregateRequest)) {
return super.equals(obj);
}
io.deephaven.proto.backplane.grpc.AggregateRequest other = (io.deephaven.proto.backplane.grpc.AggregateRequest) obj;
if (hasResultId() != other.hasResultId()) return false;
if (hasResultId()) {
if (!getResultId()
.equals(other.getResultId())) return false;
}
if (hasSourceId() != other.hasSourceId()) return false;
if (hasSourceId()) {
if (!getSourceId()
.equals(other.getSourceId())) return false;
}
if (hasInitialGroupsId() != other.hasInitialGroupsId()) return false;
if (hasInitialGroupsId()) {
if (!getInitialGroupsId()
.equals(other.getInitialGroupsId())) return false;
}
if (getPreserveEmpty()
!= other.getPreserveEmpty()) return false;
if (!getAggregationsList()
.equals(other.getAggregationsList())) return false;
if (!getGroupByColumnsList()
.equals(other.getGroupByColumnsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasResultId()) {
hash = (37 * hash) + RESULT_ID_FIELD_NUMBER;
hash = (53 * hash) + getResultId().hashCode();
}
if (hasSourceId()) {
hash = (37 * hash) + SOURCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getSourceId().hashCode();
}
if (hasInitialGroupsId()) {
hash = (37 * hash) + INITIAL_GROUPS_ID_FIELD_NUMBER;
hash = (53 * hash) + getInitialGroupsId().hashCode();
}
hash = (37 * hash) + PRESERVE_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPreserveEmpty());
if (getAggregationsCount() > 0) {
hash = (37 * hash) + AGGREGATIONS_FIELD_NUMBER;
hash = (53 * hash) + getAggregationsList().hashCode();
}
if (getGroupByColumnsCount() > 0) {
hash = (37 * hash) + GROUP_BY_COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getGroupByColumnsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest 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.deephaven.proto.backplane.grpc.AggregateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest 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.deephaven.proto.backplane.grpc.AggregateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest 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.deephaven.proto.backplane.grpc.AggregateRequest 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;
}
/**
* Protobuf type {@code io.deephaven.proto.backplane.grpc.AggregateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.grpc.AggregateRequest)
io.deephaven.proto.backplane.grpc.AggregateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_AggregateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_AggregateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.AggregateRequest.class, io.deephaven.proto.backplane.grpc.AggregateRequest.Builder.class);
}
// Construct using io.deephaven.proto.backplane.grpc.AggregateRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultIdFieldBuilder();
getSourceIdFieldBuilder();
getInitialGroupsIdFieldBuilder();
getAggregationsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resultId_ = null;
if (resultIdBuilder_ != null) {
resultIdBuilder_.dispose();
resultIdBuilder_ = null;
}
sourceId_ = null;
if (sourceIdBuilder_ != null) {
sourceIdBuilder_.dispose();
sourceIdBuilder_ = null;
}
initialGroupsId_ = null;
if (initialGroupsIdBuilder_ != null) {
initialGroupsIdBuilder_.dispose();
initialGroupsIdBuilder_ = null;
}
preserveEmpty_ = false;
if (aggregationsBuilder_ == null) {
aggregations_ = java.util.Collections.emptyList();
} else {
aggregations_ = null;
aggregationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
groupByColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_AggregateRequest_descriptor;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.AggregateRequest getDefaultInstanceForType() {
return io.deephaven.proto.backplane.grpc.AggregateRequest.getDefaultInstance();
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.AggregateRequest build() {
io.deephaven.proto.backplane.grpc.AggregateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.AggregateRequest buildPartial() {
io.deephaven.proto.backplane.grpc.AggregateRequest result = new io.deephaven.proto.backplane.grpc.AggregateRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.deephaven.proto.backplane.grpc.AggregateRequest result) {
if (aggregationsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
aggregations_ = java.util.Collections.unmodifiableList(aggregations_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.aggregations_ = aggregations_;
} else {
result.aggregations_ = aggregationsBuilder_.build();
}
}
private void buildPartial0(io.deephaven.proto.backplane.grpc.AggregateRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resultId_ = resultIdBuilder_ == null
? resultId_
: resultIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.sourceId_ = sourceIdBuilder_ == null
? sourceId_
: sourceIdBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.initialGroupsId_ = initialGroupsIdBuilder_ == null
? initialGroupsId_
: initialGroupsIdBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.preserveEmpty_ = preserveEmpty_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
groupByColumns_.makeImmutable();
result.groupByColumns_ = groupByColumns_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.deephaven.proto.backplane.grpc.AggregateRequest) {
return mergeFrom((io.deephaven.proto.backplane.grpc.AggregateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.deephaven.proto.backplane.grpc.AggregateRequest other) {
if (other == io.deephaven.proto.backplane.grpc.AggregateRequest.getDefaultInstance()) return this;
if (other.hasResultId()) {
mergeResultId(other.getResultId());
}
if (other.hasSourceId()) {
mergeSourceId(other.getSourceId());
}
if (other.hasInitialGroupsId()) {
mergeInitialGroupsId(other.getInitialGroupsId());
}
if (other.getPreserveEmpty() != false) {
setPreserveEmpty(other.getPreserveEmpty());
}
if (aggregationsBuilder_ == null) {
if (!other.aggregations_.isEmpty()) {
if (aggregations_.isEmpty()) {
aggregations_ = other.aggregations_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAggregationsIsMutable();
aggregations_.addAll(other.aggregations_);
}
onChanged();
}
} else {
if (!other.aggregations_.isEmpty()) {
if (aggregationsBuilder_.isEmpty()) {
aggregationsBuilder_.dispose();
aggregationsBuilder_ = null;
aggregations_ = other.aggregations_;
bitField0_ = (bitField0_ & ~0x00000010);
aggregationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAggregationsFieldBuilder() : null;
} else {
aggregationsBuilder_.addAllMessages(other.aggregations_);
}
}
}
if (!other.groupByColumns_.isEmpty()) {
if (groupByColumns_.isEmpty()) {
groupByColumns_ = other.groupByColumns_;
bitField0_ |= 0x00000020;
} else {
ensureGroupByColumnsIsMutable();
groupByColumns_.addAll(other.groupByColumns_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getResultIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getSourceIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getInitialGroupsIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
preserveEmpty_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
io.deephaven.proto.backplane.grpc.Aggregation m =
input.readMessage(
io.deephaven.proto.backplane.grpc.Aggregation.parser(),
extensionRegistry);
if (aggregationsBuilder_ == null) {
ensureAggregationsIsMutable();
aggregations_.add(m);
} else {
aggregationsBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
java.lang.String s = input.readStringRequireUtf8();
ensureGroupByColumnsIsMutable();
groupByColumns_.add(s);
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private io.deephaven.proto.backplane.grpc.Ticket resultId_;
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Ticket, io.deephaven.proto.backplane.grpc.Ticket.Builder, io.deephaven.proto.backplane.grpc.TicketOrBuilder> resultIdBuilder_;
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
* @return Whether the resultId field is set.
*/
public boolean hasResultId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
* @return The resultId.
*/
public io.deephaven.proto.backplane.grpc.Ticket getResultId() {
if (resultIdBuilder_ == null) {
return resultId_ == null ? io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : resultId_;
} else {
return resultIdBuilder_.getMessage();
}
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
*/
public Builder setResultId(io.deephaven.proto.backplane.grpc.Ticket value) {
if (resultIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resultId_ = value;
} else {
resultIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
*/
public Builder setResultId(
io.deephaven.proto.backplane.grpc.Ticket.Builder builderForValue) {
if (resultIdBuilder_ == null) {
resultId_ = builderForValue.build();
} else {
resultIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
*/
public Builder mergeResultId(io.deephaven.proto.backplane.grpc.Ticket value) {
if (resultIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
resultId_ != null &&
resultId_ != io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance()) {
getResultIdBuilder().mergeFrom(value);
} else {
resultId_ = value;
}
} else {
resultIdBuilder_.mergeFrom(value);
}
if (resultId_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
*/
public Builder clearResultId() {
bitField0_ = (bitField0_ & ~0x00000001);
resultId_ = null;
if (resultIdBuilder_ != null) {
resultIdBuilder_.dispose();
resultIdBuilder_ = null;
}
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
*/
public io.deephaven.proto.backplane.grpc.Ticket.Builder getResultIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getResultIdFieldBuilder().getBuilder();
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
*/
public io.deephaven.proto.backplane.grpc.TicketOrBuilder getResultIdOrBuilder() {
if (resultIdBuilder_ != null) {
return resultIdBuilder_.getMessageOrBuilder();
} else {
return resultId_ == null ?
io.deephaven.proto.backplane.grpc.Ticket.getDefaultInstance() : resultId_;
}
}
/**
* .io.deephaven.proto.backplane.grpc.Ticket result_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Ticket, io.deephaven.proto.backplane.grpc.Ticket.Builder, io.deephaven.proto.backplane.grpc.TicketOrBuilder>
getResultIdFieldBuilder() {
if (resultIdBuilder_ == null) {
resultIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Ticket, io.deephaven.proto.backplane.grpc.Ticket.Builder, io.deephaven.proto.backplane.grpc.TicketOrBuilder>(
getResultId(),
getParentForChildren(),
isClean());
resultId_ = null;
}
return resultIdBuilder_;
}
private io.deephaven.proto.backplane.grpc.TableReference sourceId_;
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.TableReference, io.deephaven.proto.backplane.grpc.TableReference.Builder, io.deephaven.proto.backplane.grpc.TableReferenceOrBuilder> sourceIdBuilder_;
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
* @return Whether the sourceId field is set.
*/
public boolean hasSourceId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
* @return The sourceId.
*/
public io.deephaven.proto.backplane.grpc.TableReference getSourceId() {
if (sourceIdBuilder_ == null) {
return sourceId_ == null ? io.deephaven.proto.backplane.grpc.TableReference.getDefaultInstance() : sourceId_;
} else {
return sourceIdBuilder_.getMessage();
}
}
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
*/
public Builder setSourceId(io.deephaven.proto.backplane.grpc.TableReference value) {
if (sourceIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sourceId_ = value;
} else {
sourceIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
*/
public Builder setSourceId(
io.deephaven.proto.backplane.grpc.TableReference.Builder builderForValue) {
if (sourceIdBuilder_ == null) {
sourceId_ = builderForValue.build();
} else {
sourceIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
*/
public Builder mergeSourceId(io.deephaven.proto.backplane.grpc.TableReference value) {
if (sourceIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
sourceId_ != null &&
sourceId_ != io.deephaven.proto.backplane.grpc.TableReference.getDefaultInstance()) {
getSourceIdBuilder().mergeFrom(value);
} else {
sourceId_ = value;
}
} else {
sourceIdBuilder_.mergeFrom(value);
}
if (sourceId_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
*/
public Builder clearSourceId() {
bitField0_ = (bitField0_ & ~0x00000002);
sourceId_ = null;
if (sourceIdBuilder_ != null) {
sourceIdBuilder_.dispose();
sourceIdBuilder_ = null;
}
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
*/
public io.deephaven.proto.backplane.grpc.TableReference.Builder getSourceIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSourceIdFieldBuilder().getBuilder();
}
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
*/
public io.deephaven.proto.backplane.grpc.TableReferenceOrBuilder getSourceIdOrBuilder() {
if (sourceIdBuilder_ != null) {
return sourceIdBuilder_.getMessageOrBuilder();
} else {
return sourceId_ == null ?
io.deephaven.proto.backplane.grpc.TableReference.getDefaultInstance() : sourceId_;
}
}
/**
* .io.deephaven.proto.backplane.grpc.TableReference source_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.TableReference, io.deephaven.proto.backplane.grpc.TableReference.Builder, io.deephaven.proto.backplane.grpc.TableReferenceOrBuilder>
getSourceIdFieldBuilder() {
if (sourceIdBuilder_ == null) {
sourceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.TableReference, io.deephaven.proto.backplane.grpc.TableReference.Builder, io.deephaven.proto.backplane.grpc.TableReferenceOrBuilder>(
getSourceId(),
getParentForChildren(),
isClean());
sourceId_ = null;
}
return sourceIdBuilder_;
}
private io.deephaven.proto.backplane.grpc.TableReference initialGroupsId_;
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.TableReference, io.deephaven.proto.backplane.grpc.TableReference.Builder, io.deephaven.proto.backplane.grpc.TableReferenceOrBuilder> initialGroupsIdBuilder_;
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
* @return Whether the initialGroupsId field is set.
*/
public boolean hasInitialGroupsId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
* @return The initialGroupsId.
*/
public io.deephaven.proto.backplane.grpc.TableReference getInitialGroupsId() {
if (initialGroupsIdBuilder_ == null) {
return initialGroupsId_ == null ? io.deephaven.proto.backplane.grpc.TableReference.getDefaultInstance() : initialGroupsId_;
} else {
return initialGroupsIdBuilder_.getMessage();
}
}
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
*/
public Builder setInitialGroupsId(io.deephaven.proto.backplane.grpc.TableReference value) {
if (initialGroupsIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
initialGroupsId_ = value;
} else {
initialGroupsIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
*/
public Builder setInitialGroupsId(
io.deephaven.proto.backplane.grpc.TableReference.Builder builderForValue) {
if (initialGroupsIdBuilder_ == null) {
initialGroupsId_ = builderForValue.build();
} else {
initialGroupsIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
*/
public Builder mergeInitialGroupsId(io.deephaven.proto.backplane.grpc.TableReference value) {
if (initialGroupsIdBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
initialGroupsId_ != null &&
initialGroupsId_ != io.deephaven.proto.backplane.grpc.TableReference.getDefaultInstance()) {
getInitialGroupsIdBuilder().mergeFrom(value);
} else {
initialGroupsId_ = value;
}
} else {
initialGroupsIdBuilder_.mergeFrom(value);
}
if (initialGroupsId_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
*/
public Builder clearInitialGroupsId() {
bitField0_ = (bitField0_ & ~0x00000004);
initialGroupsId_ = null;
if (initialGroupsIdBuilder_ != null) {
initialGroupsIdBuilder_.dispose();
initialGroupsIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
*/
public io.deephaven.proto.backplane.grpc.TableReference.Builder getInitialGroupsIdBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getInitialGroupsIdFieldBuilder().getBuilder();
}
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
*/
public io.deephaven.proto.backplane.grpc.TableReferenceOrBuilder getInitialGroupsIdOrBuilder() {
if (initialGroupsIdBuilder_ != null) {
return initialGroupsIdBuilder_.getMessageOrBuilder();
} else {
return initialGroupsId_ == null ?
io.deephaven.proto.backplane.grpc.TableReference.getDefaultInstance() : initialGroupsId_;
}
}
/**
*
* A table whose distinct combinations of values for the group_by_columns should be used
* to create an initial set of aggregation groups. All other columns are ignored. This is useful in
* combination with preserve_empty == true to ensure that particular groups appear in the result
* table, or with preserve_empty == false to control the encounter order for a collection of groups
* and thus their relative order in the result. Changes to initial_group_ids are not expected or handled;
* if initial_groups_id is a refreshing table, only its contents at instantiation time will be used. If
* initial_groups_id is not present, the result will be the same as if a table with no rows was supplied.
*
*
* .io.deephaven.proto.backplane.grpc.TableReference initial_groups_id = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.TableReference, io.deephaven.proto.backplane.grpc.TableReference.Builder, io.deephaven.proto.backplane.grpc.TableReferenceOrBuilder>
getInitialGroupsIdFieldBuilder() {
if (initialGroupsIdBuilder_ == null) {
initialGroupsIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.TableReference, io.deephaven.proto.backplane.grpc.TableReference.Builder, io.deephaven.proto.backplane.grpc.TableReferenceOrBuilder>(
getInitialGroupsId(),
getParentForChildren(),
isClean());
initialGroupsId_ = null;
}
return initialGroupsIdBuilder_;
}
private boolean preserveEmpty_ ;
/**
*
* Whether to keep result rows for groups that are initially empty or become empty as a result
* of updates. Each aggregation operator defines its own value for empty groups.
*
*
* bool preserve_empty = 4;
* @return The preserveEmpty.
*/
@java.lang.Override
public boolean getPreserveEmpty() {
return preserveEmpty_;
}
/**
*
* Whether to keep result rows for groups that are initially empty or become empty as a result
* of updates. Each aggregation operator defines its own value for empty groups.
*
*
* bool preserve_empty = 4;
* @param value The preserveEmpty to set.
* @return This builder for chaining.
*/
public Builder setPreserveEmpty(boolean value) {
preserveEmpty_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Whether to keep result rows for groups that are initially empty or become empty as a result
* of updates. Each aggregation operator defines its own value for empty groups.
*
*
* bool preserve_empty = 4;
* @return This builder for chaining.
*/
public Builder clearPreserveEmpty() {
bitField0_ = (bitField0_ & ~0x00000008);
preserveEmpty_ = false;
onChanged();
return this;
}
private java.util.List aggregations_ =
java.util.Collections.emptyList();
private void ensureAggregationsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
aggregations_ = new java.util.ArrayList(aggregations_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Aggregation, io.deephaven.proto.backplane.grpc.Aggregation.Builder, io.deephaven.proto.backplane.grpc.AggregationOrBuilder> aggregationsBuilder_;
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public java.util.List getAggregationsList() {
if (aggregationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(aggregations_);
} else {
return aggregationsBuilder_.getMessageList();
}
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public int getAggregationsCount() {
if (aggregationsBuilder_ == null) {
return aggregations_.size();
} else {
return aggregationsBuilder_.getCount();
}
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public io.deephaven.proto.backplane.grpc.Aggregation getAggregations(int index) {
if (aggregationsBuilder_ == null) {
return aggregations_.get(index);
} else {
return aggregationsBuilder_.getMessage(index);
}
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public Builder setAggregations(
int index, io.deephaven.proto.backplane.grpc.Aggregation value) {
if (aggregationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggregationsIsMutable();
aggregations_.set(index, value);
onChanged();
} else {
aggregationsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public Builder setAggregations(
int index, io.deephaven.proto.backplane.grpc.Aggregation.Builder builderForValue) {
if (aggregationsBuilder_ == null) {
ensureAggregationsIsMutable();
aggregations_.set(index, builderForValue.build());
onChanged();
} else {
aggregationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public Builder addAggregations(io.deephaven.proto.backplane.grpc.Aggregation value) {
if (aggregationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggregationsIsMutable();
aggregations_.add(value);
onChanged();
} else {
aggregationsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public Builder addAggregations(
int index, io.deephaven.proto.backplane.grpc.Aggregation value) {
if (aggregationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggregationsIsMutable();
aggregations_.add(index, value);
onChanged();
} else {
aggregationsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public Builder addAggregations(
io.deephaven.proto.backplane.grpc.Aggregation.Builder builderForValue) {
if (aggregationsBuilder_ == null) {
ensureAggregationsIsMutable();
aggregations_.add(builderForValue.build());
onChanged();
} else {
aggregationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public Builder addAggregations(
int index, io.deephaven.proto.backplane.grpc.Aggregation.Builder builderForValue) {
if (aggregationsBuilder_ == null) {
ensureAggregationsIsMutable();
aggregations_.add(index, builderForValue.build());
onChanged();
} else {
aggregationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public Builder addAllAggregations(
java.lang.Iterable extends io.deephaven.proto.backplane.grpc.Aggregation> values) {
if (aggregationsBuilder_ == null) {
ensureAggregationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, aggregations_);
onChanged();
} else {
aggregationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public Builder clearAggregations() {
if (aggregationsBuilder_ == null) {
aggregations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
aggregationsBuilder_.clear();
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public Builder removeAggregations(int index) {
if (aggregationsBuilder_ == null) {
ensureAggregationsIsMutable();
aggregations_.remove(index);
onChanged();
} else {
aggregationsBuilder_.remove(index);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public io.deephaven.proto.backplane.grpc.Aggregation.Builder getAggregationsBuilder(
int index) {
return getAggregationsFieldBuilder().getBuilder(index);
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public io.deephaven.proto.backplane.grpc.AggregationOrBuilder getAggregationsOrBuilder(
int index) {
if (aggregationsBuilder_ == null) {
return aggregations_.get(index); } else {
return aggregationsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public java.util.List extends io.deephaven.proto.backplane.grpc.AggregationOrBuilder>
getAggregationsOrBuilderList() {
if (aggregationsBuilder_ != null) {
return aggregationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(aggregations_);
}
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public io.deephaven.proto.backplane.grpc.Aggregation.Builder addAggregationsBuilder() {
return getAggregationsFieldBuilder().addBuilder(
io.deephaven.proto.backplane.grpc.Aggregation.getDefaultInstance());
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public io.deephaven.proto.backplane.grpc.Aggregation.Builder addAggregationsBuilder(
int index) {
return getAggregationsFieldBuilder().addBuilder(
index, io.deephaven.proto.backplane.grpc.Aggregation.getDefaultInstance());
}
/**
* repeated .io.deephaven.proto.backplane.grpc.Aggregation aggregations = 5;
*/
public java.util.List
getAggregationsBuilderList() {
return getAggregationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Aggregation, io.deephaven.proto.backplane.grpc.Aggregation.Builder, io.deephaven.proto.backplane.grpc.AggregationOrBuilder>
getAggregationsFieldBuilder() {
if (aggregationsBuilder_ == null) {
aggregationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Aggregation, io.deephaven.proto.backplane.grpc.Aggregation.Builder, io.deephaven.proto.backplane.grpc.AggregationOrBuilder>(
aggregations_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
aggregations_ = null;
}
return aggregationsBuilder_;
}
private com.google.protobuf.LazyStringArrayList groupByColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureGroupByColumnsIsMutable() {
if (!groupByColumns_.isModifiable()) {
groupByColumns_ = new com.google.protobuf.LazyStringArrayList(groupByColumns_);
}
bitField0_ |= 0x00000020;
}
/**
* repeated string group_by_columns = 6;
* @return A list containing the groupByColumns.
*/
public com.google.protobuf.ProtocolStringList
getGroupByColumnsList() {
groupByColumns_.makeImmutable();
return groupByColumns_;
}
/**
* repeated string group_by_columns = 6;
* @return The count of groupByColumns.
*/
public int getGroupByColumnsCount() {
return groupByColumns_.size();
}
/**
* repeated string group_by_columns = 6;
* @param index The index of the element to return.
* @return The groupByColumns at the given index.
*/
public java.lang.String getGroupByColumns(int index) {
return groupByColumns_.get(index);
}
/**
* repeated string group_by_columns = 6;
* @param index The index of the value to return.
* @return The bytes of the groupByColumns at the given index.
*/
public com.google.protobuf.ByteString
getGroupByColumnsBytes(int index) {
return groupByColumns_.getByteString(index);
}
/**
* repeated string group_by_columns = 6;
* @param index The index to set the value at.
* @param value The groupByColumns to set.
* @return This builder for chaining.
*/
public Builder setGroupByColumns(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupByColumnsIsMutable();
groupByColumns_.set(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated string group_by_columns = 6;
* @param value The groupByColumns to add.
* @return This builder for chaining.
*/
public Builder addGroupByColumns(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGroupByColumnsIsMutable();
groupByColumns_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated string group_by_columns = 6;
* @param values The groupByColumns to add.
* @return This builder for chaining.
*/
public Builder addAllGroupByColumns(
java.lang.Iterable values) {
ensureGroupByColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, groupByColumns_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated string group_by_columns = 6;
* @return This builder for chaining.
*/
public Builder clearGroupByColumns() {
groupByColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);;
onChanged();
return this;
}
/**
* repeated string group_by_columns = 6;
* @param value The bytes of the groupByColumns to add.
* @return This builder for chaining.
*/
public Builder addGroupByColumnsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureGroupByColumnsIsMutable();
groupByColumns_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.deephaven.proto.backplane.grpc.AggregateRequest)
}
// @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.grpc.AggregateRequest)
private static final io.deephaven.proto.backplane.grpc.AggregateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.deephaven.proto.backplane.grpc.AggregateRequest();
}
public static io.deephaven.proto.backplane.grpc.AggregateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AggregateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.deephaven.proto.backplane.grpc.AggregateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}