com.pingcap.tidb.tipb.ExchangeSender Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: executor.proto
package com.pingcap.tidb.tipb;
/**
*
* ExchangeSender will build connection with ExchangeReceiver.
*
*
* Protobuf type {@code tipb.ExchangeSender}
*/
public final class ExchangeSender extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tipb.ExchangeSender)
ExchangeSenderOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExchangeSender.newBuilder() to construct.
private ExchangeSender(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExchangeSender() {
tp_ = 0;
encodedTaskMeta_ = java.util.Collections.emptyList();
partitionKeys_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExchangeSender(
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 8: {
int rawValue = input.readEnum();
com.pingcap.tidb.tipb.ExchangeType value = com.pingcap.tidb.tipb.ExchangeType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
tp_ = rawValue;
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
encodedTaskMeta_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
encodedTaskMeta_.add(input.readBytes());
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
partitionKeys_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
partitionKeys_.add(
input.readMessage(com.pingcap.tidb.tipb.Expr.PARSER, extensionRegistry));
break;
}
case 34: {
com.pingcap.tidb.tipb.Executor.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = child_.toBuilder();
}
child_ = input.readMessage(com.pingcap.tidb.tipb.Executor.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(child_);
child_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
encodedTaskMeta_ = java.util.Collections.unmodifiableList(encodedTaskMeta_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
partitionKeys_ = java.util.Collections.unmodifiableList(partitionKeys_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_ExchangeSender_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_ExchangeSender_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.ExchangeSender.class, com.pingcap.tidb.tipb.ExchangeSender.Builder.class);
}
private int bitField0_;
public static final int TP_FIELD_NUMBER = 1;
private int tp_;
/**
* optional .tipb.ExchangeType tp = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasTp() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .tipb.ExchangeType tp = 1 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.ExchangeType getTp() {
com.pingcap.tidb.tipb.ExchangeType result = com.pingcap.tidb.tipb.ExchangeType.valueOf(tp_);
return result == null ? com.pingcap.tidb.tipb.ExchangeType.PassThrough : result;
}
public static final int ENCODED_TASK_META_FIELD_NUMBER = 2;
private java.util.List encodedTaskMeta_;
/**
* repeated bytes encoded_task_meta = 2;
*/
public java.util.List
getEncodedTaskMetaList() {
return encodedTaskMeta_;
}
/**
* repeated bytes encoded_task_meta = 2;
*/
public int getEncodedTaskMetaCount() {
return encodedTaskMeta_.size();
}
/**
* repeated bytes encoded_task_meta = 2;
*/
public com.google.protobuf.ByteString getEncodedTaskMeta(int index) {
return encodedTaskMeta_.get(index);
}
public static final int PARTITION_KEYS_FIELD_NUMBER = 3;
private java.util.List partitionKeys_;
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public java.util.List getPartitionKeysList() {
return partitionKeys_;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public java.util.List extends com.pingcap.tidb.tipb.ExprOrBuilder>
getPartitionKeysOrBuilderList() {
return partitionKeys_;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public int getPartitionKeysCount() {
return partitionKeys_.size();
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public com.pingcap.tidb.tipb.Expr getPartitionKeys(int index) {
return partitionKeys_.get(index);
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public com.pingcap.tidb.tipb.ExprOrBuilder getPartitionKeysOrBuilder(
int index) {
return partitionKeys_.get(index);
}
public static final int CHILD_FIELD_NUMBER = 4;
private com.pingcap.tidb.tipb.Executor child_;
/**
* optional .tipb.Executor child = 4;
*/
public boolean hasChild() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .tipb.Executor child = 4;
*/
public com.pingcap.tidb.tipb.Executor getChild() {
return child_ == null ? com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_;
}
/**
* optional .tipb.Executor child = 4;
*/
public com.pingcap.tidb.tipb.ExecutorOrBuilder getChildOrBuilder() {
return child_ == null ? com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_;
}
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.writeEnum(1, tp_);
}
for (int i = 0; i < encodedTaskMeta_.size(); i++) {
output.writeBytes(2, encodedTaskMeta_.get(i));
}
for (int i = 0; i < partitionKeys_.size(); i++) {
output.writeMessage(3, partitionKeys_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(4, getChild());
}
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
.computeEnumSize(1, tp_);
}
{
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 < partitionKeys_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, partitionKeys_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getChild());
}
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.ExchangeSender)) {
return super.equals(obj);
}
com.pingcap.tidb.tipb.ExchangeSender other = (com.pingcap.tidb.tipb.ExchangeSender) obj;
boolean result = true;
result = result && (hasTp() == other.hasTp());
if (hasTp()) {
result = result && tp_ == other.tp_;
}
result = result && getEncodedTaskMetaList()
.equals(other.getEncodedTaskMetaList());
result = result && getPartitionKeysList()
.equals(other.getPartitionKeysList());
result = result && (hasChild() == other.hasChild());
if (hasChild()) {
result = result && getChild()
.equals(other.getChild());
}
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 (hasTp()) {
hash = (37 * hash) + TP_FIELD_NUMBER;
hash = (53 * hash) + tp_;
}
if (getEncodedTaskMetaCount() > 0) {
hash = (37 * hash) + ENCODED_TASK_META_FIELD_NUMBER;
hash = (53 * hash) + getEncodedTaskMetaList().hashCode();
}
if (getPartitionKeysCount() > 0) {
hash = (37 * hash) + PARTITION_KEYS_FIELD_NUMBER;
hash = (53 * hash) + getPartitionKeysList().hashCode();
}
if (hasChild()) {
hash = (37 * hash) + CHILD_FIELD_NUMBER;
hash = (53 * hash) + getChild().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.pingcap.tidb.tipb.ExchangeSender parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.ExchangeSender 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.ExchangeSender parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.ExchangeSender 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.ExchangeSender parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.pingcap.tidb.tipb.ExchangeSender parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.pingcap.tidb.tipb.ExchangeSender parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.ExchangeSender 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.ExchangeSender parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.ExchangeSender 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.ExchangeSender parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.pingcap.tidb.tipb.ExchangeSender 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.ExchangeSender 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;
}
/**
*
* ExchangeSender will build connection with ExchangeReceiver.
*
*
* Protobuf type {@code tipb.ExchangeSender}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tipb.ExchangeSender)
com.pingcap.tidb.tipb.ExchangeSenderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_ExchangeSender_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_ExchangeSender_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.pingcap.tidb.tipb.ExchangeSender.class, com.pingcap.tidb.tipb.ExchangeSender.Builder.class);
}
// Construct using com.pingcap.tidb.tipb.ExchangeSender.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPartitionKeysFieldBuilder();
getChildFieldBuilder();
}
}
public Builder clear() {
super.clear();
tp_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
encodedTaskMeta_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
if (partitionKeysBuilder_ == null) {
partitionKeys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
partitionKeysBuilder_.clear();
}
if (childBuilder_ == null) {
child_ = null;
} else {
childBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_ExchangeSender_descriptor;
}
public com.pingcap.tidb.tipb.ExchangeSender getDefaultInstanceForType() {
return com.pingcap.tidb.tipb.ExchangeSender.getDefaultInstance();
}
public com.pingcap.tidb.tipb.ExchangeSender build() {
com.pingcap.tidb.tipb.ExchangeSender result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.pingcap.tidb.tipb.ExchangeSender buildPartial() {
com.pingcap.tidb.tipb.ExchangeSender result = new com.pingcap.tidb.tipb.ExchangeSender(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.tp_ = tp_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
encodedTaskMeta_ = java.util.Collections.unmodifiableList(encodedTaskMeta_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.encodedTaskMeta_ = encodedTaskMeta_;
if (partitionKeysBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
partitionKeys_ = java.util.Collections.unmodifiableList(partitionKeys_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.partitionKeys_ = partitionKeys_;
} else {
result.partitionKeys_ = partitionKeysBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000002;
}
if (childBuilder_ == null) {
result.child_ = child_;
} else {
result.child_ = childBuilder_.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.ExchangeSender) {
return mergeFrom((com.pingcap.tidb.tipb.ExchangeSender)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.pingcap.tidb.tipb.ExchangeSender other) {
if (other == com.pingcap.tidb.tipb.ExchangeSender.getDefaultInstance()) return this;
if (other.hasTp()) {
setTp(other.getTp());
}
if (!other.encodedTaskMeta_.isEmpty()) {
if (encodedTaskMeta_.isEmpty()) {
encodedTaskMeta_ = other.encodedTaskMeta_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureEncodedTaskMetaIsMutable();
encodedTaskMeta_.addAll(other.encodedTaskMeta_);
}
onChanged();
}
if (partitionKeysBuilder_ == null) {
if (!other.partitionKeys_.isEmpty()) {
if (partitionKeys_.isEmpty()) {
partitionKeys_ = other.partitionKeys_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensurePartitionKeysIsMutable();
partitionKeys_.addAll(other.partitionKeys_);
}
onChanged();
}
} else {
if (!other.partitionKeys_.isEmpty()) {
if (partitionKeysBuilder_.isEmpty()) {
partitionKeysBuilder_.dispose();
partitionKeysBuilder_ = null;
partitionKeys_ = other.partitionKeys_;
bitField0_ = (bitField0_ & ~0x00000004);
partitionKeysBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPartitionKeysFieldBuilder() : null;
} else {
partitionKeysBuilder_.addAllMessages(other.partitionKeys_);
}
}
}
if (other.hasChild()) {
mergeChild(other.getChild());
}
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.ExchangeSender parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.pingcap.tidb.tipb.ExchangeSender) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int tp_ = 0;
/**
* optional .tipb.ExchangeType tp = 1 [(.gogoproto.nullable) = false];
*/
public boolean hasTp() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .tipb.ExchangeType tp = 1 [(.gogoproto.nullable) = false];
*/
public com.pingcap.tidb.tipb.ExchangeType getTp() {
com.pingcap.tidb.tipb.ExchangeType result = com.pingcap.tidb.tipb.ExchangeType.valueOf(tp_);
return result == null ? com.pingcap.tidb.tipb.ExchangeType.PassThrough : result;
}
/**
* optional .tipb.ExchangeType tp = 1 [(.gogoproto.nullable) = false];
*/
public Builder setTp(com.pingcap.tidb.tipb.ExchangeType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tp_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .tipb.ExchangeType tp = 1 [(.gogoproto.nullable) = false];
*/
public Builder clearTp() {
bitField0_ = (bitField0_ & ~0x00000001);
tp_ = 0;
onChanged();
return this;
}
private java.util.List encodedTaskMeta_ = java.util.Collections.emptyList();
private void ensureEncodedTaskMetaIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
encodedTaskMeta_ = new java.util.ArrayList(encodedTaskMeta_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated bytes encoded_task_meta = 2;
*/
public java.util.List
getEncodedTaskMetaList() {
return java.util.Collections.unmodifiableList(encodedTaskMeta_);
}
/**
* repeated bytes encoded_task_meta = 2;
*/
public int getEncodedTaskMetaCount() {
return encodedTaskMeta_.size();
}
/**
* repeated bytes encoded_task_meta = 2;
*/
public com.google.protobuf.ByteString getEncodedTaskMeta(int index) {
return encodedTaskMeta_.get(index);
}
/**
* repeated bytes encoded_task_meta = 2;
*/
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 = 2;
*/
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 = 2;
*/
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 = 2;
*/
public Builder clearEncodedTaskMeta() {
encodedTaskMeta_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private java.util.List partitionKeys_ =
java.util.Collections.emptyList();
private void ensurePartitionKeysIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
partitionKeys_ = new java.util.ArrayList(partitionKeys_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder> partitionKeysBuilder_;
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public java.util.List getPartitionKeysList() {
if (partitionKeysBuilder_ == null) {
return java.util.Collections.unmodifiableList(partitionKeys_);
} else {
return partitionKeysBuilder_.getMessageList();
}
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public int getPartitionKeysCount() {
if (partitionKeysBuilder_ == null) {
return partitionKeys_.size();
} else {
return partitionKeysBuilder_.getCount();
}
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public com.pingcap.tidb.tipb.Expr getPartitionKeys(int index) {
if (partitionKeysBuilder_ == null) {
return partitionKeys_.get(index);
} else {
return partitionKeysBuilder_.getMessage(index);
}
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public Builder setPartitionKeys(
int index, com.pingcap.tidb.tipb.Expr value) {
if (partitionKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionKeysIsMutable();
partitionKeys_.set(index, value);
onChanged();
} else {
partitionKeysBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public Builder setPartitionKeys(
int index, com.pingcap.tidb.tipb.Expr.Builder builderForValue) {
if (partitionKeysBuilder_ == null) {
ensurePartitionKeysIsMutable();
partitionKeys_.set(index, builderForValue.build());
onChanged();
} else {
partitionKeysBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public Builder addPartitionKeys(com.pingcap.tidb.tipb.Expr value) {
if (partitionKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionKeysIsMutable();
partitionKeys_.add(value);
onChanged();
} else {
partitionKeysBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public Builder addPartitionKeys(
int index, com.pingcap.tidb.tipb.Expr value) {
if (partitionKeysBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionKeysIsMutable();
partitionKeys_.add(index, value);
onChanged();
} else {
partitionKeysBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public Builder addPartitionKeys(
com.pingcap.tidb.tipb.Expr.Builder builderForValue) {
if (partitionKeysBuilder_ == null) {
ensurePartitionKeysIsMutable();
partitionKeys_.add(builderForValue.build());
onChanged();
} else {
partitionKeysBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public Builder addPartitionKeys(
int index, com.pingcap.tidb.tipb.Expr.Builder builderForValue) {
if (partitionKeysBuilder_ == null) {
ensurePartitionKeysIsMutable();
partitionKeys_.add(index, builderForValue.build());
onChanged();
} else {
partitionKeysBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public Builder addAllPartitionKeys(
java.lang.Iterable extends com.pingcap.tidb.tipb.Expr> values) {
if (partitionKeysBuilder_ == null) {
ensurePartitionKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, partitionKeys_);
onChanged();
} else {
partitionKeysBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public Builder clearPartitionKeys() {
if (partitionKeysBuilder_ == null) {
partitionKeys_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
partitionKeysBuilder_.clear();
}
return this;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public Builder removePartitionKeys(int index) {
if (partitionKeysBuilder_ == null) {
ensurePartitionKeysIsMutable();
partitionKeys_.remove(index);
onChanged();
} else {
partitionKeysBuilder_.remove(index);
}
return this;
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public com.pingcap.tidb.tipb.Expr.Builder getPartitionKeysBuilder(
int index) {
return getPartitionKeysFieldBuilder().getBuilder(index);
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public com.pingcap.tidb.tipb.ExprOrBuilder getPartitionKeysOrBuilder(
int index) {
if (partitionKeysBuilder_ == null) {
return partitionKeys_.get(index); } else {
return partitionKeysBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public java.util.List extends com.pingcap.tidb.tipb.ExprOrBuilder>
getPartitionKeysOrBuilderList() {
if (partitionKeysBuilder_ != null) {
return partitionKeysBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(partitionKeys_);
}
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public com.pingcap.tidb.tipb.Expr.Builder addPartitionKeysBuilder() {
return getPartitionKeysFieldBuilder().addBuilder(
com.pingcap.tidb.tipb.Expr.getDefaultInstance());
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public com.pingcap.tidb.tipb.Expr.Builder addPartitionKeysBuilder(
int index) {
return getPartitionKeysFieldBuilder().addBuilder(
index, com.pingcap.tidb.tipb.Expr.getDefaultInstance());
}
/**
* repeated .tipb.Expr partition_keys = 3;
*/
public java.util.List
getPartitionKeysBuilderList() {
return getPartitionKeysFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder>
getPartitionKeysFieldBuilder() {
if (partitionKeysBuilder_ == null) {
partitionKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder>(
partitionKeys_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
partitionKeys_ = null;
}
return partitionKeysBuilder_;
}
private com.pingcap.tidb.tipb.Executor child_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Executor, com.pingcap.tidb.tipb.Executor.Builder, com.pingcap.tidb.tipb.ExecutorOrBuilder> childBuilder_;
/**
* optional .tipb.Executor child = 4;
*/
public boolean hasChild() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .tipb.Executor child = 4;
*/
public com.pingcap.tidb.tipb.Executor getChild() {
if (childBuilder_ == null) {
return child_ == null ? com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_;
} else {
return childBuilder_.getMessage();
}
}
/**
* optional .tipb.Executor child = 4;
*/
public Builder setChild(com.pingcap.tidb.tipb.Executor value) {
if (childBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
child_ = value;
onChanged();
} else {
childBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .tipb.Executor child = 4;
*/
public Builder setChild(
com.pingcap.tidb.tipb.Executor.Builder builderForValue) {
if (childBuilder_ == null) {
child_ = builderForValue.build();
onChanged();
} else {
childBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .tipb.Executor child = 4;
*/
public Builder mergeChild(com.pingcap.tidb.tipb.Executor value) {
if (childBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
child_ != null &&
child_ != com.pingcap.tidb.tipb.Executor.getDefaultInstance()) {
child_ =
com.pingcap.tidb.tipb.Executor.newBuilder(child_).mergeFrom(value).buildPartial();
} else {
child_ = value;
}
onChanged();
} else {
childBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .tipb.Executor child = 4;
*/
public Builder clearChild() {
if (childBuilder_ == null) {
child_ = null;
onChanged();
} else {
childBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .tipb.Executor child = 4;
*/
public com.pingcap.tidb.tipb.Executor.Builder getChildBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getChildFieldBuilder().getBuilder();
}
/**
* optional .tipb.Executor child = 4;
*/
public com.pingcap.tidb.tipb.ExecutorOrBuilder getChildOrBuilder() {
if (childBuilder_ != null) {
return childBuilder_.getMessageOrBuilder();
} else {
return child_ == null ?
com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_;
}
}
/**
* optional .tipb.Executor child = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Executor, com.pingcap.tidb.tipb.Executor.Builder, com.pingcap.tidb.tipb.ExecutorOrBuilder>
getChildFieldBuilder() {
if (childBuilder_ == null) {
childBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.pingcap.tidb.tipb.Executor, com.pingcap.tidb.tipb.Executor.Builder, com.pingcap.tidb.tipb.ExecutorOrBuilder>(
getChild(),
getParentForChildren(),
isClean());
child_ = null;
}
return childBuilder_;
}
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.ExchangeSender)
}
// @@protoc_insertion_point(class_scope:tipb.ExchangeSender)
private static final com.pingcap.tidb.tipb.ExchangeSender DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.ExchangeSender();
}
public static com.pingcap.tidb.tipb.ExchangeSender getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExchangeSender parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExchangeSender(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.ExchangeSender getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy