com.pingcap.tidb.tipb.AnalyzeIndexResp Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: analyze.proto
package com.pingcap.tidb.tipb;
/**
* Protobuf type {@code tipb.AnalyzeIndexResp}
*/
public final class AnalyzeIndexResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tipb.AnalyzeIndexResp)
AnalyzeIndexRespOrBuilder {
private static final long serialVersionUID = 0L;
// Use AnalyzeIndexResp.newBuilder() to construct.
private AnalyzeIndexResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AnalyzeIndexResp() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AnalyzeIndexResp(
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.Histogram.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = hist_.toBuilder();
}
hist_ = input.readMessage(com.pingcap.tidb.tipb.Histogram.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(hist_);
hist_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.pingcap.tidb.tipb.CMSketch.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = cms_.toBuilder();
}
cms_ = input.readMessage(com.pingcap.tidb.tipb.CMSketch.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cms_);
cms_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.pingcap.tidb.tipb.SampleCollector.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = collector_.toBuilder();
}
collector_ = input.readMessage(com.pingcap.tidb.tipb.SampleCollector.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(collector_);
collector_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.Analyze.internal_static_tipb_AnalyzeIndexResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.Analyze.internal_static_tipb_AnalyzeIndexResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.AnalyzeIndexResp.class, com.pingcap.tidb.tipb.AnalyzeIndexResp.Builder.class);
}
private int bitField0_;
public static final int HIST_FIELD_NUMBER = 1;
private com.pingcap.tidb.tipb.Histogram hist_;
/**
* optional .tipb.Histogram hist = 1;
*/
public boolean hasHist() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .tipb.Histogram hist = 1;
*/
public com.pingcap.tidb.tipb.Histogram getHist() {
return hist_ == null ? com.pingcap.tidb.tipb.Histogram.getDefaultInstance() : hist_;
}
/**
* optional .tipb.Histogram hist = 1;
*/
public com.pingcap.tidb.tipb.HistogramOrBuilder getHistOrBuilder() {
return hist_ == null ? com.pingcap.tidb.tipb.Histogram.getDefaultInstance() : hist_;
}
public static final int CMS_FIELD_NUMBER = 2;
private com.pingcap.tidb.tipb.CMSketch cms_;
/**
* optional .tipb.CMSketch cms = 2;
*/
public boolean hasCms() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .tipb.CMSketch cms = 2;
*/
public com.pingcap.tidb.tipb.CMSketch getCms() {
return cms_ == null ? com.pingcap.tidb.tipb.CMSketch.getDefaultInstance() : cms_;
}
/**
* optional .tipb.CMSketch cms = 2;
*/
public com.pingcap.tidb.tipb.CMSketchOrBuilder getCmsOrBuilder() {
return cms_ == null ? com.pingcap.tidb.tipb.CMSketch.getDefaultInstance() : cms_;
}
public static final int COLLECTOR_FIELD_NUMBER = 3;
private com.pingcap.tidb.tipb.SampleCollector collector_;
/**
* optional .tipb.SampleCollector collector = 3;
*/
public boolean hasCollector() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .tipb.SampleCollector collector = 3;
*/
public com.pingcap.tidb.tipb.SampleCollector getCollector() {
return collector_ == null ? com.pingcap.tidb.tipb.SampleCollector.getDefaultInstance() : collector_;
}
/**
* optional .tipb.SampleCollector collector = 3;
*/
public com.pingcap.tidb.tipb.SampleCollectorOrBuilder getCollectorOrBuilder() {
return collector_ == null ? com.pingcap.tidb.tipb.SampleCollector.getDefaultInstance() : collector_;
}
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, getHist());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getCms());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getCollector());
}
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, getHist());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCms());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCollector());
}
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.AnalyzeIndexResp)) {
return super.equals(obj);
}
com.pingcap.tidb.tipb.AnalyzeIndexResp other = (com.pingcap.tidb.tipb.AnalyzeIndexResp) obj;
boolean result = true;
result = result && (hasHist() == other.hasHist());
if (hasHist()) {
result = result && getHist()
.equals(other.getHist());
}
result = result && (hasCms() == other.hasCms());
if (hasCms()) {
result = result && getCms()
.equals(other.getCms());
}
result = result && (hasCollector() == other.hasCollector());
if (hasCollector()) {
result = result && getCollector()
.equals(other.getCollector());
}
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 (hasHist()) {
hash = (37 * hash) + HIST_FIELD_NUMBER;
hash = (53 * hash) + getHist().hashCode();
}
if (hasCms()) {
hash = (37 * hash) + CMS_FIELD_NUMBER;
hash = (53 * hash) + getCms().hashCode();
}
if (hasCollector()) {
hash = (37 * hash) + COLLECTOR_FIELD_NUMBER;
hash = (53 * hash) + getCollector().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.pingcap.tidb.tipb.AnalyzeIndexResp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.AnalyzeIndexResp 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.AnalyzeIndexResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.AnalyzeIndexResp 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.AnalyzeIndexResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.AnalyzeIndexResp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.AnalyzeIndexResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.AnalyzeIndexResp 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.AnalyzeIndexResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.AnalyzeIndexResp 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.AnalyzeIndexResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.AnalyzeIndexResp 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.AnalyzeIndexResp 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.AnalyzeIndexResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tipb.AnalyzeIndexResp)
com.pingcap.tidb.tipb.AnalyzeIndexRespOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.Analyze.internal_static_tipb_AnalyzeIndexResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.Analyze.internal_static_tipb_AnalyzeIndexResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.AnalyzeIndexResp.class, com.pingcap.tidb.tipb.AnalyzeIndexResp.Builder.class);
}
// Construct using com.pingcap.tidb.tipb.AnalyzeIndexResp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHistFieldBuilder();
getCmsFieldBuilder();
getCollectorFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (histBuilder_ == null) {
hist_ = null;
} else {
histBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (cmsBuilder_ == null) {
cms_ = null;
} else {
cmsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (collectorBuilder_ == null) {
collector_ = null;
} else {
collectorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.pingcap.tidb.tipb.Analyze.internal_static_tipb_AnalyzeIndexResp_descriptor;
}
public com.pingcap.tidb.tipb.AnalyzeIndexResp getDefaultInstanceForType() {
return com.pingcap.tidb.tipb.AnalyzeIndexResp.getDefaultInstance();
}
public com.pingcap.tidb.tipb.AnalyzeIndexResp build() {
com.pingcap.tidb.tipb.AnalyzeIndexResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.pingcap.tidb.tipb.AnalyzeIndexResp buildPartial() {
com.pingcap.tidb.tipb.AnalyzeIndexResp result = new com.pingcap.tidb.tipb.AnalyzeIndexResp(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (histBuilder_ == null) {
result.hist_ = hist_;
} else {
result.hist_ = histBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (cmsBuilder_ == null) {
result.cms_ = cms_;
} else {
result.cms_ = cmsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (collectorBuilder_ == null) {
result.collector_ = collector_;
} else {
result.collector_ = collectorBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.pingcap.tidb.tipb.AnalyzeIndexResp) {
return mergeFrom((com.pingcap.tidb.tipb.AnalyzeIndexResp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.pingcap.tidb.tipb.AnalyzeIndexResp other) {
if (other == com.pingcap.tidb.tipb.AnalyzeIndexResp.getDefaultInstance()) return this;
if (other.hasHist()) {
mergeHist(other.getHist());
}
if (other.hasCms()) {
mergeCms(other.getCms());
}
if (other.hasCollector()) {
mergeCollector(other.getCollector());
}
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.AnalyzeIndexResp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.pingcap.tidb.tipb.AnalyzeIndexResp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.pingcap.tidb.tipb.Histogram hist_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Histogram, com.pingcap.tidb.tipb.Histogram.Builder, com.pingcap.tidb.tipb.HistogramOrBuilder> histBuilder_;
/**
* optional .tipb.Histogram hist = 1;
*/
public boolean hasHist() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .tipb.Histogram hist = 1;
*/
public com.pingcap.tidb.tipb.Histogram getHist() {
if (histBuilder_ == null) {
return hist_ == null ? com.pingcap.tidb.tipb.Histogram.getDefaultInstance() : hist_;
} else {
return histBuilder_.getMessage();
}
}
/**
* optional .tipb.Histogram hist = 1;
*/
public Builder setHist(com.pingcap.tidb.tipb.Histogram value) {
if (histBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
hist_ = value;
onChanged();
} else {
histBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .tipb.Histogram hist = 1;
*/
public Builder setHist(
com.pingcap.tidb.tipb.Histogram.Builder builderForValue) {
if (histBuilder_ == null) {
hist_ = builderForValue.build();
onChanged();
} else {
histBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .tipb.Histogram hist = 1;
*/
public Builder mergeHist(com.pingcap.tidb.tipb.Histogram value) {
if (histBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
hist_ != null &&
hist_ != com.pingcap.tidb.tipb.Histogram.getDefaultInstance()) {
hist_ =
com.pingcap.tidb.tipb.Histogram.newBuilder(hist_).mergeFrom(value).buildPartial();
} else {
hist_ = value;
}
onChanged();
} else {
histBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .tipb.Histogram hist = 1;
*/
public Builder clearHist() {
if (histBuilder_ == null) {
hist_ = null;
onChanged();
} else {
histBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .tipb.Histogram hist = 1;
*/
public com.pingcap.tidb.tipb.Histogram.Builder getHistBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getHistFieldBuilder().getBuilder();
}
/**
* optional .tipb.Histogram hist = 1;
*/
public com.pingcap.tidb.tipb.HistogramOrBuilder getHistOrBuilder() {
if (histBuilder_ != null) {
return histBuilder_.getMessageOrBuilder();
} else {
return hist_ == null ?
com.pingcap.tidb.tipb.Histogram.getDefaultInstance() : hist_;
}
}
/**
* optional .tipb.Histogram hist = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Histogram, com.pingcap.tidb.tipb.Histogram.Builder, com.pingcap.tidb.tipb.HistogramOrBuilder>
getHistFieldBuilder() {
if (histBuilder_ == null) {
histBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Histogram, com.pingcap.tidb.tipb.Histogram.Builder, com.pingcap.tidb.tipb.HistogramOrBuilder>(
getHist(),
getParentForChildren(),
isClean());
hist_ = null;
}
return histBuilder_;
}
private com.pingcap.tidb.tipb.CMSketch cms_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.CMSketch, com.pingcap.tidb.tipb.CMSketch.Builder, com.pingcap.tidb.tipb.CMSketchOrBuilder> cmsBuilder_;
/**
* optional .tipb.CMSketch cms = 2;
*/
public boolean hasCms() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .tipb.CMSketch cms = 2;
*/
public com.pingcap.tidb.tipb.CMSketch getCms() {
if (cmsBuilder_ == null) {
return cms_ == null ? com.pingcap.tidb.tipb.CMSketch.getDefaultInstance() : cms_;
} else {
return cmsBuilder_.getMessage();
}
}
/**
* optional .tipb.CMSketch cms = 2;
*/
public Builder setCms(com.pingcap.tidb.tipb.CMSketch value) {
if (cmsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cms_ = value;
onChanged();
} else {
cmsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .tipb.CMSketch cms = 2;
*/
public Builder setCms(
com.pingcap.tidb.tipb.CMSketch.Builder builderForValue) {
if (cmsBuilder_ == null) {
cms_ = builderForValue.build();
onChanged();
} else {
cmsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .tipb.CMSketch cms = 2;
*/
public Builder mergeCms(com.pingcap.tidb.tipb.CMSketch value) {
if (cmsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
cms_ != null &&
cms_ != com.pingcap.tidb.tipb.CMSketch.getDefaultInstance()) {
cms_ =
com.pingcap.tidb.tipb.CMSketch.newBuilder(cms_).mergeFrom(value).buildPartial();
} else {
cms_ = value;
}
onChanged();
} else {
cmsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .tipb.CMSketch cms = 2;
*/
public Builder clearCms() {
if (cmsBuilder_ == null) {
cms_ = null;
onChanged();
} else {
cmsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .tipb.CMSketch cms = 2;
*/
public com.pingcap.tidb.tipb.CMSketch.Builder getCmsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getCmsFieldBuilder().getBuilder();
}
/**
* optional .tipb.CMSketch cms = 2;
*/
public com.pingcap.tidb.tipb.CMSketchOrBuilder getCmsOrBuilder() {
if (cmsBuilder_ != null) {
return cmsBuilder_.getMessageOrBuilder();
} else {
return cms_ == null ?
com.pingcap.tidb.tipb.CMSketch.getDefaultInstance() : cms_;
}
}
/**
* optional .tipb.CMSketch cms = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.CMSketch, com.pingcap.tidb.tipb.CMSketch.Builder, com.pingcap.tidb.tipb.CMSketchOrBuilder>
getCmsFieldBuilder() {
if (cmsBuilder_ == null) {
cmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.CMSketch, com.pingcap.tidb.tipb.CMSketch.Builder, com.pingcap.tidb.tipb.CMSketchOrBuilder>(
getCms(),
getParentForChildren(),
isClean());
cms_ = null;
}
return cmsBuilder_;
}
private com.pingcap.tidb.tipb.SampleCollector collector_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.SampleCollector, com.pingcap.tidb.tipb.SampleCollector.Builder, com.pingcap.tidb.tipb.SampleCollectorOrBuilder> collectorBuilder_;
/**
* optional .tipb.SampleCollector collector = 3;
*/
public boolean hasCollector() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .tipb.SampleCollector collector = 3;
*/
public com.pingcap.tidb.tipb.SampleCollector getCollector() {
if (collectorBuilder_ == null) {
return collector_ == null ? com.pingcap.tidb.tipb.SampleCollector.getDefaultInstance() : collector_;
} else {
return collectorBuilder_.getMessage();
}
}
/**
* optional .tipb.SampleCollector collector = 3;
*/
public Builder setCollector(com.pingcap.tidb.tipb.SampleCollector value) {
if (collectorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collector_ = value;
onChanged();
} else {
collectorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .tipb.SampleCollector collector = 3;
*/
public Builder setCollector(
com.pingcap.tidb.tipb.SampleCollector.Builder builderForValue) {
if (collectorBuilder_ == null) {
collector_ = builderForValue.build();
onChanged();
} else {
collectorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .tipb.SampleCollector collector = 3;
*/
public Builder mergeCollector(com.pingcap.tidb.tipb.SampleCollector value) {
if (collectorBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
collector_ != null &&
collector_ != com.pingcap.tidb.tipb.SampleCollector.getDefaultInstance()) {
collector_ =
com.pingcap.tidb.tipb.SampleCollector.newBuilder(collector_).mergeFrom(value).buildPartial();
} else {
collector_ = value;
}
onChanged();
} else {
collectorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .tipb.SampleCollector collector = 3;
*/
public Builder clearCollector() {
if (collectorBuilder_ == null) {
collector_ = null;
onChanged();
} else {
collectorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .tipb.SampleCollector collector = 3;
*/
public com.pingcap.tidb.tipb.SampleCollector.Builder getCollectorBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCollectorFieldBuilder().getBuilder();
}
/**
* optional .tipb.SampleCollector collector = 3;
*/
public com.pingcap.tidb.tipb.SampleCollectorOrBuilder getCollectorOrBuilder() {
if (collectorBuilder_ != null) {
return collectorBuilder_.getMessageOrBuilder();
} else {
return collector_ == null ?
com.pingcap.tidb.tipb.SampleCollector.getDefaultInstance() : collector_;
}
}
/**
* optional .tipb.SampleCollector collector = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.SampleCollector, com.pingcap.tidb.tipb.SampleCollector.Builder, com.pingcap.tidb.tipb.SampleCollectorOrBuilder>
getCollectorFieldBuilder() {
if (collectorBuilder_ == null) {
collectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.SampleCollector, com.pingcap.tidb.tipb.SampleCollector.Builder, com.pingcap.tidb.tipb.SampleCollectorOrBuilder>(
getCollector(),
getParentForChildren(),
isClean());
collector_ = null;
}
return collectorBuilder_;
}
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.AnalyzeIndexResp)
}
// @@protoc_insertion_point(class_scope:tipb.AnalyzeIndexResp)
private static final com.pingcap.tidb.tipb.AnalyzeIndexResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.AnalyzeIndexResp();
}
public static com.pingcap.tidb.tipb.AnalyzeIndexResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public AnalyzeIndexResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AnalyzeIndexResp(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.AnalyzeIndexResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy