com.pingcap.tidb.tipb.StreamResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: select.proto
package com.pingcap.tidb.tipb;
/**
* Protobuf type {@code tipb.StreamResponse}
*/
public final class StreamResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tipb.StreamResponse)
StreamResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamResponse.newBuilder() to construct.
private StreamResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamResponse() {
data_ = com.google.protobuf.ByteString.EMPTY;
warnings_ = java.util.Collections.emptyList();
outputCounts_ = java.util.Collections.emptyList();
warningCount_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StreamResponse(
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 26: {
bitField0_ |= 0x00000002;
data_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
warnings_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
warnings_.add(
input.readMessage(com.pingcap.tidb.tipb.Error.PARSER, extensionRegistry));
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
outputCounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
outputCounts_.add(input.readInt64());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
outputCounts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
outputCounts_.add(input.readInt64());
}
input.popLimit(limit);
break;
}
case 48: {
bitField0_ |= 0x00000004;
warningCount_ = input.readInt64();
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_ & 0x00000004) == 0x00000004)) {
warnings_ = java.util.Collections.unmodifiableList(warnings_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
outputCounts_ = java.util.Collections.unmodifiableList(outputCounts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.Select.internal_static_tipb_StreamResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.Select.internal_static_tipb_StreamResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.StreamResponse.class, com.pingcap.tidb.tipb.StreamResponse.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 DATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString data_;
/**
*
* Data for all rows
*
*
* optional bytes data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"];
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Data for all rows
*
*
* optional bytes data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"];
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
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_;
/**
*
* output row count for each executor
*
*
* repeated int64 output_counts = 5;
*/
public java.util.List
getOutputCountsList() {
return outputCounts_;
}
/**
*
* output row count for each executor
*
*
* repeated int64 output_counts = 5;
*/
public int getOutputCountsCount() {
return outputCounts_.size();
}
/**
*
* output row count for each executor
*
*
* 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_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 warning_count = 6;
*/
public long getWarningCount() {
return warningCount_;
}
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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(3, data_);
}
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_ & 0x00000004) == 0x00000004)) {
output.writeInt64(6, warningCount_);
}
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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
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_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, warningCount_);
}
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.StreamResponse)) {
return super.equals(obj);
}
com.pingcap.tidb.tipb.StreamResponse other = (com.pingcap.tidb.tipb.StreamResponse) obj;
boolean result = true;
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
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 && 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 (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().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());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.pingcap.tidb.tipb.StreamResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.StreamResponse 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.StreamResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.StreamResponse 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.StreamResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.StreamResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.StreamResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.StreamResponse 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.StreamResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.StreamResponse 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.StreamResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.StreamResponse 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.StreamResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tipb.StreamResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tipb.StreamResponse)
com.pingcap.tidb.tipb.StreamResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.Select.internal_static_tipb_StreamResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.Select.internal_static_tipb_StreamResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.StreamResponse.class, com.pingcap.tidb.tipb.StreamResponse.Builder.class);
}
// Construct using com.pingcap.tidb.tipb.StreamResponse.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();
getWarningsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (errorBuilder_ == null) {
error_ = null;
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (warningsBuilder_ == null) {
warnings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
warningsBuilder_.clear();
}
outputCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
warningCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.pingcap.tidb.tipb.Select.internal_static_tipb_StreamResponse_descriptor;
}
public com.pingcap.tidb.tipb.StreamResponse getDefaultInstanceForType() {
return com.pingcap.tidb.tipb.StreamResponse.getDefaultInstance();
}
public com.pingcap.tidb.tipb.StreamResponse build() {
com.pingcap.tidb.tipb.StreamResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.pingcap.tidb.tipb.StreamResponse buildPartial() {
com.pingcap.tidb.tipb.StreamResponse result = new com.pingcap.tidb.tipb.StreamResponse(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 (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.data_ = data_;
if (warningsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
warnings_ = java.util.Collections.unmodifiableList(warnings_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.warnings_ = warnings_;
} else {
result.warnings_ = warningsBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
outputCounts_ = java.util.Collections.unmodifiableList(outputCounts_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.outputCounts_ = outputCounts_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
result.warningCount_ = warningCount_;
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.StreamResponse) {
return mergeFrom((com.pingcap.tidb.tipb.StreamResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.pingcap.tidb.tipb.StreamResponse other) {
if (other == com.pingcap.tidb.tipb.StreamResponse.getDefaultInstance()) return this;
if (other.hasError()) {
mergeError(other.getError());
}
if (other.hasData()) {
setData(other.getData());
}
if (warningsBuilder_ == null) {
if (!other.warnings_.isEmpty()) {
if (warnings_.isEmpty()) {
warnings_ = other.warnings_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureWarningsIsMutable();
warnings_.addAll(other.warnings_);
}
onChanged();
}
} else {
if (!other.warnings_.isEmpty()) {
if (warningsBuilder_.isEmpty()) {
warningsBuilder_.dispose();
warningsBuilder_ = null;
warnings_ = other.warnings_;
bitField0_ = (bitField0_ & ~0x00000004);
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_ & ~0x00000008);
} else {
ensureOutputCountsIsMutable();
outputCounts_.addAll(other.outputCounts_);
}
onChanged();
}
if (other.hasWarningCount()) {
setWarningCount(other.getWarningCount());
}
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.StreamResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.pingcap.tidb.tipb.StreamResponse) 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 com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Data for all rows
*
*
* optional bytes data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"];
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Data for all rows
*
*
* optional bytes data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"];
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* Data for all rows
*
*
* optional bytes data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"];
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
data_ = value;
onChanged();
return this;
}
/**
*
* Data for all rows
*
*
* optional bytes data = 3 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "github.com/pingcap/tipb/sharedbytes.SharedBytes"];
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000002);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.util.List warnings_ =
java.util.Collections.emptyList();
private void ensureWarningsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
warnings_ = new java.util.ArrayList(warnings_);
bitField0_ |= 0x00000004;
}
}
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_ & ~0x00000004);
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_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
warnings_ = null;
}
return warningsBuilder_;
}
private java.util.List outputCounts_ = java.util.Collections.emptyList();
private void ensureOutputCountsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
outputCounts_ = new java.util.ArrayList(outputCounts_);
bitField0_ |= 0x00000008;
}
}
/**
*
* output row count for each executor
*
*
* repeated int64 output_counts = 5;
*/
public java.util.List
getOutputCountsList() {
return java.util.Collections.unmodifiableList(outputCounts_);
}
/**
*
* output row count for each executor
*
*
* repeated int64 output_counts = 5;
*/
public int getOutputCountsCount() {
return outputCounts_.size();
}
/**
*
* output row count for each executor
*
*
* repeated int64 output_counts = 5;
*/
public long getOutputCounts(int index) {
return outputCounts_.get(index);
}
/**
*
* output row count for each executor
*
*
* repeated int64 output_counts = 5;
*/
public Builder setOutputCounts(
int index, long value) {
ensureOutputCountsIsMutable();
outputCounts_.set(index, value);
onChanged();
return this;
}
/**
*
* output row count for each executor
*
*
* repeated int64 output_counts = 5;
*/
public Builder addOutputCounts(long value) {
ensureOutputCountsIsMutable();
outputCounts_.add(value);
onChanged();
return this;
}
/**
*
* output row count for each executor
*
*
* 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;
}
/**
*
* output row count for each executor
*
*
* repeated int64 output_counts = 5;
*/
public Builder clearOutputCounts() {
outputCounts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private long warningCount_ ;
/**
* optional int64 warning_count = 6;
*/
public boolean hasWarningCount() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 warning_count = 6;
*/
public long getWarningCount() {
return warningCount_;
}
/**
* optional int64 warning_count = 6;
*/
public Builder setWarningCount(long value) {
bitField0_ |= 0x00000010;
warningCount_ = value;
onChanged();
return this;
}
/**
* optional int64 warning_count = 6;
*/
public Builder clearWarningCount() {
bitField0_ = (bitField0_ & ~0x00000010);
warningCount_ = 0L;
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.StreamResponse)
}
// @@protoc_insertion_point(class_scope:tipb.StreamResponse)
private static final com.pingcap.tidb.tipb.StreamResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.StreamResponse();
}
public static com.pingcap.tidb.tipb.StreamResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public StreamResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamResponse(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.StreamResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy