All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pingcap.tidb.tipb.Executor Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: executor.proto

package com.pingcap.tidb.tipb;

/**
 * 
 * It represents a Executor.
 * 
* * Protobuf type {@code tipb.Executor} */ public final class Executor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tipb.Executor) ExecutorOrBuilder { // Use Executor.newBuilder() to construct. private Executor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Executor() { tp_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Executor( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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 8: { int rawValue = input.readEnum(); com.pingcap.tidb.tipb.ExecType value = com.pingcap.tidb.tipb.ExecType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; tp_ = rawValue; } break; } case 18: { com.pingcap.tidb.tipb.TableScan.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = tblScan_.toBuilder(); } tblScan_ = input.readMessage(com.pingcap.tidb.tipb.TableScan.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tblScan_); tblScan_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.pingcap.tidb.tipb.IndexScan.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = idxScan_.toBuilder(); } idxScan_ = input.readMessage(com.pingcap.tidb.tipb.IndexScan.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(idxScan_); idxScan_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.pingcap.tidb.tipb.Selection.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = selection_.toBuilder(); } selection_ = input.readMessage(com.pingcap.tidb.tipb.Selection.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(selection_); selection_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { com.pingcap.tidb.tipb.Aggregation.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = aggregation_.toBuilder(); } aggregation_ = input.readMessage(com.pingcap.tidb.tipb.Aggregation.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(aggregation_); aggregation_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { com.pingcap.tidb.tipb.TopN.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = topN_.toBuilder(); } topN_ = input.readMessage(com.pingcap.tidb.tipb.TopN.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(topN_); topN_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 58: { com.pingcap.tidb.tipb.Limit.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = limit_.toBuilder(); } limit_ = input.readMessage(com.pingcap.tidb.tipb.Limit.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(limit_); limit_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 66: { com.pingcap.tidb.tipb.Aggregation.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = streamAgg_.toBuilder(); } streamAgg_ = input.readMessage(com.pingcap.tidb.tipb.Aggregation.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(streamAgg_); streamAgg_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Executor_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Executor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pingcap.tidb.tipb.Executor.class, com.pingcap.tidb.tipb.Executor.Builder.class); } private int bitField0_; public static final int TP_FIELD_NUMBER = 1; private int tp_; /** * optional .tipb.ExecType tp = 1; */ public boolean hasTp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .tipb.ExecType tp = 1; */ public com.pingcap.tidb.tipb.ExecType getTp() { com.pingcap.tidb.tipb.ExecType result = com.pingcap.tidb.tipb.ExecType.valueOf(tp_); return result == null ? com.pingcap.tidb.tipb.ExecType.TypeTableScan : result; } public static final int TBL_SCAN_FIELD_NUMBER = 2; private com.pingcap.tidb.tipb.TableScan tblScan_; /** * optional .tipb.TableScan tbl_scan = 2; */ public boolean hasTblScan() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tipb.TableScan tbl_scan = 2; */ public com.pingcap.tidb.tipb.TableScan getTblScan() { return tblScan_ == null ? com.pingcap.tidb.tipb.TableScan.getDefaultInstance() : tblScan_; } /** * optional .tipb.TableScan tbl_scan = 2; */ public com.pingcap.tidb.tipb.TableScanOrBuilder getTblScanOrBuilder() { return tblScan_ == null ? com.pingcap.tidb.tipb.TableScan.getDefaultInstance() : tblScan_; } public static final int IDX_SCAN_FIELD_NUMBER = 3; private com.pingcap.tidb.tipb.IndexScan idxScan_; /** * optional .tipb.IndexScan idx_scan = 3; */ public boolean hasIdxScan() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .tipb.IndexScan idx_scan = 3; */ public com.pingcap.tidb.tipb.IndexScan getIdxScan() { return idxScan_ == null ? com.pingcap.tidb.tipb.IndexScan.getDefaultInstance() : idxScan_; } /** * optional .tipb.IndexScan idx_scan = 3; */ public com.pingcap.tidb.tipb.IndexScanOrBuilder getIdxScanOrBuilder() { return idxScan_ == null ? com.pingcap.tidb.tipb.IndexScan.getDefaultInstance() : idxScan_; } public static final int SELECTION_FIELD_NUMBER = 4; private com.pingcap.tidb.tipb.Selection selection_; /** * optional .tipb.Selection selection = 4; */ public boolean hasSelection() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .tipb.Selection selection = 4; */ public com.pingcap.tidb.tipb.Selection getSelection() { return selection_ == null ? com.pingcap.tidb.tipb.Selection.getDefaultInstance() : selection_; } /** * optional .tipb.Selection selection = 4; */ public com.pingcap.tidb.tipb.SelectionOrBuilder getSelectionOrBuilder() { return selection_ == null ? com.pingcap.tidb.tipb.Selection.getDefaultInstance() : selection_; } public static final int AGGREGATION_FIELD_NUMBER = 5; private com.pingcap.tidb.tipb.Aggregation aggregation_; /** * optional .tipb.Aggregation aggregation = 5; */ public boolean hasAggregation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .tipb.Aggregation aggregation = 5; */ public com.pingcap.tidb.tipb.Aggregation getAggregation() { return aggregation_ == null ? com.pingcap.tidb.tipb.Aggregation.getDefaultInstance() : aggregation_; } /** * optional .tipb.Aggregation aggregation = 5; */ public com.pingcap.tidb.tipb.AggregationOrBuilder getAggregationOrBuilder() { return aggregation_ == null ? com.pingcap.tidb.tipb.Aggregation.getDefaultInstance() : aggregation_; } public static final int TOPN_FIELD_NUMBER = 6; private com.pingcap.tidb.tipb.TopN topN_; /** * optional .tipb.TopN topN = 6; */ public boolean hasTopN() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .tipb.TopN topN = 6; */ public com.pingcap.tidb.tipb.TopN getTopN() { return topN_ == null ? com.pingcap.tidb.tipb.TopN.getDefaultInstance() : topN_; } /** * optional .tipb.TopN topN = 6; */ public com.pingcap.tidb.tipb.TopNOrBuilder getTopNOrBuilder() { return topN_ == null ? com.pingcap.tidb.tipb.TopN.getDefaultInstance() : topN_; } public static final int LIMIT_FIELD_NUMBER = 7; private com.pingcap.tidb.tipb.Limit limit_; /** * optional .tipb.Limit limit = 7; */ public boolean hasLimit() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .tipb.Limit limit = 7; */ public com.pingcap.tidb.tipb.Limit getLimit() { return limit_ == null ? com.pingcap.tidb.tipb.Limit.getDefaultInstance() : limit_; } /** * optional .tipb.Limit limit = 7; */ public com.pingcap.tidb.tipb.LimitOrBuilder getLimitOrBuilder() { return limit_ == null ? com.pingcap.tidb.tipb.Limit.getDefaultInstance() : limit_; } public static final int STREAM_AGG_FIELD_NUMBER = 8; private com.pingcap.tidb.tipb.Aggregation streamAgg_; /** * optional .tipb.Aggregation stream_agg = 8; */ public boolean hasStreamAgg() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .tipb.Aggregation stream_agg = 8; */ public com.pingcap.tidb.tipb.Aggregation getStreamAgg() { return streamAgg_ == null ? com.pingcap.tidb.tipb.Aggregation.getDefaultInstance() : streamAgg_; } /** * optional .tipb.Aggregation stream_agg = 8; */ public com.pingcap.tidb.tipb.AggregationOrBuilder getStreamAggOrBuilder() { return streamAgg_ == null ? com.pingcap.tidb.tipb.Aggregation.getDefaultInstance() : streamAgg_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, tp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getTblScan()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getIdxScan()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getSelection()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getAggregation()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, getTopN()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, getLimit()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, getStreamAgg()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, tp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTblScan()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getIdxScan()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSelection()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAggregation()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTopN()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getLimit()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getStreamAgg()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.pingcap.tidb.tipb.Executor)) { return super.equals(obj); } com.pingcap.tidb.tipb.Executor other = (com.pingcap.tidb.tipb.Executor) obj; boolean result = true; result = result && (hasTp() == other.hasTp()); if (hasTp()) { result = result && tp_ == other.tp_; } result = result && (hasTblScan() == other.hasTblScan()); if (hasTblScan()) { result = result && getTblScan() .equals(other.getTblScan()); } result = result && (hasIdxScan() == other.hasIdxScan()); if (hasIdxScan()) { result = result && getIdxScan() .equals(other.getIdxScan()); } result = result && (hasSelection() == other.hasSelection()); if (hasSelection()) { result = result && getSelection() .equals(other.getSelection()); } result = result && (hasAggregation() == other.hasAggregation()); if (hasAggregation()) { result = result && getAggregation() .equals(other.getAggregation()); } result = result && (hasTopN() == other.hasTopN()); if (hasTopN()) { result = result && getTopN() .equals(other.getTopN()); } result = result && (hasLimit() == other.hasLimit()); if (hasLimit()) { result = result && getLimit() .equals(other.getLimit()); } result = result && (hasStreamAgg() == other.hasStreamAgg()); if (hasStreamAgg()) { result = result && getStreamAgg() .equals(other.getStreamAgg()); } 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) + getDescriptorForType().hashCode(); if (hasTp()) { hash = (37 * hash) + TP_FIELD_NUMBER; hash = (53 * hash) + tp_; } if (hasTblScan()) { hash = (37 * hash) + TBL_SCAN_FIELD_NUMBER; hash = (53 * hash) + getTblScan().hashCode(); } if (hasIdxScan()) { hash = (37 * hash) + IDX_SCAN_FIELD_NUMBER; hash = (53 * hash) + getIdxScan().hashCode(); } if (hasSelection()) { hash = (37 * hash) + SELECTION_FIELD_NUMBER; hash = (53 * hash) + getSelection().hashCode(); } if (hasAggregation()) { hash = (37 * hash) + AGGREGATION_FIELD_NUMBER; hash = (53 * hash) + getAggregation().hashCode(); } if (hasTopN()) { hash = (37 * hash) + TOPN_FIELD_NUMBER; hash = (53 * hash) + getTopN().hashCode(); } if (hasLimit()) { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit().hashCode(); } if (hasStreamAgg()) { hash = (37 * hash) + STREAM_AGG_FIELD_NUMBER; hash = (53 * hash) + getStreamAgg().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.pingcap.tidb.tipb.Executor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.Executor 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.Executor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.Executor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.Executor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.Executor 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.Executor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.Executor 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.Executor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.Executor 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.Executor 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; } /** *
   * It represents a Executor.
   * 
* * Protobuf type {@code tipb.Executor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tipb.Executor) com.pingcap.tidb.tipb.ExecutorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Executor_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Executor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pingcap.tidb.tipb.Executor.class, com.pingcap.tidb.tipb.Executor.Builder.class); } // Construct using com.pingcap.tidb.tipb.Executor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTblScanFieldBuilder(); getIdxScanFieldBuilder(); getSelectionFieldBuilder(); getAggregationFieldBuilder(); getTopNFieldBuilder(); getLimitFieldBuilder(); getStreamAggFieldBuilder(); } } public Builder clear() { super.clear(); tp_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (tblScanBuilder_ == null) { tblScan_ = null; } else { tblScanBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (idxScanBuilder_ == null) { idxScan_ = null; } else { idxScanBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (selectionBuilder_ == null) { selection_ = null; } else { selectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (aggregationBuilder_ == null) { aggregation_ = null; } else { aggregationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (topNBuilder_ == null) { topN_ = null; } else { topNBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (limitBuilder_ == null) { limit_ = null; } else { limitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (streamAggBuilder_ == null) { streamAgg_ = null; } else { streamAggBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Executor_descriptor; } public com.pingcap.tidb.tipb.Executor getDefaultInstanceForType() { return com.pingcap.tidb.tipb.Executor.getDefaultInstance(); } public com.pingcap.tidb.tipb.Executor build() { com.pingcap.tidb.tipb.Executor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.pingcap.tidb.tipb.Executor buildPartial() { com.pingcap.tidb.tipb.Executor result = new com.pingcap.tidb.tipb.Executor(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.tp_ = tp_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (tblScanBuilder_ == null) { result.tblScan_ = tblScan_; } else { result.tblScan_ = tblScanBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (idxScanBuilder_ == null) { result.idxScan_ = idxScan_; } else { result.idxScan_ = idxScanBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (selectionBuilder_ == null) { result.selection_ = selection_; } else { result.selection_ = selectionBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (aggregationBuilder_ == null) { result.aggregation_ = aggregation_; } else { result.aggregation_ = aggregationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (topNBuilder_ == null) { result.topN_ = topN_; } else { result.topN_ = topNBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (limitBuilder_ == null) { result.limit_ = limit_; } else { result.limit_ = limitBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (streamAggBuilder_ == null) { result.streamAgg_ = streamAgg_; } else { result.streamAgg_ = streamAggBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.pingcap.tidb.tipb.Executor) { return mergeFrom((com.pingcap.tidb.tipb.Executor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.pingcap.tidb.tipb.Executor other) { if (other == com.pingcap.tidb.tipb.Executor.getDefaultInstance()) return this; if (other.hasTp()) { setTp(other.getTp()); } if (other.hasTblScan()) { mergeTblScan(other.getTblScan()); } if (other.hasIdxScan()) { mergeIdxScan(other.getIdxScan()); } if (other.hasSelection()) { mergeSelection(other.getSelection()); } if (other.hasAggregation()) { mergeAggregation(other.getAggregation()); } if (other.hasTopN()) { mergeTopN(other.getTopN()); } if (other.hasLimit()) { mergeLimit(other.getLimit()); } if (other.hasStreamAgg()) { mergeStreamAgg(other.getStreamAgg()); } 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.Executor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.pingcap.tidb.tipb.Executor) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int tp_ = 0; /** * optional .tipb.ExecType tp = 1; */ public boolean hasTp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .tipb.ExecType tp = 1; */ public com.pingcap.tidb.tipb.ExecType getTp() { com.pingcap.tidb.tipb.ExecType result = com.pingcap.tidb.tipb.ExecType.valueOf(tp_); return result == null ? com.pingcap.tidb.tipb.ExecType.TypeTableScan : result; } /** * optional .tipb.ExecType tp = 1; */ public Builder setTp(com.pingcap.tidb.tipb.ExecType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; tp_ = value.getNumber(); onChanged(); return this; } /** * optional .tipb.ExecType tp = 1; */ public Builder clearTp() { bitField0_ = (bitField0_ & ~0x00000001); tp_ = 0; onChanged(); return this; } private com.pingcap.tidb.tipb.TableScan tblScan_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.TableScan, com.pingcap.tidb.tipb.TableScan.Builder, com.pingcap.tidb.tipb.TableScanOrBuilder> tblScanBuilder_; /** * optional .tipb.TableScan tbl_scan = 2; */ public boolean hasTblScan() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tipb.TableScan tbl_scan = 2; */ public com.pingcap.tidb.tipb.TableScan getTblScan() { if (tblScanBuilder_ == null) { return tblScan_ == null ? com.pingcap.tidb.tipb.TableScan.getDefaultInstance() : tblScan_; } else { return tblScanBuilder_.getMessage(); } } /** * optional .tipb.TableScan tbl_scan = 2; */ public Builder setTblScan(com.pingcap.tidb.tipb.TableScan value) { if (tblScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tblScan_ = value; onChanged(); } else { tblScanBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .tipb.TableScan tbl_scan = 2; */ public Builder setTblScan( com.pingcap.tidb.tipb.TableScan.Builder builderForValue) { if (tblScanBuilder_ == null) { tblScan_ = builderForValue.build(); onChanged(); } else { tblScanBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .tipb.TableScan tbl_scan = 2; */ public Builder mergeTblScan(com.pingcap.tidb.tipb.TableScan value) { if (tblScanBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && tblScan_ != null && tblScan_ != com.pingcap.tidb.tipb.TableScan.getDefaultInstance()) { tblScan_ = com.pingcap.tidb.tipb.TableScan.newBuilder(tblScan_).mergeFrom(value).buildPartial(); } else { tblScan_ = value; } onChanged(); } else { tblScanBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .tipb.TableScan tbl_scan = 2; */ public Builder clearTblScan() { if (tblScanBuilder_ == null) { tblScan_ = null; onChanged(); } else { tblScanBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .tipb.TableScan tbl_scan = 2; */ public com.pingcap.tidb.tipb.TableScan.Builder getTblScanBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTblScanFieldBuilder().getBuilder(); } /** * optional .tipb.TableScan tbl_scan = 2; */ public com.pingcap.tidb.tipb.TableScanOrBuilder getTblScanOrBuilder() { if (tblScanBuilder_ != null) { return tblScanBuilder_.getMessageOrBuilder(); } else { return tblScan_ == null ? com.pingcap.tidb.tipb.TableScan.getDefaultInstance() : tblScan_; } } /** * optional .tipb.TableScan tbl_scan = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.TableScan, com.pingcap.tidb.tipb.TableScan.Builder, com.pingcap.tidb.tipb.TableScanOrBuilder> getTblScanFieldBuilder() { if (tblScanBuilder_ == null) { tblScanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.TableScan, com.pingcap.tidb.tipb.TableScan.Builder, com.pingcap.tidb.tipb.TableScanOrBuilder>( getTblScan(), getParentForChildren(), isClean()); tblScan_ = null; } return tblScanBuilder_; } private com.pingcap.tidb.tipb.IndexScan idxScan_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.IndexScan, com.pingcap.tidb.tipb.IndexScan.Builder, com.pingcap.tidb.tipb.IndexScanOrBuilder> idxScanBuilder_; /** * optional .tipb.IndexScan idx_scan = 3; */ public boolean hasIdxScan() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .tipb.IndexScan idx_scan = 3; */ public com.pingcap.tidb.tipb.IndexScan getIdxScan() { if (idxScanBuilder_ == null) { return idxScan_ == null ? com.pingcap.tidb.tipb.IndexScan.getDefaultInstance() : idxScan_; } else { return idxScanBuilder_.getMessage(); } } /** * optional .tipb.IndexScan idx_scan = 3; */ public Builder setIdxScan(com.pingcap.tidb.tipb.IndexScan value) { if (idxScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } idxScan_ = value; onChanged(); } else { idxScanBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .tipb.IndexScan idx_scan = 3; */ public Builder setIdxScan( com.pingcap.tidb.tipb.IndexScan.Builder builderForValue) { if (idxScanBuilder_ == null) { idxScan_ = builderForValue.build(); onChanged(); } else { idxScanBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .tipb.IndexScan idx_scan = 3; */ public Builder mergeIdxScan(com.pingcap.tidb.tipb.IndexScan value) { if (idxScanBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && idxScan_ != null && idxScan_ != com.pingcap.tidb.tipb.IndexScan.getDefaultInstance()) { idxScan_ = com.pingcap.tidb.tipb.IndexScan.newBuilder(idxScan_).mergeFrom(value).buildPartial(); } else { idxScan_ = value; } onChanged(); } else { idxScanBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .tipb.IndexScan idx_scan = 3; */ public Builder clearIdxScan() { if (idxScanBuilder_ == null) { idxScan_ = null; onChanged(); } else { idxScanBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .tipb.IndexScan idx_scan = 3; */ public com.pingcap.tidb.tipb.IndexScan.Builder getIdxScanBuilder() { bitField0_ |= 0x00000004; onChanged(); return getIdxScanFieldBuilder().getBuilder(); } /** * optional .tipb.IndexScan idx_scan = 3; */ public com.pingcap.tidb.tipb.IndexScanOrBuilder getIdxScanOrBuilder() { if (idxScanBuilder_ != null) { return idxScanBuilder_.getMessageOrBuilder(); } else { return idxScan_ == null ? com.pingcap.tidb.tipb.IndexScan.getDefaultInstance() : idxScan_; } } /** * optional .tipb.IndexScan idx_scan = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.IndexScan, com.pingcap.tidb.tipb.IndexScan.Builder, com.pingcap.tidb.tipb.IndexScanOrBuilder> getIdxScanFieldBuilder() { if (idxScanBuilder_ == null) { idxScanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.IndexScan, com.pingcap.tidb.tipb.IndexScan.Builder, com.pingcap.tidb.tipb.IndexScanOrBuilder>( getIdxScan(), getParentForChildren(), isClean()); idxScan_ = null; } return idxScanBuilder_; } private com.pingcap.tidb.tipb.Selection selection_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Selection, com.pingcap.tidb.tipb.Selection.Builder, com.pingcap.tidb.tipb.SelectionOrBuilder> selectionBuilder_; /** * optional .tipb.Selection selection = 4; */ public boolean hasSelection() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .tipb.Selection selection = 4; */ public com.pingcap.tidb.tipb.Selection getSelection() { if (selectionBuilder_ == null) { return selection_ == null ? com.pingcap.tidb.tipb.Selection.getDefaultInstance() : selection_; } else { return selectionBuilder_.getMessage(); } } /** * optional .tipb.Selection selection = 4; */ public Builder setSelection(com.pingcap.tidb.tipb.Selection value) { if (selectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } selection_ = value; onChanged(); } else { selectionBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .tipb.Selection selection = 4; */ public Builder setSelection( com.pingcap.tidb.tipb.Selection.Builder builderForValue) { if (selectionBuilder_ == null) { selection_ = builderForValue.build(); onChanged(); } else { selectionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .tipb.Selection selection = 4; */ public Builder mergeSelection(com.pingcap.tidb.tipb.Selection value) { if (selectionBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && selection_ != null && selection_ != com.pingcap.tidb.tipb.Selection.getDefaultInstance()) { selection_ = com.pingcap.tidb.tipb.Selection.newBuilder(selection_).mergeFrom(value).buildPartial(); } else { selection_ = value; } onChanged(); } else { selectionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .tipb.Selection selection = 4; */ public Builder clearSelection() { if (selectionBuilder_ == null) { selection_ = null; onChanged(); } else { selectionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .tipb.Selection selection = 4; */ public com.pingcap.tidb.tipb.Selection.Builder getSelectionBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSelectionFieldBuilder().getBuilder(); } /** * optional .tipb.Selection selection = 4; */ public com.pingcap.tidb.tipb.SelectionOrBuilder getSelectionOrBuilder() { if (selectionBuilder_ != null) { return selectionBuilder_.getMessageOrBuilder(); } else { return selection_ == null ? com.pingcap.tidb.tipb.Selection.getDefaultInstance() : selection_; } } /** * optional .tipb.Selection selection = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Selection, com.pingcap.tidb.tipb.Selection.Builder, com.pingcap.tidb.tipb.SelectionOrBuilder> getSelectionFieldBuilder() { if (selectionBuilder_ == null) { selectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Selection, com.pingcap.tidb.tipb.Selection.Builder, com.pingcap.tidb.tipb.SelectionOrBuilder>( getSelection(), getParentForChildren(), isClean()); selection_ = null; } return selectionBuilder_; } private com.pingcap.tidb.tipb.Aggregation aggregation_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Aggregation, com.pingcap.tidb.tipb.Aggregation.Builder, com.pingcap.tidb.tipb.AggregationOrBuilder> aggregationBuilder_; /** * optional .tipb.Aggregation aggregation = 5; */ public boolean hasAggregation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .tipb.Aggregation aggregation = 5; */ public com.pingcap.tidb.tipb.Aggregation getAggregation() { if (aggregationBuilder_ == null) { return aggregation_ == null ? com.pingcap.tidb.tipb.Aggregation.getDefaultInstance() : aggregation_; } else { return aggregationBuilder_.getMessage(); } } /** * optional .tipb.Aggregation aggregation = 5; */ public Builder setAggregation(com.pingcap.tidb.tipb.Aggregation value) { if (aggregationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } aggregation_ = value; onChanged(); } else { aggregationBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .tipb.Aggregation aggregation = 5; */ public Builder setAggregation( com.pingcap.tidb.tipb.Aggregation.Builder builderForValue) { if (aggregationBuilder_ == null) { aggregation_ = builderForValue.build(); onChanged(); } else { aggregationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .tipb.Aggregation aggregation = 5; */ public Builder mergeAggregation(com.pingcap.tidb.tipb.Aggregation value) { if (aggregationBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && aggregation_ != null && aggregation_ != com.pingcap.tidb.tipb.Aggregation.getDefaultInstance()) { aggregation_ = com.pingcap.tidb.tipb.Aggregation.newBuilder(aggregation_).mergeFrom(value).buildPartial(); } else { aggregation_ = value; } onChanged(); } else { aggregationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .tipb.Aggregation aggregation = 5; */ public Builder clearAggregation() { if (aggregationBuilder_ == null) { aggregation_ = null; onChanged(); } else { aggregationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .tipb.Aggregation aggregation = 5; */ public com.pingcap.tidb.tipb.Aggregation.Builder getAggregationBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAggregationFieldBuilder().getBuilder(); } /** * optional .tipb.Aggregation aggregation = 5; */ public com.pingcap.tidb.tipb.AggregationOrBuilder getAggregationOrBuilder() { if (aggregationBuilder_ != null) { return aggregationBuilder_.getMessageOrBuilder(); } else { return aggregation_ == null ? com.pingcap.tidb.tipb.Aggregation.getDefaultInstance() : aggregation_; } } /** * optional .tipb.Aggregation aggregation = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Aggregation, com.pingcap.tidb.tipb.Aggregation.Builder, com.pingcap.tidb.tipb.AggregationOrBuilder> getAggregationFieldBuilder() { if (aggregationBuilder_ == null) { aggregationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Aggregation, com.pingcap.tidb.tipb.Aggregation.Builder, com.pingcap.tidb.tipb.AggregationOrBuilder>( getAggregation(), getParentForChildren(), isClean()); aggregation_ = null; } return aggregationBuilder_; } private com.pingcap.tidb.tipb.TopN topN_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.TopN, com.pingcap.tidb.tipb.TopN.Builder, com.pingcap.tidb.tipb.TopNOrBuilder> topNBuilder_; /** * optional .tipb.TopN topN = 6; */ public boolean hasTopN() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .tipb.TopN topN = 6; */ public com.pingcap.tidb.tipb.TopN getTopN() { if (topNBuilder_ == null) { return topN_ == null ? com.pingcap.tidb.tipb.TopN.getDefaultInstance() : topN_; } else { return topNBuilder_.getMessage(); } } /** * optional .tipb.TopN topN = 6; */ public Builder setTopN(com.pingcap.tidb.tipb.TopN value) { if (topNBuilder_ == null) { if (value == null) { throw new NullPointerException(); } topN_ = value; onChanged(); } else { topNBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .tipb.TopN topN = 6; */ public Builder setTopN( com.pingcap.tidb.tipb.TopN.Builder builderForValue) { if (topNBuilder_ == null) { topN_ = builderForValue.build(); onChanged(); } else { topNBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .tipb.TopN topN = 6; */ public Builder mergeTopN(com.pingcap.tidb.tipb.TopN value) { if (topNBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && topN_ != null && topN_ != com.pingcap.tidb.tipb.TopN.getDefaultInstance()) { topN_ = com.pingcap.tidb.tipb.TopN.newBuilder(topN_).mergeFrom(value).buildPartial(); } else { topN_ = value; } onChanged(); } else { topNBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .tipb.TopN topN = 6; */ public Builder clearTopN() { if (topNBuilder_ == null) { topN_ = null; onChanged(); } else { topNBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .tipb.TopN topN = 6; */ public com.pingcap.tidb.tipb.TopN.Builder getTopNBuilder() { bitField0_ |= 0x00000020; onChanged(); return getTopNFieldBuilder().getBuilder(); } /** * optional .tipb.TopN topN = 6; */ public com.pingcap.tidb.tipb.TopNOrBuilder getTopNOrBuilder() { if (topNBuilder_ != null) { return topNBuilder_.getMessageOrBuilder(); } else { return topN_ == null ? com.pingcap.tidb.tipb.TopN.getDefaultInstance() : topN_; } } /** * optional .tipb.TopN topN = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.TopN, com.pingcap.tidb.tipb.TopN.Builder, com.pingcap.tidb.tipb.TopNOrBuilder> getTopNFieldBuilder() { if (topNBuilder_ == null) { topNBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.TopN, com.pingcap.tidb.tipb.TopN.Builder, com.pingcap.tidb.tipb.TopNOrBuilder>( getTopN(), getParentForChildren(), isClean()); topN_ = null; } return topNBuilder_; } private com.pingcap.tidb.tipb.Limit limit_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Limit, com.pingcap.tidb.tipb.Limit.Builder, com.pingcap.tidb.tipb.LimitOrBuilder> limitBuilder_; /** * optional .tipb.Limit limit = 7; */ public boolean hasLimit() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .tipb.Limit limit = 7; */ public com.pingcap.tidb.tipb.Limit getLimit() { if (limitBuilder_ == null) { return limit_ == null ? com.pingcap.tidb.tipb.Limit.getDefaultInstance() : limit_; } else { return limitBuilder_.getMessage(); } } /** * optional .tipb.Limit limit = 7; */ public Builder setLimit(com.pingcap.tidb.tipb.Limit value) { if (limitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } limit_ = value; onChanged(); } else { limitBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * optional .tipb.Limit limit = 7; */ public Builder setLimit( com.pingcap.tidb.tipb.Limit.Builder builderForValue) { if (limitBuilder_ == null) { limit_ = builderForValue.build(); onChanged(); } else { limitBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * optional .tipb.Limit limit = 7; */ public Builder mergeLimit(com.pingcap.tidb.tipb.Limit value) { if (limitBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && limit_ != null && limit_ != com.pingcap.tidb.tipb.Limit.getDefaultInstance()) { limit_ = com.pingcap.tidb.tipb.Limit.newBuilder(limit_).mergeFrom(value).buildPartial(); } else { limit_ = value; } onChanged(); } else { limitBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * optional .tipb.Limit limit = 7; */ public Builder clearLimit() { if (limitBuilder_ == null) { limit_ = null; onChanged(); } else { limitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .tipb.Limit limit = 7; */ public com.pingcap.tidb.tipb.Limit.Builder getLimitBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLimitFieldBuilder().getBuilder(); } /** * optional .tipb.Limit limit = 7; */ public com.pingcap.tidb.tipb.LimitOrBuilder getLimitOrBuilder() { if (limitBuilder_ != null) { return limitBuilder_.getMessageOrBuilder(); } else { return limit_ == null ? com.pingcap.tidb.tipb.Limit.getDefaultInstance() : limit_; } } /** * optional .tipb.Limit limit = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Limit, com.pingcap.tidb.tipb.Limit.Builder, com.pingcap.tidb.tipb.LimitOrBuilder> getLimitFieldBuilder() { if (limitBuilder_ == null) { limitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Limit, com.pingcap.tidb.tipb.Limit.Builder, com.pingcap.tidb.tipb.LimitOrBuilder>( getLimit(), getParentForChildren(), isClean()); limit_ = null; } return limitBuilder_; } private com.pingcap.tidb.tipb.Aggregation streamAgg_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Aggregation, com.pingcap.tidb.tipb.Aggregation.Builder, com.pingcap.tidb.tipb.AggregationOrBuilder> streamAggBuilder_; /** * optional .tipb.Aggregation stream_agg = 8; */ public boolean hasStreamAgg() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .tipb.Aggregation stream_agg = 8; */ public com.pingcap.tidb.tipb.Aggregation getStreamAgg() { if (streamAggBuilder_ == null) { return streamAgg_ == null ? com.pingcap.tidb.tipb.Aggregation.getDefaultInstance() : streamAgg_; } else { return streamAggBuilder_.getMessage(); } } /** * optional .tipb.Aggregation stream_agg = 8; */ public Builder setStreamAgg(com.pingcap.tidb.tipb.Aggregation value) { if (streamAggBuilder_ == null) { if (value == null) { throw new NullPointerException(); } streamAgg_ = value; onChanged(); } else { streamAggBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * optional .tipb.Aggregation stream_agg = 8; */ public Builder setStreamAgg( com.pingcap.tidb.tipb.Aggregation.Builder builderForValue) { if (streamAggBuilder_ == null) { streamAgg_ = builderForValue.build(); onChanged(); } else { streamAggBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * optional .tipb.Aggregation stream_agg = 8; */ public Builder mergeStreamAgg(com.pingcap.tidb.tipb.Aggregation value) { if (streamAggBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && streamAgg_ != null && streamAgg_ != com.pingcap.tidb.tipb.Aggregation.getDefaultInstance()) { streamAgg_ = com.pingcap.tidb.tipb.Aggregation.newBuilder(streamAgg_).mergeFrom(value).buildPartial(); } else { streamAgg_ = value; } onChanged(); } else { streamAggBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * optional .tipb.Aggregation stream_agg = 8; */ public Builder clearStreamAgg() { if (streamAggBuilder_ == null) { streamAgg_ = null; onChanged(); } else { streamAggBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .tipb.Aggregation stream_agg = 8; */ public com.pingcap.tidb.tipb.Aggregation.Builder getStreamAggBuilder() { bitField0_ |= 0x00000080; onChanged(); return getStreamAggFieldBuilder().getBuilder(); } /** * optional .tipb.Aggregation stream_agg = 8; */ public com.pingcap.tidb.tipb.AggregationOrBuilder getStreamAggOrBuilder() { if (streamAggBuilder_ != null) { return streamAggBuilder_.getMessageOrBuilder(); } else { return streamAgg_ == null ? com.pingcap.tidb.tipb.Aggregation.getDefaultInstance() : streamAgg_; } } /** * optional .tipb.Aggregation stream_agg = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Aggregation, com.pingcap.tidb.tipb.Aggregation.Builder, com.pingcap.tidb.tipb.AggregationOrBuilder> getStreamAggFieldBuilder() { if (streamAggBuilder_ == null) { streamAggBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Aggregation, com.pingcap.tidb.tipb.Aggregation.Builder, com.pingcap.tidb.tipb.AggregationOrBuilder>( getStreamAgg(), getParentForChildren(), isClean()); streamAgg_ = null; } return streamAggBuilder_; } 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.Executor) } // @@protoc_insertion_point(class_scope:tipb.Executor) private static final com.pingcap.tidb.tipb.Executor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.Executor(); } public static com.pingcap.tidb.tipb.Executor getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Executor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Executor(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.Executor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy