All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tikv.kvproto.Mpp Maven / Gradle / Ivy

There is a newer version: 3.2.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mpp.proto

package org.tikv.kvproto;

public final class Mpp {
  private Mpp() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TaskMetaOrBuilder extends
      // @@protoc_insertion_point(interface_extends:mpp.TaskMeta)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * start ts of a query
     * 
* * uint64 start_ts = 1; */ long getStartTs(); /** *
     * if task id is -1 , it indicates a tidb task.
     * 
* * int64 task_id = 2; */ long getTaskId(); /** *
     * Only used for hash partition
     * 
* * int64 partition_id = 3; */ long getPartitionId(); /** *
     * target address of this task.
     * 
* * string address = 4; */ java.lang.String getAddress(); /** *
     * target address of this task.
     * 
* * string address = 4; */ com.google.protobuf.ByteString getAddressBytes(); } /** *
   * TaskMeta contains meta of a mpp plan, including query's ts and task address.
   * 
* * Protobuf type {@code mpp.TaskMeta} */ public static final class TaskMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mpp.TaskMeta) TaskMetaOrBuilder { private static final long serialVersionUID = 0L; // Use TaskMeta.newBuilder() to construct. private TaskMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TaskMeta() { startTs_ = 0L; taskId_ = 0L; partitionId_ = 0L; address_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TaskMeta( 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 (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { startTs_ = input.readUInt64(); break; } case 16: { taskId_ = input.readInt64(); break; } case 24: { partitionId_ = input.readInt64(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); address_ = s; 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 org.tikv.kvproto.Mpp.internal_static_mpp_TaskMeta_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_TaskMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.TaskMeta.class, org.tikv.kvproto.Mpp.TaskMeta.Builder.class); } public static final int START_TS_FIELD_NUMBER = 1; private long startTs_; /** *
     * start ts of a query
     * 
* * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } public static final int TASK_ID_FIELD_NUMBER = 2; private long taskId_; /** *
     * if task id is -1 , it indicates a tidb task.
     * 
* * int64 task_id = 2; */ public long getTaskId() { return taskId_; } public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_; /** *
     * Only used for hash partition
     * 
* * int64 partition_id = 3; */ public long getPartitionId() { return partitionId_; } public static final int ADDRESS_FIELD_NUMBER = 4; private volatile java.lang.Object address_; /** *
     * target address of this task.
     * 
* * string address = 4; */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** *
     * target address of this task.
     * 
* * string address = 4; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (startTs_ != 0L) { output.writeUInt64(1, startTs_); } if (taskId_ != 0L) { output.writeInt64(2, taskId_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); } if (!getAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, address_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTs_); } if (taskId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, taskId_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, partitionId_); } if (!getAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, address_); } 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 org.tikv.kvproto.Mpp.TaskMeta)) { return super.equals(obj); } org.tikv.kvproto.Mpp.TaskMeta other = (org.tikv.kvproto.Mpp.TaskMeta) obj; boolean result = true; result = result && (getStartTs() == other.getStartTs()); result = result && (getTaskId() == other.getTaskId()); result = result && (getPartitionId() == other.getPartitionId()); result = result && getAddress() .equals(other.getAddress()); 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(); hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTaskId()); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPartitionId()); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Mpp.TaskMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.TaskMeta parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.TaskMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.TaskMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.TaskMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.TaskMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.TaskMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.TaskMeta 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 org.tikv.kvproto.Mpp.TaskMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.TaskMeta 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 org.tikv.kvproto.Mpp.TaskMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.TaskMeta 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(org.tikv.kvproto.Mpp.TaskMeta 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; } /** *
     * TaskMeta contains meta of a mpp plan, including query's ts and task address.
     * 
* * Protobuf type {@code mpp.TaskMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mpp.TaskMeta) org.tikv.kvproto.Mpp.TaskMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Mpp.internal_static_mpp_TaskMeta_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_TaskMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.TaskMeta.class, org.tikv.kvproto.Mpp.TaskMeta.Builder.class); } // Construct using org.tikv.kvproto.Mpp.TaskMeta.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); startTs_ = 0L; taskId_ = 0L; partitionId_ = 0L; address_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Mpp.internal_static_mpp_TaskMeta_descriptor; } public org.tikv.kvproto.Mpp.TaskMeta getDefaultInstanceForType() { return org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance(); } public org.tikv.kvproto.Mpp.TaskMeta build() { org.tikv.kvproto.Mpp.TaskMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Mpp.TaskMeta buildPartial() { org.tikv.kvproto.Mpp.TaskMeta result = new org.tikv.kvproto.Mpp.TaskMeta(this); result.startTs_ = startTs_; result.taskId_ = taskId_; result.partitionId_ = partitionId_; result.address_ = address_; 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 org.tikv.kvproto.Mpp.TaskMeta) { return mergeFrom((org.tikv.kvproto.Mpp.TaskMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Mpp.TaskMeta other) { if (other == org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance()) return this; if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (other.getTaskId() != 0L) { setTaskId(other.getTaskId()); } if (other.getPartitionId() != 0L) { setPartitionId(other.getPartitionId()); } if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } 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 { org.tikv.kvproto.Mpp.TaskMeta parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Mpp.TaskMeta) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startTs_ ; /** *
       * start ts of a query
       * 
* * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } /** *
       * start ts of a query
       * 
* * uint64 start_ts = 1; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** *
       * start ts of a query
       * 
* * uint64 start_ts = 1; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private long taskId_ ; /** *
       * if task id is -1 , it indicates a tidb task.
       * 
* * int64 task_id = 2; */ public long getTaskId() { return taskId_; } /** *
       * if task id is -1 , it indicates a tidb task.
       * 
* * int64 task_id = 2; */ public Builder setTaskId(long value) { taskId_ = value; onChanged(); return this; } /** *
       * if task id is -1 , it indicates a tidb task.
       * 
* * int64 task_id = 2; */ public Builder clearTaskId() { taskId_ = 0L; onChanged(); return this; } private long partitionId_ ; /** *
       * Only used for hash partition
       * 
* * int64 partition_id = 3; */ public long getPartitionId() { return partitionId_; } /** *
       * Only used for hash partition
       * 
* * int64 partition_id = 3; */ public Builder setPartitionId(long value) { partitionId_ = value; onChanged(); return this; } /** *
       * Only used for hash partition
       * 
* * int64 partition_id = 3; */ public Builder clearPartitionId() { partitionId_ = 0L; onChanged(); return this; } private java.lang.Object address_ = ""; /** *
       * target address of this task.
       * 
* * string address = 4; */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * target address of this task.
       * 
* * string address = 4; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * target address of this task.
       * 
* * string address = 4; */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       * target address of this task.
       * 
* * string address = 4; */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       * target address of this task.
       * 
* * string address = 4; */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mpp.TaskMeta) } // @@protoc_insertion_point(class_scope:mpp.TaskMeta) private static final org.tikv.kvproto.Mpp.TaskMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Mpp.TaskMeta(); } public static org.tikv.kvproto.Mpp.TaskMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TaskMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskMeta(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Mpp.TaskMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DispatchTaskRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:mpp.DispatchTaskRequest) com.google.protobuf.MessageOrBuilder { /** * .mpp.TaskMeta meta = 1; */ boolean hasMeta(); /** * .mpp.TaskMeta meta = 1; */ org.tikv.kvproto.Mpp.TaskMeta getMeta(); /** * .mpp.TaskMeta meta = 1; */ org.tikv.kvproto.Mpp.TaskMetaOrBuilder getMetaOrBuilder(); /** * bytes encoded_plan = 2; */ com.google.protobuf.ByteString getEncodedPlan(); /** * int64 timeout = 3; */ long getTimeout(); /** * repeated .coprocessor.RegionInfo regions = 4; */ java.util.List getRegionsList(); /** * repeated .coprocessor.RegionInfo regions = 4; */ org.tikv.kvproto.Coprocessor.RegionInfo getRegions(int index); /** * repeated .coprocessor.RegionInfo regions = 4; */ int getRegionsCount(); /** * repeated .coprocessor.RegionInfo regions = 4; */ java.util.List getRegionsOrBuilderList(); /** * repeated .coprocessor.RegionInfo regions = 4; */ org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder getRegionsOrBuilder( int index); /** *
     * If this task contains table scan, we still need their region info.
     * 
* * int64 schema_ver = 5; */ long getSchemaVer(); } /** *
   * Dipsatch the task request to different tiflash servers.
   * 
* * Protobuf type {@code mpp.DispatchTaskRequest} */ public static final class DispatchTaskRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mpp.DispatchTaskRequest) DispatchTaskRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DispatchTaskRequest.newBuilder() to construct. private DispatchTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DispatchTaskRequest() { encodedPlan_ = com.google.protobuf.ByteString.EMPTY; timeout_ = 0L; regions_ = java.util.Collections.emptyList(); schemaVer_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DispatchTaskRequest( 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 (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Mpp.TaskMeta.Builder subBuilder = null; if (meta_ != null) { subBuilder = meta_.toBuilder(); } meta_ = input.readMessage(org.tikv.kvproto.Mpp.TaskMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(meta_); meta_ = subBuilder.buildPartial(); } break; } case 18: { encodedPlan_ = input.readBytes(); break; } case 24: { timeout_ = input.readInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } regions_.add( input.readMessage(org.tikv.kvproto.Coprocessor.RegionInfo.parser(), extensionRegistry)); break; } case 40: { schemaVer_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { regions_ = java.util.Collections.unmodifiableList(regions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Mpp.internal_static_mpp_DispatchTaskRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_DispatchTaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.DispatchTaskRequest.class, org.tikv.kvproto.Mpp.DispatchTaskRequest.Builder.class); } private int bitField0_; public static final int META_FIELD_NUMBER = 1; private org.tikv.kvproto.Mpp.TaskMeta meta_; /** * .mpp.TaskMeta meta = 1; */ public boolean hasMeta() { return meta_ != null; } /** * .mpp.TaskMeta meta = 1; */ public org.tikv.kvproto.Mpp.TaskMeta getMeta() { return meta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : meta_; } /** * .mpp.TaskMeta meta = 1; */ public org.tikv.kvproto.Mpp.TaskMetaOrBuilder getMetaOrBuilder() { return getMeta(); } public static final int ENCODED_PLAN_FIELD_NUMBER = 2; private com.google.protobuf.ByteString encodedPlan_; /** * bytes encoded_plan = 2; */ public com.google.protobuf.ByteString getEncodedPlan() { return encodedPlan_; } public static final int TIMEOUT_FIELD_NUMBER = 3; private long timeout_; /** * int64 timeout = 3; */ public long getTimeout() { return timeout_; } public static final int REGIONS_FIELD_NUMBER = 4; private java.util.List regions_; /** * repeated .coprocessor.RegionInfo regions = 4; */ public java.util.List getRegionsList() { return regions_; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public java.util.List getRegionsOrBuilderList() { return regions_; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public int getRegionsCount() { return regions_.size(); } /** * repeated .coprocessor.RegionInfo regions = 4; */ public org.tikv.kvproto.Coprocessor.RegionInfo getRegions(int index) { return regions_.get(index); } /** * repeated .coprocessor.RegionInfo regions = 4; */ public org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder getRegionsOrBuilder( int index) { return regions_.get(index); } public static final int SCHEMA_VER_FIELD_NUMBER = 5; private long schemaVer_; /** *
     * If this task contains table scan, we still need their region info.
     * 
* * int64 schema_ver = 5; */ public long getSchemaVer() { return schemaVer_; } 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 (meta_ != null) { output.writeMessage(1, getMeta()); } if (!encodedPlan_.isEmpty()) { output.writeBytes(2, encodedPlan_); } if (timeout_ != 0L) { output.writeInt64(3, timeout_); } for (int i = 0; i < regions_.size(); i++) { output.writeMessage(4, regions_.get(i)); } if (schemaVer_ != 0L) { output.writeInt64(5, schemaVer_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (meta_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMeta()); } if (!encodedPlan_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, encodedPlan_); } if (timeout_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, timeout_); } for (int i = 0; i < regions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, regions_.get(i)); } if (schemaVer_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, schemaVer_); } 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 org.tikv.kvproto.Mpp.DispatchTaskRequest)) { return super.equals(obj); } org.tikv.kvproto.Mpp.DispatchTaskRequest other = (org.tikv.kvproto.Mpp.DispatchTaskRequest) obj; boolean result = true; result = result && (hasMeta() == other.hasMeta()); if (hasMeta()) { result = result && getMeta() .equals(other.getMeta()); } result = result && getEncodedPlan() .equals(other.getEncodedPlan()); result = result && (getTimeout() == other.getTimeout()); result = result && getRegionsList() .equals(other.getRegionsList()); result = result && (getSchemaVer() == other.getSchemaVer()); 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 (hasMeta()) { hash = (37 * hash) + META_FIELD_NUMBER; hash = (53 * hash) + getMeta().hashCode(); } hash = (37 * hash) + ENCODED_PLAN_FIELD_NUMBER; hash = (53 * hash) + getEncodedPlan().hashCode(); hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeout()); if (getRegionsCount() > 0) { hash = (37 * hash) + REGIONS_FIELD_NUMBER; hash = (53 * hash) + getRegionsList().hashCode(); } hash = (37 * hash) + SCHEMA_VER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSchemaVer()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Mpp.DispatchTaskRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.DispatchTaskRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.DispatchTaskRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.DispatchTaskRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.DispatchTaskRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.DispatchTaskRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.DispatchTaskRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.DispatchTaskRequest 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 org.tikv.kvproto.Mpp.DispatchTaskRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.DispatchTaskRequest 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 org.tikv.kvproto.Mpp.DispatchTaskRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.DispatchTaskRequest 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(org.tikv.kvproto.Mpp.DispatchTaskRequest 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; } /** *
     * Dipsatch the task request to different tiflash servers.
     * 
* * Protobuf type {@code mpp.DispatchTaskRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mpp.DispatchTaskRequest) org.tikv.kvproto.Mpp.DispatchTaskRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Mpp.internal_static_mpp_DispatchTaskRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_DispatchTaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.DispatchTaskRequest.class, org.tikv.kvproto.Mpp.DispatchTaskRequest.Builder.class); } // Construct using org.tikv.kvproto.Mpp.DispatchTaskRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRegionsFieldBuilder(); } } public Builder clear() { super.clear(); if (metaBuilder_ == null) { meta_ = null; } else { meta_ = null; metaBuilder_ = null; } encodedPlan_ = com.google.protobuf.ByteString.EMPTY; timeout_ = 0L; if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { regionsBuilder_.clear(); } schemaVer_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Mpp.internal_static_mpp_DispatchTaskRequest_descriptor; } public org.tikv.kvproto.Mpp.DispatchTaskRequest getDefaultInstanceForType() { return org.tikv.kvproto.Mpp.DispatchTaskRequest.getDefaultInstance(); } public org.tikv.kvproto.Mpp.DispatchTaskRequest build() { org.tikv.kvproto.Mpp.DispatchTaskRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Mpp.DispatchTaskRequest buildPartial() { org.tikv.kvproto.Mpp.DispatchTaskRequest result = new org.tikv.kvproto.Mpp.DispatchTaskRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (metaBuilder_ == null) { result.meta_ = meta_; } else { result.meta_ = metaBuilder_.build(); } result.encodedPlan_ = encodedPlan_; result.timeout_ = timeout_; if (regionsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { regions_ = java.util.Collections.unmodifiableList(regions_); bitField0_ = (bitField0_ & ~0x00000008); } result.regions_ = regions_; } else { result.regions_ = regionsBuilder_.build(); } result.schemaVer_ = schemaVer_; 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 org.tikv.kvproto.Mpp.DispatchTaskRequest) { return mergeFrom((org.tikv.kvproto.Mpp.DispatchTaskRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Mpp.DispatchTaskRequest other) { if (other == org.tikv.kvproto.Mpp.DispatchTaskRequest.getDefaultInstance()) return this; if (other.hasMeta()) { mergeMeta(other.getMeta()); } if (other.getEncodedPlan() != com.google.protobuf.ByteString.EMPTY) { setEncodedPlan(other.getEncodedPlan()); } if (other.getTimeout() != 0L) { setTimeout(other.getTimeout()); } if (regionsBuilder_ == null) { if (!other.regions_.isEmpty()) { if (regions_.isEmpty()) { regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureRegionsIsMutable(); regions_.addAll(other.regions_); } onChanged(); } } else { if (!other.regions_.isEmpty()) { if (regionsBuilder_.isEmpty()) { regionsBuilder_.dispose(); regionsBuilder_ = null; regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000008); regionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegionsFieldBuilder() : null; } else { regionsBuilder_.addAllMessages(other.regions_); } } } if (other.getSchemaVer() != 0L) { setSchemaVer(other.getSchemaVer()); } 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 { org.tikv.kvproto.Mpp.DispatchTaskRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Mpp.DispatchTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Mpp.TaskMeta meta_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder> metaBuilder_; /** * .mpp.TaskMeta meta = 1; */ public boolean hasMeta() { return metaBuilder_ != null || meta_ != null; } /** * .mpp.TaskMeta meta = 1; */ public org.tikv.kvproto.Mpp.TaskMeta getMeta() { if (metaBuilder_ == null) { return meta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : meta_; } else { return metaBuilder_.getMessage(); } } /** * .mpp.TaskMeta meta = 1; */ public Builder setMeta(org.tikv.kvproto.Mpp.TaskMeta value) { if (metaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } meta_ = value; onChanged(); } else { metaBuilder_.setMessage(value); } return this; } /** * .mpp.TaskMeta meta = 1; */ public Builder setMeta( org.tikv.kvproto.Mpp.TaskMeta.Builder builderForValue) { if (metaBuilder_ == null) { meta_ = builderForValue.build(); onChanged(); } else { metaBuilder_.setMessage(builderForValue.build()); } return this; } /** * .mpp.TaskMeta meta = 1; */ public Builder mergeMeta(org.tikv.kvproto.Mpp.TaskMeta value) { if (metaBuilder_ == null) { if (meta_ != null) { meta_ = org.tikv.kvproto.Mpp.TaskMeta.newBuilder(meta_).mergeFrom(value).buildPartial(); } else { meta_ = value; } onChanged(); } else { metaBuilder_.mergeFrom(value); } return this; } /** * .mpp.TaskMeta meta = 1; */ public Builder clearMeta() { if (metaBuilder_ == null) { meta_ = null; onChanged(); } else { meta_ = null; metaBuilder_ = null; } return this; } /** * .mpp.TaskMeta meta = 1; */ public org.tikv.kvproto.Mpp.TaskMeta.Builder getMetaBuilder() { onChanged(); return getMetaFieldBuilder().getBuilder(); } /** * .mpp.TaskMeta meta = 1; */ public org.tikv.kvproto.Mpp.TaskMetaOrBuilder getMetaOrBuilder() { if (metaBuilder_ != null) { return metaBuilder_.getMessageOrBuilder(); } else { return meta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : meta_; } } /** * .mpp.TaskMeta meta = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder> getMetaFieldBuilder() { if (metaBuilder_ == null) { metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder>( getMeta(), getParentForChildren(), isClean()); meta_ = null; } return metaBuilder_; } private com.google.protobuf.ByteString encodedPlan_ = com.google.protobuf.ByteString.EMPTY; /** * bytes encoded_plan = 2; */ public com.google.protobuf.ByteString getEncodedPlan() { return encodedPlan_; } /** * bytes encoded_plan = 2; */ public Builder setEncodedPlan(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } encodedPlan_ = value; onChanged(); return this; } /** * bytes encoded_plan = 2; */ public Builder clearEncodedPlan() { encodedPlan_ = getDefaultInstance().getEncodedPlan(); onChanged(); return this; } private long timeout_ ; /** * int64 timeout = 3; */ public long getTimeout() { return timeout_; } /** * int64 timeout = 3; */ public Builder setTimeout(long value) { timeout_ = value; onChanged(); return this; } /** * int64 timeout = 3; */ public Builder clearTimeout() { timeout_ = 0L; onChanged(); return this; } private java.util.List regions_ = java.util.Collections.emptyList(); private void ensureRegionsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { regions_ = new java.util.ArrayList(regions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Coprocessor.RegionInfo, org.tikv.kvproto.Coprocessor.RegionInfo.Builder, org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder> regionsBuilder_; /** * repeated .coprocessor.RegionInfo regions = 4; */ public java.util.List getRegionsList() { if (regionsBuilder_ == null) { return java.util.Collections.unmodifiableList(regions_); } else { return regionsBuilder_.getMessageList(); } } /** * repeated .coprocessor.RegionInfo regions = 4; */ public int getRegionsCount() { if (regionsBuilder_ == null) { return regions_.size(); } else { return regionsBuilder_.getCount(); } } /** * repeated .coprocessor.RegionInfo regions = 4; */ public org.tikv.kvproto.Coprocessor.RegionInfo getRegions(int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessage(index); } } /** * repeated .coprocessor.RegionInfo regions = 4; */ public Builder setRegions( int index, org.tikv.kvproto.Coprocessor.RegionInfo value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.set(index, value); onChanged(); } else { regionsBuilder_.setMessage(index, value); } return this; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public Builder setRegions( int index, org.tikv.kvproto.Coprocessor.RegionInfo.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.set(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public Builder addRegions(org.tikv.kvproto.Coprocessor.RegionInfo value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(value); onChanged(); } else { regionsBuilder_.addMessage(value); } return this; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public Builder addRegions( int index, org.tikv.kvproto.Coprocessor.RegionInfo value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(index, value); onChanged(); } else { regionsBuilder_.addMessage(index, value); } return this; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public Builder addRegions( org.tikv.kvproto.Coprocessor.RegionInfo.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public Builder addRegions( int index, org.tikv.kvproto.Coprocessor.RegionInfo.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public Builder addAllRegions( java.lang.Iterable values) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regions_); onChanged(); } else { regionsBuilder_.addAllMessages(values); } return this; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public Builder clearRegions() { if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { regionsBuilder_.clear(); } return this; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public Builder removeRegions(int index) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.remove(index); onChanged(); } else { regionsBuilder_.remove(index); } return this; } /** * repeated .coprocessor.RegionInfo regions = 4; */ public org.tikv.kvproto.Coprocessor.RegionInfo.Builder getRegionsBuilder( int index) { return getRegionsFieldBuilder().getBuilder(index); } /** * repeated .coprocessor.RegionInfo regions = 4; */ public org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder getRegionsOrBuilder( int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .coprocessor.RegionInfo regions = 4; */ public java.util.List getRegionsOrBuilderList() { if (regionsBuilder_ != null) { return regionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regions_); } } /** * repeated .coprocessor.RegionInfo regions = 4; */ public org.tikv.kvproto.Coprocessor.RegionInfo.Builder addRegionsBuilder() { return getRegionsFieldBuilder().addBuilder( org.tikv.kvproto.Coprocessor.RegionInfo.getDefaultInstance()); } /** * repeated .coprocessor.RegionInfo regions = 4; */ public org.tikv.kvproto.Coprocessor.RegionInfo.Builder addRegionsBuilder( int index) { return getRegionsFieldBuilder().addBuilder( index, org.tikv.kvproto.Coprocessor.RegionInfo.getDefaultInstance()); } /** * repeated .coprocessor.RegionInfo regions = 4; */ public java.util.List getRegionsBuilderList() { return getRegionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Coprocessor.RegionInfo, org.tikv.kvproto.Coprocessor.RegionInfo.Builder, org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder> getRegionsFieldBuilder() { if (regionsBuilder_ == null) { regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Coprocessor.RegionInfo, org.tikv.kvproto.Coprocessor.RegionInfo.Builder, org.tikv.kvproto.Coprocessor.RegionInfoOrBuilder>( regions_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); regions_ = null; } return regionsBuilder_; } private long schemaVer_ ; /** *
       * If this task contains table scan, we still need their region info.
       * 
* * int64 schema_ver = 5; */ public long getSchemaVer() { return schemaVer_; } /** *
       * If this task contains table scan, we still need their region info.
       * 
* * int64 schema_ver = 5; */ public Builder setSchemaVer(long value) { schemaVer_ = value; onChanged(); return this; } /** *
       * If this task contains table scan, we still need their region info.
       * 
* * int64 schema_ver = 5; */ public Builder clearSchemaVer() { schemaVer_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mpp.DispatchTaskRequest) } // @@protoc_insertion_point(class_scope:mpp.DispatchTaskRequest) private static final org.tikv.kvproto.Mpp.DispatchTaskRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Mpp.DispatchTaskRequest(); } public static org.tikv.kvproto.Mpp.DispatchTaskRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DispatchTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DispatchTaskRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Mpp.DispatchTaskRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DispatchTaskResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:mpp.DispatchTaskResponse) com.google.protobuf.MessageOrBuilder { /** * .mpp.Error error = 1; */ boolean hasError(); /** * .mpp.Error error = 1; */ org.tikv.kvproto.Mpp.Error getError(); /** * .mpp.Error error = 1; */ org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder(); } /** *
   * Get response of DispatchTaskRequest.
   * 
* * Protobuf type {@code mpp.DispatchTaskResponse} */ public static final class DispatchTaskResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mpp.DispatchTaskResponse) DispatchTaskResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DispatchTaskResponse.newBuilder() to construct. private DispatchTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DispatchTaskResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DispatchTaskResponse( 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 (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Mpp.Error.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Mpp.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } 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 org.tikv.kvproto.Mpp.internal_static_mpp_DispatchTaskResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_DispatchTaskResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.DispatchTaskResponse.class, org.tikv.kvproto.Mpp.DispatchTaskResponse.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Mpp.Error error_; /** * .mpp.Error error = 1; */ public boolean hasError() { return error_ != null; } /** * .mpp.Error error = 1; */ public org.tikv.kvproto.Mpp.Error getError() { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } /** * .mpp.Error error = 1; */ public org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (error_ != null) { output.writeMessage(1, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getError()); } 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 org.tikv.kvproto.Mpp.DispatchTaskResponse)) { return super.equals(obj); } org.tikv.kvproto.Mpp.DispatchTaskResponse other = (org.tikv.kvproto.Mpp.DispatchTaskResponse) obj; boolean result = true; result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Mpp.DispatchTaskResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.DispatchTaskResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.DispatchTaskResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.DispatchTaskResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.DispatchTaskResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.DispatchTaskResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.DispatchTaskResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.DispatchTaskResponse 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 org.tikv.kvproto.Mpp.DispatchTaskResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.DispatchTaskResponse 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 org.tikv.kvproto.Mpp.DispatchTaskResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.DispatchTaskResponse 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(org.tikv.kvproto.Mpp.DispatchTaskResponse 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; } /** *
     * Get response of DispatchTaskRequest.
     * 
* * Protobuf type {@code mpp.DispatchTaskResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mpp.DispatchTaskResponse) org.tikv.kvproto.Mpp.DispatchTaskResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Mpp.internal_static_mpp_DispatchTaskResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_DispatchTaskResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.DispatchTaskResponse.class, org.tikv.kvproto.Mpp.DispatchTaskResponse.Builder.class); } // Construct using org.tikv.kvproto.Mpp.DispatchTaskResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Mpp.internal_static_mpp_DispatchTaskResponse_descriptor; } public org.tikv.kvproto.Mpp.DispatchTaskResponse getDefaultInstanceForType() { return org.tikv.kvproto.Mpp.DispatchTaskResponse.getDefaultInstance(); } public org.tikv.kvproto.Mpp.DispatchTaskResponse build() { org.tikv.kvproto.Mpp.DispatchTaskResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Mpp.DispatchTaskResponse buildPartial() { org.tikv.kvproto.Mpp.DispatchTaskResponse result = new org.tikv.kvproto.Mpp.DispatchTaskResponse(this); if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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 org.tikv.kvproto.Mpp.DispatchTaskResponse) { return mergeFrom((org.tikv.kvproto.Mpp.DispatchTaskResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Mpp.DispatchTaskResponse other) { if (other == org.tikv.kvproto.Mpp.DispatchTaskResponse.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } 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 { org.tikv.kvproto.Mpp.DispatchTaskResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Mpp.DispatchTaskResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Mpp.Error error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder> errorBuilder_; /** * .mpp.Error error = 1; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .mpp.Error error = 1; */ public org.tikv.kvproto.Mpp.Error getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .mpp.Error error = 1; */ public Builder setError(org.tikv.kvproto.Mpp.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .mpp.Error error = 1; */ public Builder setError( org.tikv.kvproto.Mpp.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .mpp.Error error = 1; */ public Builder mergeError(org.tikv.kvproto.Mpp.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Mpp.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .mpp.Error error = 1; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .mpp.Error error = 1; */ public org.tikv.kvproto.Mpp.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .mpp.Error error = 1; */ public org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } } /** * .mpp.Error error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mpp.DispatchTaskResponse) } // @@protoc_insertion_point(class_scope:mpp.DispatchTaskResponse) private static final org.tikv.kvproto.Mpp.DispatchTaskResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Mpp.DispatchTaskResponse(); } public static org.tikv.kvproto.Mpp.DispatchTaskResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DispatchTaskResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DispatchTaskResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Mpp.DispatchTaskResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CancelTaskRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:mpp.CancelTaskRequest) com.google.protobuf.MessageOrBuilder { /** * .mpp.TaskMeta meta = 1; */ boolean hasMeta(); /** * .mpp.TaskMeta meta = 1; */ org.tikv.kvproto.Mpp.TaskMeta getMeta(); /** * .mpp.TaskMeta meta = 1; */ org.tikv.kvproto.Mpp.TaskMetaOrBuilder getMetaOrBuilder(); /** * .mpp.Error error = 2; */ boolean hasError(); /** * .mpp.Error error = 2; */ org.tikv.kvproto.Mpp.Error getError(); /** * .mpp.Error error = 2; */ org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder(); } /** *
   * CancelTaskRequest closes the execution of a task.
   * 
* * Protobuf type {@code mpp.CancelTaskRequest} */ public static final class CancelTaskRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mpp.CancelTaskRequest) CancelTaskRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CancelTaskRequest.newBuilder() to construct. private CancelTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CancelTaskRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CancelTaskRequest( 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 (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Mpp.TaskMeta.Builder subBuilder = null; if (meta_ != null) { subBuilder = meta_.toBuilder(); } meta_ = input.readMessage(org.tikv.kvproto.Mpp.TaskMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(meta_); meta_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Mpp.Error.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Mpp.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } 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 org.tikv.kvproto.Mpp.internal_static_mpp_CancelTaskRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_CancelTaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.CancelTaskRequest.class, org.tikv.kvproto.Mpp.CancelTaskRequest.Builder.class); } public static final int META_FIELD_NUMBER = 1; private org.tikv.kvproto.Mpp.TaskMeta meta_; /** * .mpp.TaskMeta meta = 1; */ public boolean hasMeta() { return meta_ != null; } /** * .mpp.TaskMeta meta = 1; */ public org.tikv.kvproto.Mpp.TaskMeta getMeta() { return meta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : meta_; } /** * .mpp.TaskMeta meta = 1; */ public org.tikv.kvproto.Mpp.TaskMetaOrBuilder getMetaOrBuilder() { return getMeta(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Mpp.Error error_; /** * .mpp.Error error = 2; */ public boolean hasError() { return error_ != null; } /** * .mpp.Error error = 2; */ public org.tikv.kvproto.Mpp.Error getError() { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } /** * .mpp.Error error = 2; */ public org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (meta_ != null) { output.writeMessage(1, getMeta()); } if (error_ != null) { output.writeMessage(2, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (meta_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMeta()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } 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 org.tikv.kvproto.Mpp.CancelTaskRequest)) { return super.equals(obj); } org.tikv.kvproto.Mpp.CancelTaskRequest other = (org.tikv.kvproto.Mpp.CancelTaskRequest) obj; boolean result = true; result = result && (hasMeta() == other.hasMeta()); if (hasMeta()) { result = result && getMeta() .equals(other.getMeta()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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 (hasMeta()) { hash = (37 * hash) + META_FIELD_NUMBER; hash = (53 * hash) + getMeta().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Mpp.CancelTaskRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.CancelTaskRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.CancelTaskRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.CancelTaskRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.CancelTaskRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.CancelTaskRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.CancelTaskRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.CancelTaskRequest 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 org.tikv.kvproto.Mpp.CancelTaskRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.CancelTaskRequest 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 org.tikv.kvproto.Mpp.CancelTaskRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.CancelTaskRequest 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(org.tikv.kvproto.Mpp.CancelTaskRequest 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; } /** *
     * CancelTaskRequest closes the execution of a task.
     * 
* * Protobuf type {@code mpp.CancelTaskRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mpp.CancelTaskRequest) org.tikv.kvproto.Mpp.CancelTaskRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Mpp.internal_static_mpp_CancelTaskRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_CancelTaskRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.CancelTaskRequest.class, org.tikv.kvproto.Mpp.CancelTaskRequest.Builder.class); } // Construct using org.tikv.kvproto.Mpp.CancelTaskRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (metaBuilder_ == null) { meta_ = null; } else { meta_ = null; metaBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Mpp.internal_static_mpp_CancelTaskRequest_descriptor; } public org.tikv.kvproto.Mpp.CancelTaskRequest getDefaultInstanceForType() { return org.tikv.kvproto.Mpp.CancelTaskRequest.getDefaultInstance(); } public org.tikv.kvproto.Mpp.CancelTaskRequest build() { org.tikv.kvproto.Mpp.CancelTaskRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Mpp.CancelTaskRequest buildPartial() { org.tikv.kvproto.Mpp.CancelTaskRequest result = new org.tikv.kvproto.Mpp.CancelTaskRequest(this); if (metaBuilder_ == null) { result.meta_ = meta_; } else { result.meta_ = metaBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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 org.tikv.kvproto.Mpp.CancelTaskRequest) { return mergeFrom((org.tikv.kvproto.Mpp.CancelTaskRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Mpp.CancelTaskRequest other) { if (other == org.tikv.kvproto.Mpp.CancelTaskRequest.getDefaultInstance()) return this; if (other.hasMeta()) { mergeMeta(other.getMeta()); } if (other.hasError()) { mergeError(other.getError()); } 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 { org.tikv.kvproto.Mpp.CancelTaskRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Mpp.CancelTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Mpp.TaskMeta meta_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder> metaBuilder_; /** * .mpp.TaskMeta meta = 1; */ public boolean hasMeta() { return metaBuilder_ != null || meta_ != null; } /** * .mpp.TaskMeta meta = 1; */ public org.tikv.kvproto.Mpp.TaskMeta getMeta() { if (metaBuilder_ == null) { return meta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : meta_; } else { return metaBuilder_.getMessage(); } } /** * .mpp.TaskMeta meta = 1; */ public Builder setMeta(org.tikv.kvproto.Mpp.TaskMeta value) { if (metaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } meta_ = value; onChanged(); } else { metaBuilder_.setMessage(value); } return this; } /** * .mpp.TaskMeta meta = 1; */ public Builder setMeta( org.tikv.kvproto.Mpp.TaskMeta.Builder builderForValue) { if (metaBuilder_ == null) { meta_ = builderForValue.build(); onChanged(); } else { metaBuilder_.setMessage(builderForValue.build()); } return this; } /** * .mpp.TaskMeta meta = 1; */ public Builder mergeMeta(org.tikv.kvproto.Mpp.TaskMeta value) { if (metaBuilder_ == null) { if (meta_ != null) { meta_ = org.tikv.kvproto.Mpp.TaskMeta.newBuilder(meta_).mergeFrom(value).buildPartial(); } else { meta_ = value; } onChanged(); } else { metaBuilder_.mergeFrom(value); } return this; } /** * .mpp.TaskMeta meta = 1; */ public Builder clearMeta() { if (metaBuilder_ == null) { meta_ = null; onChanged(); } else { meta_ = null; metaBuilder_ = null; } return this; } /** * .mpp.TaskMeta meta = 1; */ public org.tikv.kvproto.Mpp.TaskMeta.Builder getMetaBuilder() { onChanged(); return getMetaFieldBuilder().getBuilder(); } /** * .mpp.TaskMeta meta = 1; */ public org.tikv.kvproto.Mpp.TaskMetaOrBuilder getMetaOrBuilder() { if (metaBuilder_ != null) { return metaBuilder_.getMessageOrBuilder(); } else { return meta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : meta_; } } /** * .mpp.TaskMeta meta = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder> getMetaFieldBuilder() { if (metaBuilder_ == null) { metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder>( getMeta(), getParentForChildren(), isClean()); meta_ = null; } return metaBuilder_; } private org.tikv.kvproto.Mpp.Error error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder> errorBuilder_; /** * .mpp.Error error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .mpp.Error error = 2; */ public org.tikv.kvproto.Mpp.Error getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .mpp.Error error = 2; */ public Builder setError(org.tikv.kvproto.Mpp.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .mpp.Error error = 2; */ public Builder setError( org.tikv.kvproto.Mpp.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .mpp.Error error = 2; */ public Builder mergeError(org.tikv.kvproto.Mpp.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Mpp.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .mpp.Error error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .mpp.Error error = 2; */ public org.tikv.kvproto.Mpp.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .mpp.Error error = 2; */ public org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } } /** * .mpp.Error error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mpp.CancelTaskRequest) } // @@protoc_insertion_point(class_scope:mpp.CancelTaskRequest) private static final org.tikv.kvproto.Mpp.CancelTaskRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Mpp.CancelTaskRequest(); } public static org.tikv.kvproto.Mpp.CancelTaskRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CancelTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CancelTaskRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Mpp.CancelTaskRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CancelTaskResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:mpp.CancelTaskResponse) com.google.protobuf.MessageOrBuilder { /** * .mpp.Error error = 1; */ boolean hasError(); /** * .mpp.Error error = 1; */ org.tikv.kvproto.Mpp.Error getError(); /** * .mpp.Error error = 1; */ org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code mpp.CancelTaskResponse} */ public static final class CancelTaskResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mpp.CancelTaskResponse) CancelTaskResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CancelTaskResponse.newBuilder() to construct. private CancelTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CancelTaskResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CancelTaskResponse( 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 (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Mpp.Error.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Mpp.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } 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 org.tikv.kvproto.Mpp.internal_static_mpp_CancelTaskResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_CancelTaskResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.CancelTaskResponse.class, org.tikv.kvproto.Mpp.CancelTaskResponse.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Mpp.Error error_; /** * .mpp.Error error = 1; */ public boolean hasError() { return error_ != null; } /** * .mpp.Error error = 1; */ public org.tikv.kvproto.Mpp.Error getError() { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } /** * .mpp.Error error = 1; */ public org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (error_ != null) { output.writeMessage(1, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getError()); } 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 org.tikv.kvproto.Mpp.CancelTaskResponse)) { return super.equals(obj); } org.tikv.kvproto.Mpp.CancelTaskResponse other = (org.tikv.kvproto.Mpp.CancelTaskResponse) obj; boolean result = true; result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Mpp.CancelTaskResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.CancelTaskResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.CancelTaskResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.CancelTaskResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.CancelTaskResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.CancelTaskResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.CancelTaskResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.CancelTaskResponse 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 org.tikv.kvproto.Mpp.CancelTaskResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.CancelTaskResponse 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 org.tikv.kvproto.Mpp.CancelTaskResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.CancelTaskResponse 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(org.tikv.kvproto.Mpp.CancelTaskResponse 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 mpp.CancelTaskResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mpp.CancelTaskResponse) org.tikv.kvproto.Mpp.CancelTaskResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Mpp.internal_static_mpp_CancelTaskResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_CancelTaskResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.CancelTaskResponse.class, org.tikv.kvproto.Mpp.CancelTaskResponse.Builder.class); } // Construct using org.tikv.kvproto.Mpp.CancelTaskResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Mpp.internal_static_mpp_CancelTaskResponse_descriptor; } public org.tikv.kvproto.Mpp.CancelTaskResponse getDefaultInstanceForType() { return org.tikv.kvproto.Mpp.CancelTaskResponse.getDefaultInstance(); } public org.tikv.kvproto.Mpp.CancelTaskResponse build() { org.tikv.kvproto.Mpp.CancelTaskResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Mpp.CancelTaskResponse buildPartial() { org.tikv.kvproto.Mpp.CancelTaskResponse result = new org.tikv.kvproto.Mpp.CancelTaskResponse(this); if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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 org.tikv.kvproto.Mpp.CancelTaskResponse) { return mergeFrom((org.tikv.kvproto.Mpp.CancelTaskResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Mpp.CancelTaskResponse other) { if (other == org.tikv.kvproto.Mpp.CancelTaskResponse.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } 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 { org.tikv.kvproto.Mpp.CancelTaskResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Mpp.CancelTaskResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Mpp.Error error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder> errorBuilder_; /** * .mpp.Error error = 1; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .mpp.Error error = 1; */ public org.tikv.kvproto.Mpp.Error getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .mpp.Error error = 1; */ public Builder setError(org.tikv.kvproto.Mpp.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .mpp.Error error = 1; */ public Builder setError( org.tikv.kvproto.Mpp.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .mpp.Error error = 1; */ public Builder mergeError(org.tikv.kvproto.Mpp.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Mpp.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .mpp.Error error = 1; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .mpp.Error error = 1; */ public org.tikv.kvproto.Mpp.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .mpp.Error error = 1; */ public org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } } /** * .mpp.Error error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mpp.CancelTaskResponse) } // @@protoc_insertion_point(class_scope:mpp.CancelTaskResponse) private static final org.tikv.kvproto.Mpp.CancelTaskResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Mpp.CancelTaskResponse(); } public static org.tikv.kvproto.Mpp.CancelTaskResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CancelTaskResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CancelTaskResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Mpp.CancelTaskResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EstablishMPPConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:mpp.EstablishMPPConnectionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * node closer to the source
     * 
