com.pingcap.tidb.tipb.ExchangeReceiver Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: executor.proto
package com.pingcap.tidb.tipb;
/**
*
* ExchangeReceiver accept connection and receiver data from ExchangeSender.
*
*
* Protobuf type {@code tipb.ExchangeReceiver}
*/
public final class ExchangeReceiver extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tipb.ExchangeReceiver)
ExchangeReceiverOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExchangeReceiver.newBuilder() to construct.
private ExchangeReceiver(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExchangeReceiver() {
encodedTaskMeta_ = java.util.Collections.emptyList();
fieldTypes_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExchangeReceiver(
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)) {
encodedTaskMeta_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
encodedTaskMeta_.add(input.readBytes());
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
fieldTypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
fieldTypes_.add(
input.readMessage(com.pingcap.tidb.tipb.FieldType.PARSER, extensionRegistry));
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)) {
encodedTaskMeta_ = java.util.Collections.unmodifiableList(encodedTaskMeta_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
fieldTypes_ = java.util.Collections.unmodifiableList(fieldTypes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_ExchangeReceiver_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_ExchangeReceiver_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.ExchangeReceiver.class, com.pingcap.tidb.tipb.ExchangeReceiver.Builder.class);
}
public static final int ENCODED_TASK_META_FIELD_NUMBER = 1;
private java.util.List encodedTaskMeta_;
/**
* repeated bytes encoded_task_meta = 1;
*/
public java.util.List
getEncodedTaskMetaList() {
return encodedTaskMeta_;
}
/**
* repeated bytes encoded_task_meta = 1;
*/
public int getEncodedTaskMetaCount() {
return encodedTaskMeta_.size();
}
/**
* repeated bytes encoded_task_meta = 1;
*/
public com.google.protobuf.ByteString getEncodedTaskMeta(int index) {
return encodedTaskMeta_.get(index);
}
public static final int FIELD_TYPES_FIELD_NUMBER = 2;
private java.util.List fieldTypes_;
/**
* repeated .tipb.FieldType field_types = 2;
*/
public java.util.List getFieldTypesList() {
return fieldTypes_;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public java.util.List extends com.pingcap.tidb.tipb.FieldTypeOrBuilder>
getFieldTypesOrBuilderList() {
return fieldTypes_;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public int getFieldTypesCount() {
return fieldTypes_.size();
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public com.pingcap.tidb.tipb.FieldType getFieldTypes(int index) {
return fieldTypes_.get(index);
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public com.pingcap.tidb.tipb.FieldTypeOrBuilder getFieldTypesOrBuilder(
int index) {
return fieldTypes_.get(index);
}
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 < encodedTaskMeta_.size(); i++) {
output.writeBytes(1, encodedTaskMeta_.get(i));
}
for (int i = 0; i < fieldTypes_.size(); i++) {
output.writeMessage(2, fieldTypes_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < encodedTaskMeta_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(encodedTaskMeta_.get(i));
}
size += dataSize;
size += 1 * getEncodedTaskMetaList().size();
}
for (int i = 0; i < fieldTypes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, fieldTypes_.get(i));
}
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.ExchangeReceiver)) {
return super.equals(obj);
}
com.pingcap.tidb.tipb.ExchangeReceiver other = (com.pingcap.tidb.tipb.ExchangeReceiver) obj;
boolean result = true;
result = result && getEncodedTaskMetaList()
.equals(other.getEncodedTaskMetaList());
result = result && getFieldTypesList()
.equals(other.getFieldTypesList());
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 (getEncodedTaskMetaCount() > 0) {
hash = (37 * hash) + ENCODED_TASK_META_FIELD_NUMBER;
hash = (53 * hash) + getEncodedTaskMetaList().hashCode();
}
if (getFieldTypesCount() > 0) {
hash = (37 * hash) + FIELD_TYPES_FIELD_NUMBER;
hash = (53 * hash) + getFieldTypesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.pingcap.tidb.tipb.ExchangeReceiver parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.ExchangeReceiver 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.ExchangeReceiver parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.ExchangeReceiver 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.ExchangeReceiver parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.ExchangeReceiver parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.ExchangeReceiver parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.ExchangeReceiver 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.ExchangeReceiver parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.ExchangeReceiver 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.ExchangeReceiver parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.ExchangeReceiver 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.ExchangeReceiver 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;
}
/**
*
* ExchangeReceiver accept connection and receiver data from ExchangeSender.
*
*
* Protobuf type {@code tipb.ExchangeReceiver}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tipb.ExchangeReceiver)
com.pingcap.tidb.tipb.ExchangeReceiverOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_ExchangeReceiver_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_ExchangeReceiver_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.ExchangeReceiver.class, com.pingcap.tidb.tipb.ExchangeReceiver.Builder.class);
}
// Construct using com.pingcap.tidb.tipb.ExchangeReceiver.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFieldTypesFieldBuilder();
}
}
public Builder clear() {
super.clear();
encodedTaskMeta_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
if (fieldTypesBuilder_ == null) {
fieldTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
fieldTypesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_ExchangeReceiver_descriptor;
}
public com.pingcap.tidb.tipb.ExchangeReceiver getDefaultInstanceForType() {
return com.pingcap.tidb.tipb.ExchangeReceiver.getDefaultInstance();
}
public com.pingcap.tidb.tipb.ExchangeReceiver build() {
com.pingcap.tidb.tipb.ExchangeReceiver result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.pingcap.tidb.tipb.ExchangeReceiver buildPartial() {
com.pingcap.tidb.tipb.ExchangeReceiver result = new com.pingcap.tidb.tipb.ExchangeReceiver(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
encodedTaskMeta_ = java.util.Collections.unmodifiableList(encodedTaskMeta_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.encodedTaskMeta_ = encodedTaskMeta_;
if (fieldTypesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
fieldTypes_ = java.util.Collections.unmodifiableList(fieldTypes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.fieldTypes_ = fieldTypes_;
} else {
result.fieldTypes_ = fieldTypesBuilder_.build();
}
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.ExchangeReceiver) {
return mergeFrom((com.pingcap.tidb.tipb.ExchangeReceiver)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.pingcap.tidb.tipb.ExchangeReceiver other) {
if (other == com.pingcap.tidb.tipb.ExchangeReceiver.getDefaultInstance()) return this;
if (!other.encodedTaskMeta_.isEmpty()) {
if (encodedTaskMeta_.isEmpty()) {
encodedTaskMeta_ = other.encodedTaskMeta_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEncodedTaskMetaIsMutable();
encodedTaskMeta_.addAll(other.encodedTaskMeta_);
}
onChanged();
}
if (fieldTypesBuilder_ == null) {
if (!other.fieldTypes_.isEmpty()) {
if (fieldTypes_.isEmpty()) {
fieldTypes_ = other.fieldTypes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFieldTypesIsMutable();
fieldTypes_.addAll(other.fieldTypes_);
}
onChanged();
}
} else {
if (!other.fieldTypes_.isEmpty()) {
if (fieldTypesBuilder_.isEmpty()) {
fieldTypesBuilder_.dispose();
fieldTypesBuilder_ = null;
fieldTypes_ = other.fieldTypes_;
bitField0_ = (bitField0_ & ~0x00000002);
fieldTypesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldTypesFieldBuilder() : null;
} else {
fieldTypesBuilder_.addAllMessages(other.fieldTypes_);
}
}
}
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.ExchangeReceiver parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.pingcap.tidb.tipb.ExchangeReceiver) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List encodedTaskMeta_ = java.util.Collections.emptyList();
private void ensureEncodedTaskMetaIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
encodedTaskMeta_ = new java.util.ArrayList(encodedTaskMeta_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated bytes encoded_task_meta = 1;
*/
public java.util.List
getEncodedTaskMetaList() {
return java.util.Collections.unmodifiableList(encodedTaskMeta_);
}
/**
* repeated bytes encoded_task_meta = 1;
*/
public int getEncodedTaskMetaCount() {
return encodedTaskMeta_.size();
}
/**
* repeated bytes encoded_task_meta = 1;
*/
public com.google.protobuf.ByteString getEncodedTaskMeta(int index) {
return encodedTaskMeta_.get(index);
}
/**
* repeated bytes encoded_task_meta = 1;
*/
public Builder setEncodedTaskMeta(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureEncodedTaskMetaIsMutable();
encodedTaskMeta_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes encoded_task_meta = 1;
*/
public Builder addEncodedTaskMeta(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureEncodedTaskMetaIsMutable();
encodedTaskMeta_.add(value);
onChanged();
return this;
}
/**
* repeated bytes encoded_task_meta = 1;
*/
public Builder addAllEncodedTaskMeta(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureEncodedTaskMetaIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, encodedTaskMeta_);
onChanged();
return this;
}
/**
* repeated bytes encoded_task_meta = 1;
*/
public Builder clearEncodedTaskMeta() {
encodedTaskMeta_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List fieldTypes_ =
java.util.Collections.emptyList();
private void ensureFieldTypesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
fieldTypes_ = new java.util.ArrayList(fieldTypes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.FieldType, com.pingcap.tidb.tipb.FieldType.Builder, com.pingcap.tidb.tipb.FieldTypeOrBuilder> fieldTypesBuilder_;
/**
* repeated .tipb.FieldType field_types = 2;
*/
public java.util.List getFieldTypesList() {
if (fieldTypesBuilder_ == null) {
return java.util.Collections.unmodifiableList(fieldTypes_);
} else {
return fieldTypesBuilder_.getMessageList();
}
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public int getFieldTypesCount() {
if (fieldTypesBuilder_ == null) {
return fieldTypes_.size();
} else {
return fieldTypesBuilder_.getCount();
}
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public com.pingcap.tidb.tipb.FieldType getFieldTypes(int index) {
if (fieldTypesBuilder_ == null) {
return fieldTypes_.get(index);
} else {
return fieldTypesBuilder_.getMessage(index);
}
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public Builder setFieldTypes(
int index, com.pingcap.tidb.tipb.FieldType value) {
if (fieldTypesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldTypesIsMutable();
fieldTypes_.set(index, value);
onChanged();
} else {
fieldTypesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public Builder setFieldTypes(
int index, com.pingcap.tidb.tipb.FieldType.Builder builderForValue) {
if (fieldTypesBuilder_ == null) {
ensureFieldTypesIsMutable();
fieldTypes_.set(index, builderForValue.build());
onChanged();
} else {
fieldTypesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public Builder addFieldTypes(com.pingcap.tidb.tipb.FieldType value) {
if (fieldTypesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldTypesIsMutable();
fieldTypes_.add(value);
onChanged();
} else {
fieldTypesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public Builder addFieldTypes(
int index, com.pingcap.tidb.tipb.FieldType value) {
if (fieldTypesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldTypesIsMutable();
fieldTypes_.add(index, value);
onChanged();
} else {
fieldTypesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public Builder addFieldTypes(
com.pingcap.tidb.tipb.FieldType.Builder builderForValue) {
if (fieldTypesBuilder_ == null) {
ensureFieldTypesIsMutable();
fieldTypes_.add(builderForValue.build());
onChanged();
} else {
fieldTypesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public Builder addFieldTypes(
int index, com.pingcap.tidb.tipb.FieldType.Builder builderForValue) {
if (fieldTypesBuilder_ == null) {
ensureFieldTypesIsMutable();
fieldTypes_.add(index, builderForValue.build());
onChanged();
} else {
fieldTypesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public Builder addAllFieldTypes(
java.lang.Iterable extends com.pingcap.tidb.tipb.FieldType> values) {
if (fieldTypesBuilder_ == null) {
ensureFieldTypesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fieldTypes_);
onChanged();
} else {
fieldTypesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public Builder clearFieldTypes() {
if (fieldTypesBuilder_ == null) {
fieldTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
fieldTypesBuilder_.clear();
}
return this;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public Builder removeFieldTypes(int index) {
if (fieldTypesBuilder_ == null) {
ensureFieldTypesIsMutable();
fieldTypes_.remove(index);
onChanged();
} else {
fieldTypesBuilder_.remove(index);
}
return this;
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public com.pingcap.tidb.tipb.FieldType.Builder getFieldTypesBuilder(
int index) {
return getFieldTypesFieldBuilder().getBuilder(index);
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public com.pingcap.tidb.tipb.FieldTypeOrBuilder getFieldTypesOrBuilder(
int index) {
if (fieldTypesBuilder_ == null) {
return fieldTypes_.get(index); } else {
return fieldTypesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public java.util.List extends com.pingcap.tidb.tipb.FieldTypeOrBuilder>
getFieldTypesOrBuilderList() {
if (fieldTypesBuilder_ != null) {
return fieldTypesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fieldTypes_);
}
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public com.pingcap.tidb.tipb.FieldType.Builder addFieldTypesBuilder() {
return getFieldTypesFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.FieldType.getDefaultInstance());
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public com.pingcap.tidb.tipb.FieldType.Builder addFieldTypesBuilder(
int index) {
return getFieldTypesFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.FieldType.getDefaultInstance());
}
/**
* repeated .tipb.FieldType field_types = 2;
*/
public java.util.List
getFieldTypesBuilderList() {
return getFieldTypesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.FieldType, com.pingcap.tidb.tipb.FieldType.Builder, com.pingcap.tidb.tipb.FieldTypeOrBuilder>
getFieldTypesFieldBuilder() {
if (fieldTypesBuilder_ == null) {
fieldTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.FieldType, com.pingcap.tidb.tipb.FieldType.Builder, com.pingcap.tidb.tipb.FieldTypeOrBuilder>(
fieldTypes_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
fieldTypes_ = null;
}
return fieldTypesBuilder_;
}
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.ExchangeReceiver)
}
// @@protoc_insertion_point(class_scope:tipb.ExchangeReceiver)
private static final com.pingcap.tidb.tipb.ExchangeReceiver DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.ExchangeReceiver();
}
public static com.pingcap.tidb.tipb.ExchangeReceiver getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExchangeReceiver parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExchangeReceiver(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.ExchangeReceiver getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy