com.pingcap.tidb.tipb.SelectResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: select.proto
package com.pingcap.tidb.tipb;
/**
*
* Response for SelectRequest.
*
*
* Protobuf type {@code tipb.SelectResponse}
*/
public final class SelectResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tipb.SelectResponse)
SelectResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SelectResponse.newBuilder() to construct.
private SelectResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SelectResponse() {
rows_ = java.util.Collections.emptyList();
chunks_ = java.util.Collections.emptyList();
warnings_ = java.util.Collections.emptyList();
outputCounts_ = java.util.Collections.emptyList();
warningCount_ = 0L;
executionSummaries_ = java.util.Collections.emptyList();
encodeType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SelectResponse(
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: {
com.pingcap.tidb.tipb.Error.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(com.pingcap.tidb.tipb.Error.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
rows_.add(
input.readMessage(com.pingcap.tidb.tipb.Row.PARSER, extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
chunks_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
chunks_.add(
input.readMessage(com.pingcap.tidb.tipb.Chunk.PARSER, extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
warnings_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
warnings_.add(
input.readMessage(com.pingcap.tidb.tipb.Error.PARSER, extensionRegistry));
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
outputCounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
outputCounts_.add(input.readInt64());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) {
outputCounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
outputCounts_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 48: {
bitField0_ |= 0x00000002;
warningCount_ = input.readInt64();
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
executionSummaries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
executionSummaries_.add(
input.readMessage(com.pingcap.tidb.tipb.ExecutorExecutionSummary.PARSER, extensionRegistry));
break;
}
case 72: {
int rawValue = input.readEnum();
com.pingcap.tidb.tipb.EncodeType value = com.pingcap.tidb.tipb.EncodeType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(9, rawValue);
} else {
bitField0_ |= 0x00000004;
encodeType_ = rawValue;
}
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_ & 0x00000002) == 0x00000002)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
chunks_ = java.util.Collections.unmodifiableList(chunks_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
warnings_ = java.util.Collections.unmodifiableList(warnings_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
outputCounts_ = java.util.Collections.unmodifiableList(outputCounts_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
executionSummaries_ = java.util.Collections.unmodifiableList(executionSummaries_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.Select.internal_static_tipb_SelectResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.Select.internal_static_tipb_SelectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.SelectResponse.class, com.pingcap.tidb.tipb.SelectResponse.Builder.class);
}
private int bitField0_;
public static final int ERROR_FIELD_NUMBER = 1;
private com.pingcap.tidb.tipb.Error error_;
/**
* optional .tipb.Error error = 1;
*/
public boolean hasError() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .tipb.Error error = 1;
*/
public com.pingcap.tidb.tipb.Error getError() {
return error_ == null ? com.pingcap.tidb.tipb.Error.getDefaultInstance() : error_;
}
/**
* optional .tipb.Error error = 1;
*/
public com.pingcap.tidb.tipb.ErrorOrBuilder getErrorOrBuilder() {
return error_ == null ? com.pingcap.tidb.tipb.Error.getDefaultInstance() : error_;
}
public static final int ROWS_FIELD_NUMBER = 2;
private java.util.List rows_;
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public java.util.List getRowsList() {
return rows_;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public java.util.List extends com.pingcap.tidb.tipb.RowOrBuilder>
getRowsOrBuilderList() {
return rows_;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public int getRowsCount() {
return rows_.size();
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public com.pingcap.tidb.tipb.Row getRows(int index) {
return rows_.get(index);
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public com.pingcap.tidb.tipb.RowOrBuilder getRowsOrBuilder(
int index) {
return rows_.get(index);
}
public static final int CHUNKS_FIELD_NUMBER = 3;
private java.util.List chunks_;
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List getChunksList() {
return chunks_;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List extends com.pingcap.tidb.tipb.ChunkOrBuilder>
getChunksOrBuilderList() {
return chunks_;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public int getChunksCount() {
return chunks_.size();
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.Chunk getChunks(int index) {
return chunks_.get(index);
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.ChunkOrBuilder getChunksOrBuilder(
int index) {
return chunks_.get(index);
}
public static final int WARNINGS_FIELD_NUMBER = 4;
private java.util.List warnings_;
/**
* repeated .tipb.Error warnings = 4;
*/
public java.util.List getWarningsList() {
return warnings_;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public java.util.List extends com.pingcap.tidb.tipb.ErrorOrBuilder>
getWarningsOrBuilderList() {
return warnings_;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public int getWarningsCount() {
return warnings_.size();
}
/**
* repeated .tipb.Error warnings = 4;
*/
public com.pingcap.tidb.tipb.Error getWarnings(int index) {
return warnings_.get(index);
}
/**
* repeated .tipb.Error warnings = 4;
*/
public com.pingcap.tidb.tipb.ErrorOrBuilder getWarningsOrBuilder(
int index) {
return warnings_.get(index);
}
public static final int OUTPUT_COUNTS_FIELD_NUMBER = 5;
private java.util.List outputCounts_;
/**
* repeated int64 output_counts = 5;
*/
public java.util.List
getOutputCountsList() {
return outputCounts_;
}
/**
* repeated int64 output_counts = 5;
*/
public int getOutputCountsCount() {
return outputCounts_.size();
}
/**
* repeated int64 output_counts = 5;
*/
public long getOutputCounts(int index) {
return outputCounts_.get(index);
}
public static final int WARNING_COUNT_FIELD_NUMBER = 6;
private long warningCount_;
/**
* optional int64 warning_count = 6;
*/
public boolean hasWarningCount() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 warning_count = 6;
*/
public long getWarningCount() {
return warningCount_;
}
public static final int EXECUTION_SUMMARIES_FIELD_NUMBER = 8;
private java.util.List executionSummaries_;
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public java.util.List getExecutionSummariesList() {
return executionSummaries_;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public java.util.List extends com.pingcap.tidb.tipb.ExecutorExecutionSummaryOrBuilder>
getExecutionSummariesOrBuilderList() {
return executionSummaries_;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public int getExecutionSummariesCount() {
return executionSummaries_.size();
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public com.pingcap.tidb.tipb.ExecutorExecutionSummary getExecutionSummaries(int index) {
return executionSummaries_.get(index);
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public com.pingcap.tidb.tipb.ExecutorExecutionSummaryOrBuilder getExecutionSummariesOrBuilder(
int index) {
return executionSummaries_.get(index);
}
public static final int ENCODE_TYPE_FIELD_NUMBER = 9;
private int encodeType_;
/**
*
* It indicates the encode type of response.
*
*
* optional .tipb.EncodeType encode_type = 9 [(.gogoproto.nullable) = false];
*/
public boolean hasEncodeType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* It indicates the encode type of response.
*
*
* optional .tipb.EncodeType encode_type = 9 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.EncodeType getEncodeType() {
com.pingcap.tidb.tipb.EncodeType result = com.pingcap.tidb.tipb.EncodeType.valueOf(encodeType_);
return result == null ? com.pingcap.tidb.tipb.EncodeType.TypeDefault : result;
}
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.writeMessage(1, getError());
}
for (int i = 0; i < rows_.size(); i++) {
output.writeMessage(2, rows_.get(i));
}
for (int i = 0; i < chunks_.size(); i++) {
output.writeMessage(3, chunks_.get(i));
}
for (int i = 0; i < warnings_.size(); i++) {
output.writeMessage(4, warnings_.get(i));
}
for (int i = 0; i < outputCounts_.size(); i++) {
output.writeInt64(5, outputCounts_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(6, warningCount_);
}
for (int i = 0; i < executionSummaries_.size(); i++) {
output.writeMessage(8, executionSummaries_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeEnum(9, encodeType_);
}
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
.computeMessageSize(1, getError());
}
for (int i = 0; i < rows_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, rows_.get(i));
}
for (int i = 0; i < chunks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, chunks_.get(i));
}
for (int i = 0; i < warnings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, warnings_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < outputCounts_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(outputCounts_.get(i));
}
size += dataSize;
size += 1 * getOutputCountsList().size();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, warningCount_);
}
for (int i = 0; i < executionSummaries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, executionSummaries_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, encodeType_);
}
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.SelectResponse)) {
return super.equals(obj);
}
com.pingcap.tidb.tipb.SelectResponse other = (com.pingcap.tidb.tipb.SelectResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && getRowsList()
.equals(other.getRowsList());
result = result && getChunksList()
.equals(other.getChunksList());
result = result && getWarningsList()
.equals(other.getWarningsList());
result = result && getOutputCountsList()
.equals(other.getOutputCountsList());
result = result && (hasWarningCount() == other.hasWarningCount());
if (hasWarningCount()) {
result = result && (getWarningCount()
== other.getWarningCount());
}
result = result && getExecutionSummariesList()
.equals(other.getExecutionSummariesList());
result = result && (hasEncodeType() == other.hasEncodeType());
if (hasEncodeType()) {
result = result && encodeType_ == other.encodeType_;
}
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 (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
if (getRowsCount() > 0) {
hash = (37 * hash) + ROWS_FIELD_NUMBER;
hash = (53 * hash) + getRowsList().hashCode();
}
if (getChunksCount() > 0) {
hash = (37 * hash) + CHUNKS_FIELD_NUMBER;
hash = (53 * hash) + getChunksList().hashCode();
}
if (getWarningsCount() > 0) {
hash = (37 * hash) + WARNINGS_FIELD_NUMBER;
hash = (53 * hash) + getWarningsList().hashCode();
}
if (getOutputCountsCount() > 0) {
hash = (37 * hash) + OUTPUT_COUNTS_FIELD_NUMBER;
hash = (53 * hash) + getOutputCountsList().hashCode();
}
if (hasWarningCount()) {
hash = (37 * hash) + WARNING_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getWarningCount());
}
if (getExecutionSummariesCount() > 0) {
hash = (37 * hash) + EXECUTION_SUMMARIES_FIELD_NUMBER;
hash = (53 * hash) + getExecutionSummariesList().hashCode();
}
if (hasEncodeType()) {
hash = (37 * hash) + ENCODE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + encodeType_;
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.pingcap.tidb.tipb.SelectResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.SelectResponse 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.SelectResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.SelectResponse 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.SelectResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.SelectResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.SelectResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.SelectResponse 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.SelectResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.SelectResponse 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.SelectResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.SelectResponse 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.SelectResponse 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;
}
/**
*
* Response for SelectRequest.
*
*
* Protobuf type {@code tipb.SelectResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tipb.SelectResponse)
com.pingcap.tidb.tipb.SelectResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.Select.internal_static_tipb_SelectResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.Select.internal_static_tipb_SelectResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.SelectResponse.class, com.pingcap.tidb.tipb.SelectResponse.Builder.class);
}
// Construct using com.pingcap.tidb.tipb.SelectResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getErrorFieldBuilder();
getRowsFieldBuilder();
getChunksFieldBuilder();
getWarningsFieldBuilder();
getExecutionSummariesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
rowsBuilder_.clear();
}
if (chunksBuilder_ == null) {
chunks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
chunksBuilder_.clear();
}
if (warningsBuilder_ == null) {
warnings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
warningsBuilder_.clear();
}
outputCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
warningCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
if (executionSummariesBuilder_ == null) {
executionSummaries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
executionSummariesBuilder_.clear();
}
encodeType_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.pingcap.tidb.tipb.Select.internal_static_tipb_SelectResponse_descriptor;
}
public com.pingcap.tidb.tipb.SelectResponse getDefaultInstanceForType() {
return com.pingcap.tidb.tipb.SelectResponse.getDefaultInstance();
}
public com.pingcap.tidb.tipb.SelectResponse build() {
com.pingcap.tidb.tipb.SelectResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.pingcap.tidb.tipb.SelectResponse buildPartial() {
com.pingcap.tidb.tipb.SelectResponse result = new com.pingcap.tidb.tipb.SelectResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (rowsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.rows_ = rows_;
} else {
result.rows_ = rowsBuilder_.build();
}
if (chunksBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
chunks_ = java.util.Collections.unmodifiableList(chunks_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.chunks_ = chunks_;
} else {
result.chunks_ = chunksBuilder_.build();
}
if (warningsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
warnings_ = java.util.Collections.unmodifiableList(warnings_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.warnings_ = warnings_;
} else {
result.warnings_ = warningsBuilder_.build();
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
outputCounts_ = java.util.Collections.unmodifiableList(outputCounts_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.outputCounts_ = outputCounts_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000002;
}
result.warningCount_ = warningCount_;
if (executionSummariesBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
executionSummaries_ = java.util.Collections.unmodifiableList(executionSummaries_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.executionSummaries_ = executionSummaries_;
} else {
result.executionSummaries_ = executionSummariesBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000004;
}
result.encodeType_ = encodeType_;
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.SelectResponse) {
return mergeFrom((com.pingcap.tidb.tipb.SelectResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.pingcap.tidb.tipb.SelectResponse other) {
if (other == com.pingcap.tidb.tipb.SelectResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (rowsBuilder_ == null) {
if (!other.rows_.isEmpty()) {
if (rows_.isEmpty()) {
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRowsIsMutable();
rows_.addAll(other.rows_);
}
onChanged();
}
} else {
if (!other.rows_.isEmpty()) {
if (rowsBuilder_.isEmpty()) {
rowsBuilder_.dispose();
rowsBuilder_ = null;
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000002);
rowsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRowsFieldBuilder() : null;
} else {
rowsBuilder_.addAllMessages(other.rows_);
}
}
}
if (chunksBuilder_ == null) {
if (!other.chunks_.isEmpty()) {
if (chunks_.isEmpty()) {
chunks_ = other.chunks_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureChunksIsMutable();
chunks_.addAll(other.chunks_);
}
onChanged();
}
} else {
if (!other.chunks_.isEmpty()) {
if (chunksBuilder_.isEmpty()) {
chunksBuilder_.dispose();
chunksBuilder_ = null;
chunks_ = other.chunks_;
bitField0_ = (bitField0_ & ~0x00000004);
chunksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getChunksFieldBuilder() : null;
} else {
chunksBuilder_.addAllMessages(other.chunks_);
}
}
}
if (warningsBuilder_ == null) {
if (!other.warnings_.isEmpty()) {
if (warnings_.isEmpty()) {
warnings_ = other.warnings_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureWarningsIsMutable();
warnings_.addAll(other.warnings_);
}
onChanged();
}
} else {
if (!other.warnings_.isEmpty()) {
if (warningsBuilder_.isEmpty()) {
warningsBuilder_.dispose();
warningsBuilder_ = null;
warnings_ = other.warnings_;
bitField0_ = (bitField0_ & ~0x00000008);
warningsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getWarningsFieldBuilder() : null;
} else {
warningsBuilder_.addAllMessages(other.warnings_);
}
}
}
if (!other.outputCounts_.isEmpty()) {
if (outputCounts_.isEmpty()) {
outputCounts_ = other.outputCounts_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureOutputCountsIsMutable();
outputCounts_.addAll(other.outputCounts_);
}
onChanged();
}
if (other.hasWarningCount()) {
setWarningCount(other.getWarningCount());
}
if (executionSummariesBuilder_ == null) {
if (!other.executionSummaries_.isEmpty()) {
if (executionSummaries_.isEmpty()) {
executionSummaries_ = other.executionSummaries_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureExecutionSummariesIsMutable();
executionSummaries_.addAll(other.executionSummaries_);
}
onChanged();
}
} else {
if (!other.executionSummaries_.isEmpty()) {
if (executionSummariesBuilder_.isEmpty()) {
executionSummariesBuilder_.dispose();
executionSummariesBuilder_ = null;
executionSummaries_ = other.executionSummaries_;
bitField0_ = (bitField0_ & ~0x00000040);
executionSummariesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExecutionSummariesFieldBuilder() : null;
} else {
executionSummariesBuilder_.addAllMessages(other.executionSummaries_);
}
}
}
if (other.hasEncodeType()) {
setEncodeType(other.getEncodeType());
}
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.SelectResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.pingcap.tidb.tipb.SelectResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.pingcap.tidb.tipb.Error error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Error, com.pingcap.tidb.tipb.Error.Builder, com.pingcap.tidb.tipb.ErrorOrBuilder> errorBuilder_;
/**
* optional .tipb.Error error = 1;
*/
public boolean hasError() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .tipb.Error error = 1;
*/
public com.pingcap.tidb.tipb.Error getError() {
if (errorBuilder_ == null) {
return error_ == null ? com.pingcap.tidb.tipb.Error.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* optional .tipb.Error error = 1;
*/
public Builder setError(com.pingcap.tidb.tipb.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .tipb.Error error = 1;
*/
public Builder setError(
com.pingcap.tidb.tipb.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .tipb.Error error = 1;
*/
public Builder mergeError(com.pingcap.tidb.tipb.Error value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
error_ != null &&
error_ != com.pingcap.tidb.tipb.Error.getDefaultInstance()) {
error_ =
com.pingcap.tidb.tipb.Error.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .tipb.Error error = 1;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .tipb.Error error = 1;
*/
public com.pingcap.tidb.tipb.Error.Builder getErrorBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* optional .tipb.Error error = 1;
*/
public com.pingcap.tidb.tipb.ErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
com.pingcap.tidb.tipb.Error.getDefaultInstance() : error_;
}
}
/**
* optional .tipb.Error error = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Error, com.pingcap.tidb.tipb.Error.Builder, com.pingcap.tidb.tipb.ErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Error, com.pingcap.tidb.tipb.Error.Builder, com.pingcap.tidb.tipb.ErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private java.util.List rows_ =
java.util.Collections.emptyList();
private void ensureRowsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
rows_ = new java.util.ArrayList(rows_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Row, com.pingcap.tidb.tipb.Row.Builder, com.pingcap.tidb.tipb.RowOrBuilder> rowsBuilder_;
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public java.util.List getRowsList() {
if (rowsBuilder_ == null) {
return java.util.Collections.unmodifiableList(rows_);
} else {
return rowsBuilder_.getMessageList();
}
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public int getRowsCount() {
if (rowsBuilder_ == null) {
return rows_.size();
} else {
return rowsBuilder_.getCount();
}
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public com.pingcap.tidb.tipb.Row getRows(int index) {
if (rowsBuilder_ == null) {
return rows_.get(index);
} else {
return rowsBuilder_.getMessage(index);
}
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public Builder setRows(
int index, com.pingcap.tidb.tipb.Row value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.set(index, value);
onChanged();
} else {
rowsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public Builder setRows(
int index, com.pingcap.tidb.tipb.Row.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.set(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public Builder addRows(com.pingcap.tidb.tipb.Row value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(value);
onChanged();
} else {
rowsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public Builder addRows(
int index, com.pingcap.tidb.tipb.Row value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(index, value);
onChanged();
} else {
rowsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public Builder addRows(
com.pingcap.tidb.tipb.Row.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public Builder addRows(
int index, com.pingcap.tidb.tipb.Row.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public Builder addAllRows(
java.lang.Iterable extends com.pingcap.tidb.tipb.Row> values) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rows_);
onChanged();
} else {
rowsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public Builder clearRows() {
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
rowsBuilder_.clear();
}
return this;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public Builder removeRows(int index) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.remove(index);
onChanged();
} else {
rowsBuilder_.remove(index);
}
return this;
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public com.pingcap.tidb.tipb.Row.Builder getRowsBuilder(
int index) {
return getRowsFieldBuilder().getBuilder(index);
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public com.pingcap.tidb.tipb.RowOrBuilder getRowsOrBuilder(
int index) {
if (rowsBuilder_ == null) {
return rows_.get(index); } else {
return rowsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public java.util.List extends com.pingcap.tidb.tipb.RowOrBuilder>
getRowsOrBuilderList() {
if (rowsBuilder_ != null) {
return rowsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rows_);
}
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public com.pingcap.tidb.tipb.Row.Builder addRowsBuilder() {
return getRowsFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.Row.getDefaultInstance());
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public com.pingcap.tidb.tipb.Row.Builder addRowsBuilder(
int index) {
return getRowsFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.Row.getDefaultInstance());
}
/**
*
* Result rows.
*
*
* repeated .tipb.Row rows = 2;
*/
public java.util.List
getRowsBuilderList() {
return getRowsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Row, com.pingcap.tidb.tipb.Row.Builder, com.pingcap.tidb.tipb.RowOrBuilder>
getRowsFieldBuilder() {
if (rowsBuilder_ == null) {
rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Row, com.pingcap.tidb.tipb.Row.Builder, com.pingcap.tidb.tipb.RowOrBuilder>(
rows_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
rows_ = null;
}
return rowsBuilder_;
}
private java.util.List chunks_ =
java.util.Collections.emptyList();
private void ensureChunksIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
chunks_ = new java.util.ArrayList(chunks_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Chunk, com.pingcap.tidb.tipb.Chunk.Builder, com.pingcap.tidb.tipb.ChunkOrBuilder> chunksBuilder_;
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List getChunksList() {
if (chunksBuilder_ == null) {
return java.util.Collections.unmodifiableList(chunks_);
} else {
return chunksBuilder_.getMessageList();
}
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public int getChunksCount() {
if (chunksBuilder_ == null) {
return chunks_.size();
} else {
return chunksBuilder_.getCount();
}
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.Chunk getChunks(int index) {
if (chunksBuilder_ == null) {
return chunks_.get(index);
} else {
return chunksBuilder_.getMessage(index);
}
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public Builder setChunks(
int index, com.pingcap.tidb.tipb.Chunk value) {
if (chunksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChunksIsMutable();
chunks_.set(index, value);
onChanged();
} else {
chunksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public Builder setChunks(
int index, com.pingcap.tidb.tipb.Chunk.Builder builderForValue) {
if (chunksBuilder_ == null) {
ensureChunksIsMutable();
chunks_.set(index, builderForValue.build());
onChanged();
} else {
chunksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public Builder addChunks(com.pingcap.tidb.tipb.Chunk value) {
if (chunksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChunksIsMutable();
chunks_.add(value);
onChanged();
} else {
chunksBuilder_.addMessage(value);
}
return this;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public Builder addChunks(
int index, com.pingcap.tidb.tipb.Chunk value) {
if (chunksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChunksIsMutable();
chunks_.add(index, value);
onChanged();
} else {
chunksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public Builder addChunks(
com.pingcap.tidb.tipb.Chunk.Builder builderForValue) {
if (chunksBuilder_ == null) {
ensureChunksIsMutable();
chunks_.add(builderForValue.build());
onChanged();
} else {
chunksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public Builder addChunks(
int index, com.pingcap.tidb.tipb.Chunk.Builder builderForValue) {
if (chunksBuilder_ == null) {
ensureChunksIsMutable();
chunks_.add(index, builderForValue.build());
onChanged();
} else {
chunksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public Builder addAllChunks(
java.lang.Iterable extends com.pingcap.tidb.tipb.Chunk> values) {
if (chunksBuilder_ == null) {
ensureChunksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, chunks_);
onChanged();
} else {
chunksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public Builder clearChunks() {
if (chunksBuilder_ == null) {
chunks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
chunksBuilder_.clear();
}
return this;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public Builder removeChunks(int index) {
if (chunksBuilder_ == null) {
ensureChunksIsMutable();
chunks_.remove(index);
onChanged();
} else {
chunksBuilder_.remove(index);
}
return this;
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.Chunk.Builder getChunksBuilder(
int index) {
return getChunksFieldBuilder().getBuilder(index);
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.ChunkOrBuilder getChunksOrBuilder(
int index) {
if (chunksBuilder_ == null) {
return chunks_.get(index); } else {
return chunksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List extends com.pingcap.tidb.tipb.ChunkOrBuilder>
getChunksOrBuilderList() {
if (chunksBuilder_ != null) {
return chunksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(chunks_);
}
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.Chunk.Builder addChunksBuilder() {
return getChunksFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.Chunk.getDefaultInstance());
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.Chunk.Builder addChunksBuilder(
int index) {
return getChunksFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.Chunk.getDefaultInstance());
}
/**
*
* Use multiple chunks to reduce memory allocation and
* avoid allocating large contiguous memory.
*
*
* repeated .tipb.Chunk chunks = 3 [(.gogoproto.nullable) = false];
*/
public java.util.List
getChunksBuilderList() {
return getChunksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Chunk, com.pingcap.tidb.tipb.Chunk.Builder, com.pingcap.tidb.tipb.ChunkOrBuilder>
getChunksFieldBuilder() {
if (chunksBuilder_ == null) {
chunksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Chunk, com.pingcap.tidb.tipb.Chunk.Builder, com.pingcap.tidb.tipb.ChunkOrBuilder>(
chunks_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
chunks_ = null;
}
return chunksBuilder_;
}
private java.util.List warnings_ =
java.util.Collections.emptyList();
private void ensureWarningsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
warnings_ = new java.util.ArrayList(warnings_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Error, com.pingcap.tidb.tipb.Error.Builder, com.pingcap.tidb.tipb.ErrorOrBuilder> warningsBuilder_;
/**
* repeated .tipb.Error warnings = 4;
*/
public java.util.List getWarningsList() {
if (warningsBuilder_ == null) {
return java.util.Collections.unmodifiableList(warnings_);
} else {
return warningsBuilder_.getMessageList();
}
}
/**
* repeated .tipb.Error warnings = 4;
*/
public int getWarningsCount() {
if (warningsBuilder_ == null) {
return warnings_.size();
} else {
return warningsBuilder_.getCount();
}
}
/**
* repeated .tipb.Error warnings = 4;
*/
public com.pingcap.tidb.tipb.Error getWarnings(int index) {
if (warningsBuilder_ == null) {
return warnings_.get(index);
} else {
return warningsBuilder_.getMessage(index);
}
}
/**
* repeated .tipb.Error warnings = 4;
*/
public Builder setWarnings(
int index, com.pingcap.tidb.tipb.Error value) {
if (warningsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWarningsIsMutable();
warnings_.set(index, value);
onChanged();
} else {
warningsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public Builder setWarnings(
int index, com.pingcap.tidb.tipb.Error.Builder builderForValue) {
if (warningsBuilder_ == null) {
ensureWarningsIsMutable();
warnings_.set(index, builderForValue.build());
onChanged();
} else {
warningsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public Builder addWarnings(com.pingcap.tidb.tipb.Error value) {
if (warningsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWarningsIsMutable();
warnings_.add(value);
onChanged();
} else {
warningsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public Builder addWarnings(
int index, com.pingcap.tidb.tipb.Error value) {
if (warningsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWarningsIsMutable();
warnings_.add(index, value);
onChanged();
} else {
warningsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public Builder addWarnings(
com.pingcap.tidb.tipb.Error.Builder builderForValue) {
if (warningsBuilder_ == null) {
ensureWarningsIsMutable();
warnings_.add(builderForValue.build());
onChanged();
} else {
warningsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public Builder addWarnings(
int index, com.pingcap.tidb.tipb.Error.Builder builderForValue) {
if (warningsBuilder_ == null) {
ensureWarningsIsMutable();
warnings_.add(index, builderForValue.build());
onChanged();
} else {
warningsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public Builder addAllWarnings(
java.lang.Iterable extends com.pingcap.tidb.tipb.Error> values) {
if (warningsBuilder_ == null) {
ensureWarningsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, warnings_);
onChanged();
} else {
warningsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public Builder clearWarnings() {
if (warningsBuilder_ == null) {
warnings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
warningsBuilder_.clear();
}
return this;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public Builder removeWarnings(int index) {
if (warningsBuilder_ == null) {
ensureWarningsIsMutable();
warnings_.remove(index);
onChanged();
} else {
warningsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tipb.Error warnings = 4;
*/
public com.pingcap.tidb.tipb.Error.Builder getWarningsBuilder(
int index) {
return getWarningsFieldBuilder().getBuilder(index);
}
/**
* repeated .tipb.Error warnings = 4;
*/
public com.pingcap.tidb.tipb.ErrorOrBuilder getWarningsOrBuilder(
int index) {
if (warningsBuilder_ == null) {
return warnings_.get(index); } else {
return warningsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tipb.Error warnings = 4;
*/
public java.util.List extends com.pingcap.tidb.tipb.ErrorOrBuilder>
getWarningsOrBuilderList() {
if (warningsBuilder_ != null) {
return warningsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(warnings_);
}
}
/**
* repeated .tipb.Error warnings = 4;
*/
public com.pingcap.tidb.tipb.Error.Builder addWarningsBuilder() {
return getWarningsFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.Error.getDefaultInstance());
}
/**
* repeated .tipb.Error warnings = 4;
*/
public com.pingcap.tidb.tipb.Error.Builder addWarningsBuilder(
int index) {
return getWarningsFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.Error.getDefaultInstance());
}
/**
* repeated .tipb.Error warnings = 4;
*/
public java.util.List
getWarningsBuilderList() {
return getWarningsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Error, com.pingcap.tidb.tipb.Error.Builder, com.pingcap.tidb.tipb.ErrorOrBuilder>
getWarningsFieldBuilder() {
if (warningsBuilder_ == null) {
warningsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Error, com.pingcap.tidb.tipb.Error.Builder, com.pingcap.tidb.tipb.ErrorOrBuilder>(
warnings_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
warnings_ = null;
}
return warningsBuilder_;
}
private java.util.List outputCounts_ = java.util.Collections.emptyList();
private void ensureOutputCountsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
outputCounts_ = new java.util.ArrayList(outputCounts_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated int64 output_counts = 5;
*/
public java.util.List
getOutputCountsList() {
return java.util.Collections.unmodifiableList(outputCounts_);
}
/**
* repeated int64 output_counts = 5;
*/
public int getOutputCountsCount() {
return outputCounts_.size();
}
/**
* repeated int64 output_counts = 5;
*/
public long getOutputCounts(int index) {
return outputCounts_.get(index);
}
/**
* repeated int64 output_counts = 5;
*/
public Builder setOutputCounts(
int index, long value) {
ensureOutputCountsIsMutable();
outputCounts_.set(index, value);
onChanged();
return this;
}
/**
* repeated int64 output_counts = 5;
*/
public Builder addOutputCounts(long value) {
ensureOutputCountsIsMutable();
outputCounts_.add(value);
onChanged();
return this;
}
/**
* repeated int64 output_counts = 5;
*/
public Builder addAllOutputCounts(
java.lang.Iterable extends java.lang.Long> values) {
ensureOutputCountsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, outputCounts_);
onChanged();
return this;
}
/**
* repeated int64 output_counts = 5;
*/
public Builder clearOutputCounts() {
outputCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private long warningCount_ ;
/**
* optional int64 warning_count = 6;
*/
public boolean hasWarningCount() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int64 warning_count = 6;
*/
public long getWarningCount() {
return warningCount_;
}
/**
* optional int64 warning_count = 6;
*/
public Builder setWarningCount(long value) {
bitField0_ |= 0x00000020;
warningCount_ = value;
onChanged();
return this;
}
/**
* optional int64 warning_count = 6;
*/
public Builder clearWarningCount() {
bitField0_ = (bitField0_ & ~0x00000020);
warningCount_ = 0L;
onChanged();
return this;
}
private java.util.List executionSummaries_ =
java.util.Collections.emptyList();
private void ensureExecutionSummariesIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
executionSummaries_ = new java.util.ArrayList(executionSummaries_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.ExecutorExecutionSummary, com.pingcap.tidb.tipb.ExecutorExecutionSummary.Builder, com.pingcap.tidb.tipb.ExecutorExecutionSummaryOrBuilder> executionSummariesBuilder_;
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public java.util.List getExecutionSummariesList() {
if (executionSummariesBuilder_ == null) {
return java.util.Collections.unmodifiableList(executionSummaries_);
} else {
return executionSummariesBuilder_.getMessageList();
}
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public int getExecutionSummariesCount() {
if (executionSummariesBuilder_ == null) {
return executionSummaries_.size();
} else {
return executionSummariesBuilder_.getCount();
}
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public com.pingcap.tidb.tipb.ExecutorExecutionSummary getExecutionSummaries(int index) {
if (executionSummariesBuilder_ == null) {
return executionSummaries_.get(index);
} else {
return executionSummariesBuilder_.getMessage(index);
}
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public Builder setExecutionSummaries(
int index, com.pingcap.tidb.tipb.ExecutorExecutionSummary value) {
if (executionSummariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExecutionSummariesIsMutable();
executionSummaries_.set(index, value);
onChanged();
} else {
executionSummariesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public Builder setExecutionSummaries(
int index, com.pingcap.tidb.tipb.ExecutorExecutionSummary.Builder builderForValue) {
if (executionSummariesBuilder_ == null) {
ensureExecutionSummariesIsMutable();
executionSummaries_.set(index, builderForValue.build());
onChanged();
} else {
executionSummariesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public Builder addExecutionSummaries(com.pingcap.tidb.tipb.ExecutorExecutionSummary value) {
if (executionSummariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExecutionSummariesIsMutable();
executionSummaries_.add(value);
onChanged();
} else {
executionSummariesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public Builder addExecutionSummaries(
int index, com.pingcap.tidb.tipb.ExecutorExecutionSummary value) {
if (executionSummariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExecutionSummariesIsMutable();
executionSummaries_.add(index, value);
onChanged();
} else {
executionSummariesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public Builder addExecutionSummaries(
com.pingcap.tidb.tipb.ExecutorExecutionSummary.Builder builderForValue) {
if (executionSummariesBuilder_ == null) {
ensureExecutionSummariesIsMutable();
executionSummaries_.add(builderForValue.build());
onChanged();
} else {
executionSummariesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public Builder addExecutionSummaries(
int index, com.pingcap.tidb.tipb.ExecutorExecutionSummary.Builder builderForValue) {
if (executionSummariesBuilder_ == null) {
ensureExecutionSummariesIsMutable();
executionSummaries_.add(index, builderForValue.build());
onChanged();
} else {
executionSummariesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public Builder addAllExecutionSummaries(
java.lang.Iterable extends com.pingcap.tidb.tipb.ExecutorExecutionSummary> values) {
if (executionSummariesBuilder_ == null) {
ensureExecutionSummariesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, executionSummaries_);
onChanged();
} else {
executionSummariesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public Builder clearExecutionSummaries() {
if (executionSummariesBuilder_ == null) {
executionSummaries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
executionSummariesBuilder_.clear();
}
return this;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public Builder removeExecutionSummaries(int index) {
if (executionSummariesBuilder_ == null) {
ensureExecutionSummariesIsMutable();
executionSummaries_.remove(index);
onChanged();
} else {
executionSummariesBuilder_.remove(index);
}
return this;
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public com.pingcap.tidb.tipb.ExecutorExecutionSummary.Builder getExecutionSummariesBuilder(
int index) {
return getExecutionSummariesFieldBuilder().getBuilder(index);
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public com.pingcap.tidb.tipb.ExecutorExecutionSummaryOrBuilder getExecutionSummariesOrBuilder(
int index) {
if (executionSummariesBuilder_ == null) {
return executionSummaries_.get(index); } else {
return executionSummariesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public java.util.List extends com.pingcap.tidb.tipb.ExecutorExecutionSummaryOrBuilder>
getExecutionSummariesOrBuilderList() {
if (executionSummariesBuilder_ != null) {
return executionSummariesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(executionSummaries_);
}
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public com.pingcap.tidb.tipb.ExecutorExecutionSummary.Builder addExecutionSummariesBuilder() {
return getExecutionSummariesFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.ExecutorExecutionSummary.getDefaultInstance());
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public com.pingcap.tidb.tipb.ExecutorExecutionSummary.Builder addExecutionSummariesBuilder(
int index) {
return getExecutionSummariesFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.ExecutorExecutionSummary.getDefaultInstance());
}
/**
*
* The execution summary of each executor, in the order in request.
*
*
* repeated .tipb.ExecutorExecutionSummary execution_summaries = 8;
*/
public java.util.List
getExecutionSummariesBuilderList() {
return getExecutionSummariesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.ExecutorExecutionSummary, com.pingcap.tidb.tipb.ExecutorExecutionSummary.Builder, com.pingcap.tidb.tipb.ExecutorExecutionSummaryOrBuilder>
getExecutionSummariesFieldBuilder() {
if (executionSummariesBuilder_ == null) {
executionSummariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.ExecutorExecutionSummary, com.pingcap.tidb.tipb.ExecutorExecutionSummary.Builder, com.pingcap.tidb.tipb.ExecutorExecutionSummaryOrBuilder>(
executionSummaries_,
((bitField0_ & 0x00000040) == 0x00000040),
getParentForChildren(),
isClean());
executionSummaries_ = null;
}
return executionSummariesBuilder_;
}
private int encodeType_ = 0;
/**
*
* It indicates the encode type of response.
*
*
* optional .tipb.EncodeType encode_type = 9 [(.gogoproto.nullable) = false];
*/
public boolean hasEncodeType() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
* It indicates the encode type of response.
*
*
* optional .tipb.EncodeType encode_type = 9 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.EncodeType getEncodeType() {
com.pingcap.tidb.tipb.EncodeType result = com.pingcap.tidb.tipb.EncodeType.valueOf(encodeType_);
return result == null ? com.pingcap.tidb.tipb.EncodeType.TypeDefault : result;
}
/**
*
* It indicates the encode type of response.
*
*
* optional .tipb.EncodeType encode_type = 9 [(.gogoproto.nullable) = false];
*/
public Builder setEncodeType(com.pingcap.tidb.tipb.EncodeType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
encodeType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* It indicates the encode type of response.
*
*
* optional .tipb.EncodeType encode_type = 9 [(.gogoproto.nullable) = false];
*/
public Builder clearEncodeType() {
bitField0_ = (bitField0_ & ~0x00000080);
encodeType_ = 0;
onChanged();
return this;
}
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.SelectResponse)
}
// @@protoc_insertion_point(class_scope:tipb.SelectResponse)
private static final com.pingcap.tidb.tipb.SelectResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.SelectResponse();
}
public static com.pingcap.tidb.tipb.SelectResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SelectResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SelectResponse(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.SelectResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy