Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pingcap.tidb.tipb.AnalyzeColumnsResp Maven / Gradle / Ivy
package com.pingcap.tidb.tipb;
public final class AnalyzeColumnsResp extends
com.google.protobuf.GeneratedMessageV3 implements
AnalyzeColumnsRespOrBuilder {
private static final long serialVersionUID = 0 L;
private AnalyzeColumnsResp (com.google.protobuf.GeneratedMessageV3 .Builder builder) {
super (builder);
}
private AnalyzeColumnsResp () {
collectors_ = java.util.Collections .emptyList();
}
@java .lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this .unknownFields;
}
private AnalyzeColumnsResp (
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this ();
if (extensionRegistry == null ) {
throw new java.lang.NullPointerException ();
}
int mutable_bitField0_ = 0 ;
com.google.protobuf.UnknownFieldSet .Builder unknownFields =
com.google.protobuf.UnknownFieldSet .newBuilder();
try {
boolean done = false ;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0 :
done = true ;
break ;
default : {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true ;
}
break ;
}
case 10 : {
if (!((mutable_bitField0_ & 0x00000001 ) == 0x00000001 )) {
collectors_ = new java.util.ArrayList ();
mutable_bitField0_ |= 0x00000001 ;
}
collectors_.add(
input.readMessage(com.pingcap.tidb.tipb.SampleCollector .PARSER , extensionRegistry));
break ;
}
case 18 : {
com.pingcap.tidb.tipb.Histogram .Builder subBuilder = null ;
if (((bitField0_ & 0x00000001 ) == 0x00000001 )) {
subBuilder = pkHist_.toBuilder();
}
pkHist_ = input.readMessage(com.pingcap.tidb.tipb.Histogram .PARSER , extensionRegistry);
if (subBuilder != null ) {
subBuilder.mergeFrom(pkHist_);
pkHist_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001 ;
break ;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this );
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException (
e).setUnfinishedMessage(this );
} finally {
if (((mutable_bitField0_ & 0x00000001 ) == 0x00000001 )) {
collectors_ = java.util.Collections .unmodifiableList(collectors_);
}
this .unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors .Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.Analyze .internal_static_tipb_AnalyzeColumnsResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3 .FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.Analyze .internal_static_tipb_AnalyzeColumnsResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.AnalyzeColumnsResp .class , com.pingcap.tidb.tipb.AnalyzeColumnsResp .Builder .class );
}
private int bitField0_;
public static final int COLLECTORS_FIELD_NUMBER = 1 ;
private java.util.List collectors_;
public java.util.List getCollectorsList() {
return collectors_;
}
public java.util.List
getCollectorsOrBuilderList() {
return collectors_;
}
public int getCollectorsCount() {
return collectors_.size();
}
public com.pingcap.tidb.tipb.SampleCollector getCollectors(int index) {
return collectors_.get(index);
}
public com.pingcap.tidb.tipb.SampleCollectorOrBuilder getCollectorsOrBuilder(
int index) {
return collectors_.get(index);
}
public static final int PK_HIST_FIELD_NUMBER = 2 ;
private com.pingcap.tidb.tipb.Histogram pkHist_;
public boolean hasPkHist() {
return ((bitField0_ & 0x00000001 ) == 0x00000001 );
}
public com.pingcap.tidb.tipb.Histogram getPkHist() {
return pkHist_ == null ? com.pingcap.tidb.tipb.Histogram .getDefaultInstance() : pkHist_;
}
public com.pingcap.tidb.tipb.HistogramOrBuilder getPkHistOrBuilder() {
return pkHist_ == null ? com.pingcap.tidb.tipb.Histogram .getDefaultInstance() : pkHist_;
}
private byte memoizedIsInitialized = -1 ;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1 ) return true ;
if (isInitialized == 0 ) return false ;
memoizedIsInitialized = 1 ;
return true ;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0 ; i < collectors_.size(); i++) {
output.writeMessage(1 , collectors_.get(i));
}
if (((bitField0_ & 0x00000001 ) == 0x00000001 )) {
output.writeMessage(2 , getPkHist());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1 ) return size;
size = 0 ;
for (int i = 0 ; i < collectors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1 , collectors_.get(i));
}
if (((bitField0_ & 0x00000001 ) == 0x00000001 )) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2 , getPkHist());
}
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.AnalyzeColumnsResp )) {
return super .equals(obj);
}
com.pingcap.tidb.tipb.AnalyzeColumnsResp other = (com.pingcap.tidb.tipb.AnalyzeColumnsResp ) obj;
boolean result = true ;
result = result && getCollectorsList()
.equals(other.getCollectorsList());
result = result && (hasPkHist() == other.hasPkHist());
if (hasPkHist()) {
result = result && getPkHist()
.equals(other.getPkHist());
}
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 (getCollectorsCount() > 0 ) {
hash = (37 * hash) + COLLECTORS_FIELD_NUMBER ;
hash = (53 * hash) + getCollectorsList().hashCode();
}
if (hasPkHist()) {
hash = (37 * hash) + PK_HIST_FIELD_NUMBER ;
hash = (53 * hash) + getPkHist().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.pingcap.tidb.tipb.AnalyzeColumnsResp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER .parseFrom(data);
}
public static com.pingcap.tidb.tipb.AnalyzeColumnsResp 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.AnalyzeColumnsResp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER .parseFrom(data);
}
public static com.pingcap.tidb.tipb.AnalyzeColumnsResp 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.AnalyzeColumnsResp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER .parseFrom(data);
}
public static com.pingcap.tidb.tipb.AnalyzeColumnsResp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER .parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.AnalyzeColumnsResp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER , input);
}
public static com.pingcap.tidb.tipb.AnalyzeColumnsResp 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.AnalyzeColumnsResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER , input);
}
public static com.pingcap.tidb.tipb.AnalyzeColumnsResp 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.AnalyzeColumnsResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER , input);
}
public static com.pingcap.tidb.tipb.AnalyzeColumnsResp 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.AnalyzeColumnsResp 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;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3 .Builder implements
com.pingcap.tidb.tipb.AnalyzeColumnsRespOrBuilder {
public static final com.google.protobuf.Descriptors .Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.Analyze .internal_static_tipb_AnalyzeColumnsResp_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3 .FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.Analyze .internal_static_tipb_AnalyzeColumnsResp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.AnalyzeColumnsResp .class , com.pingcap.tidb.tipb.AnalyzeColumnsResp .Builder .class );
}
private Builder () {
maybeForceBuilderInitialization();
}
private Builder (
com.google.protobuf.GeneratedMessageV3 .BuilderParent parent) {
super (parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCollectorsFieldBuilder();
getPkHistFieldBuilder();
}
}
public Builder clear() {
super .clear();
if (collectorsBuilder_ == null ) {
collectors_ = java.util.Collections .emptyList();
bitField0_ = (bitField0_ & ~0x00000001 );
} else {
collectorsBuilder_.clear();
}
if (pkHistBuilder_ == null ) {
pkHist_ = null ;
} else {
pkHistBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002 );
return this ;
}
public com.google.protobuf.Descriptors .Descriptor
getDescriptorForType() {
return com.pingcap.tidb.tipb.Analyze .internal_static_tipb_AnalyzeColumnsResp_descriptor;
}
public com.pingcap.tidb.tipb.AnalyzeColumnsResp getDefaultInstanceForType() {
return com.pingcap.tidb.tipb.AnalyzeColumnsResp .getDefaultInstance();
}
public com.pingcap.tidb.tipb.AnalyzeColumnsResp build() {
com.pingcap.tidb.tipb.AnalyzeColumnsResp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.pingcap.tidb.tipb.AnalyzeColumnsResp buildPartial() {
com.pingcap.tidb.tipb.AnalyzeColumnsResp result = new com.pingcap.tidb.tipb.AnalyzeColumnsResp (this );
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0 ;
if (collectorsBuilder_ == null ) {
if (((bitField0_ & 0x00000001 ) == 0x00000001 )) {
collectors_ = java.util.Collections .unmodifiableList(collectors_);
bitField0_ = (bitField0_ & ~0x00000001 );
}
result.collectors_ = collectors_;
} else {
result.collectors_ = collectorsBuilder_.build();
}
if (((from_bitField0_ & 0x00000002 ) == 0x00000002 )) {
to_bitField0_ |= 0x00000001 ;
}
if (pkHistBuilder_ == null ) {
result.pkHist_ = pkHist_;
} else {
result.pkHist_ = pkHistBuilder_.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.AnalyzeColumnsResp ) {
return mergeFrom((com.pingcap.tidb.tipb.AnalyzeColumnsResp )other);
} else {
super .mergeFrom(other);
return this ;
}
}
public Builder mergeFrom(com.pingcap.tidb.tipb.AnalyzeColumnsResp other) {
if (other == com.pingcap.tidb.tipb.AnalyzeColumnsResp .getDefaultInstance()) return this ;
if (collectorsBuilder_ == null ) {
if (!other.collectors_.isEmpty()) {
if (collectors_.isEmpty()) {
collectors_ = other.collectors_;
bitField0_ = (bitField0_ & ~0x00000001 );
} else {
ensureCollectorsIsMutable();
collectors_.addAll(other.collectors_);
}
onChanged();
}
} else {
if (!other.collectors_.isEmpty()) {
if (collectorsBuilder_.isEmpty()) {
collectorsBuilder_.dispose();
collectorsBuilder_ = null ;
collectors_ = other.collectors_;
bitField0_ = (bitField0_ & ~0x00000001 );
collectorsBuilder_ =
com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders ?
getCollectorsFieldBuilder() : null ;
} else {
collectorsBuilder_.addAllMessages(other.collectors_);
}
}
}
if (other.hasPkHist()) {
mergePkHist(other.getPkHist());
}
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.AnalyzeColumnsResp parsedMessage = null ;
try {
parsedMessage = PARSER .parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.pingcap.tidb.tipb.AnalyzeColumnsResp ) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null ) {
mergeFrom(parsedMessage);
}
}
return this ;
}
private int bitField0_;
private java.util.List collectors_ =
java.util.Collections .emptyList();
private void ensureCollectorsIsMutable() {
if (!((bitField0_ & 0x00000001 ) == 0x00000001 )) {
collectors_ = new java.util.ArrayList (collectors_);
bitField0_ |= 0x00000001 ;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3 <
com.pingcap.tidb.tipb.SampleCollector , com.pingcap.tidb.tipb.SampleCollector .Builder , com.pingcap.tidb.tipb.SampleCollectorOrBuilder > collectorsBuilder_;
public java.util.List getCollectorsList() {
if (collectorsBuilder_ == null ) {
return java.util.Collections .unmodifiableList(collectors_);
} else {
return collectorsBuilder_.getMessageList();
}
}
public int getCollectorsCount() {
if (collectorsBuilder_ == null ) {
return collectors_.size();
} else {
return collectorsBuilder_.getCount();
}
}
public com.pingcap.tidb.tipb.SampleCollector getCollectors(int index) {
if (collectorsBuilder_ == null ) {
return collectors_.get(index);
} else {
return collectorsBuilder_.getMessage(index);
}
}
public Builder setCollectors(
int index, com.pingcap.tidb.tipb.SampleCollector value) {
if (collectorsBuilder_ == null ) {
if (value == null ) {
throw new NullPointerException ();
}
ensureCollectorsIsMutable();
collectors_.set(index, value);
onChanged();
} else {
collectorsBuilder_.setMessage(index, value);
}
return this ;
}
public Builder setCollectors(
int index, com.pingcap.tidb.tipb.SampleCollector .Builder builderForValue) {
if (collectorsBuilder_ == null ) {
ensureCollectorsIsMutable();
collectors_.set(index, builderForValue.build());
onChanged();
} else {
collectorsBuilder_.setMessage(index, builderForValue.build());
}
return this ;
}
public Builder addCollectors(com.pingcap.tidb.tipb.SampleCollector value) {
if (collectorsBuilder_ == null ) {
if (value == null ) {
throw new NullPointerException ();
}
ensureCollectorsIsMutable();
collectors_.add(value);
onChanged();
} else {
collectorsBuilder_.addMessage(value);
}
return this ;
}
public Builder addCollectors(
int index, com.pingcap.tidb.tipb.SampleCollector value) {
if (collectorsBuilder_ == null ) {
if (value == null ) {
throw new NullPointerException ();
}
ensureCollectorsIsMutable();
collectors_.add(index, value);
onChanged();
} else {
collectorsBuilder_.addMessage(index, value);
}
return this ;
}
public Builder addCollectors(
com.pingcap.tidb.tipb.SampleCollector .Builder builderForValue) {
if (collectorsBuilder_ == null ) {
ensureCollectorsIsMutable();
collectors_.add(builderForValue.build());
onChanged();
} else {
collectorsBuilder_.addMessage(builderForValue.build());
}
return this ;
}
public Builder addCollectors(
int index, com.pingcap.tidb.tipb.SampleCollector .Builder builderForValue) {
if (collectorsBuilder_ == null ) {
ensureCollectorsIsMutable();
collectors_.add(index, builderForValue.build());
onChanged();
} else {
collectorsBuilder_.addMessage(index, builderForValue.build());
}
return this ;
}
public Builder addAllCollectors(
java.lang.Iterable values) {
if (collectorsBuilder_ == null ) {
ensureCollectorsIsMutable();
com.google.protobuf.AbstractMessageLite .Builder .addAll(
values, collectors_);
onChanged();
} else {
collectorsBuilder_.addAllMessages(values);
}
return this ;
}
public Builder clearCollectors() {
if (collectorsBuilder_ == null ) {
collectors_ = java.util.Collections .emptyList();
bitField0_ = (bitField0_ & ~0x00000001 );
onChanged();
} else {
collectorsBuilder_.clear();
}
return this ;
}
public Builder removeCollectors(int index) {
if (collectorsBuilder_ == null ) {
ensureCollectorsIsMutable();
collectors_.remove(index);
onChanged();
} else {
collectorsBuilder_.remove(index);
}
return this ;
}
public com.pingcap.tidb.tipb.SampleCollector .Builder getCollectorsBuilder(
int index) {
return getCollectorsFieldBuilder().getBuilder(index);
}
public com.pingcap.tidb.tipb.SampleCollectorOrBuilder getCollectorsOrBuilder(
int index) {
if (collectorsBuilder_ == null ) {
return collectors_.get(index); } else {
return collectorsBuilder_.getMessageOrBuilder(index);
}
}
public java.util.List
getCollectorsOrBuilderList() {
if (collectorsBuilder_ != null ) {
return collectorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections .unmodifiableList(collectors_);
}
}
public com.pingcap.tidb.tipb.SampleCollector .Builder addCollectorsBuilder() {
return getCollectorsFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.SampleCollector .getDefaultInstance());
}
public com.pingcap.tidb.tipb.SampleCollector .Builder addCollectorsBuilder(
int index) {
return getCollectorsFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.SampleCollector .getDefaultInstance());
}
public java.util.List
getCollectorsBuilderList() {
return getCollectorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3 <
com.pingcap.tidb.tipb.SampleCollector , com.pingcap.tidb.tipb.SampleCollector .Builder , com.pingcap.tidb.tipb.SampleCollectorOrBuilder >
getCollectorsFieldBuilder() {
if (collectorsBuilder_ == null ) {
collectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3 <
com.pingcap.tidb.tipb.SampleCollector , com.pingcap.tidb.tipb.SampleCollector .Builder , com.pingcap.tidb.tipb.SampleCollectorOrBuilder >(
collectors_,
((bitField0_ & 0x00000001 ) == 0x00000001 ),
getParentForChildren(),
isClean());
collectors_ = null ;
}
return collectorsBuilder_;
}
private com.pingcap.tidb.tipb.Histogram pkHist_ = null ;
private com.google.protobuf.SingleFieldBuilderV3 <
com.pingcap.tidb.tipb.Histogram , com.pingcap.tidb.tipb.Histogram .Builder , com.pingcap.tidb.tipb.HistogramOrBuilder > pkHistBuilder_;
public boolean hasPkHist() {
return ((bitField0_ & 0x00000002 ) == 0x00000002 );
}
public com.pingcap.tidb.tipb.Histogram getPkHist() {
if (pkHistBuilder_ == null ) {
return pkHist_ == null ? com.pingcap.tidb.tipb.Histogram .getDefaultInstance() : pkHist_;
} else {
return pkHistBuilder_.getMessage();
}
}
public Builder setPkHist(com.pingcap.tidb.tipb.Histogram value) {
if (pkHistBuilder_ == null ) {
if (value == null ) {
throw new NullPointerException ();
}
pkHist_ = value;
onChanged();
} else {
pkHistBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002 ;
return this ;
}
public Builder setPkHist(
com.pingcap.tidb.tipb.Histogram .Builder builderForValue) {
if (pkHistBuilder_ == null ) {
pkHist_ = builderForValue.build();
onChanged();
} else {
pkHistBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002 ;
return this ;
}
public Builder mergePkHist(com.pingcap.tidb.tipb.Histogram value) {
if (pkHistBuilder_ == null ) {
if (((bitField0_ & 0x00000002 ) == 0x00000002 ) &&
pkHist_ != null &&
pkHist_ != com.pingcap.tidb.tipb.Histogram .getDefaultInstance()) {
pkHist_ =
com.pingcap.tidb.tipb.Histogram .newBuilder(pkHist_).mergeFrom(value).buildPartial();
} else {
pkHist_ = value;
}
onChanged();
} else {
pkHistBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002 ;
return this ;
}
public Builder clearPkHist() {
if (pkHistBuilder_ == null ) {
pkHist_ = null ;
onChanged();
} else {
pkHistBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002 );
return this ;
}
public com.pingcap.tidb.tipb.Histogram .Builder getPkHistBuilder() {
bitField0_ |= 0x00000002 ;
onChanged();
return getPkHistFieldBuilder().getBuilder();
}
public com.pingcap.tidb.tipb.HistogramOrBuilder getPkHistOrBuilder() {
if (pkHistBuilder_ != null ) {
return pkHistBuilder_.getMessageOrBuilder();
} else {
return pkHist_ == null ?
com.pingcap.tidb.tipb.Histogram .getDefaultInstance() : pkHist_;
}
}
private com.google.protobuf.SingleFieldBuilderV3 <
com.pingcap.tidb.tipb.Histogram , com.pingcap.tidb.tipb.Histogram .Builder , com.pingcap.tidb.tipb.HistogramOrBuilder >
getPkHistFieldBuilder() {
if (pkHistBuilder_ == null ) {
pkHistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3 <
com.pingcap.tidb.tipb.Histogram , com.pingcap.tidb.tipb.Histogram .Builder , com.pingcap.tidb.tipb.HistogramOrBuilder >(
getPkHist(),
getParentForChildren(),
isClean());
pkHist_ = null ;
}
return pkHistBuilder_;
}
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);
}
}
private static final com.pingcap.tidb.tipb.AnalyzeColumnsResp DEFAULT_INSTANCE ;
static {
DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.AnalyzeColumnsResp ();
}
public static com.pingcap.tidb.tipb.AnalyzeColumnsResp getDefaultInstance() {
return DEFAULT_INSTANCE ;
}
@java .lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser () {
public AnalyzeColumnsResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AnalyzeColumnsResp (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.AnalyzeColumnsResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE ;
}
}