* * .mpp.TaskMeta sender_meta = 1; */ boolean hasSenderMeta(); /** *
     * node closer to the source
     * 
* * .mpp.TaskMeta sender_meta = 1; */ org.tikv.kvproto.Mpp.TaskMeta getSenderMeta(); /** *
     * node closer to the source
     * 
* * .mpp.TaskMeta sender_meta = 1; */ org.tikv.kvproto.Mpp.TaskMetaOrBuilder getSenderMetaOrBuilder(); /** *
     * node closer to the tidb mpp gather.
     * 
* * .mpp.TaskMeta receiver_meta = 2; */ boolean hasReceiverMeta(); /** *
     * node closer to the tidb mpp gather.
     * 
* * .mpp.TaskMeta receiver_meta = 2; */ org.tikv.kvproto.Mpp.TaskMeta getReceiverMeta(); /** *
     * node closer to the tidb mpp gather.
     * 
* * .mpp.TaskMeta receiver_meta = 2; */ org.tikv.kvproto.Mpp.TaskMetaOrBuilder getReceiverMetaOrBuilder(); } /** *
   * build connection between different tasks. Data is sent by the tasks that are closer to the data sources.
   * 
* * Protobuf type {@code mpp.EstablishMPPConnectionRequest} */ public static final class EstablishMPPConnectionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mpp.EstablishMPPConnectionRequest) EstablishMPPConnectionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use EstablishMPPConnectionRequest.newBuilder() to construct. private EstablishMPPConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EstablishMPPConnectionRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EstablishMPPConnectionRequest( 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 (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Mpp.TaskMeta.Builder subBuilder = null; if (senderMeta_ != null) { subBuilder = senderMeta_.toBuilder(); } senderMeta_ = input.readMessage(org.tikv.kvproto.Mpp.TaskMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(senderMeta_); senderMeta_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Mpp.TaskMeta.Builder subBuilder = null; if (receiverMeta_ != null) { subBuilder = receiverMeta_.toBuilder(); } receiverMeta_ = input.readMessage(org.tikv.kvproto.Mpp.TaskMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(receiverMeta_); receiverMeta_ = subBuilder.buildPartial(); } 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 org.tikv.kvproto.Mpp.internal_static_mpp_EstablishMPPConnectionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_EstablishMPPConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest.class, org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest.Builder.class); } public static final int SENDER_META_FIELD_NUMBER = 1; private org.tikv.kvproto.Mpp.TaskMeta senderMeta_; /** *
     * node closer to the source
     * 
* * .mpp.TaskMeta sender_meta = 1; */ public boolean hasSenderMeta() { return senderMeta_ != null; } /** *
     * node closer to the source
     * 
* * .mpp.TaskMeta sender_meta = 1; */ public org.tikv.kvproto.Mpp.TaskMeta getSenderMeta() { return senderMeta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : senderMeta_; } /** *
     * node closer to the source
     * 
* * .mpp.TaskMeta sender_meta = 1; */ public org.tikv.kvproto.Mpp.TaskMetaOrBuilder getSenderMetaOrBuilder() { return getSenderMeta(); } public static final int RECEIVER_META_FIELD_NUMBER = 2; private org.tikv.kvproto.Mpp.TaskMeta receiverMeta_; /** *
     * node closer to the tidb mpp gather.
     * 
* * .mpp.TaskMeta receiver_meta = 2; */ public boolean hasReceiverMeta() { return receiverMeta_ != null; } /** *
     * node closer to the tidb mpp gather.
     * 
* * .mpp.TaskMeta receiver_meta = 2; */ public org.tikv.kvproto.Mpp.TaskMeta getReceiverMeta() { return receiverMeta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : receiverMeta_; } /** *
     * node closer to the tidb mpp gather.
     * 
* * .mpp.TaskMeta receiver_meta = 2; */ public org.tikv.kvproto.Mpp.TaskMetaOrBuilder getReceiverMetaOrBuilder() { return getReceiverMeta(); } 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 (senderMeta_ != null) { output.writeMessage(1, getSenderMeta()); } if (receiverMeta_ != null) { output.writeMessage(2, getReceiverMeta()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (senderMeta_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSenderMeta()); } if (receiverMeta_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getReceiverMeta()); } 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 org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest)) { return super.equals(obj); } org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest other = (org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest) obj; boolean result = true; result = result && (hasSenderMeta() == other.hasSenderMeta()); if (hasSenderMeta()) { result = result && getSenderMeta() .equals(other.getSenderMeta()); } result = result && (hasReceiverMeta() == other.hasReceiverMeta()); if (hasReceiverMeta()) { result = result && getReceiverMeta() .equals(other.getReceiverMeta()); } 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 (hasSenderMeta()) { hash = (37 * hash) + SENDER_META_FIELD_NUMBER; hash = (53 * hash) + getSenderMeta().hashCode(); } if (hasReceiverMeta()) { hash = (37 * hash) + RECEIVER_META_FIELD_NUMBER; hash = (53 * hash) + getReceiverMeta().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest 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 org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest 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 org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest 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(org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest 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; } /** *
     * build connection between different tasks. Data is sent by the tasks that are closer to the data sources.
     * 
* * Protobuf type {@code mpp.EstablishMPPConnectionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mpp.EstablishMPPConnectionRequest) org.tikv.kvproto.Mpp.EstablishMPPConnectionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Mpp.internal_static_mpp_EstablishMPPConnectionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_EstablishMPPConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest.class, org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest.Builder.class); } // Construct using org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (senderMetaBuilder_ == null) { senderMeta_ = null; } else { senderMeta_ = null; senderMetaBuilder_ = null; } if (receiverMetaBuilder_ == null) { receiverMeta_ = null; } else { receiverMeta_ = null; receiverMetaBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Mpp.internal_static_mpp_EstablishMPPConnectionRequest_descriptor; } public org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest getDefaultInstanceForType() { return org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest.getDefaultInstance(); } public org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest build() { org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest buildPartial() { org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest result = new org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest(this); if (senderMetaBuilder_ == null) { result.senderMeta_ = senderMeta_; } else { result.senderMeta_ = senderMetaBuilder_.build(); } if (receiverMetaBuilder_ == null) { result.receiverMeta_ = receiverMeta_; } else { result.receiverMeta_ = receiverMetaBuilder_.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 org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest) { return mergeFrom((org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest other) { if (other == org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest.getDefaultInstance()) return this; if (other.hasSenderMeta()) { mergeSenderMeta(other.getSenderMeta()); } if (other.hasReceiverMeta()) { mergeReceiverMeta(other.getReceiverMeta()); } 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 { org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Mpp.TaskMeta senderMeta_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder> senderMetaBuilder_; /** *
       * node closer to the source
       * 
* * .mpp.TaskMeta sender_meta = 1; */ public boolean hasSenderMeta() { return senderMetaBuilder_ != null || senderMeta_ != null; } /** *
       * node closer to the source
       * 
* * .mpp.TaskMeta sender_meta = 1; */ public org.tikv.kvproto.Mpp.TaskMeta getSenderMeta() { if (senderMetaBuilder_ == null) { return senderMeta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : senderMeta_; } else { return senderMetaBuilder_.getMessage(); } } /** *
       * node closer to the source
       * 
* * .mpp.TaskMeta sender_meta = 1; */ public Builder setSenderMeta(org.tikv.kvproto.Mpp.TaskMeta value) { if (senderMetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } senderMeta_ = value; onChanged(); } else { senderMetaBuilder_.setMessage(value); } return this; } /** *
       * node closer to the source
       * 
* * .mpp.TaskMeta sender_meta = 1; */ public Builder setSenderMeta( org.tikv.kvproto.Mpp.TaskMeta.Builder builderForValue) { if (senderMetaBuilder_ == null) { senderMeta_ = builderForValue.build(); onChanged(); } else { senderMetaBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * node closer to the source
       * 
* * .mpp.TaskMeta sender_meta = 1; */ public Builder mergeSenderMeta(org.tikv.kvproto.Mpp.TaskMeta value) { if (senderMetaBuilder_ == null) { if (senderMeta_ != null) { senderMeta_ = org.tikv.kvproto.Mpp.TaskMeta.newBuilder(senderMeta_).mergeFrom(value).buildPartial(); } else { senderMeta_ = value; } onChanged(); } else { senderMetaBuilder_.mergeFrom(value); } return this; } /** *
       * node closer to the source
       * 
* * .mpp.TaskMeta sender_meta = 1; */ public Builder clearSenderMeta() { if (senderMetaBuilder_ == null) { senderMeta_ = null; onChanged(); } else { senderMeta_ = null; senderMetaBuilder_ = null; } return this; } /** *
       * node closer to the source
       * 
* * .mpp.TaskMeta sender_meta = 1; */ public org.tikv.kvproto.Mpp.TaskMeta.Builder getSenderMetaBuilder() { onChanged(); return getSenderMetaFieldBuilder().getBuilder(); } /** *
       * node closer to the source
       * 
* * .mpp.TaskMeta sender_meta = 1; */ public org.tikv.kvproto.Mpp.TaskMetaOrBuilder getSenderMetaOrBuilder() { if (senderMetaBuilder_ != null) { return senderMetaBuilder_.getMessageOrBuilder(); } else { return senderMeta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : senderMeta_; } } /** *
       * node closer to the source
       * 
* * .mpp.TaskMeta sender_meta = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder> getSenderMetaFieldBuilder() { if (senderMetaBuilder_ == null) { senderMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder>( getSenderMeta(), getParentForChildren(), isClean()); senderMeta_ = null; } return senderMetaBuilder_; } private org.tikv.kvproto.Mpp.TaskMeta receiverMeta_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder> receiverMetaBuilder_; /** *
       * node closer to the tidb mpp gather.
       * 
* * .mpp.TaskMeta receiver_meta = 2; */ public boolean hasReceiverMeta() { return receiverMetaBuilder_ != null || receiverMeta_ != null; } /** *
       * node closer to the tidb mpp gather.
       * 
* * .mpp.TaskMeta receiver_meta = 2; */ public org.tikv.kvproto.Mpp.TaskMeta getReceiverMeta() { if (receiverMetaBuilder_ == null) { return receiverMeta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : receiverMeta_; } else { return receiverMetaBuilder_.getMessage(); } } /** *
       * node closer to the tidb mpp gather.
       * 
* * .mpp.TaskMeta receiver_meta = 2; */ public Builder setReceiverMeta(org.tikv.kvproto.Mpp.TaskMeta value) { if (receiverMetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } receiverMeta_ = value; onChanged(); } else { receiverMetaBuilder_.setMessage(value); } return this; } /** *
       * node closer to the tidb mpp gather.
       * 
* * .mpp.TaskMeta receiver_meta = 2; */ public Builder setReceiverMeta( org.tikv.kvproto.Mpp.TaskMeta.Builder builderForValue) { if (receiverMetaBuilder_ == null) { receiverMeta_ = builderForValue.build(); onChanged(); } else { receiverMetaBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * node closer to the tidb mpp gather.
       * 
* * .mpp.TaskMeta receiver_meta = 2; */ public Builder mergeReceiverMeta(org.tikv.kvproto.Mpp.TaskMeta value) { if (receiverMetaBuilder_ == null) { if (receiverMeta_ != null) { receiverMeta_ = org.tikv.kvproto.Mpp.TaskMeta.newBuilder(receiverMeta_).mergeFrom(value).buildPartial(); } else { receiverMeta_ = value; } onChanged(); } else { receiverMetaBuilder_.mergeFrom(value); } return this; } /** *
       * node closer to the tidb mpp gather.
       * 
* * .mpp.TaskMeta receiver_meta = 2; */ public Builder clearReceiverMeta() { if (receiverMetaBuilder_ == null) { receiverMeta_ = null; onChanged(); } else { receiverMeta_ = null; receiverMetaBuilder_ = null; } return this; } /** *
       * node closer to the tidb mpp gather.
       * 
* * .mpp.TaskMeta receiver_meta = 2; */ public org.tikv.kvproto.Mpp.TaskMeta.Builder getReceiverMetaBuilder() { onChanged(); return getReceiverMetaFieldBuilder().getBuilder(); } /** *
       * node closer to the tidb mpp gather.
       * 
* * .mpp.TaskMeta receiver_meta = 2; */ public org.tikv.kvproto.Mpp.TaskMetaOrBuilder getReceiverMetaOrBuilder() { if (receiverMetaBuilder_ != null) { return receiverMetaBuilder_.getMessageOrBuilder(); } else { return receiverMeta_ == null ? org.tikv.kvproto.Mpp.TaskMeta.getDefaultInstance() : receiverMeta_; } } /** *
       * node closer to the tidb mpp gather.
       * 
* * .mpp.TaskMeta receiver_meta = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder> getReceiverMetaFieldBuilder() { if (receiverMetaBuilder_ == null) { receiverMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.TaskMeta, org.tikv.kvproto.Mpp.TaskMeta.Builder, org.tikv.kvproto.Mpp.TaskMetaOrBuilder>( getReceiverMeta(), getParentForChildren(), isClean()); receiverMeta_ = null; } return receiverMetaBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mpp.EstablishMPPConnectionRequest) } // @@protoc_insertion_point(class_scope:mpp.EstablishMPPConnectionRequest) private static final org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest(); } public static org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public EstablishMPPConnectionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EstablishMPPConnectionRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MPPDataPacketOrBuilder extends // @@protoc_insertion_point(interface_extends:mpp.MPPDataPacket) com.google.protobuf.MessageOrBuilder { /** * bytes data = 1; */ com.google.protobuf.ByteString getData(); /** * .mpp.Error error = 2; */ boolean hasError(); /** * .mpp.Error error = 2; */ org.tikv.kvproto.Mpp.Error getError(); /** * .mpp.Error error = 2; */ org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder(); } /** *
   * Data packets wrap tipb.SelectResponse.
   * 
* * Protobuf type {@code mpp.MPPDataPacket} */ public static final class MPPDataPacket extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mpp.MPPDataPacket) MPPDataPacketOrBuilder { private static final long serialVersionUID = 0L; // Use MPPDataPacket.newBuilder() to construct. private MPPDataPacket(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MPPDataPacket() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MPPDataPacket( 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 (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { data_ = input.readBytes(); break; } case 18: { org.tikv.kvproto.Mpp.Error.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Mpp.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } 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 org.tikv.kvproto.Mpp.internal_static_mpp_MPPDataPacket_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_MPPDataPacket_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.MPPDataPacket.class, org.tikv.kvproto.Mpp.MPPDataPacket.Builder.class); } public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_; /** * bytes data = 1; */ public com.google.protobuf.ByteString getData() { return data_; } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Mpp.Error error_; /** * .mpp.Error error = 2; */ public boolean hasError() { return error_ != null; } /** * .mpp.Error error = 2; */ public org.tikv.kvproto.Mpp.Error getError() { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } /** * .mpp.Error error = 2; */ public org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (!data_.isEmpty()) { output.writeBytes(1, data_); } if (error_ != null) { output.writeMessage(2, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } 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 org.tikv.kvproto.Mpp.MPPDataPacket)) { return super.equals(obj); } org.tikv.kvproto.Mpp.MPPDataPacket other = (org.tikv.kvproto.Mpp.MPPDataPacket) obj; boolean result = true; result = result && getData() .equals(other.getData()); result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Mpp.MPPDataPacket parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.MPPDataPacket parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.MPPDataPacket parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.MPPDataPacket parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.MPPDataPacket parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.MPPDataPacket parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.MPPDataPacket parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.MPPDataPacket 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 org.tikv.kvproto.Mpp.MPPDataPacket parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.MPPDataPacket 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 org.tikv.kvproto.Mpp.MPPDataPacket parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.MPPDataPacket 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(org.tikv.kvproto.Mpp.MPPDataPacket 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; } /** *
     * Data packets wrap tipb.SelectResponse.
     * 
* * Protobuf type {@code mpp.MPPDataPacket} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mpp.MPPDataPacket) org.tikv.kvproto.Mpp.MPPDataPacketOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Mpp.internal_static_mpp_MPPDataPacket_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_MPPDataPacket_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.MPPDataPacket.class, org.tikv.kvproto.Mpp.MPPDataPacket.Builder.class); } // Construct using org.tikv.kvproto.Mpp.MPPDataPacket.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Mpp.internal_static_mpp_MPPDataPacket_descriptor; } public org.tikv.kvproto.Mpp.MPPDataPacket getDefaultInstanceForType() { return org.tikv.kvproto.Mpp.MPPDataPacket.getDefaultInstance(); } public org.tikv.kvproto.Mpp.MPPDataPacket build() { org.tikv.kvproto.Mpp.MPPDataPacket result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Mpp.MPPDataPacket buildPartial() { org.tikv.kvproto.Mpp.MPPDataPacket result = new org.tikv.kvproto.Mpp.MPPDataPacket(this); result.data_ = data_; if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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 org.tikv.kvproto.Mpp.MPPDataPacket) { return mergeFrom((org.tikv.kvproto.Mpp.MPPDataPacket)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Mpp.MPPDataPacket other) { if (other == org.tikv.kvproto.Mpp.MPPDataPacket.getDefaultInstance()) return this; if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.hasError()) { mergeError(other.getError()); } 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 { org.tikv.kvproto.Mpp.MPPDataPacket parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Mpp.MPPDataPacket) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 1; */ public com.google.protobuf.ByteString getData() { return data_; } /** * bytes data = 1; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** * bytes data = 1; */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } private org.tikv.kvproto.Mpp.Error error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder> errorBuilder_; /** * .mpp.Error error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .mpp.Error error = 2; */ public org.tikv.kvproto.Mpp.Error getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .mpp.Error error = 2; */ public Builder setError(org.tikv.kvproto.Mpp.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .mpp.Error error = 2; */ public Builder setError( org.tikv.kvproto.Mpp.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .mpp.Error error = 2; */ public Builder mergeError(org.tikv.kvproto.Mpp.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Mpp.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .mpp.Error error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .mpp.Error error = 2; */ public org.tikv.kvproto.Mpp.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .mpp.Error error = 2; */ public org.tikv.kvproto.Mpp.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Mpp.Error.getDefaultInstance() : error_; } } /** * .mpp.Error error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Mpp.Error, org.tikv.kvproto.Mpp.Error.Builder, org.tikv.kvproto.Mpp.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mpp.MPPDataPacket) } // @@protoc_insertion_point(class_scope:mpp.MPPDataPacket) private static final org.tikv.kvproto.Mpp.MPPDataPacket DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Mpp.MPPDataPacket(); } public static org.tikv.kvproto.Mpp.MPPDataPacket getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MPPDataPacket parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MPPDataPacket(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Mpp.MPPDataPacket getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:mpp.Error) com.google.protobuf.MessageOrBuilder { /** * int32 code = 1; */ int getCode(); /** * string msg = 2; */ java.lang.String getMsg(); /** * string msg = 2; */ com.google.protobuf.ByteString getMsgBytes(); } /** * Protobuf type {@code mpp.Error} */ public static final class Error extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:mpp.Error) ErrorOrBuilder { private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Error() { code_ = 0; msg_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Error( 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 (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { code_ = input.readInt32(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); msg_ = s; 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 org.tikv.kvproto.Mpp.internal_static_mpp_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.Error.class, org.tikv.kvproto.Mpp.Error.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; private int code_; /** * int32 code = 1; */ public int getCode() { return code_; } public static final int MSG_FIELD_NUMBER = 2; private volatile java.lang.Object msg_; /** * string msg = 2; */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); msg_ = s; return s; } } /** * string msg = 2; */ public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (code_ != 0) { output.writeInt32(1, code_); } if (!getMsgBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (code_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, code_); } if (!getMsgBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_); } 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 org.tikv.kvproto.Mpp.Error)) { return super.equals(obj); } org.tikv.kvproto.Mpp.Error other = (org.tikv.kvproto.Mpp.Error) obj; boolean result = true; result = result && (getCode() == other.getCode()); result = result && getMsg() .equals(other.getMsg()); 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(); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode(); hash = (37 * hash) + MSG_FIELD_NUMBER; hash = (53 * hash) + getMsg().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Mpp.Error parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.Error parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Mpp.Error parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Mpp.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.Error 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 org.tikv.kvproto.Mpp.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.Error 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 org.tikv.kvproto.Mpp.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Mpp.Error 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(org.tikv.kvproto.Mpp.Error 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 mpp.Error} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mpp.Error) org.tikv.kvproto.Mpp.ErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Mpp.internal_static_mpp_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Mpp.internal_static_mpp_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Mpp.Error.class, org.tikv.kvproto.Mpp.Error.Builder.class); } // Construct using org.tikv.kvproto.Mpp.Error.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); code_ = 0; msg_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Mpp.internal_static_mpp_Error_descriptor; } public org.tikv.kvproto.Mpp.Error getDefaultInstanceForType() { return org.tikv.kvproto.Mpp.Error.getDefaultInstance(); } public org.tikv.kvproto.Mpp.Error build() { org.tikv.kvproto.Mpp.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Mpp.Error buildPartial() { org.tikv.kvproto.Mpp.Error result = new org.tikv.kvproto.Mpp.Error(this); result.code_ = code_; result.msg_ = msg_; 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 org.tikv.kvproto.Mpp.Error) { return mergeFrom((org.tikv.kvproto.Mpp.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Mpp.Error other) { if (other == org.tikv.kvproto.Mpp.Error.getDefaultInstance()) return this; if (other.getCode() != 0) { setCode(other.getCode()); } if (!other.getMsg().isEmpty()) { msg_ = other.msg_; onChanged(); } 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 { org.tikv.kvproto.Mpp.Error parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Mpp.Error) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int code_ ; /** * int32 code = 1; */ public int getCode() { return code_; } /** * int32 code = 1; */ public Builder setCode(int value) { code_ = value; onChanged(); return this; } /** * int32 code = 1; */ public Builder clearCode() { code_ = 0; onChanged(); return this; } private java.lang.Object msg_ = ""; /** * string msg = 2; */ public java.lang.String getMsg() { java.lang.Object ref = msg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); msg_ = s; return s; } else { return (java.lang.String) ref; } } /** * string msg = 2; */ public com.google.protobuf.ByteString getMsgBytes() { java.lang.Object ref = msg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); msg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string msg = 2; */ public Builder setMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } msg_ = value; onChanged(); return this; } /** * string msg = 2; */ public Builder clearMsg() { msg_ = getDefaultInstance().getMsg(); onChanged(); return this; } /** * string msg = 2; */ public Builder setMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); msg_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:mpp.Error) } // @@protoc_insertion_point(class_scope:mpp.Error) private static final org.tikv.kvproto.Mpp.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Mpp.Error(); } public static org.tikv.kvproto.Mpp.Error getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Error parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Error(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Mpp.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_mpp_TaskMeta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mpp_TaskMeta_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mpp_DispatchTaskRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mpp_DispatchTaskRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mpp_DispatchTaskResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mpp_DispatchTaskResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mpp_CancelTaskRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mpp_CancelTaskRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mpp_CancelTaskResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mpp_CancelTaskResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mpp_EstablishMPPConnectionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mpp_EstablishMPPConnectionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mpp_MPPDataPacket_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mpp_MPPDataPacket_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mpp_Error_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_mpp_Error_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\tmpp.proto\022\003mpp\032\024gogoproto/gogo.proto\032\021" + "coprocessor.proto\"T\n\010TaskMeta\022\020\n\010start_t" + "s\030\001 \001(\004\022\017\n\007task_id\030\002 \001(\003\022\024\n\014partition_id" + "\030\003 \001(\003\022\017\n\007address\030\004 \001(\t\"\227\001\n\023DispatchTask" + "Request\022\033\n\004meta\030\001 \001(\0132\r.mpp.TaskMeta\022\024\n\014" + "encoded_plan\030\002 \001(\014\022\017\n\007timeout\030\003 \001(\003\022(\n\007r" + "egions\030\004 \003(\0132\027.coprocessor.RegionInfo\022\022\n" + "\nschema_ver\030\005 \001(\003\"1\n\024DispatchTaskRespons" + "e\022\031\n\005error\030\001 \001(\0132\n.mpp.Error\"K\n\021CancelTa" + "skRequest\022\033\n\004meta\030\001 \001(\0132\r.mpp.TaskMeta\022\031" + "\n\005error\030\002 \001(\0132\n.mpp.Error\"/\n\022CancelTaskR" + "esponse\022\031\n\005error\030\001 \001(\0132\n.mpp.Error\"i\n\035Es" + "tablishMPPConnectionRequest\022\"\n\013sender_me" + "ta\030\001 \001(\0132\r.mpp.TaskMeta\022$\n\rreceiver_meta" + "\030\002 \001(\0132\r.mpp.TaskMeta\"8\n\rMPPDataPacket\022\014" + "\n\004data\030\001 \001(\014\022\031\n\005error\030\002 \001(\0132\n.mpp.Error\"" + "\"\n\005Error\022\014\n\004code\030\001 \001(\005\022\013\n\003msg\030\002 \001(\tB\036\n\020o" + "rg.tikv.kvproto\310\342\036\001\340\342\036\001\320\342\036\001b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), org.tikv.kvproto.Coprocessor.getDescriptor(), }, assigner); internal_static_mpp_TaskMeta_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_mpp_TaskMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mpp_TaskMeta_descriptor, new java.lang.String[] { "StartTs", "TaskId", "PartitionId", "Address", }); internal_static_mpp_DispatchTaskRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_mpp_DispatchTaskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mpp_DispatchTaskRequest_descriptor, new java.lang.String[] { "Meta", "EncodedPlan", "Timeout", "Regions", "SchemaVer", }); internal_static_mpp_DispatchTaskResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_mpp_DispatchTaskResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mpp_DispatchTaskResponse_descriptor, new java.lang.String[] { "Error", }); internal_static_mpp_CancelTaskRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_mpp_CancelTaskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mpp_CancelTaskRequest_descriptor, new java.lang.String[] { "Meta", "Error", }); internal_static_mpp_CancelTaskResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_mpp_CancelTaskResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mpp_CancelTaskResponse_descriptor, new java.lang.String[] { "Error", }); internal_static_mpp_EstablishMPPConnectionRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_mpp_EstablishMPPConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mpp_EstablishMPPConnectionRequest_descriptor, new java.lang.String[] { "SenderMeta", "ReceiverMeta", }); internal_static_mpp_MPPDataPacket_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_mpp_MPPDataPacket_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mpp_MPPDataPacket_descriptor, new java.lang.String[] { "Data", "Error", }); internal_static_mpp_Error_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_mpp_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_mpp_Error_descriptor, new java.lang.String[] { "Code", "Msg", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.marshalerAll); registry.add(com.google.protobuf.GoGoProtos.sizerAll); registry.add(com.google.protobuf.GoGoProtos.unmarshalerAll); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); org.tikv.kvproto.Coprocessor.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy