java.io.deephaven.proto.backplane.grpc.ComboAggregateRequest 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.ComboAggregateRequest}
*/
@java.lang.Deprecated public final class ComboAggregateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.grpc.ComboAggregateRequest)
ComboAggregateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComboAggregateRequest.newBuilder() to construct.
private ComboAggregateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComboAggregateRequest() {
aggregates_ = java.util.Collections.emptyList();
groupByColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ComboAggregateRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_ComboAggregateRequest_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_ComboAggregateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.class, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Builder.class);
}
/**
* Protobuf enum {@code io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType}
*/
public enum AggType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SUM = 0;
*/
SUM(0),
/**
* ABS_SUM = 1;
*/
ABS_SUM(1),
/**
* GROUP = 2;
*/
GROUP(2),
/**
* AVG = 3;
*/
AVG(3),
/**
* COUNT = 4;
*/
COUNT(4),
/**
* FIRST = 5;
*/
FIRST(5),
/**
* LAST = 6;
*/
LAST(6),
/**
* MIN = 7;
*/
MIN(7),
/**
* MAX = 8;
*/
MAX(8),
/**
* MEDIAN = 9;
*/
MEDIAN(9),
/**
* PERCENTILE = 10;
*/
PERCENTILE(10),
/**
* STD = 11;
*/
STD(11),
/**
* VAR = 12;
*/
VAR(12),
/**
* WEIGHTED_AVG = 13;
*/
WEIGHTED_AVG(13),
UNRECOGNIZED(-1),
;
/**
* SUM = 0;
*/
public static final int SUM_VALUE = 0;
/**
* ABS_SUM = 1;
*/
public static final int ABS_SUM_VALUE = 1;
/**
* GROUP = 2;
*/
public static final int GROUP_VALUE = 2;
/**
* AVG = 3;
*/
public static final int AVG_VALUE = 3;
/**
* COUNT = 4;
*/
public static final int COUNT_VALUE = 4;
/**
* FIRST = 5;
*/
public static final int FIRST_VALUE = 5;
/**
* LAST = 6;
*/
public static final int LAST_VALUE = 6;
/**
* MIN = 7;
*/
public static final int MIN_VALUE = 7;
/**
* MAX = 8;
*/
public static final int MAX_VALUE = 8;
/**
* MEDIAN = 9;
*/
public static final int MEDIAN_VALUE = 9;
/**
* PERCENTILE = 10;
*/
public static final int PERCENTILE_VALUE = 10;
/**
* STD = 11;
*/
public static final int STD_VALUE = 11;
/**
* VAR = 12;
*/
public static final int VAR_VALUE = 12;
/**
* WEIGHTED_AVG = 13;
*/
public static final int WEIGHTED_AVG_VALUE = 13;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AggType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static AggType forNumber(int value) {
switch (value) {
case 0: return SUM;
case 1: return ABS_SUM;
case 2: return GROUP;
case 3: return AVG;
case 4: return COUNT;
case 5: return FIRST;
case 6: return LAST;
case 7: return MIN;
case 8: return MAX;
case 9: return MEDIAN;
case 10: return PERCENTILE;
case 11: return STD;
case 12: return VAR;
case 13: return WEIGHTED_AVG;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AggType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AggType findValueByNumber(int number) {
return AggType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.ComboAggregateRequest.getDescriptor().getEnumTypes().get(0);
}
private static final AggType[] VALUES = values();
public static AggType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private AggType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType)
}
public interface AggregateOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate)
com.google.protobuf.MessageOrBuilder {
/**
* .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType type = 1;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType type = 1;
* @return The type.
*/
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType getType();
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @return A list containing the matchPairs.
*/
java.util.List
getMatchPairsList();
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @return The count of matchPairs.
*/
int getMatchPairsCount();
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @param index The index of the element to return.
* @return The matchPairs at the given index.
*/
java.lang.String getMatchPairs(int index);
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @param index The index of the value to return.
* @return The bytes of the matchPairs at the given index.
*/
com.google.protobuf.ByteString
getMatchPairsBytes(int index);
/**
*
* countBy result (output) column OR weighted avg weight (input) column, otherwise unused
*
*
* string column_name = 3;
* @return The columnName.
*/
java.lang.String getColumnName();
/**
*
* countBy result (output) column OR weighted avg weight (input) column, otherwise unused
*
*
* string column_name = 3;
* @return The bytes for columnName.
*/
com.google.protobuf.ByteString
getColumnNameBytes();
/**
*
* required by percentileBy aggregates, otherwise unused
*
*
* double percentile = 4;
* @return The percentile.
*/
double getPercentile();
/**
*
* used in percentileBy only
*
*
* bool avg_median = 5;
* @return The avgMedian.
*/
boolean getAvgMedian();
}
/**
* Protobuf type {@code io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate}
*/
public static final class Aggregate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate)
AggregateOrBuilder {
private static final long serialVersionUID = 0L;
// Use Aggregate.newBuilder() to construct.
private Aggregate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Aggregate() {
type_ = 0;
matchPairs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
columnName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Aggregate();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_ComboAggregateRequest_Aggregate_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_ComboAggregateRequest_Aggregate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.class, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder.class);
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_ = 0;
/**
* .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType type = 1;
* @return The type.
*/
@java.lang.Override public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType getType() {
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType result = io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType.forNumber(type_);
return result == null ? io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType.UNRECOGNIZED : result;
}
public static final int MATCH_PAIRS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList matchPairs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @return A list containing the matchPairs.
*/
public com.google.protobuf.ProtocolStringList
getMatchPairsList() {
return matchPairs_;
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @return The count of matchPairs.
*/
public int getMatchPairsCount() {
return matchPairs_.size();
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @param index The index of the element to return.
* @return The matchPairs at the given index.
*/
public java.lang.String getMatchPairs(int index) {
return matchPairs_.get(index);
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @param index The index of the value to return.
* @return The bytes of the matchPairs at the given index.
*/
public com.google.protobuf.ByteString
getMatchPairsBytes(int index) {
return matchPairs_.getByteString(index);
}
public static final int COLUMN_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object columnName_ = "";
/**
*
* countBy result (output) column OR weighted avg weight (input) column, otherwise unused
*
*
* string column_name = 3;
* @return The columnName.
*/
@java.lang.Override
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnName_ = s;
return s;
}
}
/**
*
* countBy result (output) column OR weighted avg weight (input) column, otherwise unused
*
*
* string column_name = 3;
* @return The bytes for columnName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getColumnNameBytes() {
java.lang.Object ref = columnName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PERCENTILE_FIELD_NUMBER = 4;
private double percentile_ = 0D;
/**
*
* required by percentileBy aggregates, otherwise unused
*
*
* double percentile = 4;
* @return The percentile.
*/
@java.lang.Override
public double getPercentile() {
return percentile_;
}
public static final int AVG_MEDIAN_FIELD_NUMBER = 5;
private boolean avgMedian_ = false;
/**
*
* used in percentileBy only
*
*
* bool avg_median = 5;
* @return The avgMedian.
*/
@java.lang.Override
public boolean getAvgMedian() {
return avgMedian_;
}
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 (type_ != io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType.SUM.getNumber()) {
output.writeEnum(1, type_);
}
for (int i = 0; i < matchPairs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, matchPairs_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, columnName_);
}
if (java.lang.Double.doubleToRawLongBits(percentile_) != 0) {
output.writeDouble(4, percentile_);
}
if (avgMedian_ != false) {
output.writeBool(5, avgMedian_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType.SUM.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
{
int dataSize = 0;
for (int i = 0; i < matchPairs_.size(); i++) {
dataSize += computeStringSizeNoTag(matchPairs_.getRaw(i));
}
size += dataSize;
size += 1 * getMatchPairsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, columnName_);
}
if (java.lang.Double.doubleToRawLongBits(percentile_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, percentile_);
}
if (avgMedian_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, avgMedian_);
}
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.ComboAggregateRequest.Aggregate)) {
return super.equals(obj);
}
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate other = (io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate) obj;
if (type_ != other.type_) return false;
if (!getMatchPairsList()
.equals(other.getMatchPairsList())) return false;
if (!getColumnName()
.equals(other.getColumnName())) return false;
if (java.lang.Double.doubleToLongBits(getPercentile())
!= java.lang.Double.doubleToLongBits(
other.getPercentile())) return false;
if (getAvgMedian()
!= other.getAvgMedian()) 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();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (getMatchPairsCount() > 0) {
hash = (37 * hash) + MATCH_PAIRS_FIELD_NUMBER;
hash = (53 * hash) + getMatchPairsList().hashCode();
}
hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getColumnName().hashCode();
hash = (37 * hash) + PERCENTILE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getPercentile()));
hash = (37 * hash) + AVG_MEDIAN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAvgMedian());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate 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.ComboAggregateRequest.Aggregate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate 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.ComboAggregateRequest.Aggregate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate 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.ComboAggregateRequest.Aggregate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate 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.ComboAggregateRequest.Aggregate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate 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.ComboAggregateRequest.Aggregate 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.ComboAggregateRequest.Aggregate 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.ComboAggregateRequest.Aggregate 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.ComboAggregateRequest.Aggregate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate)
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggregateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_ComboAggregateRequest_Aggregate_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_ComboAggregateRequest_Aggregate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.class, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder.class);
}
// Construct using io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
type_ = 0;
matchPairs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
columnName_ = "";
percentile_ = 0D;
avgMedian_ = false;
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_ComboAggregateRequest_Aggregate_descriptor;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate getDefaultInstanceForType() {
return io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.getDefaultInstance();
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate build() {
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate buildPartial() {
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate result = new io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
matchPairs_.makeImmutable();
result.matchPairs_ = matchPairs_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.columnName_ = columnName_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.percentile_ = percentile_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.avgMedian_ = avgMedian_;
}
}
@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.ComboAggregateRequest.Aggregate) {
return mergeFrom((io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate other) {
if (other == io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.getDefaultInstance()) return this;
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.matchPairs_.isEmpty()) {
if (matchPairs_.isEmpty()) {
matchPairs_ = other.matchPairs_;
bitField0_ |= 0x00000002;
} else {
ensureMatchPairsIsMutable();
matchPairs_.addAll(other.matchPairs_);
}
onChanged();
}
if (!other.getColumnName().isEmpty()) {
columnName_ = other.columnName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getPercentile() != 0D) {
setPercentile(other.getPercentile());
}
if (other.getAvgMedian() != false) {
setAvgMedian(other.getAvgMedian());
}
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 8: {
type_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureMatchPairsIsMutable();
matchPairs_.add(s);
break;
} // case 18
case 26: {
columnName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 33: {
percentile_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 40: {
avgMedian_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
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 int type_ = 0;
/**
* .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType type = 1;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType type = 1;
* @return The type.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType getType() {
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType result = io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType.forNumber(type_);
return result == null ? io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType.UNRECOGNIZED : result;
}
/**
* .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggType type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList matchPairs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureMatchPairsIsMutable() {
if (!matchPairs_.isModifiable()) {
matchPairs_ = new com.google.protobuf.LazyStringArrayList(matchPairs_);
}
bitField0_ |= 0x00000002;
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @return A list containing the matchPairs.
*/
public com.google.protobuf.ProtocolStringList
getMatchPairsList() {
matchPairs_.makeImmutable();
return matchPairs_;
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @return The count of matchPairs.
*/
public int getMatchPairsCount() {
return matchPairs_.size();
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @param index The index of the element to return.
* @return The matchPairs at the given index.
*/
public java.lang.String getMatchPairs(int index) {
return matchPairs_.get(index);
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @param index The index of the value to return.
* @return The bytes of the matchPairs at the given index.
*/
public com.google.protobuf.ByteString
getMatchPairsBytes(int index) {
return matchPairs_.getByteString(index);
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @param index The index to set the value at.
* @param value The matchPairs to set.
* @return This builder for chaining.
*/
public Builder setMatchPairs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMatchPairsIsMutable();
matchPairs_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @param value The matchPairs to add.
* @return This builder for chaining.
*/
public Builder addMatchPairs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureMatchPairsIsMutable();
matchPairs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @param values The matchPairs to add.
* @return This builder for chaining.
*/
public Builder addAllMatchPairs(
java.lang.Iterable values) {
ensureMatchPairsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, matchPairs_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @return This builder for chaining.
*/
public Builder clearMatchPairs() {
matchPairs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* used in all aggregates except countBy
*
*
* repeated string match_pairs = 2;
* @param value The bytes of the matchPairs to add.
* @return This builder for chaining.
*/
public Builder addMatchPairsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureMatchPairsIsMutable();
matchPairs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object columnName_ = "";
/**
*
* countBy result (output) column OR weighted avg weight (input) column, otherwise unused
*
*
* string column_name = 3;
* @return The columnName.
*/
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* countBy result (output) column OR weighted avg weight (input) column, otherwise unused
*
*
* string column_name = 3;
* @return The bytes for columnName.
*/
public com.google.protobuf.ByteString
getColumnNameBytes() {
java.lang.Object ref = columnName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* countBy result (output) column OR weighted avg weight (input) column, otherwise unused
*
*
* string column_name = 3;
* @param value The columnName to set.
* @return This builder for chaining.
*/
public Builder setColumnName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
columnName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* countBy result (output) column OR weighted avg weight (input) column, otherwise unused
*
*
* string column_name = 3;
* @return This builder for chaining.
*/
public Builder clearColumnName() {
columnName_ = getDefaultInstance().getColumnName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* countBy result (output) column OR weighted avg weight (input) column, otherwise unused
*
*
* string column_name = 3;
* @param value The bytes for columnName to set.
* @return This builder for chaining.
*/
public Builder setColumnNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
columnName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private double percentile_ ;
/**
*
* required by percentileBy aggregates, otherwise unused
*
*
* double percentile = 4;
* @return The percentile.
*/
@java.lang.Override
public double getPercentile() {
return percentile_;
}
/**
*
* required by percentileBy aggregates, otherwise unused
*
*
* double percentile = 4;
* @param value The percentile to set.
* @return This builder for chaining.
*/
public Builder setPercentile(double value) {
percentile_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* required by percentileBy aggregates, otherwise unused
*
*
* double percentile = 4;
* @return This builder for chaining.
*/
public Builder clearPercentile() {
bitField0_ = (bitField0_ & ~0x00000008);
percentile_ = 0D;
onChanged();
return this;
}
private boolean avgMedian_ ;
/**
*
* used in percentileBy only
*
*
* bool avg_median = 5;
* @return The avgMedian.
*/
@java.lang.Override
public boolean getAvgMedian() {
return avgMedian_;
}
/**
*
* used in percentileBy only
*
*
* bool avg_median = 5;
* @param value The avgMedian to set.
* @return This builder for chaining.
*/
public Builder setAvgMedian(boolean value) {
avgMedian_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* used in percentileBy only
*
*
* bool avg_median = 5;
* @return This builder for chaining.
*/
public Builder clearAvgMedian() {
bitField0_ = (bitField0_ & ~0x00000010);
avgMedian_ = false;
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.ComboAggregateRequest.Aggregate)
}
// @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate)
private static final io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate();
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Aggregate 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.ComboAggregateRequest.Aggregate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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 AGGREGATES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List aggregates_;
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
@java.lang.Override
public java.util.List getAggregatesList() {
return aggregates_;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
@java.lang.Override
public java.util.List extends io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggregateOrBuilder>
getAggregatesOrBuilderList() {
return aggregates_;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
@java.lang.Override
public int getAggregatesCount() {
return aggregates_.size();
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate getAggregates(int index) {
return aggregates_.get(index);
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggregateOrBuilder getAggregatesOrBuilder(
int index) {
return aggregates_.get(index);
}
public static final int GROUP_BY_COLUMNS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList groupByColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string group_by_columns = 4;
* @return A list containing the groupByColumns.
*/
public com.google.protobuf.ProtocolStringList
getGroupByColumnsList() {
return groupByColumns_;
}
/**
* repeated string group_by_columns = 4;
* @return The count of groupByColumns.
*/
public int getGroupByColumnsCount() {
return groupByColumns_.size();
}
/**
* repeated string group_by_columns = 4;
* @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 = 4;
* @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);
}
public static final int FORCE_COMBO_FIELD_NUMBER = 5;
private boolean forceCombo_ = false;
/**
*
* don't use direct single-aggregate table operations even if there is only a single aggregate
*
*
* bool force_combo = 5;
* @return The forceCombo.
*/
@java.lang.Override
public boolean getForceCombo() {
return forceCombo_;
}
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());
}
for (int i = 0; i < aggregates_.size(); i++) {
output.writeMessage(3, aggregates_.get(i));
}
for (int i = 0; i < groupByColumns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, groupByColumns_.getRaw(i));
}
if (forceCombo_ != false) {
output.writeBool(5, forceCombo_);
}
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());
}
for (int i = 0; i < aggregates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, aggregates_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < groupByColumns_.size(); i++) {
dataSize += computeStringSizeNoTag(groupByColumns_.getRaw(i));
}
size += dataSize;
size += 1 * getGroupByColumnsList().size();
}
if (forceCombo_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, forceCombo_);
}
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.ComboAggregateRequest)) {
return super.equals(obj);
}
io.deephaven.proto.backplane.grpc.ComboAggregateRequest other = (io.deephaven.proto.backplane.grpc.ComboAggregateRequest) 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 (!getAggregatesList()
.equals(other.getAggregatesList())) return false;
if (!getGroupByColumnsList()
.equals(other.getGroupByColumnsList())) return false;
if (getForceCombo()
!= other.getForceCombo()) 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 (getAggregatesCount() > 0) {
hash = (37 * hash) + AGGREGATES_FIELD_NUMBER;
hash = (53 * hash) + getAggregatesList().hashCode();
}
if (getGroupByColumnsCount() > 0) {
hash = (37 * hash) + GROUP_BY_COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getGroupByColumnsList().hashCode();
}
hash = (37 * hash) + FORCE_COMBO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getForceCombo());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest 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.ComboAggregateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest 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.ComboAggregateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest 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.ComboAggregateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest 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.ComboAggregateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest 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.ComboAggregateRequest 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.ComboAggregateRequest 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.ComboAggregateRequest 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.ComboAggregateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.grpc.ComboAggregateRequest)
io.deephaven.proto.backplane.grpc.ComboAggregateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_ComboAggregateRequest_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_ComboAggregateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.class, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Builder.class);
}
// Construct using io.deephaven.proto.backplane.grpc.ComboAggregateRequest.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();
getAggregatesFieldBuilder();
}
}
@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;
}
if (aggregatesBuilder_ == null) {
aggregates_ = java.util.Collections.emptyList();
} else {
aggregates_ = null;
aggregatesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
groupByColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
forceCombo_ = false;
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_ComboAggregateRequest_descriptor;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest getDefaultInstanceForType() {
return io.deephaven.proto.backplane.grpc.ComboAggregateRequest.getDefaultInstance();
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest build() {
io.deephaven.proto.backplane.grpc.ComboAggregateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest buildPartial() {
io.deephaven.proto.backplane.grpc.ComboAggregateRequest result = new io.deephaven.proto.backplane.grpc.ComboAggregateRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.deephaven.proto.backplane.grpc.ComboAggregateRequest result) {
if (aggregatesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
aggregates_ = java.util.Collections.unmodifiableList(aggregates_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.aggregates_ = aggregates_;
} else {
result.aggregates_ = aggregatesBuilder_.build();
}
}
private void buildPartial0(io.deephaven.proto.backplane.grpc.ComboAggregateRequest 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_ & 0x00000008) != 0)) {
groupByColumns_.makeImmutable();
result.groupByColumns_ = groupByColumns_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.forceCombo_ = forceCombo_;
}
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.ComboAggregateRequest) {
return mergeFrom((io.deephaven.proto.backplane.grpc.ComboAggregateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.deephaven.proto.backplane.grpc.ComboAggregateRequest other) {
if (other == io.deephaven.proto.backplane.grpc.ComboAggregateRequest.getDefaultInstance()) return this;
if (other.hasResultId()) {
mergeResultId(other.getResultId());
}
if (other.hasSourceId()) {
mergeSourceId(other.getSourceId());
}
if (aggregatesBuilder_ == null) {
if (!other.aggregates_.isEmpty()) {
if (aggregates_.isEmpty()) {
aggregates_ = other.aggregates_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAggregatesIsMutable();
aggregates_.addAll(other.aggregates_);
}
onChanged();
}
} else {
if (!other.aggregates_.isEmpty()) {
if (aggregatesBuilder_.isEmpty()) {
aggregatesBuilder_.dispose();
aggregatesBuilder_ = null;
aggregates_ = other.aggregates_;
bitField0_ = (bitField0_ & ~0x00000004);
aggregatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAggregatesFieldBuilder() : null;
} else {
aggregatesBuilder_.addAllMessages(other.aggregates_);
}
}
}
if (!other.groupByColumns_.isEmpty()) {
if (groupByColumns_.isEmpty()) {
groupByColumns_ = other.groupByColumns_;
bitField0_ |= 0x00000008;
} else {
ensureGroupByColumnsIsMutable();
groupByColumns_.addAll(other.groupByColumns_);
}
onChanged();
}
if (other.getForceCombo() != false) {
setForceCombo(other.getForceCombo());
}
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: {
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate m =
input.readMessage(
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.parser(),
extensionRegistry);
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
aggregates_.add(m);
} else {
aggregatesBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
java.lang.String s = input.readStringRequireUtf8();
ensureGroupByColumnsIsMutable();
groupByColumns_.add(s);
break;
} // case 34
case 40: {
forceCombo_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
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 java.util.List aggregates_ =
java.util.Collections.emptyList();
private void ensureAggregatesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
aggregates_ = new java.util.ArrayList(aggregates_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggregateOrBuilder> aggregatesBuilder_;
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public java.util.List getAggregatesList() {
if (aggregatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(aggregates_);
} else {
return aggregatesBuilder_.getMessageList();
}
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public int getAggregatesCount() {
if (aggregatesBuilder_ == null) {
return aggregates_.size();
} else {
return aggregatesBuilder_.getCount();
}
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate getAggregates(int index) {
if (aggregatesBuilder_ == null) {
return aggregates_.get(index);
} else {
return aggregatesBuilder_.getMessage(index);
}
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public Builder setAggregates(
int index, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate value) {
if (aggregatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggregatesIsMutable();
aggregates_.set(index, value);
onChanged();
} else {
aggregatesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public Builder setAggregates(
int index, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder builderForValue) {
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
aggregates_.set(index, builderForValue.build());
onChanged();
} else {
aggregatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public Builder addAggregates(io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate value) {
if (aggregatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggregatesIsMutable();
aggregates_.add(value);
onChanged();
} else {
aggregatesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public Builder addAggregates(
int index, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate value) {
if (aggregatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggregatesIsMutable();
aggregates_.add(index, value);
onChanged();
} else {
aggregatesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public Builder addAggregates(
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder builderForValue) {
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
aggregates_.add(builderForValue.build());
onChanged();
} else {
aggregatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public Builder addAggregates(
int index, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder builderForValue) {
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
aggregates_.add(index, builderForValue.build());
onChanged();
} else {
aggregatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public Builder addAllAggregates(
java.lang.Iterable extends io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate> values) {
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, aggregates_);
onChanged();
} else {
aggregatesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public Builder clearAggregates() {
if (aggregatesBuilder_ == null) {
aggregates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
aggregatesBuilder_.clear();
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public Builder removeAggregates(int index) {
if (aggregatesBuilder_ == null) {
ensureAggregatesIsMutable();
aggregates_.remove(index);
onChanged();
} else {
aggregatesBuilder_.remove(index);
}
return this;
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder getAggregatesBuilder(
int index) {
return getAggregatesFieldBuilder().getBuilder(index);
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggregateOrBuilder getAggregatesOrBuilder(
int index) {
if (aggregatesBuilder_ == null) {
return aggregates_.get(index); } else {
return aggregatesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public java.util.List extends io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggregateOrBuilder>
getAggregatesOrBuilderList() {
if (aggregatesBuilder_ != null) {
return aggregatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(aggregates_);
}
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder addAggregatesBuilder() {
return getAggregatesFieldBuilder().addBuilder(
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.getDefaultInstance());
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder addAggregatesBuilder(
int index) {
return getAggregatesFieldBuilder().addBuilder(
index, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.getDefaultInstance());
}
/**
* repeated .io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate aggregates = 3;
*/
public java.util.List
getAggregatesBuilderList() {
return getAggregatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggregateOrBuilder>
getAggregatesFieldBuilder() {
if (aggregatesBuilder_ == null) {
aggregatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.Aggregate.Builder, io.deephaven.proto.backplane.grpc.ComboAggregateRequest.AggregateOrBuilder>(
aggregates_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
aggregates_ = null;
}
return aggregatesBuilder_;
}
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_ |= 0x00000008;
}
/**
* repeated string group_by_columns = 4;
* @return A list containing the groupByColumns.
*/
public com.google.protobuf.ProtocolStringList
getGroupByColumnsList() {
groupByColumns_.makeImmutable();
return groupByColumns_;
}
/**
* repeated string group_by_columns = 4;
* @return The count of groupByColumns.
*/
public int getGroupByColumnsCount() {
return groupByColumns_.size();
}
/**
* repeated string group_by_columns = 4;
* @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 = 4;
* @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 = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string group_by_columns = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string group_by_columns = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated string group_by_columns = 4;
* @return This builder for chaining.
*/
public Builder clearGroupByColumns() {
groupByColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
* repeated string group_by_columns = 4;
* @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_ |= 0x00000008;
onChanged();
return this;
}
private boolean forceCombo_ ;
/**
*
* don't use direct single-aggregate table operations even if there is only a single aggregate
*
*
* bool force_combo = 5;
* @return The forceCombo.
*/
@java.lang.Override
public boolean getForceCombo() {
return forceCombo_;
}
/**
*
* don't use direct single-aggregate table operations even if there is only a single aggregate
*
*
* bool force_combo = 5;
* @param value The forceCombo to set.
* @return This builder for chaining.
*/
public Builder setForceCombo(boolean value) {
forceCombo_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* don't use direct single-aggregate table operations even if there is only a single aggregate
*
*
* bool force_combo = 5;
* @return This builder for chaining.
*/
public Builder clearForceCombo() {
bitField0_ = (bitField0_ & ~0x00000010);
forceCombo_ = false;
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.ComboAggregateRequest)
}
// @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.grpc.ComboAggregateRequest)
private static final io.deephaven.proto.backplane.grpc.ComboAggregateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.deephaven.proto.backplane.grpc.ComboAggregateRequest();
}
public static io.deephaven.proto.backplane.grpc.ComboAggregateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComboAggregateRequest 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.ComboAggregateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}