com.pingcap.tidb.tipb.Aggregation Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: executor.proto
package com.pingcap.tidb.tipb;
/**
* Protobuf type {@code tipb.Aggregation}
*/
public final class Aggregation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tipb.Aggregation)
AggregationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Aggregation.newBuilder() to construct.
private Aggregation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Aggregation() {
groupBy_ = java.util.Collections.emptyList();
rpnGroupBy_ = java.util.Collections.emptyList();
aggFunc_ = java.util.Collections.emptyList();
rpnAggFunc_ = java.util.Collections.emptyList();
streamed_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Aggregation(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
groupBy_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
groupBy_.add(
input.readMessage(com.pingcap.tidb.tipb.Expr.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
aggFunc_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
aggFunc_.add(
input.readMessage(com.pingcap.tidb.tipb.Expr.PARSER, extensionRegistry));
break;
}
case 24: {
bitField0_ |= 0x00000001;
streamed_ = input.readBool();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
rpnGroupBy_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
rpnGroupBy_.add(
input.readMessage(com.pingcap.tidb.tipb.RpnExpr.PARSER, extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
rpnAggFunc_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
rpnAggFunc_.add(
input.readMessage(com.pingcap.tidb.tipb.RpnExpr.PARSER, extensionRegistry));
break;
}
case 50: {
com.pingcap.tidb.tipb.Executor.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = child_.toBuilder();
}
child_ = input.readMessage(com.pingcap.tidb.tipb.Executor.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(child_);
child_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
groupBy_ = java.util.Collections.unmodifiableList(groupBy_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
aggFunc_ = java.util.Collections.unmodifiableList(aggFunc_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
rpnGroupBy_ = java.util.Collections.unmodifiableList(rpnGroupBy_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
rpnAggFunc_ = java.util.Collections.unmodifiableList(rpnAggFunc_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Aggregation_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Aggregation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.Aggregation.class, com.pingcap.tidb.tipb.Aggregation.Builder.class);
}
private int bitField0_;
public static final int GROUP_BY_FIELD_NUMBER = 1;
private java.util.List groupBy_;
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public java.util.List getGroupByList() {
return groupBy_;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public java.util.List extends com.pingcap.tidb.tipb.ExprOrBuilder>
getGroupByOrBuilderList() {
return groupBy_;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public int getGroupByCount() {
return groupBy_.size();
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public com.pingcap.tidb.tipb.Expr getGroupBy(int index) {
return groupBy_.get(index);
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public com.pingcap.tidb.tipb.ExprOrBuilder getGroupByOrBuilder(
int index) {
return groupBy_.get(index);
}
public static final int RPN_GROUP_BY_FIELD_NUMBER = 4;
private java.util.List rpnGroupBy_;
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public java.util.List getRpnGroupByList() {
return rpnGroupBy_;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public java.util.List extends com.pingcap.tidb.tipb.RpnExprOrBuilder>
getRpnGroupByOrBuilderList() {
return rpnGroupBy_;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public int getRpnGroupByCount() {
return rpnGroupBy_.size();
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public com.pingcap.tidb.tipb.RpnExpr getRpnGroupBy(int index) {
return rpnGroupBy_.get(index);
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public com.pingcap.tidb.tipb.RpnExprOrBuilder getRpnGroupByOrBuilder(
int index) {
return rpnGroupBy_.get(index);
}
public static final int AGG_FUNC_FIELD_NUMBER = 2;
private java.util.List aggFunc_;
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public java.util.List getAggFuncList() {
return aggFunc_;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public java.util.List extends com.pingcap.tidb.tipb.ExprOrBuilder>
getAggFuncOrBuilderList() {
return aggFunc_;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public int getAggFuncCount() {
return aggFunc_.size();
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public com.pingcap.tidb.tipb.Expr getAggFunc(int index) {
return aggFunc_.get(index);
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public com.pingcap.tidb.tipb.ExprOrBuilder getAggFuncOrBuilder(
int index) {
return aggFunc_.get(index);
}
public static final int RPN_AGG_FUNC_FIELD_NUMBER = 5;
private java.util.List rpnAggFunc_;
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public java.util.List getRpnAggFuncList() {
return rpnAggFunc_;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public java.util.List extends com.pingcap.tidb.tipb.RpnExprOrBuilder>
getRpnAggFuncOrBuilderList() {
return rpnAggFunc_;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public int getRpnAggFuncCount() {
return rpnAggFunc_.size();
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public com.pingcap.tidb.tipb.RpnExpr getRpnAggFunc(int index) {
return rpnAggFunc_.get(index);
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public com.pingcap.tidb.tipb.RpnExprOrBuilder getRpnAggFuncOrBuilder(
int index) {
return rpnAggFunc_.get(index);
}
public static final int STREAMED_FIELD_NUMBER = 3;
private boolean streamed_;
/**
*
* If it is a stream aggregation.
*
*
* optional bool streamed = 3 [(.gogoproto.nullable) = false];
*/
public boolean hasStreamed() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* If it is a stream aggregation.
*
*
* optional bool streamed = 3 [(.gogoproto.nullable) = false];
*/
public boolean getStreamed() {
return streamed_;
}
public static final int CHILD_FIELD_NUMBER = 6;
private com.pingcap.tidb.tipb.Executor child_;
/**
* optional .tipb.Executor child = 6;
*/
public boolean hasChild() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .tipb.Executor child = 6;
*/
public com.pingcap.tidb.tipb.Executor getChild() {
return child_ == null ? com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_;
}
/**
* optional .tipb.Executor child = 6;
*/
public com.pingcap.tidb.tipb.ExecutorOrBuilder getChildOrBuilder() {
return child_ == null ? com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < groupBy_.size(); i++) {
output.writeMessage(1, groupBy_.get(i));
}
for (int i = 0; i < aggFunc_.size(); i++) {
output.writeMessage(2, aggFunc_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(3, streamed_);
}
for (int i = 0; i < rpnGroupBy_.size(); i++) {
output.writeMessage(4, rpnGroupBy_.get(i));
}
for (int i = 0; i < rpnAggFunc_.size(); i++) {
output.writeMessage(5, rpnAggFunc_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(6, getChild());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < groupBy_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, groupBy_.get(i));
}
for (int i = 0; i < aggFunc_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, aggFunc_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, streamed_);
}
for (int i = 0; i < rpnGroupBy_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, rpnGroupBy_.get(i));
}
for (int i = 0; i < rpnAggFunc_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, rpnAggFunc_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getChild());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.pingcap.tidb.tipb.Aggregation)) {
return super.equals(obj);
}
com.pingcap.tidb.tipb.Aggregation other = (com.pingcap.tidb.tipb.Aggregation) obj;
boolean result = true;
result = result && getGroupByList()
.equals(other.getGroupByList());
result = result && getRpnGroupByList()
.equals(other.getRpnGroupByList());
result = result && getAggFuncList()
.equals(other.getAggFuncList());
result = result && getRpnAggFuncList()
.equals(other.getRpnAggFuncList());
result = result && (hasStreamed() == other.hasStreamed());
if (hasStreamed()) {
result = result && (getStreamed()
== other.getStreamed());
}
result = result && (hasChild() == other.hasChild());
if (hasChild()) {
result = result && getChild()
.equals(other.getChild());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getGroupByCount() > 0) {
hash = (37 * hash) + GROUP_BY_FIELD_NUMBER;
hash = (53 * hash) + getGroupByList().hashCode();
}
if (getRpnGroupByCount() > 0) {
hash = (37 * hash) + RPN_GROUP_BY_FIELD_NUMBER;
hash = (53 * hash) + getRpnGroupByList().hashCode();
}
if (getAggFuncCount() > 0) {
hash = (37 * hash) + AGG_FUNC_FIELD_NUMBER;
hash = (53 * hash) + getAggFuncList().hashCode();
}
if (getRpnAggFuncCount() > 0) {
hash = (37 * hash) + RPN_AGG_FUNC_FIELD_NUMBER;
hash = (53 * hash) + getRpnAggFuncList().hashCode();
}
if (hasStreamed()) {
hash = (37 * hash) + STREAMED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getStreamed());
}
if (hasChild()) {
hash = (37 * hash) + CHILD_FIELD_NUMBER;
hash = (53 * hash) + getChild().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.pingcap.tidb.tipb.Aggregation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.Aggregation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.Aggregation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.Aggregation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.Aggregation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.Aggregation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.Aggregation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.Aggregation 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 com.pingcap.tidb.tipb.Aggregation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.Aggregation 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 com.pingcap.tidb.tipb.Aggregation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.Aggregation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.pingcap.tidb.tipb.Aggregation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tipb.Aggregation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tipb.Aggregation)
com.pingcap.tidb.tipb.AggregationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Aggregation_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Aggregation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.Aggregation.class, com.pingcap.tidb.tipb.Aggregation.Builder.class);
}
// Construct using com.pingcap.tidb.tipb.Aggregation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getGroupByFieldBuilder();
getRpnGroupByFieldBuilder();
getAggFuncFieldBuilder();
getRpnAggFuncFieldBuilder();
getChildFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (groupByBuilder_ == null) {
groupBy_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
groupByBuilder_.clear();
}
if (rpnGroupByBuilder_ == null) {
rpnGroupBy_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
rpnGroupByBuilder_.clear();
}
if (aggFuncBuilder_ == null) {
aggFunc_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
aggFuncBuilder_.clear();
}
if (rpnAggFuncBuilder_ == null) {
rpnAggFunc_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
rpnAggFuncBuilder_.clear();
}
streamed_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
if (childBuilder_ == null) {
child_ = null;
} else {
childBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Aggregation_descriptor;
}
public com.pingcap.tidb.tipb.Aggregation getDefaultInstanceForType() {
return com.pingcap.tidb.tipb.Aggregation.getDefaultInstance();
}
public com.pingcap.tidb.tipb.Aggregation build() {
com.pingcap.tidb.tipb.Aggregation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.pingcap.tidb.tipb.Aggregation buildPartial() {
com.pingcap.tidb.tipb.Aggregation result = new com.pingcap.tidb.tipb.Aggregation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (groupByBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
groupBy_ = java.util.Collections.unmodifiableList(groupBy_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.groupBy_ = groupBy_;
} else {
result.groupBy_ = groupByBuilder_.build();
}
if (rpnGroupByBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
rpnGroupBy_ = java.util.Collections.unmodifiableList(rpnGroupBy_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.rpnGroupBy_ = rpnGroupBy_;
} else {
result.rpnGroupBy_ = rpnGroupByBuilder_.build();
}
if (aggFuncBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
aggFunc_ = java.util.Collections.unmodifiableList(aggFunc_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.aggFunc_ = aggFunc_;
} else {
result.aggFunc_ = aggFuncBuilder_.build();
}
if (rpnAggFuncBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
rpnAggFunc_ = java.util.Collections.unmodifiableList(rpnAggFunc_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.rpnAggFunc_ = rpnAggFunc_;
} else {
result.rpnAggFunc_ = rpnAggFuncBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000001;
}
result.streamed_ = streamed_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000002;
}
if (childBuilder_ == null) {
result.child_ = child_;
} else {
result.child_ = childBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.pingcap.tidb.tipb.Aggregation) {
return mergeFrom((com.pingcap.tidb.tipb.Aggregation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.pingcap.tidb.tipb.Aggregation other) {
if (other == com.pingcap.tidb.tipb.Aggregation.getDefaultInstance()) return this;
if (groupByBuilder_ == null) {
if (!other.groupBy_.isEmpty()) {
if (groupBy_.isEmpty()) {
groupBy_ = other.groupBy_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGroupByIsMutable();
groupBy_.addAll(other.groupBy_);
}
onChanged();
}
} else {
if (!other.groupBy_.isEmpty()) {
if (groupByBuilder_.isEmpty()) {
groupByBuilder_.dispose();
groupByBuilder_ = null;
groupBy_ = other.groupBy_;
bitField0_ = (bitField0_ & ~0x00000001);
groupByBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGroupByFieldBuilder() : null;
} else {
groupByBuilder_.addAllMessages(other.groupBy_);
}
}
}
if (rpnGroupByBuilder_ == null) {
if (!other.rpnGroupBy_.isEmpty()) {
if (rpnGroupBy_.isEmpty()) {
rpnGroupBy_ = other.rpnGroupBy_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRpnGroupByIsMutable();
rpnGroupBy_.addAll(other.rpnGroupBy_);
}
onChanged();
}
} else {
if (!other.rpnGroupBy_.isEmpty()) {
if (rpnGroupByBuilder_.isEmpty()) {
rpnGroupByBuilder_.dispose();
rpnGroupByBuilder_ = null;
rpnGroupBy_ = other.rpnGroupBy_;
bitField0_ = (bitField0_ & ~0x00000002);
rpnGroupByBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRpnGroupByFieldBuilder() : null;
} else {
rpnGroupByBuilder_.addAllMessages(other.rpnGroupBy_);
}
}
}
if (aggFuncBuilder_ == null) {
if (!other.aggFunc_.isEmpty()) {
if (aggFunc_.isEmpty()) {
aggFunc_ = other.aggFunc_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAggFuncIsMutable();
aggFunc_.addAll(other.aggFunc_);
}
onChanged();
}
} else {
if (!other.aggFunc_.isEmpty()) {
if (aggFuncBuilder_.isEmpty()) {
aggFuncBuilder_.dispose();
aggFuncBuilder_ = null;
aggFunc_ = other.aggFunc_;
bitField0_ = (bitField0_ & ~0x00000004);
aggFuncBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAggFuncFieldBuilder() : null;
} else {
aggFuncBuilder_.addAllMessages(other.aggFunc_);
}
}
}
if (rpnAggFuncBuilder_ == null) {
if (!other.rpnAggFunc_.isEmpty()) {
if (rpnAggFunc_.isEmpty()) {
rpnAggFunc_ = other.rpnAggFunc_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureRpnAggFuncIsMutable();
rpnAggFunc_.addAll(other.rpnAggFunc_);
}
onChanged();
}
} else {
if (!other.rpnAggFunc_.isEmpty()) {
if (rpnAggFuncBuilder_.isEmpty()) {
rpnAggFuncBuilder_.dispose();
rpnAggFuncBuilder_ = null;
rpnAggFunc_ = other.rpnAggFunc_;
bitField0_ = (bitField0_ & ~0x00000008);
rpnAggFuncBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRpnAggFuncFieldBuilder() : null;
} else {
rpnAggFuncBuilder_.addAllMessages(other.rpnAggFunc_);
}
}
}
if (other.hasStreamed()) {
setStreamed(other.getStreamed());
}
if (other.hasChild()) {
mergeChild(other.getChild());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.pingcap.tidb.tipb.Aggregation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.pingcap.tidb.tipb.Aggregation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List groupBy_ =
java.util.Collections.emptyList();
private void ensureGroupByIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
groupBy_ = new java.util.ArrayList(groupBy_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder> groupByBuilder_;
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public java.util.List getGroupByList() {
if (groupByBuilder_ == null) {
return java.util.Collections.unmodifiableList(groupBy_);
} else {
return groupByBuilder_.getMessageList();
}
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public int getGroupByCount() {
if (groupByBuilder_ == null) {
return groupBy_.size();
} else {
return groupByBuilder_.getCount();
}
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public com.pingcap.tidb.tipb.Expr getGroupBy(int index) {
if (groupByBuilder_ == null) {
return groupBy_.get(index);
} else {
return groupByBuilder_.getMessage(index);
}
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public Builder setGroupBy(
int index, com.pingcap.tidb.tipb.Expr value) {
if (groupByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupByIsMutable();
groupBy_.set(index, value);
onChanged();
} else {
groupByBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public Builder setGroupBy(
int index, com.pingcap.tidb.tipb.Expr.Builder builderForValue) {
if (groupByBuilder_ == null) {
ensureGroupByIsMutable();
groupBy_.set(index, builderForValue.build());
onChanged();
} else {
groupByBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public Builder addGroupBy(com.pingcap.tidb.tipb.Expr value) {
if (groupByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupByIsMutable();
groupBy_.add(value);
onChanged();
} else {
groupByBuilder_.addMessage(value);
}
return this;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public Builder addGroupBy(
int index, com.pingcap.tidb.tipb.Expr value) {
if (groupByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupByIsMutable();
groupBy_.add(index, value);
onChanged();
} else {
groupByBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public Builder addGroupBy(
com.pingcap.tidb.tipb.Expr.Builder builderForValue) {
if (groupByBuilder_ == null) {
ensureGroupByIsMutable();
groupBy_.add(builderForValue.build());
onChanged();
} else {
groupByBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public Builder addGroupBy(
int index, com.pingcap.tidb.tipb.Expr.Builder builderForValue) {
if (groupByBuilder_ == null) {
ensureGroupByIsMutable();
groupBy_.add(index, builderForValue.build());
onChanged();
} else {
groupByBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public Builder addAllGroupBy(
java.lang.Iterable extends com.pingcap.tidb.tipb.Expr> values) {
if (groupByBuilder_ == null) {
ensureGroupByIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, groupBy_);
onChanged();
} else {
groupByBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public Builder clearGroupBy() {
if (groupByBuilder_ == null) {
groupBy_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
groupByBuilder_.clear();
}
return this;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public Builder removeGroupBy(int index) {
if (groupByBuilder_ == null) {
ensureGroupByIsMutable();
groupBy_.remove(index);
onChanged();
} else {
groupByBuilder_.remove(index);
}
return this;
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public com.pingcap.tidb.tipb.Expr.Builder getGroupByBuilder(
int index) {
return getGroupByFieldBuilder().getBuilder(index);
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public com.pingcap.tidb.tipb.ExprOrBuilder getGroupByOrBuilder(
int index) {
if (groupByBuilder_ == null) {
return groupBy_.get(index); } else {
return groupByBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public java.util.List extends com.pingcap.tidb.tipb.ExprOrBuilder>
getGroupByOrBuilderList() {
if (groupByBuilder_ != null) {
return groupByBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(groupBy_);
}
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public com.pingcap.tidb.tipb.Expr.Builder addGroupByBuilder() {
return getGroupByFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.Expr.getDefaultInstance());
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public com.pingcap.tidb.tipb.Expr.Builder addGroupByBuilder(
int index) {
return getGroupByFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.Expr.getDefaultInstance());
}
/**
*
* Group by clause.
*
*
* repeated .tipb.Expr group_by = 1;
*/
public java.util.List
getGroupByBuilderList() {
return getGroupByFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder>
getGroupByFieldBuilder() {
if (groupByBuilder_ == null) {
groupByBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder>(
groupBy_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
groupBy_ = null;
}
return groupByBuilder_;
}
private java.util.List rpnGroupBy_ =
java.util.Collections.emptyList();
private void ensureRpnGroupByIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
rpnGroupBy_ = new java.util.ArrayList(rpnGroupBy_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder> rpnGroupByBuilder_;
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public java.util.List getRpnGroupByList() {
if (rpnGroupByBuilder_ == null) {
return java.util.Collections.unmodifiableList(rpnGroupBy_);
} else {
return rpnGroupByBuilder_.getMessageList();
}
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public int getRpnGroupByCount() {
if (rpnGroupByBuilder_ == null) {
return rpnGroupBy_.size();
} else {
return rpnGroupByBuilder_.getCount();
}
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public com.pingcap.tidb.tipb.RpnExpr getRpnGroupBy(int index) {
if (rpnGroupByBuilder_ == null) {
return rpnGroupBy_.get(index);
} else {
return rpnGroupByBuilder_.getMessage(index);
}
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public Builder setRpnGroupBy(
int index, com.pingcap.tidb.tipb.RpnExpr value) {
if (rpnGroupByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRpnGroupByIsMutable();
rpnGroupBy_.set(index, value);
onChanged();
} else {
rpnGroupByBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public Builder setRpnGroupBy(
int index, com.pingcap.tidb.tipb.RpnExpr.Builder builderForValue) {
if (rpnGroupByBuilder_ == null) {
ensureRpnGroupByIsMutable();
rpnGroupBy_.set(index, builderForValue.build());
onChanged();
} else {
rpnGroupByBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public Builder addRpnGroupBy(com.pingcap.tidb.tipb.RpnExpr value) {
if (rpnGroupByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRpnGroupByIsMutable();
rpnGroupBy_.add(value);
onChanged();
} else {
rpnGroupByBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public Builder addRpnGroupBy(
int index, com.pingcap.tidb.tipb.RpnExpr value) {
if (rpnGroupByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRpnGroupByIsMutable();
rpnGroupBy_.add(index, value);
onChanged();
} else {
rpnGroupByBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public Builder addRpnGroupBy(
com.pingcap.tidb.tipb.RpnExpr.Builder builderForValue) {
if (rpnGroupByBuilder_ == null) {
ensureRpnGroupByIsMutable();
rpnGroupBy_.add(builderForValue.build());
onChanged();
} else {
rpnGroupByBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public Builder addRpnGroupBy(
int index, com.pingcap.tidb.tipb.RpnExpr.Builder builderForValue) {
if (rpnGroupByBuilder_ == null) {
ensureRpnGroupByIsMutable();
rpnGroupBy_.add(index, builderForValue.build());
onChanged();
} else {
rpnGroupByBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public Builder addAllRpnGroupBy(
java.lang.Iterable extends com.pingcap.tidb.tipb.RpnExpr> values) {
if (rpnGroupByBuilder_ == null) {
ensureRpnGroupByIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rpnGroupBy_);
onChanged();
} else {
rpnGroupByBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public Builder clearRpnGroupBy() {
if (rpnGroupByBuilder_ == null) {
rpnGroupBy_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
rpnGroupByBuilder_.clear();
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public Builder removeRpnGroupBy(int index) {
if (rpnGroupByBuilder_ == null) {
ensureRpnGroupByIsMutable();
rpnGroupBy_.remove(index);
onChanged();
} else {
rpnGroupByBuilder_.remove(index);
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public com.pingcap.tidb.tipb.RpnExpr.Builder getRpnGroupByBuilder(
int index) {
return getRpnGroupByFieldBuilder().getBuilder(index);
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public com.pingcap.tidb.tipb.RpnExprOrBuilder getRpnGroupByOrBuilder(
int index) {
if (rpnGroupByBuilder_ == null) {
return rpnGroupBy_.get(index); } else {
return rpnGroupByBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public java.util.List extends com.pingcap.tidb.tipb.RpnExprOrBuilder>
getRpnGroupByOrBuilderList() {
if (rpnGroupByBuilder_ != null) {
return rpnGroupByBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rpnGroupBy_);
}
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public com.pingcap.tidb.tipb.RpnExpr.Builder addRpnGroupByBuilder() {
return getRpnGroupByFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance());
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public com.pingcap.tidb.tipb.RpnExpr.Builder addRpnGroupByBuilder(
int index) {
return getRpnGroupByFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance());
}
/**
* repeated .tipb.RpnExpr rpn_group_by = 4;
*/
public java.util.List
getRpnGroupByBuilderList() {
return getRpnGroupByFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder>
getRpnGroupByFieldBuilder() {
if (rpnGroupByBuilder_ == null) {
rpnGroupByBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder>(
rpnGroupBy_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
rpnGroupBy_ = null;
}
return rpnGroupByBuilder_;
}
private java.util.List aggFunc_ =
java.util.Collections.emptyList();
private void ensureAggFuncIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
aggFunc_ = new java.util.ArrayList(aggFunc_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder> aggFuncBuilder_;
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public java.util.List getAggFuncList() {
if (aggFuncBuilder_ == null) {
return java.util.Collections.unmodifiableList(aggFunc_);
} else {
return aggFuncBuilder_.getMessageList();
}
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public int getAggFuncCount() {
if (aggFuncBuilder_ == null) {
return aggFunc_.size();
} else {
return aggFuncBuilder_.getCount();
}
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public com.pingcap.tidb.tipb.Expr getAggFunc(int index) {
if (aggFuncBuilder_ == null) {
return aggFunc_.get(index);
} else {
return aggFuncBuilder_.getMessage(index);
}
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public Builder setAggFunc(
int index, com.pingcap.tidb.tipb.Expr value) {
if (aggFuncBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggFuncIsMutable();
aggFunc_.set(index, value);
onChanged();
} else {
aggFuncBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public Builder setAggFunc(
int index, com.pingcap.tidb.tipb.Expr.Builder builderForValue) {
if (aggFuncBuilder_ == null) {
ensureAggFuncIsMutable();
aggFunc_.set(index, builderForValue.build());
onChanged();
} else {
aggFuncBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public Builder addAggFunc(com.pingcap.tidb.tipb.Expr value) {
if (aggFuncBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggFuncIsMutable();
aggFunc_.add(value);
onChanged();
} else {
aggFuncBuilder_.addMessage(value);
}
return this;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public Builder addAggFunc(
int index, com.pingcap.tidb.tipb.Expr value) {
if (aggFuncBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAggFuncIsMutable();
aggFunc_.add(index, value);
onChanged();
} else {
aggFuncBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public Builder addAggFunc(
com.pingcap.tidb.tipb.Expr.Builder builderForValue) {
if (aggFuncBuilder_ == null) {
ensureAggFuncIsMutable();
aggFunc_.add(builderForValue.build());
onChanged();
} else {
aggFuncBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public Builder addAggFunc(
int index, com.pingcap.tidb.tipb.Expr.Builder builderForValue) {
if (aggFuncBuilder_ == null) {
ensureAggFuncIsMutable();
aggFunc_.add(index, builderForValue.build());
onChanged();
} else {
aggFuncBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public Builder addAllAggFunc(
java.lang.Iterable extends com.pingcap.tidb.tipb.Expr> values) {
if (aggFuncBuilder_ == null) {
ensureAggFuncIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, aggFunc_);
onChanged();
} else {
aggFuncBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public Builder clearAggFunc() {
if (aggFuncBuilder_ == null) {
aggFunc_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
aggFuncBuilder_.clear();
}
return this;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public Builder removeAggFunc(int index) {
if (aggFuncBuilder_ == null) {
ensureAggFuncIsMutable();
aggFunc_.remove(index);
onChanged();
} else {
aggFuncBuilder_.remove(index);
}
return this;
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public com.pingcap.tidb.tipb.Expr.Builder getAggFuncBuilder(
int index) {
return getAggFuncFieldBuilder().getBuilder(index);
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public com.pingcap.tidb.tipb.ExprOrBuilder getAggFuncOrBuilder(
int index) {
if (aggFuncBuilder_ == null) {
return aggFunc_.get(index); } else {
return aggFuncBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public java.util.List extends com.pingcap.tidb.tipb.ExprOrBuilder>
getAggFuncOrBuilderList() {
if (aggFuncBuilder_ != null) {
return aggFuncBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(aggFunc_);
}
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public com.pingcap.tidb.tipb.Expr.Builder addAggFuncBuilder() {
return getAggFuncFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.Expr.getDefaultInstance());
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public com.pingcap.tidb.tipb.Expr.Builder addAggFuncBuilder(
int index) {
return getAggFuncFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.Expr.getDefaultInstance());
}
/**
*
* Aggregate functions.
*
*
* repeated .tipb.Expr agg_func = 2;
*/
public java.util.List
getAggFuncBuilderList() {
return getAggFuncFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder>
getAggFuncFieldBuilder() {
if (aggFuncBuilder_ == null) {
aggFuncBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder>(
aggFunc_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
aggFunc_ = null;
}
return aggFuncBuilder_;
}
private java.util.List rpnAggFunc_ =
java.util.Collections.emptyList();
private void ensureRpnAggFuncIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
rpnAggFunc_ = new java.util.ArrayList(rpnAggFunc_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder> rpnAggFuncBuilder_;
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public java.util.List getRpnAggFuncList() {
if (rpnAggFuncBuilder_ == null) {
return java.util.Collections.unmodifiableList(rpnAggFunc_);
} else {
return rpnAggFuncBuilder_.getMessageList();
}
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public int getRpnAggFuncCount() {
if (rpnAggFuncBuilder_ == null) {
return rpnAggFunc_.size();
} else {
return rpnAggFuncBuilder_.getCount();
}
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public com.pingcap.tidb.tipb.RpnExpr getRpnAggFunc(int index) {
if (rpnAggFuncBuilder_ == null) {
return rpnAggFunc_.get(index);
} else {
return rpnAggFuncBuilder_.getMessage(index);
}
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public Builder setRpnAggFunc(
int index, com.pingcap.tidb.tipb.RpnExpr value) {
if (rpnAggFuncBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRpnAggFuncIsMutable();
rpnAggFunc_.set(index, value);
onChanged();
} else {
rpnAggFuncBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public Builder setRpnAggFunc(
int index, com.pingcap.tidb.tipb.RpnExpr.Builder builderForValue) {
if (rpnAggFuncBuilder_ == null) {
ensureRpnAggFuncIsMutable();
rpnAggFunc_.set(index, builderForValue.build());
onChanged();
} else {
rpnAggFuncBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public Builder addRpnAggFunc(com.pingcap.tidb.tipb.RpnExpr value) {
if (rpnAggFuncBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRpnAggFuncIsMutable();
rpnAggFunc_.add(value);
onChanged();
} else {
rpnAggFuncBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public Builder addRpnAggFunc(
int index, com.pingcap.tidb.tipb.RpnExpr value) {
if (rpnAggFuncBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRpnAggFuncIsMutable();
rpnAggFunc_.add(index, value);
onChanged();
} else {
rpnAggFuncBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public Builder addRpnAggFunc(
com.pingcap.tidb.tipb.RpnExpr.Builder builderForValue) {
if (rpnAggFuncBuilder_ == null) {
ensureRpnAggFuncIsMutable();
rpnAggFunc_.add(builderForValue.build());
onChanged();
} else {
rpnAggFuncBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public Builder addRpnAggFunc(
int index, com.pingcap.tidb.tipb.RpnExpr.Builder builderForValue) {
if (rpnAggFuncBuilder_ == null) {
ensureRpnAggFuncIsMutable();
rpnAggFunc_.add(index, builderForValue.build());
onChanged();
} else {
rpnAggFuncBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public Builder addAllRpnAggFunc(
java.lang.Iterable extends com.pingcap.tidb.tipb.RpnExpr> values) {
if (rpnAggFuncBuilder_ == null) {
ensureRpnAggFuncIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rpnAggFunc_);
onChanged();
} else {
rpnAggFuncBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public Builder clearRpnAggFunc() {
if (rpnAggFuncBuilder_ == null) {
rpnAggFunc_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
rpnAggFuncBuilder_.clear();
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public Builder removeRpnAggFunc(int index) {
if (rpnAggFuncBuilder_ == null) {
ensureRpnAggFuncIsMutable();
rpnAggFunc_.remove(index);
onChanged();
} else {
rpnAggFuncBuilder_.remove(index);
}
return this;
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public com.pingcap.tidb.tipb.RpnExpr.Builder getRpnAggFuncBuilder(
int index) {
return getRpnAggFuncFieldBuilder().getBuilder(index);
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public com.pingcap.tidb.tipb.RpnExprOrBuilder getRpnAggFuncOrBuilder(
int index) {
if (rpnAggFuncBuilder_ == null) {
return rpnAggFunc_.get(index); } else {
return rpnAggFuncBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public java.util.List extends com.pingcap.tidb.tipb.RpnExprOrBuilder>
getRpnAggFuncOrBuilderList() {
if (rpnAggFuncBuilder_ != null) {
return rpnAggFuncBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rpnAggFunc_);
}
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public com.pingcap.tidb.tipb.RpnExpr.Builder addRpnAggFuncBuilder() {
return getRpnAggFuncFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance());
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public com.pingcap.tidb.tipb.RpnExpr.Builder addRpnAggFuncBuilder(
int index) {
return getRpnAggFuncFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance());
}
/**
* repeated .tipb.RpnExpr rpn_agg_func = 5;
*/
public java.util.List
getRpnAggFuncBuilderList() {
return getRpnAggFuncFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder>
getRpnAggFuncFieldBuilder() {
if (rpnAggFuncBuilder_ == null) {
rpnAggFuncBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder>(
rpnAggFunc_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
rpnAggFunc_ = null;
}
return rpnAggFuncBuilder_;
}
private boolean streamed_ ;
/**
*
* If it is a stream aggregation.
*
*
* optional bool streamed = 3 [(.gogoproto.nullable) = false];
*/
public boolean hasStreamed() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* If it is a stream aggregation.
*
*
* optional bool streamed = 3 [(.gogoproto.nullable) = false];
*/
public boolean getStreamed() {
return streamed_;
}
/**
*
* If it is a stream aggregation.
*
*
* optional bool streamed = 3 [(.gogoproto.nullable) = false];
*/
public Builder setStreamed(boolean value) {
bitField0_ |= 0x00000010;
streamed_ = value;
onChanged();
return this;
}
/**
*
* If it is a stream aggregation.
*
*
* optional bool streamed = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearStreamed() {
bitField0_ = (bitField0_ & ~0x00000010);
streamed_ = false;
onChanged();
return this;
}
private com.pingcap.tidb.tipb.Executor child_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Executor, com.pingcap.tidb.tipb.Executor.Builder, com.pingcap.tidb.tipb.ExecutorOrBuilder> childBuilder_;
/**
* optional .tipb.Executor child = 6;
*/
public boolean hasChild() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .tipb.Executor child = 6;
*/
public com.pingcap.tidb.tipb.Executor getChild() {
if (childBuilder_ == null) {
return child_ == null ? com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_;
} else {
return childBuilder_.getMessage();
}
}
/**
* optional .tipb.Executor child = 6;
*/
public Builder setChild(com.pingcap.tidb.tipb.Executor value) {
if (childBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
child_ = value;
onChanged();
} else {
childBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .tipb.Executor child = 6;
*/
public Builder setChild(
com.pingcap.tidb.tipb.Executor.Builder builderForValue) {
if (childBuilder_ == null) {
child_ = builderForValue.build();
onChanged();
} else {
childBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .tipb.Executor child = 6;
*/
public Builder mergeChild(com.pingcap.tidb.tipb.Executor value) {
if (childBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
child_ != null &&
child_ != com.pingcap.tidb.tipb.Executor.getDefaultInstance()) {
child_ =
com.pingcap.tidb.tipb.Executor.newBuilder(child_).mergeFrom(value).buildPartial();
} else {
child_ = value;
}
onChanged();
} else {
childBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .tipb.Executor child = 6;
*/
public Builder clearChild() {
if (childBuilder_ == null) {
child_ = null;
onChanged();
} else {
childBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .tipb.Executor child = 6;
*/
public com.pingcap.tidb.tipb.Executor.Builder getChildBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getChildFieldBuilder().getBuilder();
}
/**
* optional .tipb.Executor child = 6;
*/
public com.pingcap.tidb.tipb.ExecutorOrBuilder getChildOrBuilder() {
if (childBuilder_ != null) {
return childBuilder_.getMessageOrBuilder();
} else {
return child_ == null ?
com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_;
}
}
/**
* optional .tipb.Executor child = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Executor, com.pingcap.tidb.tipb.Executor.Builder, com.pingcap.tidb.tipb.ExecutorOrBuilder>
getChildFieldBuilder() {
if (childBuilder_ == null) {
childBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Executor, com.pingcap.tidb.tipb.Executor.Builder, com.pingcap.tidb.tipb.ExecutorOrBuilder>(
getChild(),
getParentForChildren(),
isClean());
child_ = null;
}
return childBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tipb.Aggregation)
}
// @@protoc_insertion_point(class_scope:tipb.Aggregation)
private static final com.pingcap.tidb.tipb.Aggregation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.Aggregation();
}
public static com.pingcap.tidb.tipb.Aggregation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Aggregation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Aggregation(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.pingcap.tidb.tipb.Aggregation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy