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

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

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

package org.tikv.kvproto;

public final class Tikvpb {
  private Tikvpb() {}
  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 BatchCommandsRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:tikvpb.BatchCommandsRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .tikvpb.BatchCommandsRequest.Request requests = 1;
     */
    java.util.List 
        getRequestsList();
    /**
     * repeated .tikvpb.BatchCommandsRequest.Request requests = 1;
     */
    org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request getRequests(int index);
    /**
     * repeated .tikvpb.BatchCommandsRequest.Request requests = 1;
     */
    int getRequestsCount();
    /**
     * repeated .tikvpb.BatchCommandsRequest.Request requests = 1;
     */
    java.util.List 
        getRequestsOrBuilderList();
    /**
     * repeated .tikvpb.BatchCommandsRequest.Request requests = 1;
     */
    org.tikv.kvproto.Tikvpb.BatchCommandsRequest.RequestOrBuilder getRequestsOrBuilder(
        int index);

    /**
     * repeated uint64 request_ids = 2;
     */
    java.util.List getRequestIdsList();
    /**
     * repeated uint64 request_ids = 2;
     */
    int getRequestIdsCount();
    /**
     * repeated uint64 request_ids = 2;
     */
    long getRequestIds(int index);
  }
  /**
   * Protobuf type {@code tikvpb.BatchCommandsRequest}
   */
  public  static final class BatchCommandsRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:tikvpb.BatchCommandsRequest)
      BatchCommandsRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BatchCommandsRequest.newBuilder() to construct.
    private BatchCommandsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private BatchCommandsRequest() {
      requests_ = java.util.Collections.emptyList();
      requestIds_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BatchCommandsRequest(
        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: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                requests_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              requests_.add(
                  input.readMessage(org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.parser(), extensionRegistry));
              break;
            }
            case 16: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                requestIds_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              requestIds_.add(input.readUInt64());
              break;
            }
            case 18: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
                requestIds_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              while (input.getBytesUntilLimit() > 0) {
                requestIds_.add(input.readUInt64());
              }
              input.popLimit(limit);
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          requests_ = java.util.Collections.unmodifiableList(requests_);
        }
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          requestIds_ = java.util.Collections.unmodifiableList(requestIds_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tikv.kvproto.Tikvpb.BatchCommandsRequest.class, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Builder.class);
    }

    public interface RequestOrBuilder extends
        // @@protoc_insertion_point(interface_extends:tikvpb.BatchCommandsRequest.Request)
        com.google.protobuf.MessageOrBuilder {

      /**
       * .kvrpcpb.GetRequest Get = 1;
       */
      boolean hasGet();
      /**
       * .kvrpcpb.GetRequest Get = 1;
       */
      org.tikv.kvproto.Kvrpcpb.GetRequest getGet();
      /**
       * .kvrpcpb.GetRequest Get = 1;
       */
      org.tikv.kvproto.Kvrpcpb.GetRequestOrBuilder getGetOrBuilder();

      /**
       * .kvrpcpb.ScanRequest Scan = 2;
       */
      boolean hasScan();
      /**
       * .kvrpcpb.ScanRequest Scan = 2;
       */
      org.tikv.kvproto.Kvrpcpb.ScanRequest getScan();
      /**
       * .kvrpcpb.ScanRequest Scan = 2;
       */
      org.tikv.kvproto.Kvrpcpb.ScanRequestOrBuilder getScanOrBuilder();

      /**
       * .kvrpcpb.PrewriteRequest Prewrite = 3;
       */
      boolean hasPrewrite();
      /**
       * .kvrpcpb.PrewriteRequest Prewrite = 3;
       */
      org.tikv.kvproto.Kvrpcpb.PrewriteRequest getPrewrite();
      /**
       * .kvrpcpb.PrewriteRequest Prewrite = 3;
       */
      org.tikv.kvproto.Kvrpcpb.PrewriteRequestOrBuilder getPrewriteOrBuilder();

      /**
       * .kvrpcpb.CommitRequest Commit = 4;
       */
      boolean hasCommit();
      /**
       * .kvrpcpb.CommitRequest Commit = 4;
       */
      org.tikv.kvproto.Kvrpcpb.CommitRequest getCommit();
      /**
       * .kvrpcpb.CommitRequest Commit = 4;
       */
      org.tikv.kvproto.Kvrpcpb.CommitRequestOrBuilder getCommitOrBuilder();

      /**
       * .kvrpcpb.ImportRequest Import = 5;
       */
      boolean hasImport();
      /**
       * .kvrpcpb.ImportRequest Import = 5;
       */
      org.tikv.kvproto.Kvrpcpb.ImportRequest getImport();
      /**
       * .kvrpcpb.ImportRequest Import = 5;
       */
      org.tikv.kvproto.Kvrpcpb.ImportRequestOrBuilder getImportOrBuilder();

      /**
       * .kvrpcpb.CleanupRequest Cleanup = 6;
       */
      boolean hasCleanup();
      /**
       * .kvrpcpb.CleanupRequest Cleanup = 6;
       */
      org.tikv.kvproto.Kvrpcpb.CleanupRequest getCleanup();
      /**
       * .kvrpcpb.CleanupRequest Cleanup = 6;
       */
      org.tikv.kvproto.Kvrpcpb.CleanupRequestOrBuilder getCleanupOrBuilder();

      /**
       * .kvrpcpb.BatchGetRequest BatchGet = 7;
       */
      boolean hasBatchGet();
      /**
       * .kvrpcpb.BatchGetRequest BatchGet = 7;
       */
      org.tikv.kvproto.Kvrpcpb.BatchGetRequest getBatchGet();
      /**
       * .kvrpcpb.BatchGetRequest BatchGet = 7;
       */
      org.tikv.kvproto.Kvrpcpb.BatchGetRequestOrBuilder getBatchGetOrBuilder();

      /**
       * .kvrpcpb.BatchRollbackRequest BatchRollback = 8;
       */
      boolean hasBatchRollback();
      /**
       * .kvrpcpb.BatchRollbackRequest BatchRollback = 8;
       */
      org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest getBatchRollback();
      /**
       * .kvrpcpb.BatchRollbackRequest BatchRollback = 8;
       */
      org.tikv.kvproto.Kvrpcpb.BatchRollbackRequestOrBuilder getBatchRollbackOrBuilder();

      /**
       * .kvrpcpb.ScanLockRequest ScanLock = 9;
       */
      boolean hasScanLock();
      /**
       * .kvrpcpb.ScanLockRequest ScanLock = 9;
       */
      org.tikv.kvproto.Kvrpcpb.ScanLockRequest getScanLock();
      /**
       * .kvrpcpb.ScanLockRequest ScanLock = 9;
       */
      org.tikv.kvproto.Kvrpcpb.ScanLockRequestOrBuilder getScanLockOrBuilder();

      /**
       * .kvrpcpb.ResolveLockRequest ResolveLock = 10;
       */
      boolean hasResolveLock();
      /**
       * .kvrpcpb.ResolveLockRequest ResolveLock = 10;
       */
      org.tikv.kvproto.Kvrpcpb.ResolveLockRequest getResolveLock();
      /**
       * .kvrpcpb.ResolveLockRequest ResolveLock = 10;
       */
      org.tikv.kvproto.Kvrpcpb.ResolveLockRequestOrBuilder getResolveLockOrBuilder();

      /**
       * .kvrpcpb.GCRequest GC = 11;
       */
      boolean hasGC();
      /**
       * .kvrpcpb.GCRequest GC = 11;
       */
      org.tikv.kvproto.Kvrpcpb.GCRequest getGC();
      /**
       * .kvrpcpb.GCRequest GC = 11;
       */
      org.tikv.kvproto.Kvrpcpb.GCRequestOrBuilder getGCOrBuilder();

      /**
       * .kvrpcpb.DeleteRangeRequest DeleteRange = 12;
       */
      boolean hasDeleteRange();
      /**
       * .kvrpcpb.DeleteRangeRequest DeleteRange = 12;
       */
      org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest getDeleteRange();
      /**
       * .kvrpcpb.DeleteRangeRequest DeleteRange = 12;
       */
      org.tikv.kvproto.Kvrpcpb.DeleteRangeRequestOrBuilder getDeleteRangeOrBuilder();

      /**
       * .kvrpcpb.RawGetRequest RawGet = 13;
       */
      boolean hasRawGet();
      /**
       * .kvrpcpb.RawGetRequest RawGet = 13;
       */
      org.tikv.kvproto.Kvrpcpb.RawGetRequest getRawGet();
      /**
       * .kvrpcpb.RawGetRequest RawGet = 13;
       */
      org.tikv.kvproto.Kvrpcpb.RawGetRequestOrBuilder getRawGetOrBuilder();

      /**
       * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14;
       */
      boolean hasRawBatchGet();
      /**
       * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14;
       */
      org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest getRawBatchGet();
      /**
       * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14;
       */
      org.tikv.kvproto.Kvrpcpb.RawBatchGetRequestOrBuilder getRawBatchGetOrBuilder();

      /**
       * .kvrpcpb.RawPutRequest RawPut = 15;
       */
      boolean hasRawPut();
      /**
       * .kvrpcpb.RawPutRequest RawPut = 15;
       */
      org.tikv.kvproto.Kvrpcpb.RawPutRequest getRawPut();
      /**
       * .kvrpcpb.RawPutRequest RawPut = 15;
       */
      org.tikv.kvproto.Kvrpcpb.RawPutRequestOrBuilder getRawPutOrBuilder();

      /**
       * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16;
       */
      boolean hasRawBatchPut();
      /**
       * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16;
       */
      org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest getRawBatchPut();
      /**
       * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16;
       */
      org.tikv.kvproto.Kvrpcpb.RawBatchPutRequestOrBuilder getRawBatchPutOrBuilder();

      /**
       * .kvrpcpb.RawDeleteRequest RawDelete = 17;
       */
      boolean hasRawDelete();
      /**
       * .kvrpcpb.RawDeleteRequest RawDelete = 17;
       */
      org.tikv.kvproto.Kvrpcpb.RawDeleteRequest getRawDelete();
      /**
       * .kvrpcpb.RawDeleteRequest RawDelete = 17;
       */
      org.tikv.kvproto.Kvrpcpb.RawDeleteRequestOrBuilder getRawDeleteOrBuilder();

      /**
       * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18;
       */
      boolean hasRawBatchDelete();
      /**
       * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18;
       */
      org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest getRawBatchDelete();
      /**
       * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18;
       */
      org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequestOrBuilder getRawBatchDeleteOrBuilder();

      /**
       * .kvrpcpb.RawScanRequest RawScan = 19;
       */
      boolean hasRawScan();
      /**
       * .kvrpcpb.RawScanRequest RawScan = 19;
       */
      org.tikv.kvproto.Kvrpcpb.RawScanRequest getRawScan();
      /**
       * .kvrpcpb.RawScanRequest RawScan = 19;
       */
      org.tikv.kvproto.Kvrpcpb.RawScanRequestOrBuilder getRawScanOrBuilder();

      /**
       * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20;
       */
      boolean hasRawDeleteRange();
      /**
       * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20;
       */
      org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest getRawDeleteRange();
      /**
       * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20;
       */
      org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequestOrBuilder getRawDeleteRangeOrBuilder();

      /**
       * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21;
       */
      boolean hasRawBatchScan();
      /**
       * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21;
       */
      org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest getRawBatchScan();
      /**
       * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21;
       */
      org.tikv.kvproto.Kvrpcpb.RawBatchScanRequestOrBuilder getRawBatchScanOrBuilder();

      /**
       * .coprocessor.Request Coprocessor = 22;
       */
      boolean hasCoprocessor();
      /**
       * .coprocessor.Request Coprocessor = 22;
       */
      org.tikv.kvproto.Coprocessor.Request getCoprocessor();
      /**
       * .coprocessor.Request Coprocessor = 22;
       */
      org.tikv.kvproto.Coprocessor.RequestOrBuilder getCoprocessorOrBuilder();

      /**
       * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23;
       */
      boolean hasPessimisticLock();
      /**
       * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23;
       */
      org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest getPessimisticLock();
      /**
       * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23;
       */
      org.tikv.kvproto.Kvrpcpb.PessimisticLockRequestOrBuilder getPessimisticLockOrBuilder();

      /**
       * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24;
       */
      boolean hasPessimisticRollback();
      /**
       * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24;
       */
      org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest getPessimisticRollback();
      /**
       * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24;
       */
      org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequestOrBuilder getPessimisticRollbackOrBuilder();

      /**
       * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25;
       */
      boolean hasCheckTxnStatus();
      /**
       * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25;
       */
      org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest getCheckTxnStatus();
      /**
       * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25;
       */
      org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequestOrBuilder getCheckTxnStatusOrBuilder();

      /**
       * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26;
       */
      boolean hasTxnHeartBeat();
      /**
       * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26;
       */
      org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest getTxnHeartBeat();
      /**
       * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26;
       */
      org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequestOrBuilder getTxnHeartBeatOrBuilder();

      /**
       * .kvrpcpb.VerGetRequest VerGet = 27;
       */
      boolean hasVerGet();
      /**
       * .kvrpcpb.VerGetRequest VerGet = 27;
       */
      org.tikv.kvproto.Kvrpcpb.VerGetRequest getVerGet();
      /**
       * .kvrpcpb.VerGetRequest VerGet = 27;
       */
      org.tikv.kvproto.Kvrpcpb.VerGetRequestOrBuilder getVerGetOrBuilder();

      /**
       * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28;
       */
      boolean hasVerBatchGet();
      /**
       * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28;
       */
      org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest getVerBatchGet();
      /**
       * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28;
       */
      org.tikv.kvproto.Kvrpcpb.VerBatchGetRequestOrBuilder getVerBatchGetOrBuilder();

      /**
       * .kvrpcpb.VerMutRequest VerMut = 29;
       */
      boolean hasVerMut();
      /**
       * .kvrpcpb.VerMutRequest VerMut = 29;
       */
      org.tikv.kvproto.Kvrpcpb.VerMutRequest getVerMut();
      /**
       * .kvrpcpb.VerMutRequest VerMut = 29;
       */
      org.tikv.kvproto.Kvrpcpb.VerMutRequestOrBuilder getVerMutOrBuilder();

      /**
       * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30;
       */
      boolean hasVerBatchMut();
      /**
       * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30;
       */
      org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest getVerBatchMut();
      /**
       * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30;
       */
      org.tikv.kvproto.Kvrpcpb.VerBatchMutRequestOrBuilder getVerBatchMutOrBuilder();

      /**
       * .kvrpcpb.VerScanRequest VerScan = 31;
       */
      boolean hasVerScan();
      /**
       * .kvrpcpb.VerScanRequest VerScan = 31;
       */
      org.tikv.kvproto.Kvrpcpb.VerScanRequest getVerScan();
      /**
       * .kvrpcpb.VerScanRequest VerScan = 31;
       */
      org.tikv.kvproto.Kvrpcpb.VerScanRequestOrBuilder getVerScanOrBuilder();

      /**
       * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32;
       */
      boolean hasVerDeleteRange();
      /**
       * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32;
       */
      org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest getVerDeleteRange();
      /**
       * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32;
       */
      org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequestOrBuilder getVerDeleteRangeOrBuilder();

      /**
       * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33;
       */
      boolean hasCheckSecondaryLocks();
      /**
       * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33;
       */
      org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest getCheckSecondaryLocks();
      /**
       * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33;
       */
      org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequestOrBuilder getCheckSecondaryLocksOrBuilder();

      /**
       * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34;
       */
      boolean hasCoprocessorV2();
      /**
       * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34;
       */
      org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest getCoprocessorV2();
      /**
       * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34;
       */
      org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequestOrBuilder getCoprocessorV2OrBuilder();

      /**
       * 
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ boolean hasEmpty(); /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest getEmpty(); /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequestOrBuilder getEmptyOrBuilder(); public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.CmdCase getCmdCase(); } /** * Protobuf type {@code tikvpb.BatchCommandsRequest.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tikvpb.BatchCommandsRequest.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Request( 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; int mutable_bitField1_ = 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.Kvrpcpb.GetRequest.Builder subBuilder = null; if (cmdCase_ == 1) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.GetRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.GetRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.GetRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 1; break; } case 18: { org.tikv.kvproto.Kvrpcpb.ScanRequest.Builder subBuilder = null; if (cmdCase_ == 2) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.ScanRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ScanRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 2; break; } case 26: { org.tikv.kvproto.Kvrpcpb.PrewriteRequest.Builder subBuilder = null; if (cmdCase_ == 3) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.PrewriteRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.PrewriteRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.PrewriteRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 3; break; } case 34: { org.tikv.kvproto.Kvrpcpb.CommitRequest.Builder subBuilder = null; if (cmdCase_ == 4) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.CommitRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.CommitRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.CommitRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 4; break; } case 42: { org.tikv.kvproto.Kvrpcpb.ImportRequest.Builder subBuilder = null; if (cmdCase_ == 5) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.ImportRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ImportRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.ImportRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 5; break; } case 50: { org.tikv.kvproto.Kvrpcpb.CleanupRequest.Builder subBuilder = null; if (cmdCase_ == 6) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.CleanupRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.CleanupRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.CleanupRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 6; break; } case 58: { org.tikv.kvproto.Kvrpcpb.BatchGetRequest.Builder subBuilder = null; if (cmdCase_ == 7) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.BatchGetRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.BatchGetRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.BatchGetRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 7; break; } case 66: { org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.Builder subBuilder = null; if (cmdCase_ == 8) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 8; break; } case 74: { org.tikv.kvproto.Kvrpcpb.ScanLockRequest.Builder subBuilder = null; if (cmdCase_ == 9) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.ScanLockRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ScanLockRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanLockRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 9; break; } case 82: { org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.Builder subBuilder = null; if (cmdCase_ == 10) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 10; break; } case 90: { org.tikv.kvproto.Kvrpcpb.GCRequest.Builder subBuilder = null; if (cmdCase_ == 11) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.GCRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.GCRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.GCRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 11; break; } case 98: { org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.Builder subBuilder = null; if (cmdCase_ == 12) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 12; break; } case 106: { org.tikv.kvproto.Kvrpcpb.RawGetRequest.Builder subBuilder = null; if (cmdCase_ == 13) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawGetRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawGetRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawGetRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 13; break; } case 114: { org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.Builder subBuilder = null; if (cmdCase_ == 14) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 14; break; } case 122: { org.tikv.kvproto.Kvrpcpb.RawPutRequest.Builder subBuilder = null; if (cmdCase_ == 15) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawPutRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawPutRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawPutRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 15; break; } case 130: { org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.Builder subBuilder = null; if (cmdCase_ == 16) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 16; break; } case 138: { org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.Builder subBuilder = null; if (cmdCase_ == 17) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 17; break; } case 146: { org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.Builder subBuilder = null; if (cmdCase_ == 18) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 18; break; } case 154: { org.tikv.kvproto.Kvrpcpb.RawScanRequest.Builder subBuilder = null; if (cmdCase_ == 19) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawScanRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawScanRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawScanRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 19; break; } case 162: { org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.Builder subBuilder = null; if (cmdCase_ == 20) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 20; break; } case 170: { org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.Builder subBuilder = null; if (cmdCase_ == 21) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 21; break; } case 178: { org.tikv.kvproto.Coprocessor.Request.Builder subBuilder = null; if (cmdCase_ == 22) { subBuilder = ((org.tikv.kvproto.Coprocessor.Request) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Coprocessor.Request.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Coprocessor.Request) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 22; break; } case 186: { org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.Builder subBuilder = null; if (cmdCase_ == 23) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 23; break; } case 194: { org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.Builder subBuilder = null; if (cmdCase_ == 24) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 24; break; } case 202: { org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.Builder subBuilder = null; if (cmdCase_ == 25) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 25; break; } case 210: { org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.Builder subBuilder = null; if (cmdCase_ == 26) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 26; break; } case 218: { org.tikv.kvproto.Kvrpcpb.VerGetRequest.Builder subBuilder = null; if (cmdCase_ == 27) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerGetRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerGetRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerGetRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 27; break; } case 226: { org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.Builder subBuilder = null; if (cmdCase_ == 28) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 28; break; } case 234: { org.tikv.kvproto.Kvrpcpb.VerMutRequest.Builder subBuilder = null; if (cmdCase_ == 29) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerMutRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerMutRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerMutRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 29; break; } case 242: { org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.Builder subBuilder = null; if (cmdCase_ == 30) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 30; break; } case 250: { org.tikv.kvproto.Kvrpcpb.VerScanRequest.Builder subBuilder = null; if (cmdCase_ == 31) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerScanRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerScanRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerScanRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 31; break; } case 258: { org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.Builder subBuilder = null; if (cmdCase_ == 32) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 32; break; } case 266: { org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.Builder subBuilder = null; if (cmdCase_ == 33) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 33; break; } case 274: { org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.Builder subBuilder = null; if (cmdCase_ == 34) { subBuilder = ((org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 34; break; } case 2042: { org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.Builder subBuilder = null; if (cmdCase_ == 255) { subBuilder = ((org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 255; 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.Tikvpb.internal_static_tikvpb_BatchCommandsRequest_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsRequest_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.class, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder.class); } private int cmdCase_ = 0; private java.lang.Object cmd_; public enum CmdCase implements com.google.protobuf.Internal.EnumLite { GET(1), SCAN(2), PREWRITE(3), COMMIT(4), IMPORT(5), CLEANUP(6), BATCHGET(7), BATCHROLLBACK(8), SCANLOCK(9), RESOLVELOCK(10), GC(11), DELETERANGE(12), RAWGET(13), RAWBATCHGET(14), RAWPUT(15), RAWBATCHPUT(16), RAWDELETE(17), RAWBATCHDELETE(18), RAWSCAN(19), RAWDELETERANGE(20), RAWBATCHSCAN(21), COPROCESSOR(22), PESSIMISTICLOCK(23), PESSIMISTICROLLBACK(24), CHECKTXNSTATUS(25), TXNHEARTBEAT(26), VERGET(27), VERBATCHGET(28), VERMUT(29), VERBATCHMUT(30), VERSCAN(31), VERDELETERANGE(32), CHECKSECONDARYLOCKS(33), COPROCESSORV2(34), EMPTY(255), CMD_NOT_SET(0); private final int value; private CmdCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CmdCase valueOf(int value) { return forNumber(value); } public static CmdCase forNumber(int value) { switch (value) { case 1: return GET; case 2: return SCAN; case 3: return PREWRITE; case 4: return COMMIT; case 5: return IMPORT; case 6: return CLEANUP; case 7: return BATCHGET; case 8: return BATCHROLLBACK; case 9: return SCANLOCK; case 10: return RESOLVELOCK; case 11: return GC; case 12: return DELETERANGE; case 13: return RAWGET; case 14: return RAWBATCHGET; case 15: return RAWPUT; case 16: return RAWBATCHPUT; case 17: return RAWDELETE; case 18: return RAWBATCHDELETE; case 19: return RAWSCAN; case 20: return RAWDELETERANGE; case 21: return RAWBATCHSCAN; case 22: return COPROCESSOR; case 23: return PESSIMISTICLOCK; case 24: return PESSIMISTICROLLBACK; case 25: return CHECKTXNSTATUS; case 26: return TXNHEARTBEAT; case 27: return VERGET; case 28: return VERBATCHGET; case 29: return VERMUT; case 30: return VERBATCHMUT; case 31: return VERSCAN; case 32: return VERDELETERANGE; case 33: return CHECKSECONDARYLOCKS; case 34: return COPROCESSORV2; case 255: return EMPTY; case 0: return CMD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public CmdCase getCmdCase() { return CmdCase.forNumber( cmdCase_); } public static final int GET_FIELD_NUMBER = 1; /** * .kvrpcpb.GetRequest Get = 1; */ public boolean hasGet() { return cmdCase_ == 1; } /** * .kvrpcpb.GetRequest Get = 1; */ public org.tikv.kvproto.Kvrpcpb.GetRequest getGet() { if (cmdCase_ == 1) { return (org.tikv.kvproto.Kvrpcpb.GetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.GetRequest.getDefaultInstance(); } /** * .kvrpcpb.GetRequest Get = 1; */ public org.tikv.kvproto.Kvrpcpb.GetRequestOrBuilder getGetOrBuilder() { if (cmdCase_ == 1) { return (org.tikv.kvproto.Kvrpcpb.GetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.GetRequest.getDefaultInstance(); } public static final int SCAN_FIELD_NUMBER = 2; /** * .kvrpcpb.ScanRequest Scan = 2; */ public boolean hasScan() { return cmdCase_ == 2; } /** * .kvrpcpb.ScanRequest Scan = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanRequest getScan() { if (cmdCase_ == 2) { return (org.tikv.kvproto.Kvrpcpb.ScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanRequest.getDefaultInstance(); } /** * .kvrpcpb.ScanRequest Scan = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanRequestOrBuilder getScanOrBuilder() { if (cmdCase_ == 2) { return (org.tikv.kvproto.Kvrpcpb.ScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanRequest.getDefaultInstance(); } public static final int PREWRITE_FIELD_NUMBER = 3; /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public boolean hasPrewrite() { return cmdCase_ == 3; } /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public org.tikv.kvproto.Kvrpcpb.PrewriteRequest getPrewrite() { if (cmdCase_ == 3) { return (org.tikv.kvproto.Kvrpcpb.PrewriteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PrewriteRequest.getDefaultInstance(); } /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public org.tikv.kvproto.Kvrpcpb.PrewriteRequestOrBuilder getPrewriteOrBuilder() { if (cmdCase_ == 3) { return (org.tikv.kvproto.Kvrpcpb.PrewriteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PrewriteRequest.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 4; /** * .kvrpcpb.CommitRequest Commit = 4; */ public boolean hasCommit() { return cmdCase_ == 4; } /** * .kvrpcpb.CommitRequest Commit = 4; */ public org.tikv.kvproto.Kvrpcpb.CommitRequest getCommit() { if (cmdCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.CommitRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CommitRequest.getDefaultInstance(); } /** * .kvrpcpb.CommitRequest Commit = 4; */ public org.tikv.kvproto.Kvrpcpb.CommitRequestOrBuilder getCommitOrBuilder() { if (cmdCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.CommitRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CommitRequest.getDefaultInstance(); } public static final int IMPORT_FIELD_NUMBER = 5; /** * .kvrpcpb.ImportRequest Import = 5; */ public boolean hasImport() { return cmdCase_ == 5; } /** * .kvrpcpb.ImportRequest Import = 5; */ public org.tikv.kvproto.Kvrpcpb.ImportRequest getImport() { if (cmdCase_ == 5) { return (org.tikv.kvproto.Kvrpcpb.ImportRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ImportRequest.getDefaultInstance(); } /** * .kvrpcpb.ImportRequest Import = 5; */ public org.tikv.kvproto.Kvrpcpb.ImportRequestOrBuilder getImportOrBuilder() { if (cmdCase_ == 5) { return (org.tikv.kvproto.Kvrpcpb.ImportRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ImportRequest.getDefaultInstance(); } public static final int CLEANUP_FIELD_NUMBER = 6; /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public boolean hasCleanup() { return cmdCase_ == 6; } /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public org.tikv.kvproto.Kvrpcpb.CleanupRequest getCleanup() { if (cmdCase_ == 6) { return (org.tikv.kvproto.Kvrpcpb.CleanupRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CleanupRequest.getDefaultInstance(); } /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public org.tikv.kvproto.Kvrpcpb.CleanupRequestOrBuilder getCleanupOrBuilder() { if (cmdCase_ == 6) { return (org.tikv.kvproto.Kvrpcpb.CleanupRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CleanupRequest.getDefaultInstance(); } public static final int BATCHGET_FIELD_NUMBER = 7; /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public boolean hasBatchGet() { return cmdCase_ == 7; } /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public org.tikv.kvproto.Kvrpcpb.BatchGetRequest getBatchGet() { if (cmdCase_ == 7) { return (org.tikv.kvproto.Kvrpcpb.BatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchGetRequest.getDefaultInstance(); } /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public org.tikv.kvproto.Kvrpcpb.BatchGetRequestOrBuilder getBatchGetOrBuilder() { if (cmdCase_ == 7) { return (org.tikv.kvproto.Kvrpcpb.BatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchGetRequest.getDefaultInstance(); } public static final int BATCHROLLBACK_FIELD_NUMBER = 8; /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public boolean hasBatchRollback() { return cmdCase_ == 8; } /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest getBatchRollback() { if (cmdCase_ == 8) { return (org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.getDefaultInstance(); } /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackRequestOrBuilder getBatchRollbackOrBuilder() { if (cmdCase_ == 8) { return (org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.getDefaultInstance(); } public static final int SCANLOCK_FIELD_NUMBER = 9; /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public boolean hasScanLock() { return cmdCase_ == 9; } /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public org.tikv.kvproto.Kvrpcpb.ScanLockRequest getScanLock() { if (cmdCase_ == 9) { return (org.tikv.kvproto.Kvrpcpb.ScanLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanLockRequest.getDefaultInstance(); } /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public org.tikv.kvproto.Kvrpcpb.ScanLockRequestOrBuilder getScanLockOrBuilder() { if (cmdCase_ == 9) { return (org.tikv.kvproto.Kvrpcpb.ScanLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanLockRequest.getDefaultInstance(); } public static final int RESOLVELOCK_FIELD_NUMBER = 10; /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public boolean hasResolveLock() { return cmdCase_ == 10; } /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public org.tikv.kvproto.Kvrpcpb.ResolveLockRequest getResolveLock() { if (cmdCase_ == 10) { return (org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.getDefaultInstance(); } /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public org.tikv.kvproto.Kvrpcpb.ResolveLockRequestOrBuilder getResolveLockOrBuilder() { if (cmdCase_ == 10) { return (org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.getDefaultInstance(); } public static final int GC_FIELD_NUMBER = 11; /** * .kvrpcpb.GCRequest GC = 11; */ public boolean hasGC() { return cmdCase_ == 11; } /** * .kvrpcpb.GCRequest GC = 11; */ public org.tikv.kvproto.Kvrpcpb.GCRequest getGC() { if (cmdCase_ == 11) { return (org.tikv.kvproto.Kvrpcpb.GCRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.GCRequest.getDefaultInstance(); } /** * .kvrpcpb.GCRequest GC = 11; */ public org.tikv.kvproto.Kvrpcpb.GCRequestOrBuilder getGCOrBuilder() { if (cmdCase_ == 11) { return (org.tikv.kvproto.Kvrpcpb.GCRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.GCRequest.getDefaultInstance(); } public static final int DELETERANGE_FIELD_NUMBER = 12; /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public boolean hasDeleteRange() { return cmdCase_ == 12; } /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest getDeleteRange() { if (cmdCase_ == 12) { return (org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.getDefaultInstance(); } /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeRequestOrBuilder getDeleteRangeOrBuilder() { if (cmdCase_ == 12) { return (org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.getDefaultInstance(); } public static final int RAWGET_FIELD_NUMBER = 13; /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public boolean hasRawGet() { return cmdCase_ == 13; } /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public org.tikv.kvproto.Kvrpcpb.RawGetRequest getRawGet() { if (cmdCase_ == 13) { return (org.tikv.kvproto.Kvrpcpb.RawGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawGetRequest.getDefaultInstance(); } /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public org.tikv.kvproto.Kvrpcpb.RawGetRequestOrBuilder getRawGetOrBuilder() { if (cmdCase_ == 13) { return (org.tikv.kvproto.Kvrpcpb.RawGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawGetRequest.getDefaultInstance(); } public static final int RAWBATCHGET_FIELD_NUMBER = 14; /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public boolean hasRawBatchGet() { return cmdCase_ == 14; } /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest getRawBatchGet() { if (cmdCase_ == 14) { return (org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.getDefaultInstance(); } /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetRequestOrBuilder getRawBatchGetOrBuilder() { if (cmdCase_ == 14) { return (org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.getDefaultInstance(); } public static final int RAWPUT_FIELD_NUMBER = 15; /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public boolean hasRawPut() { return cmdCase_ == 15; } /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public org.tikv.kvproto.Kvrpcpb.RawPutRequest getRawPut() { if (cmdCase_ == 15) { return (org.tikv.kvproto.Kvrpcpb.RawPutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawPutRequest.getDefaultInstance(); } /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public org.tikv.kvproto.Kvrpcpb.RawPutRequestOrBuilder getRawPutOrBuilder() { if (cmdCase_ == 15) { return (org.tikv.kvproto.Kvrpcpb.RawPutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawPutRequest.getDefaultInstance(); } public static final int RAWBATCHPUT_FIELD_NUMBER = 16; /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public boolean hasRawBatchPut() { return cmdCase_ == 16; } /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest getRawBatchPut() { if (cmdCase_ == 16) { return (org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.getDefaultInstance(); } /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutRequestOrBuilder getRawBatchPutOrBuilder() { if (cmdCase_ == 16) { return (org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.getDefaultInstance(); } public static final int RAWDELETE_FIELD_NUMBER = 17; /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public boolean hasRawDelete() { return cmdCase_ == 17; } /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRequest getRawDelete() { if (cmdCase_ == 17) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.getDefaultInstance(); } /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRequestOrBuilder getRawDeleteOrBuilder() { if (cmdCase_ == 17) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.getDefaultInstance(); } public static final int RAWBATCHDELETE_FIELD_NUMBER = 18; /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public boolean hasRawBatchDelete() { return cmdCase_ == 18; } /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest getRawBatchDelete() { if (cmdCase_ == 18) { return (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.getDefaultInstance(); } /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequestOrBuilder getRawBatchDeleteOrBuilder() { if (cmdCase_ == 18) { return (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.getDefaultInstance(); } public static final int RAWSCAN_FIELD_NUMBER = 19; /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public boolean hasRawScan() { return cmdCase_ == 19; } /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public org.tikv.kvproto.Kvrpcpb.RawScanRequest getRawScan() { if (cmdCase_ == 19) { return (org.tikv.kvproto.Kvrpcpb.RawScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawScanRequest.getDefaultInstance(); } /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public org.tikv.kvproto.Kvrpcpb.RawScanRequestOrBuilder getRawScanOrBuilder() { if (cmdCase_ == 19) { return (org.tikv.kvproto.Kvrpcpb.RawScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawScanRequest.getDefaultInstance(); } public static final int RAWDELETERANGE_FIELD_NUMBER = 20; /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public boolean hasRawDeleteRange() { return cmdCase_ == 20; } /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest getRawDeleteRange() { if (cmdCase_ == 20) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.getDefaultInstance(); } /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequestOrBuilder getRawDeleteRangeOrBuilder() { if (cmdCase_ == 20) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.getDefaultInstance(); } public static final int RAWBATCHSCAN_FIELD_NUMBER = 21; /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public boolean hasRawBatchScan() { return cmdCase_ == 21; } /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest getRawBatchScan() { if (cmdCase_ == 21) { return (org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.getDefaultInstance(); } /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanRequestOrBuilder getRawBatchScanOrBuilder() { if (cmdCase_ == 21) { return (org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.getDefaultInstance(); } public static final int COPROCESSOR_FIELD_NUMBER = 22; /** * .coprocessor.Request Coprocessor = 22; */ public boolean hasCoprocessor() { return cmdCase_ == 22; } /** * .coprocessor.Request Coprocessor = 22; */ public org.tikv.kvproto.Coprocessor.Request getCoprocessor() { if (cmdCase_ == 22) { return (org.tikv.kvproto.Coprocessor.Request) cmd_; } return org.tikv.kvproto.Coprocessor.Request.getDefaultInstance(); } /** * .coprocessor.Request Coprocessor = 22; */ public org.tikv.kvproto.Coprocessor.RequestOrBuilder getCoprocessorOrBuilder() { if (cmdCase_ == 22) { return (org.tikv.kvproto.Coprocessor.Request) cmd_; } return org.tikv.kvproto.Coprocessor.Request.getDefaultInstance(); } public static final int PESSIMISTICLOCK_FIELD_NUMBER = 23; /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public boolean hasPessimisticLock() { return cmdCase_ == 23; } /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest getPessimisticLock() { if (cmdCase_ == 23) { return (org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.getDefaultInstance(); } /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockRequestOrBuilder getPessimisticLockOrBuilder() { if (cmdCase_ == 23) { return (org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.getDefaultInstance(); } public static final int PESSIMISTICROLLBACK_FIELD_NUMBER = 24; /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public boolean hasPessimisticRollback() { return cmdCase_ == 24; } /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest getPessimisticRollback() { if (cmdCase_ == 24) { return (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.getDefaultInstance(); } /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequestOrBuilder getPessimisticRollbackOrBuilder() { if (cmdCase_ == 24) { return (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.getDefaultInstance(); } public static final int CHECKTXNSTATUS_FIELD_NUMBER = 25; /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public boolean hasCheckTxnStatus() { return cmdCase_ == 25; } /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest getCheckTxnStatus() { if (cmdCase_ == 25) { return (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.getDefaultInstance(); } /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequestOrBuilder getCheckTxnStatusOrBuilder() { if (cmdCase_ == 25) { return (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.getDefaultInstance(); } public static final int TXNHEARTBEAT_FIELD_NUMBER = 26; /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public boolean hasTxnHeartBeat() { return cmdCase_ == 26; } /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest getTxnHeartBeat() { if (cmdCase_ == 26) { return (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.getDefaultInstance(); } /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequestOrBuilder getTxnHeartBeatOrBuilder() { if (cmdCase_ == 26) { return (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.getDefaultInstance(); } public static final int VERGET_FIELD_NUMBER = 27; /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public boolean hasVerGet() { return cmdCase_ == 27; } /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public org.tikv.kvproto.Kvrpcpb.VerGetRequest getVerGet() { if (cmdCase_ == 27) { return (org.tikv.kvproto.Kvrpcpb.VerGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerGetRequest.getDefaultInstance(); } /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public org.tikv.kvproto.Kvrpcpb.VerGetRequestOrBuilder getVerGetOrBuilder() { if (cmdCase_ == 27) { return (org.tikv.kvproto.Kvrpcpb.VerGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerGetRequest.getDefaultInstance(); } public static final int VERBATCHGET_FIELD_NUMBER = 28; /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public boolean hasVerBatchGet() { return cmdCase_ == 28; } /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest getVerBatchGet() { if (cmdCase_ == 28) { return (org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.getDefaultInstance(); } /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetRequestOrBuilder getVerBatchGetOrBuilder() { if (cmdCase_ == 28) { return (org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.getDefaultInstance(); } public static final int VERMUT_FIELD_NUMBER = 29; /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public boolean hasVerMut() { return cmdCase_ == 29; } /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public org.tikv.kvproto.Kvrpcpb.VerMutRequest getVerMut() { if (cmdCase_ == 29) { return (org.tikv.kvproto.Kvrpcpb.VerMutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerMutRequest.getDefaultInstance(); } /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public org.tikv.kvproto.Kvrpcpb.VerMutRequestOrBuilder getVerMutOrBuilder() { if (cmdCase_ == 29) { return (org.tikv.kvproto.Kvrpcpb.VerMutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerMutRequest.getDefaultInstance(); } public static final int VERBATCHMUT_FIELD_NUMBER = 30; /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public boolean hasVerBatchMut() { return cmdCase_ == 30; } /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest getVerBatchMut() { if (cmdCase_ == 30) { return (org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.getDefaultInstance(); } /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutRequestOrBuilder getVerBatchMutOrBuilder() { if (cmdCase_ == 30) { return (org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.getDefaultInstance(); } public static final int VERSCAN_FIELD_NUMBER = 31; /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public boolean hasVerScan() { return cmdCase_ == 31; } /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public org.tikv.kvproto.Kvrpcpb.VerScanRequest getVerScan() { if (cmdCase_ == 31) { return (org.tikv.kvproto.Kvrpcpb.VerScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerScanRequest.getDefaultInstance(); } /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public org.tikv.kvproto.Kvrpcpb.VerScanRequestOrBuilder getVerScanOrBuilder() { if (cmdCase_ == 31) { return (org.tikv.kvproto.Kvrpcpb.VerScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerScanRequest.getDefaultInstance(); } public static final int VERDELETERANGE_FIELD_NUMBER = 32; /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public boolean hasVerDeleteRange() { return cmdCase_ == 32; } /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest getVerDeleteRange() { if (cmdCase_ == 32) { return (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.getDefaultInstance(); } /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequestOrBuilder getVerDeleteRangeOrBuilder() { if (cmdCase_ == 32) { return (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.getDefaultInstance(); } public static final int CHECKSECONDARYLOCKS_FIELD_NUMBER = 33; /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public boolean hasCheckSecondaryLocks() { return cmdCase_ == 33; } /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest getCheckSecondaryLocks() { if (cmdCase_ == 33) { return (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.getDefaultInstance(); } /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequestOrBuilder getCheckSecondaryLocksOrBuilder() { if (cmdCase_ == 33) { return (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.getDefaultInstance(); } public static final int COPROCESSORV2_FIELD_NUMBER = 34; /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public boolean hasCoprocessorV2() { return cmdCase_ == 34; } /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest getCoprocessorV2() { if (cmdCase_ == 34) { return (org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) cmd_; } return org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.getDefaultInstance(); } /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequestOrBuilder getCoprocessorV2OrBuilder() { if (cmdCase_ == 34) { return (org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) cmd_; } return org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.getDefaultInstance(); } public static final int EMPTY_FIELD_NUMBER = 255; /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public boolean hasEmpty() { return cmdCase_ == 255; } /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest getEmpty() { if (cmdCase_ == 255) { return (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) cmd_; } return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.getDefaultInstance(); } /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequestOrBuilder getEmptyOrBuilder() { if (cmdCase_ == 255) { return (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) cmd_; } return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.getDefaultInstance(); } 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 (cmdCase_ == 1) { output.writeMessage(1, (org.tikv.kvproto.Kvrpcpb.GetRequest) cmd_); } if (cmdCase_ == 2) { output.writeMessage(2, (org.tikv.kvproto.Kvrpcpb.ScanRequest) cmd_); } if (cmdCase_ == 3) { output.writeMessage(3, (org.tikv.kvproto.Kvrpcpb.PrewriteRequest) cmd_); } if (cmdCase_ == 4) { output.writeMessage(4, (org.tikv.kvproto.Kvrpcpb.CommitRequest) cmd_); } if (cmdCase_ == 5) { output.writeMessage(5, (org.tikv.kvproto.Kvrpcpb.ImportRequest) cmd_); } if (cmdCase_ == 6) { output.writeMessage(6, (org.tikv.kvproto.Kvrpcpb.CleanupRequest) cmd_); } if (cmdCase_ == 7) { output.writeMessage(7, (org.tikv.kvproto.Kvrpcpb.BatchGetRequest) cmd_); } if (cmdCase_ == 8) { output.writeMessage(8, (org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) cmd_); } if (cmdCase_ == 9) { output.writeMessage(9, (org.tikv.kvproto.Kvrpcpb.ScanLockRequest) cmd_); } if (cmdCase_ == 10) { output.writeMessage(10, (org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) cmd_); } if (cmdCase_ == 11) { output.writeMessage(11, (org.tikv.kvproto.Kvrpcpb.GCRequest) cmd_); } if (cmdCase_ == 12) { output.writeMessage(12, (org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) cmd_); } if (cmdCase_ == 13) { output.writeMessage(13, (org.tikv.kvproto.Kvrpcpb.RawGetRequest) cmd_); } if (cmdCase_ == 14) { output.writeMessage(14, (org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) cmd_); } if (cmdCase_ == 15) { output.writeMessage(15, (org.tikv.kvproto.Kvrpcpb.RawPutRequest) cmd_); } if (cmdCase_ == 16) { output.writeMessage(16, (org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) cmd_); } if (cmdCase_ == 17) { output.writeMessage(17, (org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) cmd_); } if (cmdCase_ == 18) { output.writeMessage(18, (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) cmd_); } if (cmdCase_ == 19) { output.writeMessage(19, (org.tikv.kvproto.Kvrpcpb.RawScanRequest) cmd_); } if (cmdCase_ == 20) { output.writeMessage(20, (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) cmd_); } if (cmdCase_ == 21) { output.writeMessage(21, (org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) cmd_); } if (cmdCase_ == 22) { output.writeMessage(22, (org.tikv.kvproto.Coprocessor.Request) cmd_); } if (cmdCase_ == 23) { output.writeMessage(23, (org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) cmd_); } if (cmdCase_ == 24) { output.writeMessage(24, (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) cmd_); } if (cmdCase_ == 25) { output.writeMessage(25, (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) cmd_); } if (cmdCase_ == 26) { output.writeMessage(26, (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) cmd_); } if (cmdCase_ == 27) { output.writeMessage(27, (org.tikv.kvproto.Kvrpcpb.VerGetRequest) cmd_); } if (cmdCase_ == 28) { output.writeMessage(28, (org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) cmd_); } if (cmdCase_ == 29) { output.writeMessage(29, (org.tikv.kvproto.Kvrpcpb.VerMutRequest) cmd_); } if (cmdCase_ == 30) { output.writeMessage(30, (org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) cmd_); } if (cmdCase_ == 31) { output.writeMessage(31, (org.tikv.kvproto.Kvrpcpb.VerScanRequest) cmd_); } if (cmdCase_ == 32) { output.writeMessage(32, (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) cmd_); } if (cmdCase_ == 33) { output.writeMessage(33, (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) cmd_); } if (cmdCase_ == 34) { output.writeMessage(34, (org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) cmd_); } if (cmdCase_ == 255) { output.writeMessage(255, (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) cmd_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cmdCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.tikv.kvproto.Kvrpcpb.GetRequest) cmd_); } if (cmdCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.tikv.kvproto.Kvrpcpb.ScanRequest) cmd_); } if (cmdCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.tikv.kvproto.Kvrpcpb.PrewriteRequest) cmd_); } if (cmdCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.tikv.kvproto.Kvrpcpb.CommitRequest) cmd_); } if (cmdCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.tikv.kvproto.Kvrpcpb.ImportRequest) cmd_); } if (cmdCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (org.tikv.kvproto.Kvrpcpb.CleanupRequest) cmd_); } if (cmdCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (org.tikv.kvproto.Kvrpcpb.BatchGetRequest) cmd_); } if (cmdCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) cmd_); } if (cmdCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (org.tikv.kvproto.Kvrpcpb.ScanLockRequest) cmd_); } if (cmdCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) cmd_); } if (cmdCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (org.tikv.kvproto.Kvrpcpb.GCRequest) cmd_); } if (cmdCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) cmd_); } if (cmdCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (org.tikv.kvproto.Kvrpcpb.RawGetRequest) cmd_); } if (cmdCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) cmd_); } if (cmdCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (org.tikv.kvproto.Kvrpcpb.RawPutRequest) cmd_); } if (cmdCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) cmd_); } if (cmdCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) cmd_); } if (cmdCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) cmd_); } if (cmdCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (org.tikv.kvproto.Kvrpcpb.RawScanRequest) cmd_); } if (cmdCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) cmd_); } if (cmdCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) cmd_); } if (cmdCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (org.tikv.kvproto.Coprocessor.Request) cmd_); } if (cmdCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) cmd_); } if (cmdCase_ == 24) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(24, (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) cmd_); } if (cmdCase_ == 25) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) cmd_); } if (cmdCase_ == 26) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) cmd_); } if (cmdCase_ == 27) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, (org.tikv.kvproto.Kvrpcpb.VerGetRequest) cmd_); } if (cmdCase_ == 28) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, (org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) cmd_); } if (cmdCase_ == 29) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(29, (org.tikv.kvproto.Kvrpcpb.VerMutRequest) cmd_); } if (cmdCase_ == 30) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, (org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) cmd_); } if (cmdCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (org.tikv.kvproto.Kvrpcpb.VerScanRequest) cmd_); } if (cmdCase_ == 32) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) cmd_); } if (cmdCase_ == 33) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) cmd_); } if (cmdCase_ == 34) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, (org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) cmd_); } if (cmdCase_ == 255) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(255, (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) cmd_); } 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.Tikvpb.BatchCommandsRequest.Request)) { return super.equals(obj); } org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request other = (org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request) obj; boolean result = true; result = result && getCmdCase().equals( other.getCmdCase()); if (!result) return false; switch (cmdCase_) { case 1: result = result && getGet() .equals(other.getGet()); break; case 2: result = result && getScan() .equals(other.getScan()); break; case 3: result = result && getPrewrite() .equals(other.getPrewrite()); break; case 4: result = result && getCommit() .equals(other.getCommit()); break; case 5: result = result && getImport() .equals(other.getImport()); break; case 6: result = result && getCleanup() .equals(other.getCleanup()); break; case 7: result = result && getBatchGet() .equals(other.getBatchGet()); break; case 8: result = result && getBatchRollback() .equals(other.getBatchRollback()); break; case 9: result = result && getScanLock() .equals(other.getScanLock()); break; case 10: result = result && getResolveLock() .equals(other.getResolveLock()); break; case 11: result = result && getGC() .equals(other.getGC()); break; case 12: result = result && getDeleteRange() .equals(other.getDeleteRange()); break; case 13: result = result && getRawGet() .equals(other.getRawGet()); break; case 14: result = result && getRawBatchGet() .equals(other.getRawBatchGet()); break; case 15: result = result && getRawPut() .equals(other.getRawPut()); break; case 16: result = result && getRawBatchPut() .equals(other.getRawBatchPut()); break; case 17: result = result && getRawDelete() .equals(other.getRawDelete()); break; case 18: result = result && getRawBatchDelete() .equals(other.getRawBatchDelete()); break; case 19: result = result && getRawScan() .equals(other.getRawScan()); break; case 20: result = result && getRawDeleteRange() .equals(other.getRawDeleteRange()); break; case 21: result = result && getRawBatchScan() .equals(other.getRawBatchScan()); break; case 22: result = result && getCoprocessor() .equals(other.getCoprocessor()); break; case 23: result = result && getPessimisticLock() .equals(other.getPessimisticLock()); break; case 24: result = result && getPessimisticRollback() .equals(other.getPessimisticRollback()); break; case 25: result = result && getCheckTxnStatus() .equals(other.getCheckTxnStatus()); break; case 26: result = result && getTxnHeartBeat() .equals(other.getTxnHeartBeat()); break; case 27: result = result && getVerGet() .equals(other.getVerGet()); break; case 28: result = result && getVerBatchGet() .equals(other.getVerBatchGet()); break; case 29: result = result && getVerMut() .equals(other.getVerMut()); break; case 30: result = result && getVerBatchMut() .equals(other.getVerBatchMut()); break; case 31: result = result && getVerScan() .equals(other.getVerScan()); break; case 32: result = result && getVerDeleteRange() .equals(other.getVerDeleteRange()); break; case 33: result = result && getCheckSecondaryLocks() .equals(other.getCheckSecondaryLocks()); break; case 34: result = result && getCoprocessorV2() .equals(other.getCoprocessorV2()); break; case 255: result = result && getEmpty() .equals(other.getEmpty()); break; case 0: default: } 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(); switch (cmdCase_) { case 1: hash = (37 * hash) + GET_FIELD_NUMBER; hash = (53 * hash) + getGet().hashCode(); break; case 2: hash = (37 * hash) + SCAN_FIELD_NUMBER; hash = (53 * hash) + getScan().hashCode(); break; case 3: hash = (37 * hash) + PREWRITE_FIELD_NUMBER; hash = (53 * hash) + getPrewrite().hashCode(); break; case 4: hash = (37 * hash) + COMMIT_FIELD_NUMBER; hash = (53 * hash) + getCommit().hashCode(); break; case 5: hash = (37 * hash) + IMPORT_FIELD_NUMBER; hash = (53 * hash) + getImport().hashCode(); break; case 6: hash = (37 * hash) + CLEANUP_FIELD_NUMBER; hash = (53 * hash) + getCleanup().hashCode(); break; case 7: hash = (37 * hash) + BATCHGET_FIELD_NUMBER; hash = (53 * hash) + getBatchGet().hashCode(); break; case 8: hash = (37 * hash) + BATCHROLLBACK_FIELD_NUMBER; hash = (53 * hash) + getBatchRollback().hashCode(); break; case 9: hash = (37 * hash) + SCANLOCK_FIELD_NUMBER; hash = (53 * hash) + getScanLock().hashCode(); break; case 10: hash = (37 * hash) + RESOLVELOCK_FIELD_NUMBER; hash = (53 * hash) + getResolveLock().hashCode(); break; case 11: hash = (37 * hash) + GC_FIELD_NUMBER; hash = (53 * hash) + getGC().hashCode(); break; case 12: hash = (37 * hash) + DELETERANGE_FIELD_NUMBER; hash = (53 * hash) + getDeleteRange().hashCode(); break; case 13: hash = (37 * hash) + RAWGET_FIELD_NUMBER; hash = (53 * hash) + getRawGet().hashCode(); break; case 14: hash = (37 * hash) + RAWBATCHGET_FIELD_NUMBER; hash = (53 * hash) + getRawBatchGet().hashCode(); break; case 15: hash = (37 * hash) + RAWPUT_FIELD_NUMBER; hash = (53 * hash) + getRawPut().hashCode(); break; case 16: hash = (37 * hash) + RAWBATCHPUT_FIELD_NUMBER; hash = (53 * hash) + getRawBatchPut().hashCode(); break; case 17: hash = (37 * hash) + RAWDELETE_FIELD_NUMBER; hash = (53 * hash) + getRawDelete().hashCode(); break; case 18: hash = (37 * hash) + RAWBATCHDELETE_FIELD_NUMBER; hash = (53 * hash) + getRawBatchDelete().hashCode(); break; case 19: hash = (37 * hash) + RAWSCAN_FIELD_NUMBER; hash = (53 * hash) + getRawScan().hashCode(); break; case 20: hash = (37 * hash) + RAWDELETERANGE_FIELD_NUMBER; hash = (53 * hash) + getRawDeleteRange().hashCode(); break; case 21: hash = (37 * hash) + RAWBATCHSCAN_FIELD_NUMBER; hash = (53 * hash) + getRawBatchScan().hashCode(); break; case 22: hash = (37 * hash) + COPROCESSOR_FIELD_NUMBER; hash = (53 * hash) + getCoprocessor().hashCode(); break; case 23: hash = (37 * hash) + PESSIMISTICLOCK_FIELD_NUMBER; hash = (53 * hash) + getPessimisticLock().hashCode(); break; case 24: hash = (37 * hash) + PESSIMISTICROLLBACK_FIELD_NUMBER; hash = (53 * hash) + getPessimisticRollback().hashCode(); break; case 25: hash = (37 * hash) + CHECKTXNSTATUS_FIELD_NUMBER; hash = (53 * hash) + getCheckTxnStatus().hashCode(); break; case 26: hash = (37 * hash) + TXNHEARTBEAT_FIELD_NUMBER; hash = (53 * hash) + getTxnHeartBeat().hashCode(); break; case 27: hash = (37 * hash) + VERGET_FIELD_NUMBER; hash = (53 * hash) + getVerGet().hashCode(); break; case 28: hash = (37 * hash) + VERBATCHGET_FIELD_NUMBER; hash = (53 * hash) + getVerBatchGet().hashCode(); break; case 29: hash = (37 * hash) + VERMUT_FIELD_NUMBER; hash = (53 * hash) + getVerMut().hashCode(); break; case 30: hash = (37 * hash) + VERBATCHMUT_FIELD_NUMBER; hash = (53 * hash) + getVerBatchMut().hashCode(); break; case 31: hash = (37 * hash) + VERSCAN_FIELD_NUMBER; hash = (53 * hash) + getVerScan().hashCode(); break; case 32: hash = (37 * hash) + VERDELETERANGE_FIELD_NUMBER; hash = (53 * hash) + getVerDeleteRange().hashCode(); break; case 33: hash = (37 * hash) + CHECKSECONDARYLOCKS_FIELD_NUMBER; hash = (53 * hash) + getCheckSecondaryLocks().hashCode(); break; case 34: hash = (37 * hash) + COPROCESSORV2_FIELD_NUMBER; hash = (53 * hash) + getCoprocessorV2().hashCode(); break; case 255: hash = (37 * hash) + EMPTY_FIELD_NUMBER; hash = (53 * hash) + getEmpty().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request 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.Tikvpb.BatchCommandsRequest.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request 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.Tikvpb.BatchCommandsRequest.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request 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.Tikvpb.BatchCommandsRequest.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request 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.Tikvpb.BatchCommandsRequest.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request 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.Tikvpb.BatchCommandsRequest.Request 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 tikvpb.BatchCommandsRequest.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tikvpb.BatchCommandsRequest.Request) org.tikv.kvproto.Tikvpb.BatchCommandsRequest.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsRequest_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsRequest_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.class, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder.class); } // Construct using org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.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(); cmdCase_ = 0; cmd_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsRequest_Request_descriptor; } public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request getDefaultInstanceForType() { return org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.getDefaultInstance(); } public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request build() { org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request buildPartial() { org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request result = new org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request(this); if (cmdCase_ == 1) { if (getBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = getBuilder_.build(); } } if (cmdCase_ == 2) { if (scanBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = scanBuilder_.build(); } } if (cmdCase_ == 3) { if (prewriteBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = prewriteBuilder_.build(); } } if (cmdCase_ == 4) { if (commitBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = commitBuilder_.build(); } } if (cmdCase_ == 5) { if (importBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = importBuilder_.build(); } } if (cmdCase_ == 6) { if (cleanupBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = cleanupBuilder_.build(); } } if (cmdCase_ == 7) { if (batchGetBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = batchGetBuilder_.build(); } } if (cmdCase_ == 8) { if (batchRollbackBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = batchRollbackBuilder_.build(); } } if (cmdCase_ == 9) { if (scanLockBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = scanLockBuilder_.build(); } } if (cmdCase_ == 10) { if (resolveLockBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = resolveLockBuilder_.build(); } } if (cmdCase_ == 11) { if (gCBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = gCBuilder_.build(); } } if (cmdCase_ == 12) { if (deleteRangeBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = deleteRangeBuilder_.build(); } } if (cmdCase_ == 13) { if (rawGetBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawGetBuilder_.build(); } } if (cmdCase_ == 14) { if (rawBatchGetBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawBatchGetBuilder_.build(); } } if (cmdCase_ == 15) { if (rawPutBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawPutBuilder_.build(); } } if (cmdCase_ == 16) { if (rawBatchPutBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawBatchPutBuilder_.build(); } } if (cmdCase_ == 17) { if (rawDeleteBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawDeleteBuilder_.build(); } } if (cmdCase_ == 18) { if (rawBatchDeleteBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawBatchDeleteBuilder_.build(); } } if (cmdCase_ == 19) { if (rawScanBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawScanBuilder_.build(); } } if (cmdCase_ == 20) { if (rawDeleteRangeBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawDeleteRangeBuilder_.build(); } } if (cmdCase_ == 21) { if (rawBatchScanBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawBatchScanBuilder_.build(); } } if (cmdCase_ == 22) { if (coprocessorBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = coprocessorBuilder_.build(); } } if (cmdCase_ == 23) { if (pessimisticLockBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = pessimisticLockBuilder_.build(); } } if (cmdCase_ == 24) { if (pessimisticRollbackBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = pessimisticRollbackBuilder_.build(); } } if (cmdCase_ == 25) { if (checkTxnStatusBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = checkTxnStatusBuilder_.build(); } } if (cmdCase_ == 26) { if (txnHeartBeatBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = txnHeartBeatBuilder_.build(); } } if (cmdCase_ == 27) { if (verGetBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verGetBuilder_.build(); } } if (cmdCase_ == 28) { if (verBatchGetBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verBatchGetBuilder_.build(); } } if (cmdCase_ == 29) { if (verMutBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verMutBuilder_.build(); } } if (cmdCase_ == 30) { if (verBatchMutBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verBatchMutBuilder_.build(); } } if (cmdCase_ == 31) { if (verScanBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verScanBuilder_.build(); } } if (cmdCase_ == 32) { if (verDeleteRangeBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verDeleteRangeBuilder_.build(); } } if (cmdCase_ == 33) { if (checkSecondaryLocksBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = checkSecondaryLocksBuilder_.build(); } } if (cmdCase_ == 34) { if (coprocessorV2Builder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = coprocessorV2Builder_.build(); } } if (cmdCase_ == 255) { if (emptyBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = emptyBuilder_.build(); } } result.cmdCase_ = cmdCase_; 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.Tikvpb.BatchCommandsRequest.Request) { return mergeFrom((org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request other) { if (other == org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.getDefaultInstance()) return this; switch (other.getCmdCase()) { case GET: { mergeGet(other.getGet()); break; } case SCAN: { mergeScan(other.getScan()); break; } case PREWRITE: { mergePrewrite(other.getPrewrite()); break; } case COMMIT: { mergeCommit(other.getCommit()); break; } case IMPORT: { mergeImport(other.getImport()); break; } case CLEANUP: { mergeCleanup(other.getCleanup()); break; } case BATCHGET: { mergeBatchGet(other.getBatchGet()); break; } case BATCHROLLBACK: { mergeBatchRollback(other.getBatchRollback()); break; } case SCANLOCK: { mergeScanLock(other.getScanLock()); break; } case RESOLVELOCK: { mergeResolveLock(other.getResolveLock()); break; } case GC: { mergeGC(other.getGC()); break; } case DELETERANGE: { mergeDeleteRange(other.getDeleteRange()); break; } case RAWGET: { mergeRawGet(other.getRawGet()); break; } case RAWBATCHGET: { mergeRawBatchGet(other.getRawBatchGet()); break; } case RAWPUT: { mergeRawPut(other.getRawPut()); break; } case RAWBATCHPUT: { mergeRawBatchPut(other.getRawBatchPut()); break; } case RAWDELETE: { mergeRawDelete(other.getRawDelete()); break; } case RAWBATCHDELETE: { mergeRawBatchDelete(other.getRawBatchDelete()); break; } case RAWSCAN: { mergeRawScan(other.getRawScan()); break; } case RAWDELETERANGE: { mergeRawDeleteRange(other.getRawDeleteRange()); break; } case RAWBATCHSCAN: { mergeRawBatchScan(other.getRawBatchScan()); break; } case COPROCESSOR: { mergeCoprocessor(other.getCoprocessor()); break; } case PESSIMISTICLOCK: { mergePessimisticLock(other.getPessimisticLock()); break; } case PESSIMISTICROLLBACK: { mergePessimisticRollback(other.getPessimisticRollback()); break; } case CHECKTXNSTATUS: { mergeCheckTxnStatus(other.getCheckTxnStatus()); break; } case TXNHEARTBEAT: { mergeTxnHeartBeat(other.getTxnHeartBeat()); break; } case VERGET: { mergeVerGet(other.getVerGet()); break; } case VERBATCHGET: { mergeVerBatchGet(other.getVerBatchGet()); break; } case VERMUT: { mergeVerMut(other.getVerMut()); break; } case VERBATCHMUT: { mergeVerBatchMut(other.getVerBatchMut()); break; } case VERSCAN: { mergeVerScan(other.getVerScan()); break; } case VERDELETERANGE: { mergeVerDeleteRange(other.getVerDeleteRange()); break; } case CHECKSECONDARYLOCKS: { mergeCheckSecondaryLocks(other.getCheckSecondaryLocks()); break; } case COPROCESSORV2: { mergeCoprocessorV2(other.getCoprocessorV2()); break; } case EMPTY: { mergeEmpty(other.getEmpty()); break; } case CMD_NOT_SET: { break; } } 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.Tikvpb.BatchCommandsRequest.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cmdCase_ = 0; private java.lang.Object cmd_; public CmdCase getCmdCase() { return CmdCase.forNumber( cmdCase_); } public Builder clearCmd() { cmdCase_ = 0; cmd_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GetRequest, org.tikv.kvproto.Kvrpcpb.GetRequest.Builder, org.tikv.kvproto.Kvrpcpb.GetRequestOrBuilder> getBuilder_; /** * .kvrpcpb.GetRequest Get = 1; */ public boolean hasGet() { return cmdCase_ == 1; } /** * .kvrpcpb.GetRequest Get = 1; */ public org.tikv.kvproto.Kvrpcpb.GetRequest getGet() { if (getBuilder_ == null) { if (cmdCase_ == 1) { return (org.tikv.kvproto.Kvrpcpb.GetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.GetRequest.getDefaultInstance(); } else { if (cmdCase_ == 1) { return getBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.GetRequest.getDefaultInstance(); } } /** * .kvrpcpb.GetRequest Get = 1; */ public Builder setGet(org.tikv.kvproto.Kvrpcpb.GetRequest value) { if (getBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { getBuilder_.setMessage(value); } cmdCase_ = 1; return this; } /** * .kvrpcpb.GetRequest Get = 1; */ public Builder setGet( org.tikv.kvproto.Kvrpcpb.GetRequest.Builder builderForValue) { if (getBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { getBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 1; return this; } /** * .kvrpcpb.GetRequest Get = 1; */ public Builder mergeGet(org.tikv.kvproto.Kvrpcpb.GetRequest value) { if (getBuilder_ == null) { if (cmdCase_ == 1 && cmd_ != org.tikv.kvproto.Kvrpcpb.GetRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.GetRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.GetRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 1) { getBuilder_.mergeFrom(value); } getBuilder_.setMessage(value); } cmdCase_ = 1; return this; } /** * .kvrpcpb.GetRequest Get = 1; */ public Builder clearGet() { if (getBuilder_ == null) { if (cmdCase_ == 1) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 1) { cmdCase_ = 0; cmd_ = null; } getBuilder_.clear(); } return this; } /** * .kvrpcpb.GetRequest Get = 1; */ public org.tikv.kvproto.Kvrpcpb.GetRequest.Builder getGetBuilder() { return getGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.GetRequest Get = 1; */ public org.tikv.kvproto.Kvrpcpb.GetRequestOrBuilder getGetOrBuilder() { if ((cmdCase_ == 1) && (getBuilder_ != null)) { return getBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 1) { return (org.tikv.kvproto.Kvrpcpb.GetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.GetRequest.getDefaultInstance(); } } /** * .kvrpcpb.GetRequest Get = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GetRequest, org.tikv.kvproto.Kvrpcpb.GetRequest.Builder, org.tikv.kvproto.Kvrpcpb.GetRequestOrBuilder> getGetFieldBuilder() { if (getBuilder_ == null) { if (!(cmdCase_ == 1)) { cmd_ = org.tikv.kvproto.Kvrpcpb.GetRequest.getDefaultInstance(); } getBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GetRequest, org.tikv.kvproto.Kvrpcpb.GetRequest.Builder, org.tikv.kvproto.Kvrpcpb.GetRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.GetRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 1; onChanged();; return getBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanRequest, org.tikv.kvproto.Kvrpcpb.ScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.ScanRequestOrBuilder> scanBuilder_; /** * .kvrpcpb.ScanRequest Scan = 2; */ public boolean hasScan() { return cmdCase_ == 2; } /** * .kvrpcpb.ScanRequest Scan = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanRequest getScan() { if (scanBuilder_ == null) { if (cmdCase_ == 2) { return (org.tikv.kvproto.Kvrpcpb.ScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanRequest.getDefaultInstance(); } else { if (cmdCase_ == 2) { return scanBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.ScanRequest.getDefaultInstance(); } } /** * .kvrpcpb.ScanRequest Scan = 2; */ public Builder setScan(org.tikv.kvproto.Kvrpcpb.ScanRequest value) { if (scanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { scanBuilder_.setMessage(value); } cmdCase_ = 2; return this; } /** * .kvrpcpb.ScanRequest Scan = 2; */ public Builder setScan( org.tikv.kvproto.Kvrpcpb.ScanRequest.Builder builderForValue) { if (scanBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { scanBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 2; return this; } /** * .kvrpcpb.ScanRequest Scan = 2; */ public Builder mergeScan(org.tikv.kvproto.Kvrpcpb.ScanRequest value) { if (scanBuilder_ == null) { if (cmdCase_ == 2 && cmd_ != org.tikv.kvproto.Kvrpcpb.ScanRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.ScanRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.ScanRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 2) { scanBuilder_.mergeFrom(value); } scanBuilder_.setMessage(value); } cmdCase_ = 2; return this; } /** * .kvrpcpb.ScanRequest Scan = 2; */ public Builder clearScan() { if (scanBuilder_ == null) { if (cmdCase_ == 2) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 2) { cmdCase_ = 0; cmd_ = null; } scanBuilder_.clear(); } return this; } /** * .kvrpcpb.ScanRequest Scan = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanRequest.Builder getScanBuilder() { return getScanFieldBuilder().getBuilder(); } /** * .kvrpcpb.ScanRequest Scan = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanRequestOrBuilder getScanOrBuilder() { if ((cmdCase_ == 2) && (scanBuilder_ != null)) { return scanBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 2) { return (org.tikv.kvproto.Kvrpcpb.ScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanRequest.getDefaultInstance(); } } /** * .kvrpcpb.ScanRequest Scan = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanRequest, org.tikv.kvproto.Kvrpcpb.ScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.ScanRequestOrBuilder> getScanFieldBuilder() { if (scanBuilder_ == null) { if (!(cmdCase_ == 2)) { cmd_ = org.tikv.kvproto.Kvrpcpb.ScanRequest.getDefaultInstance(); } scanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanRequest, org.tikv.kvproto.Kvrpcpb.ScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.ScanRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.ScanRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 2; onChanged();; return scanBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PrewriteRequest, org.tikv.kvproto.Kvrpcpb.PrewriteRequest.Builder, org.tikv.kvproto.Kvrpcpb.PrewriteRequestOrBuilder> prewriteBuilder_; /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public boolean hasPrewrite() { return cmdCase_ == 3; } /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public org.tikv.kvproto.Kvrpcpb.PrewriteRequest getPrewrite() { if (prewriteBuilder_ == null) { if (cmdCase_ == 3) { return (org.tikv.kvproto.Kvrpcpb.PrewriteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PrewriteRequest.getDefaultInstance(); } else { if (cmdCase_ == 3) { return prewriteBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.PrewriteRequest.getDefaultInstance(); } } /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public Builder setPrewrite(org.tikv.kvproto.Kvrpcpb.PrewriteRequest value) { if (prewriteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { prewriteBuilder_.setMessage(value); } cmdCase_ = 3; return this; } /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public Builder setPrewrite( org.tikv.kvproto.Kvrpcpb.PrewriteRequest.Builder builderForValue) { if (prewriteBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { prewriteBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 3; return this; } /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public Builder mergePrewrite(org.tikv.kvproto.Kvrpcpb.PrewriteRequest value) { if (prewriteBuilder_ == null) { if (cmdCase_ == 3 && cmd_ != org.tikv.kvproto.Kvrpcpb.PrewriteRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.PrewriteRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.PrewriteRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 3) { prewriteBuilder_.mergeFrom(value); } prewriteBuilder_.setMessage(value); } cmdCase_ = 3; return this; } /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public Builder clearPrewrite() { if (prewriteBuilder_ == null) { if (cmdCase_ == 3) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 3) { cmdCase_ = 0; cmd_ = null; } prewriteBuilder_.clear(); } return this; } /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public org.tikv.kvproto.Kvrpcpb.PrewriteRequest.Builder getPrewriteBuilder() { return getPrewriteFieldBuilder().getBuilder(); } /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ public org.tikv.kvproto.Kvrpcpb.PrewriteRequestOrBuilder getPrewriteOrBuilder() { if ((cmdCase_ == 3) && (prewriteBuilder_ != null)) { return prewriteBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 3) { return (org.tikv.kvproto.Kvrpcpb.PrewriteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PrewriteRequest.getDefaultInstance(); } } /** * .kvrpcpb.PrewriteRequest Prewrite = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PrewriteRequest, org.tikv.kvproto.Kvrpcpb.PrewriteRequest.Builder, org.tikv.kvproto.Kvrpcpb.PrewriteRequestOrBuilder> getPrewriteFieldBuilder() { if (prewriteBuilder_ == null) { if (!(cmdCase_ == 3)) { cmd_ = org.tikv.kvproto.Kvrpcpb.PrewriteRequest.getDefaultInstance(); } prewriteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PrewriteRequest, org.tikv.kvproto.Kvrpcpb.PrewriteRequest.Builder, org.tikv.kvproto.Kvrpcpb.PrewriteRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.PrewriteRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 3; onChanged();; return prewriteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitRequest, org.tikv.kvproto.Kvrpcpb.CommitRequest.Builder, org.tikv.kvproto.Kvrpcpb.CommitRequestOrBuilder> commitBuilder_; /** * .kvrpcpb.CommitRequest Commit = 4; */ public boolean hasCommit() { return cmdCase_ == 4; } /** * .kvrpcpb.CommitRequest Commit = 4; */ public org.tikv.kvproto.Kvrpcpb.CommitRequest getCommit() { if (commitBuilder_ == null) { if (cmdCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.CommitRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CommitRequest.getDefaultInstance(); } else { if (cmdCase_ == 4) { return commitBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.CommitRequest.getDefaultInstance(); } } /** * .kvrpcpb.CommitRequest Commit = 4; */ public Builder setCommit(org.tikv.kvproto.Kvrpcpb.CommitRequest value) { if (commitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { commitBuilder_.setMessage(value); } cmdCase_ = 4; return this; } /** * .kvrpcpb.CommitRequest Commit = 4; */ public Builder setCommit( org.tikv.kvproto.Kvrpcpb.CommitRequest.Builder builderForValue) { if (commitBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { commitBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 4; return this; } /** * .kvrpcpb.CommitRequest Commit = 4; */ public Builder mergeCommit(org.tikv.kvproto.Kvrpcpb.CommitRequest value) { if (commitBuilder_ == null) { if (cmdCase_ == 4 && cmd_ != org.tikv.kvproto.Kvrpcpb.CommitRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.CommitRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.CommitRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 4) { commitBuilder_.mergeFrom(value); } commitBuilder_.setMessage(value); } cmdCase_ = 4; return this; } /** * .kvrpcpb.CommitRequest Commit = 4; */ public Builder clearCommit() { if (commitBuilder_ == null) { if (cmdCase_ == 4) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 4) { cmdCase_ = 0; cmd_ = null; } commitBuilder_.clear(); } return this; } /** * .kvrpcpb.CommitRequest Commit = 4; */ public org.tikv.kvproto.Kvrpcpb.CommitRequest.Builder getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** * .kvrpcpb.CommitRequest Commit = 4; */ public org.tikv.kvproto.Kvrpcpb.CommitRequestOrBuilder getCommitOrBuilder() { if ((cmdCase_ == 4) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.CommitRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CommitRequest.getDefaultInstance(); } } /** * .kvrpcpb.CommitRequest Commit = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitRequest, org.tikv.kvproto.Kvrpcpb.CommitRequest.Builder, org.tikv.kvproto.Kvrpcpb.CommitRequestOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(cmdCase_ == 4)) { cmd_ = org.tikv.kvproto.Kvrpcpb.CommitRequest.getDefaultInstance(); } commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitRequest, org.tikv.kvproto.Kvrpcpb.CommitRequest.Builder, org.tikv.kvproto.Kvrpcpb.CommitRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.CommitRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 4; onChanged();; return commitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ImportRequest, org.tikv.kvproto.Kvrpcpb.ImportRequest.Builder, org.tikv.kvproto.Kvrpcpb.ImportRequestOrBuilder> importBuilder_; /** * .kvrpcpb.ImportRequest Import = 5; */ public boolean hasImport() { return cmdCase_ == 5; } /** * .kvrpcpb.ImportRequest Import = 5; */ public org.tikv.kvproto.Kvrpcpb.ImportRequest getImport() { if (importBuilder_ == null) { if (cmdCase_ == 5) { return (org.tikv.kvproto.Kvrpcpb.ImportRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ImportRequest.getDefaultInstance(); } else { if (cmdCase_ == 5) { return importBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.ImportRequest.getDefaultInstance(); } } /** * .kvrpcpb.ImportRequest Import = 5; */ public Builder setImport(org.tikv.kvproto.Kvrpcpb.ImportRequest value) { if (importBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { importBuilder_.setMessage(value); } cmdCase_ = 5; return this; } /** * .kvrpcpb.ImportRequest Import = 5; */ public Builder setImport( org.tikv.kvproto.Kvrpcpb.ImportRequest.Builder builderForValue) { if (importBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { importBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 5; return this; } /** * .kvrpcpb.ImportRequest Import = 5; */ public Builder mergeImport(org.tikv.kvproto.Kvrpcpb.ImportRequest value) { if (importBuilder_ == null) { if (cmdCase_ == 5 && cmd_ != org.tikv.kvproto.Kvrpcpb.ImportRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.ImportRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.ImportRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 5) { importBuilder_.mergeFrom(value); } importBuilder_.setMessage(value); } cmdCase_ = 5; return this; } /** * .kvrpcpb.ImportRequest Import = 5; */ public Builder clearImport() { if (importBuilder_ == null) { if (cmdCase_ == 5) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 5) { cmdCase_ = 0; cmd_ = null; } importBuilder_.clear(); } return this; } /** * .kvrpcpb.ImportRequest Import = 5; */ public org.tikv.kvproto.Kvrpcpb.ImportRequest.Builder getImportBuilder() { return getImportFieldBuilder().getBuilder(); } /** * .kvrpcpb.ImportRequest Import = 5; */ public org.tikv.kvproto.Kvrpcpb.ImportRequestOrBuilder getImportOrBuilder() { if ((cmdCase_ == 5) && (importBuilder_ != null)) { return importBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 5) { return (org.tikv.kvproto.Kvrpcpb.ImportRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ImportRequest.getDefaultInstance(); } } /** * .kvrpcpb.ImportRequest Import = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ImportRequest, org.tikv.kvproto.Kvrpcpb.ImportRequest.Builder, org.tikv.kvproto.Kvrpcpb.ImportRequestOrBuilder> getImportFieldBuilder() { if (importBuilder_ == null) { if (!(cmdCase_ == 5)) { cmd_ = org.tikv.kvproto.Kvrpcpb.ImportRequest.getDefaultInstance(); } importBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ImportRequest, org.tikv.kvproto.Kvrpcpb.ImportRequest.Builder, org.tikv.kvproto.Kvrpcpb.ImportRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.ImportRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 5; onChanged();; return importBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CleanupRequest, org.tikv.kvproto.Kvrpcpb.CleanupRequest.Builder, org.tikv.kvproto.Kvrpcpb.CleanupRequestOrBuilder> cleanupBuilder_; /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public boolean hasCleanup() { return cmdCase_ == 6; } /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public org.tikv.kvproto.Kvrpcpb.CleanupRequest getCleanup() { if (cleanupBuilder_ == null) { if (cmdCase_ == 6) { return (org.tikv.kvproto.Kvrpcpb.CleanupRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CleanupRequest.getDefaultInstance(); } else { if (cmdCase_ == 6) { return cleanupBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.CleanupRequest.getDefaultInstance(); } } /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public Builder setCleanup(org.tikv.kvproto.Kvrpcpb.CleanupRequest value) { if (cleanupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { cleanupBuilder_.setMessage(value); } cmdCase_ = 6; return this; } /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public Builder setCleanup( org.tikv.kvproto.Kvrpcpb.CleanupRequest.Builder builderForValue) { if (cleanupBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { cleanupBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 6; return this; } /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public Builder mergeCleanup(org.tikv.kvproto.Kvrpcpb.CleanupRequest value) { if (cleanupBuilder_ == null) { if (cmdCase_ == 6 && cmd_ != org.tikv.kvproto.Kvrpcpb.CleanupRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.CleanupRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.CleanupRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 6) { cleanupBuilder_.mergeFrom(value); } cleanupBuilder_.setMessage(value); } cmdCase_ = 6; return this; } /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public Builder clearCleanup() { if (cleanupBuilder_ == null) { if (cmdCase_ == 6) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 6) { cmdCase_ = 0; cmd_ = null; } cleanupBuilder_.clear(); } return this; } /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public org.tikv.kvproto.Kvrpcpb.CleanupRequest.Builder getCleanupBuilder() { return getCleanupFieldBuilder().getBuilder(); } /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ public org.tikv.kvproto.Kvrpcpb.CleanupRequestOrBuilder getCleanupOrBuilder() { if ((cmdCase_ == 6) && (cleanupBuilder_ != null)) { return cleanupBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 6) { return (org.tikv.kvproto.Kvrpcpb.CleanupRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CleanupRequest.getDefaultInstance(); } } /** * .kvrpcpb.CleanupRequest Cleanup = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CleanupRequest, org.tikv.kvproto.Kvrpcpb.CleanupRequest.Builder, org.tikv.kvproto.Kvrpcpb.CleanupRequestOrBuilder> getCleanupFieldBuilder() { if (cleanupBuilder_ == null) { if (!(cmdCase_ == 6)) { cmd_ = org.tikv.kvproto.Kvrpcpb.CleanupRequest.getDefaultInstance(); } cleanupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CleanupRequest, org.tikv.kvproto.Kvrpcpb.CleanupRequest.Builder, org.tikv.kvproto.Kvrpcpb.CleanupRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.CleanupRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 6; onChanged();; return cleanupBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchGetRequest, org.tikv.kvproto.Kvrpcpb.BatchGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.BatchGetRequestOrBuilder> batchGetBuilder_; /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public boolean hasBatchGet() { return cmdCase_ == 7; } /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public org.tikv.kvproto.Kvrpcpb.BatchGetRequest getBatchGet() { if (batchGetBuilder_ == null) { if (cmdCase_ == 7) { return (org.tikv.kvproto.Kvrpcpb.BatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchGetRequest.getDefaultInstance(); } else { if (cmdCase_ == 7) { return batchGetBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.BatchGetRequest.getDefaultInstance(); } } /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public Builder setBatchGet(org.tikv.kvproto.Kvrpcpb.BatchGetRequest value) { if (batchGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { batchGetBuilder_.setMessage(value); } cmdCase_ = 7; return this; } /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public Builder setBatchGet( org.tikv.kvproto.Kvrpcpb.BatchGetRequest.Builder builderForValue) { if (batchGetBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { batchGetBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 7; return this; } /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public Builder mergeBatchGet(org.tikv.kvproto.Kvrpcpb.BatchGetRequest value) { if (batchGetBuilder_ == null) { if (cmdCase_ == 7 && cmd_ != org.tikv.kvproto.Kvrpcpb.BatchGetRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.BatchGetRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.BatchGetRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 7) { batchGetBuilder_.mergeFrom(value); } batchGetBuilder_.setMessage(value); } cmdCase_ = 7; return this; } /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public Builder clearBatchGet() { if (batchGetBuilder_ == null) { if (cmdCase_ == 7) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 7) { cmdCase_ = 0; cmd_ = null; } batchGetBuilder_.clear(); } return this; } /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public org.tikv.kvproto.Kvrpcpb.BatchGetRequest.Builder getBatchGetBuilder() { return getBatchGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ public org.tikv.kvproto.Kvrpcpb.BatchGetRequestOrBuilder getBatchGetOrBuilder() { if ((cmdCase_ == 7) && (batchGetBuilder_ != null)) { return batchGetBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 7) { return (org.tikv.kvproto.Kvrpcpb.BatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchGetRequest.getDefaultInstance(); } } /** * .kvrpcpb.BatchGetRequest BatchGet = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchGetRequest, org.tikv.kvproto.Kvrpcpb.BatchGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.BatchGetRequestOrBuilder> getBatchGetFieldBuilder() { if (batchGetBuilder_ == null) { if (!(cmdCase_ == 7)) { cmd_ = org.tikv.kvproto.Kvrpcpb.BatchGetRequest.getDefaultInstance(); } batchGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchGetRequest, org.tikv.kvproto.Kvrpcpb.BatchGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.BatchGetRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.BatchGetRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 7; onChanged();; return batchGetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest, org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.Builder, org.tikv.kvproto.Kvrpcpb.BatchRollbackRequestOrBuilder> batchRollbackBuilder_; /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public boolean hasBatchRollback() { return cmdCase_ == 8; } /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest getBatchRollback() { if (batchRollbackBuilder_ == null) { if (cmdCase_ == 8) { return (org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.getDefaultInstance(); } else { if (cmdCase_ == 8) { return batchRollbackBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.getDefaultInstance(); } } /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public Builder setBatchRollback(org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest value) { if (batchRollbackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { batchRollbackBuilder_.setMessage(value); } cmdCase_ = 8; return this; } /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public Builder setBatchRollback( org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.Builder builderForValue) { if (batchRollbackBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { batchRollbackBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 8; return this; } /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public Builder mergeBatchRollback(org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest value) { if (batchRollbackBuilder_ == null) { if (cmdCase_ == 8 && cmd_ != org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 8) { batchRollbackBuilder_.mergeFrom(value); } batchRollbackBuilder_.setMessage(value); } cmdCase_ = 8; return this; } /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public Builder clearBatchRollback() { if (batchRollbackBuilder_ == null) { if (cmdCase_ == 8) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 8) { cmdCase_ = 0; cmd_ = null; } batchRollbackBuilder_.clear(); } return this; } /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.Builder getBatchRollbackBuilder() { return getBatchRollbackFieldBuilder().getBuilder(); } /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackRequestOrBuilder getBatchRollbackOrBuilder() { if ((cmdCase_ == 8) && (batchRollbackBuilder_ != null)) { return batchRollbackBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 8) { return (org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.getDefaultInstance(); } } /** * .kvrpcpb.BatchRollbackRequest BatchRollback = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest, org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.Builder, org.tikv.kvproto.Kvrpcpb.BatchRollbackRequestOrBuilder> getBatchRollbackFieldBuilder() { if (batchRollbackBuilder_ == null) { if (!(cmdCase_ == 8)) { cmd_ = org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.getDefaultInstance(); } batchRollbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest, org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.Builder, org.tikv.kvproto.Kvrpcpb.BatchRollbackRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 8; onChanged();; return batchRollbackBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanLockRequest, org.tikv.kvproto.Kvrpcpb.ScanLockRequest.Builder, org.tikv.kvproto.Kvrpcpb.ScanLockRequestOrBuilder> scanLockBuilder_; /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public boolean hasScanLock() { return cmdCase_ == 9; } /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public org.tikv.kvproto.Kvrpcpb.ScanLockRequest getScanLock() { if (scanLockBuilder_ == null) { if (cmdCase_ == 9) { return (org.tikv.kvproto.Kvrpcpb.ScanLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanLockRequest.getDefaultInstance(); } else { if (cmdCase_ == 9) { return scanLockBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.ScanLockRequest.getDefaultInstance(); } } /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public Builder setScanLock(org.tikv.kvproto.Kvrpcpb.ScanLockRequest value) { if (scanLockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { scanLockBuilder_.setMessage(value); } cmdCase_ = 9; return this; } /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public Builder setScanLock( org.tikv.kvproto.Kvrpcpb.ScanLockRequest.Builder builderForValue) { if (scanLockBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { scanLockBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 9; return this; } /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public Builder mergeScanLock(org.tikv.kvproto.Kvrpcpb.ScanLockRequest value) { if (scanLockBuilder_ == null) { if (cmdCase_ == 9 && cmd_ != org.tikv.kvproto.Kvrpcpb.ScanLockRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.ScanLockRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.ScanLockRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 9) { scanLockBuilder_.mergeFrom(value); } scanLockBuilder_.setMessage(value); } cmdCase_ = 9; return this; } /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public Builder clearScanLock() { if (scanLockBuilder_ == null) { if (cmdCase_ == 9) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 9) { cmdCase_ = 0; cmd_ = null; } scanLockBuilder_.clear(); } return this; } /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public org.tikv.kvproto.Kvrpcpb.ScanLockRequest.Builder getScanLockBuilder() { return getScanLockFieldBuilder().getBuilder(); } /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ public org.tikv.kvproto.Kvrpcpb.ScanLockRequestOrBuilder getScanLockOrBuilder() { if ((cmdCase_ == 9) && (scanLockBuilder_ != null)) { return scanLockBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 9) { return (org.tikv.kvproto.Kvrpcpb.ScanLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanLockRequest.getDefaultInstance(); } } /** * .kvrpcpb.ScanLockRequest ScanLock = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanLockRequest, org.tikv.kvproto.Kvrpcpb.ScanLockRequest.Builder, org.tikv.kvproto.Kvrpcpb.ScanLockRequestOrBuilder> getScanLockFieldBuilder() { if (scanLockBuilder_ == null) { if (!(cmdCase_ == 9)) { cmd_ = org.tikv.kvproto.Kvrpcpb.ScanLockRequest.getDefaultInstance(); } scanLockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanLockRequest, org.tikv.kvproto.Kvrpcpb.ScanLockRequest.Builder, org.tikv.kvproto.Kvrpcpb.ScanLockRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.ScanLockRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 9; onChanged();; return scanLockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ResolveLockRequest, org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.Builder, org.tikv.kvproto.Kvrpcpb.ResolveLockRequestOrBuilder> resolveLockBuilder_; /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public boolean hasResolveLock() { return cmdCase_ == 10; } /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public org.tikv.kvproto.Kvrpcpb.ResolveLockRequest getResolveLock() { if (resolveLockBuilder_ == null) { if (cmdCase_ == 10) { return (org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.getDefaultInstance(); } else { if (cmdCase_ == 10) { return resolveLockBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.getDefaultInstance(); } } /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public Builder setResolveLock(org.tikv.kvproto.Kvrpcpb.ResolveLockRequest value) { if (resolveLockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { resolveLockBuilder_.setMessage(value); } cmdCase_ = 10; return this; } /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public Builder setResolveLock( org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.Builder builderForValue) { if (resolveLockBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { resolveLockBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 10; return this; } /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public Builder mergeResolveLock(org.tikv.kvproto.Kvrpcpb.ResolveLockRequest value) { if (resolveLockBuilder_ == null) { if (cmdCase_ == 10 && cmd_ != org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 10) { resolveLockBuilder_.mergeFrom(value); } resolveLockBuilder_.setMessage(value); } cmdCase_ = 10; return this; } /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public Builder clearResolveLock() { if (resolveLockBuilder_ == null) { if (cmdCase_ == 10) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 10) { cmdCase_ = 0; cmd_ = null; } resolveLockBuilder_.clear(); } return this; } /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.Builder getResolveLockBuilder() { return getResolveLockFieldBuilder().getBuilder(); } /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ public org.tikv.kvproto.Kvrpcpb.ResolveLockRequestOrBuilder getResolveLockOrBuilder() { if ((cmdCase_ == 10) && (resolveLockBuilder_ != null)) { return resolveLockBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 10) { return (org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.getDefaultInstance(); } } /** * .kvrpcpb.ResolveLockRequest ResolveLock = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ResolveLockRequest, org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.Builder, org.tikv.kvproto.Kvrpcpb.ResolveLockRequestOrBuilder> getResolveLockFieldBuilder() { if (resolveLockBuilder_ == null) { if (!(cmdCase_ == 10)) { cmd_ = org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.getDefaultInstance(); } resolveLockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ResolveLockRequest, org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.Builder, org.tikv.kvproto.Kvrpcpb.ResolveLockRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 10; onChanged();; return resolveLockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GCRequest, org.tikv.kvproto.Kvrpcpb.GCRequest.Builder, org.tikv.kvproto.Kvrpcpb.GCRequestOrBuilder> gCBuilder_; /** * .kvrpcpb.GCRequest GC = 11; */ public boolean hasGC() { return cmdCase_ == 11; } /** * .kvrpcpb.GCRequest GC = 11; */ public org.tikv.kvproto.Kvrpcpb.GCRequest getGC() { if (gCBuilder_ == null) { if (cmdCase_ == 11) { return (org.tikv.kvproto.Kvrpcpb.GCRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.GCRequest.getDefaultInstance(); } else { if (cmdCase_ == 11) { return gCBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.GCRequest.getDefaultInstance(); } } /** * .kvrpcpb.GCRequest GC = 11; */ public Builder setGC(org.tikv.kvproto.Kvrpcpb.GCRequest value) { if (gCBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { gCBuilder_.setMessage(value); } cmdCase_ = 11; return this; } /** * .kvrpcpb.GCRequest GC = 11; */ public Builder setGC( org.tikv.kvproto.Kvrpcpb.GCRequest.Builder builderForValue) { if (gCBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { gCBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 11; return this; } /** * .kvrpcpb.GCRequest GC = 11; */ public Builder mergeGC(org.tikv.kvproto.Kvrpcpb.GCRequest value) { if (gCBuilder_ == null) { if (cmdCase_ == 11 && cmd_ != org.tikv.kvproto.Kvrpcpb.GCRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.GCRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.GCRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 11) { gCBuilder_.mergeFrom(value); } gCBuilder_.setMessage(value); } cmdCase_ = 11; return this; } /** * .kvrpcpb.GCRequest GC = 11; */ public Builder clearGC() { if (gCBuilder_ == null) { if (cmdCase_ == 11) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 11) { cmdCase_ = 0; cmd_ = null; } gCBuilder_.clear(); } return this; } /** * .kvrpcpb.GCRequest GC = 11; */ public org.tikv.kvproto.Kvrpcpb.GCRequest.Builder getGCBuilder() { return getGCFieldBuilder().getBuilder(); } /** * .kvrpcpb.GCRequest GC = 11; */ public org.tikv.kvproto.Kvrpcpb.GCRequestOrBuilder getGCOrBuilder() { if ((cmdCase_ == 11) && (gCBuilder_ != null)) { return gCBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 11) { return (org.tikv.kvproto.Kvrpcpb.GCRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.GCRequest.getDefaultInstance(); } } /** * .kvrpcpb.GCRequest GC = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GCRequest, org.tikv.kvproto.Kvrpcpb.GCRequest.Builder, org.tikv.kvproto.Kvrpcpb.GCRequestOrBuilder> getGCFieldBuilder() { if (gCBuilder_ == null) { if (!(cmdCase_ == 11)) { cmd_ = org.tikv.kvproto.Kvrpcpb.GCRequest.getDefaultInstance(); } gCBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GCRequest, org.tikv.kvproto.Kvrpcpb.GCRequest.Builder, org.tikv.kvproto.Kvrpcpb.GCRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.GCRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 11; onChanged();; return gCBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.Builder, org.tikv.kvproto.Kvrpcpb.DeleteRangeRequestOrBuilder> deleteRangeBuilder_; /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public boolean hasDeleteRange() { return cmdCase_ == 12; } /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest getDeleteRange() { if (deleteRangeBuilder_ == null) { if (cmdCase_ == 12) { return (org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.getDefaultInstance(); } else { if (cmdCase_ == 12) { return deleteRangeBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.getDefaultInstance(); } } /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public Builder setDeleteRange(org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest value) { if (deleteRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { deleteRangeBuilder_.setMessage(value); } cmdCase_ = 12; return this; } /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public Builder setDeleteRange( org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.Builder builderForValue) { if (deleteRangeBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { deleteRangeBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 12; return this; } /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public Builder mergeDeleteRange(org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest value) { if (deleteRangeBuilder_ == null) { if (cmdCase_ == 12 && cmd_ != org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 12) { deleteRangeBuilder_.mergeFrom(value); } deleteRangeBuilder_.setMessage(value); } cmdCase_ = 12; return this; } /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public Builder clearDeleteRange() { if (deleteRangeBuilder_ == null) { if (cmdCase_ == 12) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 12) { cmdCase_ = 0; cmd_ = null; } deleteRangeBuilder_.clear(); } return this; } /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.Builder getDeleteRangeBuilder() { return getDeleteRangeFieldBuilder().getBuilder(); } /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeRequestOrBuilder getDeleteRangeOrBuilder() { if ((cmdCase_ == 12) && (deleteRangeBuilder_ != null)) { return deleteRangeBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 12) { return (org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.getDefaultInstance(); } } /** * .kvrpcpb.DeleteRangeRequest DeleteRange = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.Builder, org.tikv.kvproto.Kvrpcpb.DeleteRangeRequestOrBuilder> getDeleteRangeFieldBuilder() { if (deleteRangeBuilder_ == null) { if (!(cmdCase_ == 12)) { cmd_ = org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.getDefaultInstance(); } deleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.Builder, org.tikv.kvproto.Kvrpcpb.DeleteRangeRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 12; onChanged();; return deleteRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawGetRequest, org.tikv.kvproto.Kvrpcpb.RawGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawGetRequestOrBuilder> rawGetBuilder_; /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public boolean hasRawGet() { return cmdCase_ == 13; } /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public org.tikv.kvproto.Kvrpcpb.RawGetRequest getRawGet() { if (rawGetBuilder_ == null) { if (cmdCase_ == 13) { return (org.tikv.kvproto.Kvrpcpb.RawGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawGetRequest.getDefaultInstance(); } else { if (cmdCase_ == 13) { return rawGetBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawGetRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public Builder setRawGet(org.tikv.kvproto.Kvrpcpb.RawGetRequest value) { if (rawGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawGetBuilder_.setMessage(value); } cmdCase_ = 13; return this; } /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public Builder setRawGet( org.tikv.kvproto.Kvrpcpb.RawGetRequest.Builder builderForValue) { if (rawGetBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawGetBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 13; return this; } /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public Builder mergeRawGet(org.tikv.kvproto.Kvrpcpb.RawGetRequest value) { if (rawGetBuilder_ == null) { if (cmdCase_ == 13 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawGetRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawGetRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.RawGetRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 13) { rawGetBuilder_.mergeFrom(value); } rawGetBuilder_.setMessage(value); } cmdCase_ = 13; return this; } /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public Builder clearRawGet() { if (rawGetBuilder_ == null) { if (cmdCase_ == 13) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 13) { cmdCase_ = 0; cmd_ = null; } rawGetBuilder_.clear(); } return this; } /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public org.tikv.kvproto.Kvrpcpb.RawGetRequest.Builder getRawGetBuilder() { return getRawGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawGetRequest RawGet = 13; */ public org.tikv.kvproto.Kvrpcpb.RawGetRequestOrBuilder getRawGetOrBuilder() { if ((cmdCase_ == 13) && (rawGetBuilder_ != null)) { return rawGetBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 13) { return (org.tikv.kvproto.Kvrpcpb.RawGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawGetRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawGetRequest RawGet = 13; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawGetRequest, org.tikv.kvproto.Kvrpcpb.RawGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawGetRequestOrBuilder> getRawGetFieldBuilder() { if (rawGetBuilder_ == null) { if (!(cmdCase_ == 13)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawGetRequest.getDefaultInstance(); } rawGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawGetRequest, org.tikv.kvproto.Kvrpcpb.RawGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawGetRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawGetRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 13; onChanged();; return rawGetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest, org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchGetRequestOrBuilder> rawBatchGetBuilder_; /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public boolean hasRawBatchGet() { return cmdCase_ == 14; } /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest getRawBatchGet() { if (rawBatchGetBuilder_ == null) { if (cmdCase_ == 14) { return (org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.getDefaultInstance(); } else { if (cmdCase_ == 14) { return rawBatchGetBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public Builder setRawBatchGet(org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest value) { if (rawBatchGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawBatchGetBuilder_.setMessage(value); } cmdCase_ = 14; return this; } /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public Builder setRawBatchGet( org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.Builder builderForValue) { if (rawBatchGetBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawBatchGetBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 14; return this; } /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public Builder mergeRawBatchGet(org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest value) { if (rawBatchGetBuilder_ == null) { if (cmdCase_ == 14 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 14) { rawBatchGetBuilder_.mergeFrom(value); } rawBatchGetBuilder_.setMessage(value); } cmdCase_ = 14; return this; } /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public Builder clearRawBatchGet() { if (rawBatchGetBuilder_ == null) { if (cmdCase_ == 14) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 14) { cmdCase_ = 0; cmd_ = null; } rawBatchGetBuilder_.clear(); } return this; } /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.Builder getRawBatchGetBuilder() { return getRawBatchGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetRequestOrBuilder getRawBatchGetOrBuilder() { if ((cmdCase_ == 14) && (rawBatchGetBuilder_ != null)) { return rawBatchGetBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 14) { return (org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchGetRequest RawBatchGet = 14; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest, org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchGetRequestOrBuilder> getRawBatchGetFieldBuilder() { if (rawBatchGetBuilder_ == null) { if (!(cmdCase_ == 14)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.getDefaultInstance(); } rawBatchGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest, org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchGetRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 14; onChanged();; return rawBatchGetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawPutRequest, org.tikv.kvproto.Kvrpcpb.RawPutRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawPutRequestOrBuilder> rawPutBuilder_; /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public boolean hasRawPut() { return cmdCase_ == 15; } /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public org.tikv.kvproto.Kvrpcpb.RawPutRequest getRawPut() { if (rawPutBuilder_ == null) { if (cmdCase_ == 15) { return (org.tikv.kvproto.Kvrpcpb.RawPutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawPutRequest.getDefaultInstance(); } else { if (cmdCase_ == 15) { return rawPutBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawPutRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public Builder setRawPut(org.tikv.kvproto.Kvrpcpb.RawPutRequest value) { if (rawPutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawPutBuilder_.setMessage(value); } cmdCase_ = 15; return this; } /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public Builder setRawPut( org.tikv.kvproto.Kvrpcpb.RawPutRequest.Builder builderForValue) { if (rawPutBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawPutBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 15; return this; } /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public Builder mergeRawPut(org.tikv.kvproto.Kvrpcpb.RawPutRequest value) { if (rawPutBuilder_ == null) { if (cmdCase_ == 15 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawPutRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawPutRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.RawPutRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 15) { rawPutBuilder_.mergeFrom(value); } rawPutBuilder_.setMessage(value); } cmdCase_ = 15; return this; } /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public Builder clearRawPut() { if (rawPutBuilder_ == null) { if (cmdCase_ == 15) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 15) { cmdCase_ = 0; cmd_ = null; } rawPutBuilder_.clear(); } return this; } /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public org.tikv.kvproto.Kvrpcpb.RawPutRequest.Builder getRawPutBuilder() { return getRawPutFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawPutRequest RawPut = 15; */ public org.tikv.kvproto.Kvrpcpb.RawPutRequestOrBuilder getRawPutOrBuilder() { if ((cmdCase_ == 15) && (rawPutBuilder_ != null)) { return rawPutBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 15) { return (org.tikv.kvproto.Kvrpcpb.RawPutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawPutRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawPutRequest RawPut = 15; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawPutRequest, org.tikv.kvproto.Kvrpcpb.RawPutRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawPutRequestOrBuilder> getRawPutFieldBuilder() { if (rawPutBuilder_ == null) { if (!(cmdCase_ == 15)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawPutRequest.getDefaultInstance(); } rawPutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawPutRequest, org.tikv.kvproto.Kvrpcpb.RawPutRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawPutRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawPutRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 15; onChanged();; return rawPutBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest, org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchPutRequestOrBuilder> rawBatchPutBuilder_; /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public boolean hasRawBatchPut() { return cmdCase_ == 16; } /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest getRawBatchPut() { if (rawBatchPutBuilder_ == null) { if (cmdCase_ == 16) { return (org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.getDefaultInstance(); } else { if (cmdCase_ == 16) { return rawBatchPutBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public Builder setRawBatchPut(org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest value) { if (rawBatchPutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawBatchPutBuilder_.setMessage(value); } cmdCase_ = 16; return this; } /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public Builder setRawBatchPut( org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.Builder builderForValue) { if (rawBatchPutBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawBatchPutBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 16; return this; } /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public Builder mergeRawBatchPut(org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest value) { if (rawBatchPutBuilder_ == null) { if (cmdCase_ == 16 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 16) { rawBatchPutBuilder_.mergeFrom(value); } rawBatchPutBuilder_.setMessage(value); } cmdCase_ = 16; return this; } /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public Builder clearRawBatchPut() { if (rawBatchPutBuilder_ == null) { if (cmdCase_ == 16) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 16) { cmdCase_ = 0; cmd_ = null; } rawBatchPutBuilder_.clear(); } return this; } /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.Builder getRawBatchPutBuilder() { return getRawBatchPutFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutRequestOrBuilder getRawBatchPutOrBuilder() { if ((cmdCase_ == 16) && (rawBatchPutBuilder_ != null)) { return rawBatchPutBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 16) { return (org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchPutRequest RawBatchPut = 16; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest, org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchPutRequestOrBuilder> getRawBatchPutFieldBuilder() { if (rawBatchPutBuilder_ == null) { if (!(cmdCase_ == 16)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.getDefaultInstance(); } rawBatchPutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest, org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchPutRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 16; onChanged();; return rawBatchPutBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteRequest, org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteRequestOrBuilder> rawDeleteBuilder_; /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public boolean hasRawDelete() { return cmdCase_ == 17; } /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRequest getRawDelete() { if (rawDeleteBuilder_ == null) { if (cmdCase_ == 17) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.getDefaultInstance(); } else { if (cmdCase_ == 17) { return rawDeleteBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public Builder setRawDelete(org.tikv.kvproto.Kvrpcpb.RawDeleteRequest value) { if (rawDeleteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawDeleteBuilder_.setMessage(value); } cmdCase_ = 17; return this; } /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public Builder setRawDelete( org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.Builder builderForValue) { if (rawDeleteBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawDeleteBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 17; return this; } /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public Builder mergeRawDelete(org.tikv.kvproto.Kvrpcpb.RawDeleteRequest value) { if (rawDeleteBuilder_ == null) { if (cmdCase_ == 17 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 17) { rawDeleteBuilder_.mergeFrom(value); } rawDeleteBuilder_.setMessage(value); } cmdCase_ = 17; return this; } /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public Builder clearRawDelete() { if (rawDeleteBuilder_ == null) { if (cmdCase_ == 17) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 17) { cmdCase_ = 0; cmd_ = null; } rawDeleteBuilder_.clear(); } return this; } /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.Builder getRawDeleteBuilder() { return getRawDeleteFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRequestOrBuilder getRawDeleteOrBuilder() { if ((cmdCase_ == 17) && (rawDeleteBuilder_ != null)) { return rawDeleteBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 17) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawDeleteRequest RawDelete = 17; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteRequest, org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteRequestOrBuilder> getRawDeleteFieldBuilder() { if (rawDeleteBuilder_ == null) { if (!(cmdCase_ == 17)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.getDefaultInstance(); } rawDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteRequest, org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 17; onChanged();; return rawDeleteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequestOrBuilder> rawBatchDeleteBuilder_; /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public boolean hasRawBatchDelete() { return cmdCase_ == 18; } /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest getRawBatchDelete() { if (rawBatchDeleteBuilder_ == null) { if (cmdCase_ == 18) { return (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.getDefaultInstance(); } else { if (cmdCase_ == 18) { return rawBatchDeleteBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public Builder setRawBatchDelete(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest value) { if (rawBatchDeleteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawBatchDeleteBuilder_.setMessage(value); } cmdCase_ = 18; return this; } /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public Builder setRawBatchDelete( org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.Builder builderForValue) { if (rawBatchDeleteBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawBatchDeleteBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 18; return this; } /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public Builder mergeRawBatchDelete(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest value) { if (rawBatchDeleteBuilder_ == null) { if (cmdCase_ == 18 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 18) { rawBatchDeleteBuilder_.mergeFrom(value); } rawBatchDeleteBuilder_.setMessage(value); } cmdCase_ = 18; return this; } /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public Builder clearRawBatchDelete() { if (rawBatchDeleteBuilder_ == null) { if (cmdCase_ == 18) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 18) { cmdCase_ = 0; cmd_ = null; } rawBatchDeleteBuilder_.clear(); } return this; } /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.Builder getRawBatchDeleteBuilder() { return getRawBatchDeleteFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequestOrBuilder getRawBatchDeleteOrBuilder() { if ((cmdCase_ == 18) && (rawBatchDeleteBuilder_ != null)) { return rawBatchDeleteBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 18) { return (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchDeleteRequest RawBatchDelete = 18; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequestOrBuilder> getRawBatchDeleteFieldBuilder() { if (rawBatchDeleteBuilder_ == null) { if (!(cmdCase_ == 18)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.getDefaultInstance(); } rawBatchDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 18; onChanged();; return rawBatchDeleteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawScanRequest, org.tikv.kvproto.Kvrpcpb.RawScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawScanRequestOrBuilder> rawScanBuilder_; /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public boolean hasRawScan() { return cmdCase_ == 19; } /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public org.tikv.kvproto.Kvrpcpb.RawScanRequest getRawScan() { if (rawScanBuilder_ == null) { if (cmdCase_ == 19) { return (org.tikv.kvproto.Kvrpcpb.RawScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawScanRequest.getDefaultInstance(); } else { if (cmdCase_ == 19) { return rawScanBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawScanRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public Builder setRawScan(org.tikv.kvproto.Kvrpcpb.RawScanRequest value) { if (rawScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawScanBuilder_.setMessage(value); } cmdCase_ = 19; return this; } /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public Builder setRawScan( org.tikv.kvproto.Kvrpcpb.RawScanRequest.Builder builderForValue) { if (rawScanBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawScanBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 19; return this; } /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public Builder mergeRawScan(org.tikv.kvproto.Kvrpcpb.RawScanRequest value) { if (rawScanBuilder_ == null) { if (cmdCase_ == 19 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawScanRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawScanRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.RawScanRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 19) { rawScanBuilder_.mergeFrom(value); } rawScanBuilder_.setMessage(value); } cmdCase_ = 19; return this; } /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public Builder clearRawScan() { if (rawScanBuilder_ == null) { if (cmdCase_ == 19) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 19) { cmdCase_ = 0; cmd_ = null; } rawScanBuilder_.clear(); } return this; } /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public org.tikv.kvproto.Kvrpcpb.RawScanRequest.Builder getRawScanBuilder() { return getRawScanFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawScanRequest RawScan = 19; */ public org.tikv.kvproto.Kvrpcpb.RawScanRequestOrBuilder getRawScanOrBuilder() { if ((cmdCase_ == 19) && (rawScanBuilder_ != null)) { return rawScanBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 19) { return (org.tikv.kvproto.Kvrpcpb.RawScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawScanRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawScanRequest RawScan = 19; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawScanRequest, org.tikv.kvproto.Kvrpcpb.RawScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawScanRequestOrBuilder> getRawScanFieldBuilder() { if (rawScanBuilder_ == null) { if (!(cmdCase_ == 19)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawScanRequest.getDefaultInstance(); } rawScanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawScanRequest, org.tikv.kvproto.Kvrpcpb.RawScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawScanRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawScanRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 19; onChanged();; return rawScanBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequestOrBuilder> rawDeleteRangeBuilder_; /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public boolean hasRawDeleteRange() { return cmdCase_ == 20; } /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest getRawDeleteRange() { if (rawDeleteRangeBuilder_ == null) { if (cmdCase_ == 20) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.getDefaultInstance(); } else { if (cmdCase_ == 20) { return rawDeleteRangeBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public Builder setRawDeleteRange(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest value) { if (rawDeleteRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawDeleteRangeBuilder_.setMessage(value); } cmdCase_ = 20; return this; } /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public Builder setRawDeleteRange( org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.Builder builderForValue) { if (rawDeleteRangeBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawDeleteRangeBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 20; return this; } /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public Builder mergeRawDeleteRange(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest value) { if (rawDeleteRangeBuilder_ == null) { if (cmdCase_ == 20 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 20) { rawDeleteRangeBuilder_.mergeFrom(value); } rawDeleteRangeBuilder_.setMessage(value); } cmdCase_ = 20; return this; } /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public Builder clearRawDeleteRange() { if (rawDeleteRangeBuilder_ == null) { if (cmdCase_ == 20) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 20) { cmdCase_ = 0; cmd_ = null; } rawDeleteRangeBuilder_.clear(); } return this; } /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.Builder getRawDeleteRangeBuilder() { return getRawDeleteRangeFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequestOrBuilder getRawDeleteRangeOrBuilder() { if ((cmdCase_ == 20) && (rawDeleteRangeBuilder_ != null)) { return rawDeleteRangeBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 20) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawDeleteRangeRequest RawDeleteRange = 20; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequestOrBuilder> getRawDeleteRangeFieldBuilder() { if (rawDeleteRangeBuilder_ == null) { if (!(cmdCase_ == 20)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.getDefaultInstance(); } rawDeleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 20; onChanged();; return rawDeleteRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest, org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchScanRequestOrBuilder> rawBatchScanBuilder_; /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public boolean hasRawBatchScan() { return cmdCase_ == 21; } /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest getRawBatchScan() { if (rawBatchScanBuilder_ == null) { if (cmdCase_ == 21) { return (org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.getDefaultInstance(); } else { if (cmdCase_ == 21) { return rawBatchScanBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public Builder setRawBatchScan(org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest value) { if (rawBatchScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawBatchScanBuilder_.setMessage(value); } cmdCase_ = 21; return this; } /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public Builder setRawBatchScan( org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.Builder builderForValue) { if (rawBatchScanBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawBatchScanBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 21; return this; } /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public Builder mergeRawBatchScan(org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest value) { if (rawBatchScanBuilder_ == null) { if (cmdCase_ == 21 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 21) { rawBatchScanBuilder_.mergeFrom(value); } rawBatchScanBuilder_.setMessage(value); } cmdCase_ = 21; return this; } /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public Builder clearRawBatchScan() { if (rawBatchScanBuilder_ == null) { if (cmdCase_ == 21) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 21) { cmdCase_ = 0; cmd_ = null; } rawBatchScanBuilder_.clear(); } return this; } /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.Builder getRawBatchScanBuilder() { return getRawBatchScanFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanRequestOrBuilder getRawBatchScanOrBuilder() { if ((cmdCase_ == 21) && (rawBatchScanBuilder_ != null)) { return rawBatchScanBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 21) { return (org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchScanRequest RawBatchScan = 21; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest, org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchScanRequestOrBuilder> getRawBatchScanFieldBuilder() { if (rawBatchScanBuilder_ == null) { if (!(cmdCase_ == 21)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.getDefaultInstance(); } rawBatchScanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest, org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchScanRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 21; onChanged();; return rawBatchScanBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Coprocessor.Request, org.tikv.kvproto.Coprocessor.Request.Builder, org.tikv.kvproto.Coprocessor.RequestOrBuilder> coprocessorBuilder_; /** * .coprocessor.Request Coprocessor = 22; */ public boolean hasCoprocessor() { return cmdCase_ == 22; } /** * .coprocessor.Request Coprocessor = 22; */ public org.tikv.kvproto.Coprocessor.Request getCoprocessor() { if (coprocessorBuilder_ == null) { if (cmdCase_ == 22) { return (org.tikv.kvproto.Coprocessor.Request) cmd_; } return org.tikv.kvproto.Coprocessor.Request.getDefaultInstance(); } else { if (cmdCase_ == 22) { return coprocessorBuilder_.getMessage(); } return org.tikv.kvproto.Coprocessor.Request.getDefaultInstance(); } } /** * .coprocessor.Request Coprocessor = 22; */ public Builder setCoprocessor(org.tikv.kvproto.Coprocessor.Request value) { if (coprocessorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { coprocessorBuilder_.setMessage(value); } cmdCase_ = 22; return this; } /** * .coprocessor.Request Coprocessor = 22; */ public Builder setCoprocessor( org.tikv.kvproto.Coprocessor.Request.Builder builderForValue) { if (coprocessorBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { coprocessorBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 22; return this; } /** * .coprocessor.Request Coprocessor = 22; */ public Builder mergeCoprocessor(org.tikv.kvproto.Coprocessor.Request value) { if (coprocessorBuilder_ == null) { if (cmdCase_ == 22 && cmd_ != org.tikv.kvproto.Coprocessor.Request.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Coprocessor.Request.newBuilder((org.tikv.kvproto.Coprocessor.Request) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 22) { coprocessorBuilder_.mergeFrom(value); } coprocessorBuilder_.setMessage(value); } cmdCase_ = 22; return this; } /** * .coprocessor.Request Coprocessor = 22; */ public Builder clearCoprocessor() { if (coprocessorBuilder_ == null) { if (cmdCase_ == 22) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 22) { cmdCase_ = 0; cmd_ = null; } coprocessorBuilder_.clear(); } return this; } /** * .coprocessor.Request Coprocessor = 22; */ public org.tikv.kvproto.Coprocessor.Request.Builder getCoprocessorBuilder() { return getCoprocessorFieldBuilder().getBuilder(); } /** * .coprocessor.Request Coprocessor = 22; */ public org.tikv.kvproto.Coprocessor.RequestOrBuilder getCoprocessorOrBuilder() { if ((cmdCase_ == 22) && (coprocessorBuilder_ != null)) { return coprocessorBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 22) { return (org.tikv.kvproto.Coprocessor.Request) cmd_; } return org.tikv.kvproto.Coprocessor.Request.getDefaultInstance(); } } /** * .coprocessor.Request Coprocessor = 22; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Coprocessor.Request, org.tikv.kvproto.Coprocessor.Request.Builder, org.tikv.kvproto.Coprocessor.RequestOrBuilder> getCoprocessorFieldBuilder() { if (coprocessorBuilder_ == null) { if (!(cmdCase_ == 22)) { cmd_ = org.tikv.kvproto.Coprocessor.Request.getDefaultInstance(); } coprocessorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Coprocessor.Request, org.tikv.kvproto.Coprocessor.Request.Builder, org.tikv.kvproto.Coprocessor.RequestOrBuilder>( (org.tikv.kvproto.Coprocessor.Request) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 22; onChanged();; return coprocessorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest, org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticLockRequestOrBuilder> pessimisticLockBuilder_; /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public boolean hasPessimisticLock() { return cmdCase_ == 23; } /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest getPessimisticLock() { if (pessimisticLockBuilder_ == null) { if (cmdCase_ == 23) { return (org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.getDefaultInstance(); } else { if (cmdCase_ == 23) { return pessimisticLockBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.getDefaultInstance(); } } /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public Builder setPessimisticLock(org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest value) { if (pessimisticLockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { pessimisticLockBuilder_.setMessage(value); } cmdCase_ = 23; return this; } /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public Builder setPessimisticLock( org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.Builder builderForValue) { if (pessimisticLockBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { pessimisticLockBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 23; return this; } /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public Builder mergePessimisticLock(org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest value) { if (pessimisticLockBuilder_ == null) { if (cmdCase_ == 23 && cmd_ != org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 23) { pessimisticLockBuilder_.mergeFrom(value); } pessimisticLockBuilder_.setMessage(value); } cmdCase_ = 23; return this; } /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public Builder clearPessimisticLock() { if (pessimisticLockBuilder_ == null) { if (cmdCase_ == 23) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 23) { cmdCase_ = 0; cmd_ = null; } pessimisticLockBuilder_.clear(); } return this; } /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.Builder getPessimisticLockBuilder() { return getPessimisticLockFieldBuilder().getBuilder(); } /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockRequestOrBuilder getPessimisticLockOrBuilder() { if ((cmdCase_ == 23) && (pessimisticLockBuilder_ != null)) { return pessimisticLockBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 23) { return (org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.getDefaultInstance(); } } /** * .kvrpcpb.PessimisticLockRequest PessimisticLock = 23; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest, org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticLockRequestOrBuilder> getPessimisticLockFieldBuilder() { if (pessimisticLockBuilder_ == null) { if (!(cmdCase_ == 23)) { cmd_ = org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.getDefaultInstance(); } pessimisticLockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest, org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticLockRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 23; onChanged();; return pessimisticLockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequestOrBuilder> pessimisticRollbackBuilder_; /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public boolean hasPessimisticRollback() { return cmdCase_ == 24; } /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest getPessimisticRollback() { if (pessimisticRollbackBuilder_ == null) { if (cmdCase_ == 24) { return (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.getDefaultInstance(); } else { if (cmdCase_ == 24) { return pessimisticRollbackBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.getDefaultInstance(); } } /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public Builder setPessimisticRollback(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest value) { if (pessimisticRollbackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { pessimisticRollbackBuilder_.setMessage(value); } cmdCase_ = 24; return this; } /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public Builder setPessimisticRollback( org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.Builder builderForValue) { if (pessimisticRollbackBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { pessimisticRollbackBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 24; return this; } /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public Builder mergePessimisticRollback(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest value) { if (pessimisticRollbackBuilder_ == null) { if (cmdCase_ == 24 && cmd_ != org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 24) { pessimisticRollbackBuilder_.mergeFrom(value); } pessimisticRollbackBuilder_.setMessage(value); } cmdCase_ = 24; return this; } /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public Builder clearPessimisticRollback() { if (pessimisticRollbackBuilder_ == null) { if (cmdCase_ == 24) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 24) { cmdCase_ = 0; cmd_ = null; } pessimisticRollbackBuilder_.clear(); } return this; } /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.Builder getPessimisticRollbackBuilder() { return getPessimisticRollbackFieldBuilder().getBuilder(); } /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequestOrBuilder getPessimisticRollbackOrBuilder() { if ((cmdCase_ == 24) && (pessimisticRollbackBuilder_ != null)) { return pessimisticRollbackBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 24) { return (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.getDefaultInstance(); } } /** * .kvrpcpb.PessimisticRollbackRequest PessimisticRollback = 24; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequestOrBuilder> getPessimisticRollbackFieldBuilder() { if (pessimisticRollbackBuilder_ == null) { if (!(cmdCase_ == 24)) { cmd_ = org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.getDefaultInstance(); } pessimisticRollbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 24; onChanged();; return pessimisticRollbackBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.Builder, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequestOrBuilder> checkTxnStatusBuilder_; /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public boolean hasCheckTxnStatus() { return cmdCase_ == 25; } /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest getCheckTxnStatus() { if (checkTxnStatusBuilder_ == null) { if (cmdCase_ == 25) { return (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.getDefaultInstance(); } else { if (cmdCase_ == 25) { return checkTxnStatusBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.getDefaultInstance(); } } /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public Builder setCheckTxnStatus(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest value) { if (checkTxnStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { checkTxnStatusBuilder_.setMessage(value); } cmdCase_ = 25; return this; } /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public Builder setCheckTxnStatus( org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.Builder builderForValue) { if (checkTxnStatusBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { checkTxnStatusBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 25; return this; } /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public Builder mergeCheckTxnStatus(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest value) { if (checkTxnStatusBuilder_ == null) { if (cmdCase_ == 25 && cmd_ != org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 25) { checkTxnStatusBuilder_.mergeFrom(value); } checkTxnStatusBuilder_.setMessage(value); } cmdCase_ = 25; return this; } /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public Builder clearCheckTxnStatus() { if (checkTxnStatusBuilder_ == null) { if (cmdCase_ == 25) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 25) { cmdCase_ = 0; cmd_ = null; } checkTxnStatusBuilder_.clear(); } return this; } /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.Builder getCheckTxnStatusBuilder() { return getCheckTxnStatusFieldBuilder().getBuilder(); } /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequestOrBuilder getCheckTxnStatusOrBuilder() { if ((cmdCase_ == 25) && (checkTxnStatusBuilder_ != null)) { return checkTxnStatusBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 25) { return (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.getDefaultInstance(); } } /** * .kvrpcpb.CheckTxnStatusRequest CheckTxnStatus = 25; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.Builder, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequestOrBuilder> getCheckTxnStatusFieldBuilder() { if (checkTxnStatusBuilder_ == null) { if (!(cmdCase_ == 25)) { cmd_ = org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.getDefaultInstance(); } checkTxnStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.Builder, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 25; onChanged();; return checkTxnStatusBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.Builder, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequestOrBuilder> txnHeartBeatBuilder_; /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public boolean hasTxnHeartBeat() { return cmdCase_ == 26; } /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest getTxnHeartBeat() { if (txnHeartBeatBuilder_ == null) { if (cmdCase_ == 26) { return (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.getDefaultInstance(); } else { if (cmdCase_ == 26) { return txnHeartBeatBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.getDefaultInstance(); } } /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public Builder setTxnHeartBeat(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest value) { if (txnHeartBeatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { txnHeartBeatBuilder_.setMessage(value); } cmdCase_ = 26; return this; } /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public Builder setTxnHeartBeat( org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.Builder builderForValue) { if (txnHeartBeatBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { txnHeartBeatBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 26; return this; } /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public Builder mergeTxnHeartBeat(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest value) { if (txnHeartBeatBuilder_ == null) { if (cmdCase_ == 26 && cmd_ != org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 26) { txnHeartBeatBuilder_.mergeFrom(value); } txnHeartBeatBuilder_.setMessage(value); } cmdCase_ = 26; return this; } /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public Builder clearTxnHeartBeat() { if (txnHeartBeatBuilder_ == null) { if (cmdCase_ == 26) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 26) { cmdCase_ = 0; cmd_ = null; } txnHeartBeatBuilder_.clear(); } return this; } /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.Builder getTxnHeartBeatBuilder() { return getTxnHeartBeatFieldBuilder().getBuilder(); } /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequestOrBuilder getTxnHeartBeatOrBuilder() { if ((cmdCase_ == 26) && (txnHeartBeatBuilder_ != null)) { return txnHeartBeatBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 26) { return (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.getDefaultInstance(); } } /** * .kvrpcpb.TxnHeartBeatRequest TxnHeartBeat = 26; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.Builder, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequestOrBuilder> getTxnHeartBeatFieldBuilder() { if (txnHeartBeatBuilder_ == null) { if (!(cmdCase_ == 26)) { cmd_ = org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.getDefaultInstance(); } txnHeartBeatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.Builder, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 26; onChanged();; return txnHeartBeatBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerGetRequest, org.tikv.kvproto.Kvrpcpb.VerGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerGetRequestOrBuilder> verGetBuilder_; /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public boolean hasVerGet() { return cmdCase_ == 27; } /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public org.tikv.kvproto.Kvrpcpb.VerGetRequest getVerGet() { if (verGetBuilder_ == null) { if (cmdCase_ == 27) { return (org.tikv.kvproto.Kvrpcpb.VerGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerGetRequest.getDefaultInstance(); } else { if (cmdCase_ == 27) { return verGetBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerGetRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public Builder setVerGet(org.tikv.kvproto.Kvrpcpb.VerGetRequest value) { if (verGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verGetBuilder_.setMessage(value); } cmdCase_ = 27; return this; } /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public Builder setVerGet( org.tikv.kvproto.Kvrpcpb.VerGetRequest.Builder builderForValue) { if (verGetBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verGetBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 27; return this; } /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public Builder mergeVerGet(org.tikv.kvproto.Kvrpcpb.VerGetRequest value) { if (verGetBuilder_ == null) { if (cmdCase_ == 27 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerGetRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerGetRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.VerGetRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 27) { verGetBuilder_.mergeFrom(value); } verGetBuilder_.setMessage(value); } cmdCase_ = 27; return this; } /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public Builder clearVerGet() { if (verGetBuilder_ == null) { if (cmdCase_ == 27) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 27) { cmdCase_ = 0; cmd_ = null; } verGetBuilder_.clear(); } return this; } /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public org.tikv.kvproto.Kvrpcpb.VerGetRequest.Builder getVerGetBuilder() { return getVerGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerGetRequest VerGet = 27; */ public org.tikv.kvproto.Kvrpcpb.VerGetRequestOrBuilder getVerGetOrBuilder() { if ((cmdCase_ == 27) && (verGetBuilder_ != null)) { return verGetBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 27) { return (org.tikv.kvproto.Kvrpcpb.VerGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerGetRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerGetRequest VerGet = 27; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerGetRequest, org.tikv.kvproto.Kvrpcpb.VerGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerGetRequestOrBuilder> getVerGetFieldBuilder() { if (verGetBuilder_ == null) { if (!(cmdCase_ == 27)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerGetRequest.getDefaultInstance(); } verGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerGetRequest, org.tikv.kvproto.Kvrpcpb.VerGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerGetRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerGetRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 27; onChanged();; return verGetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest, org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchGetRequestOrBuilder> verBatchGetBuilder_; /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public boolean hasVerBatchGet() { return cmdCase_ == 28; } /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest getVerBatchGet() { if (verBatchGetBuilder_ == null) { if (cmdCase_ == 28) { return (org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.getDefaultInstance(); } else { if (cmdCase_ == 28) { return verBatchGetBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public Builder setVerBatchGet(org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest value) { if (verBatchGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verBatchGetBuilder_.setMessage(value); } cmdCase_ = 28; return this; } /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public Builder setVerBatchGet( org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.Builder builderForValue) { if (verBatchGetBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verBatchGetBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 28; return this; } /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public Builder mergeVerBatchGet(org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest value) { if (verBatchGetBuilder_ == null) { if (cmdCase_ == 28 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 28) { verBatchGetBuilder_.mergeFrom(value); } verBatchGetBuilder_.setMessage(value); } cmdCase_ = 28; return this; } /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public Builder clearVerBatchGet() { if (verBatchGetBuilder_ == null) { if (cmdCase_ == 28) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 28) { cmdCase_ = 0; cmd_ = null; } verBatchGetBuilder_.clear(); } return this; } /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.Builder getVerBatchGetBuilder() { return getVerBatchGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetRequestOrBuilder getVerBatchGetOrBuilder() { if ((cmdCase_ == 28) && (verBatchGetBuilder_ != null)) { return verBatchGetBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 28) { return (org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerBatchGetRequest VerBatchGet = 28; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest, org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchGetRequestOrBuilder> getVerBatchGetFieldBuilder() { if (verBatchGetBuilder_ == null) { if (!(cmdCase_ == 28)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.getDefaultInstance(); } verBatchGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest, org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchGetRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 28; onChanged();; return verBatchGetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutRequest, org.tikv.kvproto.Kvrpcpb.VerMutRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerMutRequestOrBuilder> verMutBuilder_; /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public boolean hasVerMut() { return cmdCase_ == 29; } /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public org.tikv.kvproto.Kvrpcpb.VerMutRequest getVerMut() { if (verMutBuilder_ == null) { if (cmdCase_ == 29) { return (org.tikv.kvproto.Kvrpcpb.VerMutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerMutRequest.getDefaultInstance(); } else { if (cmdCase_ == 29) { return verMutBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerMutRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public Builder setVerMut(org.tikv.kvproto.Kvrpcpb.VerMutRequest value) { if (verMutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verMutBuilder_.setMessage(value); } cmdCase_ = 29; return this; } /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public Builder setVerMut( org.tikv.kvproto.Kvrpcpb.VerMutRequest.Builder builderForValue) { if (verMutBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verMutBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 29; return this; } /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public Builder mergeVerMut(org.tikv.kvproto.Kvrpcpb.VerMutRequest value) { if (verMutBuilder_ == null) { if (cmdCase_ == 29 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerMutRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerMutRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.VerMutRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 29) { verMutBuilder_.mergeFrom(value); } verMutBuilder_.setMessage(value); } cmdCase_ = 29; return this; } /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public Builder clearVerMut() { if (verMutBuilder_ == null) { if (cmdCase_ == 29) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 29) { cmdCase_ = 0; cmd_ = null; } verMutBuilder_.clear(); } return this; } /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public org.tikv.kvproto.Kvrpcpb.VerMutRequest.Builder getVerMutBuilder() { return getVerMutFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerMutRequest VerMut = 29; */ public org.tikv.kvproto.Kvrpcpb.VerMutRequestOrBuilder getVerMutOrBuilder() { if ((cmdCase_ == 29) && (verMutBuilder_ != null)) { return verMutBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 29) { return (org.tikv.kvproto.Kvrpcpb.VerMutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerMutRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerMutRequest VerMut = 29; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutRequest, org.tikv.kvproto.Kvrpcpb.VerMutRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerMutRequestOrBuilder> getVerMutFieldBuilder() { if (verMutBuilder_ == null) { if (!(cmdCase_ == 29)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerMutRequest.getDefaultInstance(); } verMutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutRequest, org.tikv.kvproto.Kvrpcpb.VerMutRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerMutRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerMutRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 29; onChanged();; return verMutBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest, org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchMutRequestOrBuilder> verBatchMutBuilder_; /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public boolean hasVerBatchMut() { return cmdCase_ == 30; } /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest getVerBatchMut() { if (verBatchMutBuilder_ == null) { if (cmdCase_ == 30) { return (org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.getDefaultInstance(); } else { if (cmdCase_ == 30) { return verBatchMutBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public Builder setVerBatchMut(org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest value) { if (verBatchMutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verBatchMutBuilder_.setMessage(value); } cmdCase_ = 30; return this; } /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public Builder setVerBatchMut( org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.Builder builderForValue) { if (verBatchMutBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verBatchMutBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 30; return this; } /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public Builder mergeVerBatchMut(org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest value) { if (verBatchMutBuilder_ == null) { if (cmdCase_ == 30 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 30) { verBatchMutBuilder_.mergeFrom(value); } verBatchMutBuilder_.setMessage(value); } cmdCase_ = 30; return this; } /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public Builder clearVerBatchMut() { if (verBatchMutBuilder_ == null) { if (cmdCase_ == 30) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 30) { cmdCase_ = 0; cmd_ = null; } verBatchMutBuilder_.clear(); } return this; } /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.Builder getVerBatchMutBuilder() { return getVerBatchMutFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutRequestOrBuilder getVerBatchMutOrBuilder() { if ((cmdCase_ == 30) && (verBatchMutBuilder_ != null)) { return verBatchMutBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 30) { return (org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerBatchMutRequest VerBatchMut = 30; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest, org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchMutRequestOrBuilder> getVerBatchMutFieldBuilder() { if (verBatchMutBuilder_ == null) { if (!(cmdCase_ == 30)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.getDefaultInstance(); } verBatchMutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest, org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchMutRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 30; onChanged();; return verBatchMutBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerScanRequest, org.tikv.kvproto.Kvrpcpb.VerScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerScanRequestOrBuilder> verScanBuilder_; /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public boolean hasVerScan() { return cmdCase_ == 31; } /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public org.tikv.kvproto.Kvrpcpb.VerScanRequest getVerScan() { if (verScanBuilder_ == null) { if (cmdCase_ == 31) { return (org.tikv.kvproto.Kvrpcpb.VerScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerScanRequest.getDefaultInstance(); } else { if (cmdCase_ == 31) { return verScanBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerScanRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public Builder setVerScan(org.tikv.kvproto.Kvrpcpb.VerScanRequest value) { if (verScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verScanBuilder_.setMessage(value); } cmdCase_ = 31; return this; } /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public Builder setVerScan( org.tikv.kvproto.Kvrpcpb.VerScanRequest.Builder builderForValue) { if (verScanBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verScanBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 31; return this; } /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public Builder mergeVerScan(org.tikv.kvproto.Kvrpcpb.VerScanRequest value) { if (verScanBuilder_ == null) { if (cmdCase_ == 31 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerScanRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerScanRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.VerScanRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 31) { verScanBuilder_.mergeFrom(value); } verScanBuilder_.setMessage(value); } cmdCase_ = 31; return this; } /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public Builder clearVerScan() { if (verScanBuilder_ == null) { if (cmdCase_ == 31) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 31) { cmdCase_ = 0; cmd_ = null; } verScanBuilder_.clear(); } return this; } /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public org.tikv.kvproto.Kvrpcpb.VerScanRequest.Builder getVerScanBuilder() { return getVerScanFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerScanRequest VerScan = 31; */ public org.tikv.kvproto.Kvrpcpb.VerScanRequestOrBuilder getVerScanOrBuilder() { if ((cmdCase_ == 31) && (verScanBuilder_ != null)) { return verScanBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 31) { return (org.tikv.kvproto.Kvrpcpb.VerScanRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerScanRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerScanRequest VerScan = 31; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerScanRequest, org.tikv.kvproto.Kvrpcpb.VerScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerScanRequestOrBuilder> getVerScanFieldBuilder() { if (verScanBuilder_ == null) { if (!(cmdCase_ == 31)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerScanRequest.getDefaultInstance(); } verScanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerScanRequest, org.tikv.kvproto.Kvrpcpb.VerScanRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerScanRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerScanRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 31; onChanged();; return verScanBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequestOrBuilder> verDeleteRangeBuilder_; /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public boolean hasVerDeleteRange() { return cmdCase_ == 32; } /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest getVerDeleteRange() { if (verDeleteRangeBuilder_ == null) { if (cmdCase_ == 32) { return (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.getDefaultInstance(); } else { if (cmdCase_ == 32) { return verDeleteRangeBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public Builder setVerDeleteRange(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest value) { if (verDeleteRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verDeleteRangeBuilder_.setMessage(value); } cmdCase_ = 32; return this; } /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public Builder setVerDeleteRange( org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.Builder builderForValue) { if (verDeleteRangeBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verDeleteRangeBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 32; return this; } /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public Builder mergeVerDeleteRange(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest value) { if (verDeleteRangeBuilder_ == null) { if (cmdCase_ == 32 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 32) { verDeleteRangeBuilder_.mergeFrom(value); } verDeleteRangeBuilder_.setMessage(value); } cmdCase_ = 32; return this; } /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public Builder clearVerDeleteRange() { if (verDeleteRangeBuilder_ == null) { if (cmdCase_ == 32) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 32) { cmdCase_ = 0; cmd_ = null; } verDeleteRangeBuilder_.clear(); } return this; } /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.Builder getVerDeleteRangeBuilder() { return getVerDeleteRangeFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequestOrBuilder getVerDeleteRangeOrBuilder() { if ((cmdCase_ == 32) && (verDeleteRangeBuilder_ != null)) { return verDeleteRangeBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 32) { return (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.getDefaultInstance(); } } /** * .kvrpcpb.VerDeleteRangeRequest VerDeleteRange = 32; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequestOrBuilder> getVerDeleteRangeFieldBuilder() { if (verDeleteRangeBuilder_ == null) { if (!(cmdCase_ == 32)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.getDefaultInstance(); } verDeleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.Builder, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 32; onChanged();; return verDeleteRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.Builder, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequestOrBuilder> checkSecondaryLocksBuilder_; /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public boolean hasCheckSecondaryLocks() { return cmdCase_ == 33; } /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest getCheckSecondaryLocks() { if (checkSecondaryLocksBuilder_ == null) { if (cmdCase_ == 33) { return (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.getDefaultInstance(); } else { if (cmdCase_ == 33) { return checkSecondaryLocksBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.getDefaultInstance(); } } /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public Builder setCheckSecondaryLocks(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest value) { if (checkSecondaryLocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { checkSecondaryLocksBuilder_.setMessage(value); } cmdCase_ = 33; return this; } /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public Builder setCheckSecondaryLocks( org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.Builder builderForValue) { if (checkSecondaryLocksBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { checkSecondaryLocksBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 33; return this; } /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public Builder mergeCheckSecondaryLocks(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest value) { if (checkSecondaryLocksBuilder_ == null) { if (cmdCase_ == 33 && cmd_ != org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.newBuilder((org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 33) { checkSecondaryLocksBuilder_.mergeFrom(value); } checkSecondaryLocksBuilder_.setMessage(value); } cmdCase_ = 33; return this; } /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public Builder clearCheckSecondaryLocks() { if (checkSecondaryLocksBuilder_ == null) { if (cmdCase_ == 33) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 33) { cmdCase_ = 0; cmd_ = null; } checkSecondaryLocksBuilder_.clear(); } return this; } /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.Builder getCheckSecondaryLocksBuilder() { return getCheckSecondaryLocksFieldBuilder().getBuilder(); } /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequestOrBuilder getCheckSecondaryLocksOrBuilder() { if ((cmdCase_ == 33) && (checkSecondaryLocksBuilder_ != null)) { return checkSecondaryLocksBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 33) { return (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.getDefaultInstance(); } } /** * .kvrpcpb.CheckSecondaryLocksRequest CheckSecondaryLocks = 33; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.Builder, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequestOrBuilder> getCheckSecondaryLocksFieldBuilder() { if (checkSecondaryLocksBuilder_ == null) { if (!(cmdCase_ == 33)) { cmd_ = org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.getDefaultInstance(); } checkSecondaryLocksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.Builder, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequestOrBuilder>( (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 33; onChanged();; return checkSecondaryLocksBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest, org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.Builder, org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequestOrBuilder> coprocessorV2Builder_; /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public boolean hasCoprocessorV2() { return cmdCase_ == 34; } /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest getCoprocessorV2() { if (coprocessorV2Builder_ == null) { if (cmdCase_ == 34) { return (org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) cmd_; } return org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.getDefaultInstance(); } else { if (cmdCase_ == 34) { return coprocessorV2Builder_.getMessage(); } return org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.getDefaultInstance(); } } /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public Builder setCoprocessorV2(org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest value) { if (coprocessorV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { coprocessorV2Builder_.setMessage(value); } cmdCase_ = 34; return this; } /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public Builder setCoprocessorV2( org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.Builder builderForValue) { if (coprocessorV2Builder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { coprocessorV2Builder_.setMessage(builderForValue.build()); } cmdCase_ = 34; return this; } /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public Builder mergeCoprocessorV2(org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest value) { if (coprocessorV2Builder_ == null) { if (cmdCase_ == 34 && cmd_ != org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.newBuilder((org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 34) { coprocessorV2Builder_.mergeFrom(value); } coprocessorV2Builder_.setMessage(value); } cmdCase_ = 34; return this; } /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public Builder clearCoprocessorV2() { if (coprocessorV2Builder_ == null) { if (cmdCase_ == 34) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 34) { cmdCase_ = 0; cmd_ = null; } coprocessorV2Builder_.clear(); } return this; } /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.Builder getCoprocessorV2Builder() { return getCoprocessorV2FieldBuilder().getBuilder(); } /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequestOrBuilder getCoprocessorV2OrBuilder() { if ((cmdCase_ == 34) && (coprocessorV2Builder_ != null)) { return coprocessorV2Builder_.getMessageOrBuilder(); } else { if (cmdCase_ == 34) { return (org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) cmd_; } return org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.getDefaultInstance(); } } /** * .coprocessor_v2.RawCoprocessorRequest CoprocessorV2 = 34; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest, org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.Builder, org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequestOrBuilder> getCoprocessorV2FieldBuilder() { if (coprocessorV2Builder_ == null) { if (!(cmdCase_ == 34)) { cmd_ = org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.getDefaultInstance(); } coprocessorV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest, org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.Builder, org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequestOrBuilder>( (org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 34; onChanged();; return coprocessorV2Builder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequestOrBuilder> emptyBuilder_; /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public boolean hasEmpty() { return cmdCase_ == 255; } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest getEmpty() { if (emptyBuilder_ == null) { if (cmdCase_ == 255) { return (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) cmd_; } return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.getDefaultInstance(); } else { if (cmdCase_ == 255) { return emptyBuilder_.getMessage(); } return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.getDefaultInstance(); } } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public Builder setEmpty(org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest value) { if (emptyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { emptyBuilder_.setMessage(value); } cmdCase_ = 255; return this; } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public Builder setEmpty( org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.Builder builderForValue) { if (emptyBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { emptyBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 255; return this; } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public Builder mergeEmpty(org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest value) { if (emptyBuilder_ == null) { if (cmdCase_ == 255 && cmd_ != org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.newBuilder((org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 255) { emptyBuilder_.mergeFrom(value); } emptyBuilder_.setMessage(value); } cmdCase_ = 255; return this; } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public Builder clearEmpty() { if (emptyBuilder_ == null) { if (cmdCase_ == 255) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 255) { cmdCase_ = 0; cmd_ = null; } emptyBuilder_.clear(); } return this; } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.Builder getEmptyBuilder() { return getEmptyFieldBuilder().getBuilder(); } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequestOrBuilder getEmptyOrBuilder() { if ((cmdCase_ == 255) && (emptyBuilder_ != null)) { return emptyBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 255) { return (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) cmd_; } return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.getDefaultInstance(); } } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyRequest Empty = 255; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequestOrBuilder> getEmptyFieldBuilder() { if (emptyBuilder_ == null) { if (!(cmdCase_ == 255)) { cmd_ = org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.getDefaultInstance(); } emptyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequestOrBuilder>( (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 255; onChanged();; return emptyBuilder_; } 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:tikvpb.BatchCommandsRequest.Request) } // @@protoc_insertion_point(class_scope:tikvpb.BatchCommandsRequest.Request) private static final org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request(); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Request(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.Tikvpb.BatchCommandsRequest.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public java.util.List getRequestsList() { return requests_; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public java.util.List getRequestsOrBuilderList() { return requests_; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public int getRequestsCount() { return requests_.size(); } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request getRequests(int index) { return requests_.get(index); } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.RequestOrBuilder getRequestsOrBuilder( int index) { return requests_.get(index); } public static final int REQUEST_IDS_FIELD_NUMBER = 2; private java.util.List requestIds_; /** * repeated uint64 request_ids = 2; */ public java.util.List getRequestIdsList() { return requestIds_; } /** * repeated uint64 request_ids = 2; */ public int getRequestIdsCount() { return requestIds_.size(); } /** * repeated uint64 request_ids = 2; */ public long getRequestIds(int index) { return requestIds_.get(index); } private int requestIdsMemoizedSerializedSize = -1; 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 { getSerializedSize(); for (int i = 0; i < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } if (getRequestIdsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(requestIdsMemoizedSerializedSize); } for (int i = 0; i < requestIds_.size(); i++) { output.writeUInt64NoTag(requestIds_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < requests_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, requests_.get(i)); } { int dataSize = 0; for (int i = 0; i < requestIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(requestIds_.get(i)); } size += dataSize; if (!getRequestIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } requestIdsMemoizedSerializedSize = dataSize; } 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.Tikvpb.BatchCommandsRequest)) { return super.equals(obj); } org.tikv.kvproto.Tikvpb.BatchCommandsRequest other = (org.tikv.kvproto.Tikvpb.BatchCommandsRequest) obj; boolean result = true; result = result && getRequestsList() .equals(other.getRequestsList()); result = result && getRequestIdsList() .equals(other.getRequestIdsList()); 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 (getRequestsCount() > 0) { hash = (37 * hash) + REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getRequestsList().hashCode(); } if (getRequestIdsCount() > 0) { hash = (37 * hash) + REQUEST_IDS_FIELD_NUMBER; hash = (53 * hash) + getRequestIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest 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.Tikvpb.BatchCommandsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest 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.Tikvpb.BatchCommandsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest 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.Tikvpb.BatchCommandsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest 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.Tikvpb.BatchCommandsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest 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.Tikvpb.BatchCommandsRequest 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 tikvpb.BatchCommandsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tikvpb.BatchCommandsRequest) org.tikv.kvproto.Tikvpb.BatchCommandsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsRequest.class, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Builder.class); } // Construct using org.tikv.kvproto.Tikvpb.BatchCommandsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } public Builder clear() { super.clear(); if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { requestsBuilder_.clear(); } requestIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsRequest_descriptor; } public org.tikv.kvproto.Tikvpb.BatchCommandsRequest getDefaultInstanceForType() { return org.tikv.kvproto.Tikvpb.BatchCommandsRequest.getDefaultInstance(); } public org.tikv.kvproto.Tikvpb.BatchCommandsRequest build() { org.tikv.kvproto.Tikvpb.BatchCommandsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Tikvpb.BatchCommandsRequest buildPartial() { org.tikv.kvproto.Tikvpb.BatchCommandsRequest result = new org.tikv.kvproto.Tikvpb.BatchCommandsRequest(this); int from_bitField0_ = bitField0_; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { requests_ = java.util.Collections.unmodifiableList(requests_); bitField0_ = (bitField0_ & ~0x00000001); } result.requests_ = requests_; } else { result.requests_ = requestsBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { requestIds_ = java.util.Collections.unmodifiableList(requestIds_); bitField0_ = (bitField0_ & ~0x00000002); } result.requestIds_ = requestIds_; 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.Tikvpb.BatchCommandsRequest) { return mergeFrom((org.tikv.kvproto.Tikvpb.BatchCommandsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Tikvpb.BatchCommandsRequest other) { if (other == org.tikv.kvproto.Tikvpb.BatchCommandsRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRequestsIsMutable(); requests_.addAll(other.requests_); } onChanged(); } } else { if (!other.requests_.isEmpty()) { if (requestsBuilder_.isEmpty()) { requestsBuilder_.dispose(); requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); requestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } } } if (!other.requestIds_.isEmpty()) { if (requestIds_.isEmpty()) { requestIds_ = other.requestIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRequestIdsIsMutable(); requestIds_.addAll(other.requestIds_); } 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.Tikvpb.BatchCommandsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Tikvpb.BatchCommandsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List requests_ = java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.RequestOrBuilder> requestsBuilder_; /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { return requestsBuilder_.getMessageList(); } } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public int getRequestsCount() { if (requestsBuilder_ == null) { return requests_.size(); } else { return requestsBuilder_.getCount(); } } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request getRequests(int index) { if (requestsBuilder_ == null) { return requests_.get(index); } else { return requestsBuilder_.getMessage(index); } } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public Builder setRequests( int index, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestsIsMutable(); requests_.set(index, value); onChanged(); } else { requestsBuilder_.setMessage(index, value); } return this; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public Builder setRequests( int index, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.set(index, builderForValue.build()); onChanged(); } else { requestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public Builder addRequests(org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestsIsMutable(); requests_.add(value); onChanged(); } else { requestsBuilder_.addMessage(value); } return this; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public Builder addRequests( int index, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestsIsMutable(); requests_.add(index, value); onChanged(); } else { requestsBuilder_.addMessage(index, value); } return this; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public Builder addRequests( org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(builderForValue.build()); onChanged(); } else { requestsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public Builder addRequests( int index, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(index, builderForValue.build()); onChanged(); } else { requestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); } return this; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public Builder clearRequests() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { requestsBuilder_.clear(); } return this; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.remove(index); onChanged(); } else { requestsBuilder_.remove(index); } return this; } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.RequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public java.util.List getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(requests_); } } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder addRequestsBuilder() { return getRequestsFieldBuilder().addBuilder( org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.getDefaultInstance()); } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder addRequestsBuilder( int index) { return getRequestsFieldBuilder().addBuilder( index, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.getDefaultInstance()); } /** * repeated .tikvpb.BatchCommandsRequest.Request requests = 1; */ public java.util.List getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.RequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.Request.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsRequest.RequestOrBuilder>( requests_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } private java.util.List requestIds_ = java.util.Collections.emptyList(); private void ensureRequestIdsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { requestIds_ = new java.util.ArrayList(requestIds_); bitField0_ |= 0x00000002; } } /** * repeated uint64 request_ids = 2; */ public java.util.List getRequestIdsList() { return java.util.Collections.unmodifiableList(requestIds_); } /** * repeated uint64 request_ids = 2; */ public int getRequestIdsCount() { return requestIds_.size(); } /** * repeated uint64 request_ids = 2; */ public long getRequestIds(int index) { return requestIds_.get(index); } /** * repeated uint64 request_ids = 2; */ public Builder setRequestIds( int index, long value) { ensureRequestIdsIsMutable(); requestIds_.set(index, value); onChanged(); return this; } /** * repeated uint64 request_ids = 2; */ public Builder addRequestIds(long value) { ensureRequestIdsIsMutable(); requestIds_.add(value); onChanged(); return this; } /** * repeated uint64 request_ids = 2; */ public Builder addAllRequestIds( java.lang.Iterable values) { ensureRequestIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requestIds_); onChanged(); return this; } /** * repeated uint64 request_ids = 2; */ public Builder clearRequestIds() { requestIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); 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:tikvpb.BatchCommandsRequest) } // @@protoc_insertion_point(class_scope:tikvpb.BatchCommandsRequest) private static final org.tikv.kvproto.Tikvpb.BatchCommandsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Tikvpb.BatchCommandsRequest(); } public static org.tikv.kvproto.Tikvpb.BatchCommandsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchCommandsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchCommandsRequest(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.Tikvpb.BatchCommandsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchCommandsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:tikvpb.BatchCommandsResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ java.util.List getResponsesList(); /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response getResponses(int index); /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ int getResponsesCount(); /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ java.util.List getResponsesOrBuilderList(); /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ org.tikv.kvproto.Tikvpb.BatchCommandsResponse.ResponseOrBuilder getResponsesOrBuilder( int index); /** * repeated uint64 request_ids = 2; */ java.util.List getRequestIdsList(); /** * repeated uint64 request_ids = 2; */ int getRequestIdsCount(); /** * repeated uint64 request_ids = 2; */ long getRequestIds(int index); /** *
     * 280 means TiKV gRPC cpu usage is 280%.
     * 
* * uint64 transport_layer_load = 3; */ long getTransportLayerLoad(); } /** * Protobuf type {@code tikvpb.BatchCommandsResponse} */ public static final class BatchCommandsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tikvpb.BatchCommandsResponse) BatchCommandsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use BatchCommandsResponse.newBuilder() to construct. private BatchCommandsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchCommandsResponse() { responses_ = java.util.Collections.emptyList(); requestIds_ = java.util.Collections.emptyList(); transportLayerLoad_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchCommandsResponse( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { responses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } responses_.add( input.readMessage(org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.parser(), extensionRegistry)); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { requestIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } requestIds_.add(input.readUInt64()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { requestIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { requestIds_.add(input.readUInt64()); } input.popLimit(limit); break; } case 24: { transportLayerLoad_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { responses_ = java.util.Collections.unmodifiableList(responses_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { requestIds_ = java.util.Collections.unmodifiableList(requestIds_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsResponse.class, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Builder.class); } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:tikvpb.BatchCommandsResponse.Response) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.GetResponse Get = 1; */ boolean hasGet(); /** * .kvrpcpb.GetResponse Get = 1; */ org.tikv.kvproto.Kvrpcpb.GetResponse getGet(); /** * .kvrpcpb.GetResponse Get = 1; */ org.tikv.kvproto.Kvrpcpb.GetResponseOrBuilder getGetOrBuilder(); /** * .kvrpcpb.ScanResponse Scan = 2; */ boolean hasScan(); /** * .kvrpcpb.ScanResponse Scan = 2; */ org.tikv.kvproto.Kvrpcpb.ScanResponse getScan(); /** * .kvrpcpb.ScanResponse Scan = 2; */ org.tikv.kvproto.Kvrpcpb.ScanResponseOrBuilder getScanOrBuilder(); /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ boolean hasPrewrite(); /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ org.tikv.kvproto.Kvrpcpb.PrewriteResponse getPrewrite(); /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ org.tikv.kvproto.Kvrpcpb.PrewriteResponseOrBuilder getPrewriteOrBuilder(); /** * .kvrpcpb.CommitResponse Commit = 4; */ boolean hasCommit(); /** * .kvrpcpb.CommitResponse Commit = 4; */ org.tikv.kvproto.Kvrpcpb.CommitResponse getCommit(); /** * .kvrpcpb.CommitResponse Commit = 4; */ org.tikv.kvproto.Kvrpcpb.CommitResponseOrBuilder getCommitOrBuilder(); /** * .kvrpcpb.ImportResponse Import = 5; */ boolean hasImport(); /** * .kvrpcpb.ImportResponse Import = 5; */ org.tikv.kvproto.Kvrpcpb.ImportResponse getImport(); /** * .kvrpcpb.ImportResponse Import = 5; */ org.tikv.kvproto.Kvrpcpb.ImportResponseOrBuilder getImportOrBuilder(); /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ boolean hasCleanup(); /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ org.tikv.kvproto.Kvrpcpb.CleanupResponse getCleanup(); /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ org.tikv.kvproto.Kvrpcpb.CleanupResponseOrBuilder getCleanupOrBuilder(); /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ boolean hasBatchGet(); /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ org.tikv.kvproto.Kvrpcpb.BatchGetResponse getBatchGet(); /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ org.tikv.kvproto.Kvrpcpb.BatchGetResponseOrBuilder getBatchGetOrBuilder(); /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ boolean hasBatchRollback(); /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse getBatchRollback(); /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ org.tikv.kvproto.Kvrpcpb.BatchRollbackResponseOrBuilder getBatchRollbackOrBuilder(); /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ boolean hasScanLock(); /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ org.tikv.kvproto.Kvrpcpb.ScanLockResponse getScanLock(); /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ org.tikv.kvproto.Kvrpcpb.ScanLockResponseOrBuilder getScanLockOrBuilder(); /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ boolean hasResolveLock(); /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ org.tikv.kvproto.Kvrpcpb.ResolveLockResponse getResolveLock(); /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ org.tikv.kvproto.Kvrpcpb.ResolveLockResponseOrBuilder getResolveLockOrBuilder(); /** * .kvrpcpb.GCResponse GC = 11; */ boolean hasGC(); /** * .kvrpcpb.GCResponse GC = 11; */ org.tikv.kvproto.Kvrpcpb.GCResponse getGC(); /** * .kvrpcpb.GCResponse GC = 11; */ org.tikv.kvproto.Kvrpcpb.GCResponseOrBuilder getGCOrBuilder(); /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ boolean hasDeleteRange(); /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse getDeleteRange(); /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ org.tikv.kvproto.Kvrpcpb.DeleteRangeResponseOrBuilder getDeleteRangeOrBuilder(); /** * .kvrpcpb.RawGetResponse RawGet = 13; */ boolean hasRawGet(); /** * .kvrpcpb.RawGetResponse RawGet = 13; */ org.tikv.kvproto.Kvrpcpb.RawGetResponse getRawGet(); /** * .kvrpcpb.RawGetResponse RawGet = 13; */ org.tikv.kvproto.Kvrpcpb.RawGetResponseOrBuilder getRawGetOrBuilder(); /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ boolean hasRawBatchGet(); /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse getRawBatchGet(); /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ org.tikv.kvproto.Kvrpcpb.RawBatchGetResponseOrBuilder getRawBatchGetOrBuilder(); /** * .kvrpcpb.RawPutResponse RawPut = 15; */ boolean hasRawPut(); /** * .kvrpcpb.RawPutResponse RawPut = 15; */ org.tikv.kvproto.Kvrpcpb.RawPutResponse getRawPut(); /** * .kvrpcpb.RawPutResponse RawPut = 15; */ org.tikv.kvproto.Kvrpcpb.RawPutResponseOrBuilder getRawPutOrBuilder(); /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ boolean hasRawBatchPut(); /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse getRawBatchPut(); /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ org.tikv.kvproto.Kvrpcpb.RawBatchPutResponseOrBuilder getRawBatchPutOrBuilder(); /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ boolean hasRawDelete(); /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ org.tikv.kvproto.Kvrpcpb.RawDeleteResponse getRawDelete(); /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ org.tikv.kvproto.Kvrpcpb.RawDeleteResponseOrBuilder getRawDeleteOrBuilder(); /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ boolean hasRawBatchDelete(); /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse getRawBatchDelete(); /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponseOrBuilder getRawBatchDeleteOrBuilder(); /** * .kvrpcpb.RawScanResponse RawScan = 19; */ boolean hasRawScan(); /** * .kvrpcpb.RawScanResponse RawScan = 19; */ org.tikv.kvproto.Kvrpcpb.RawScanResponse getRawScan(); /** * .kvrpcpb.RawScanResponse RawScan = 19; */ org.tikv.kvproto.Kvrpcpb.RawScanResponseOrBuilder getRawScanOrBuilder(); /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ boolean hasRawDeleteRange(); /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse getRawDeleteRange(); /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponseOrBuilder getRawDeleteRangeOrBuilder(); /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ boolean hasRawBatchScan(); /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse getRawBatchScan(); /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ org.tikv.kvproto.Kvrpcpb.RawBatchScanResponseOrBuilder getRawBatchScanOrBuilder(); /** * .coprocessor.Response Coprocessor = 22; */ boolean hasCoprocessor(); /** * .coprocessor.Response Coprocessor = 22; */ org.tikv.kvproto.Coprocessor.Response getCoprocessor(); /** * .coprocessor.Response Coprocessor = 22; */ org.tikv.kvproto.Coprocessor.ResponseOrBuilder getCoprocessorOrBuilder(); /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ boolean hasPessimisticLock(); /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse getPessimisticLock(); /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ org.tikv.kvproto.Kvrpcpb.PessimisticLockResponseOrBuilder getPessimisticLockOrBuilder(); /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ boolean hasPessimisticRollback(); /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse getPessimisticRollback(); /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponseOrBuilder getPessimisticRollbackOrBuilder(); /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ boolean hasCheckTxnStatus(); /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse getCheckTxnStatus(); /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponseOrBuilder getCheckTxnStatusOrBuilder(); /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ boolean hasTxnHeartBeat(); /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse getTxnHeartBeat(); /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponseOrBuilder getTxnHeartBeatOrBuilder(); /** * .kvrpcpb.VerGetResponse VerGet = 27; */ boolean hasVerGet(); /** * .kvrpcpb.VerGetResponse VerGet = 27; */ org.tikv.kvproto.Kvrpcpb.VerGetResponse getVerGet(); /** * .kvrpcpb.VerGetResponse VerGet = 27; */ org.tikv.kvproto.Kvrpcpb.VerGetResponseOrBuilder getVerGetOrBuilder(); /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ boolean hasVerBatchGet(); /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse getVerBatchGet(); /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ org.tikv.kvproto.Kvrpcpb.VerBatchGetResponseOrBuilder getVerBatchGetOrBuilder(); /** * .kvrpcpb.VerMutResponse VerMut = 29; */ boolean hasVerMut(); /** * .kvrpcpb.VerMutResponse VerMut = 29; */ org.tikv.kvproto.Kvrpcpb.VerMutResponse getVerMut(); /** * .kvrpcpb.VerMutResponse VerMut = 29; */ org.tikv.kvproto.Kvrpcpb.VerMutResponseOrBuilder getVerMutOrBuilder(); /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ boolean hasVerBatchMut(); /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse getVerBatchMut(); /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ org.tikv.kvproto.Kvrpcpb.VerBatchMutResponseOrBuilder getVerBatchMutOrBuilder(); /** * .kvrpcpb.VerScanResponse VerScan = 31; */ boolean hasVerScan(); /** * .kvrpcpb.VerScanResponse VerScan = 31; */ org.tikv.kvproto.Kvrpcpb.VerScanResponse getVerScan(); /** * .kvrpcpb.VerScanResponse VerScan = 31; */ org.tikv.kvproto.Kvrpcpb.VerScanResponseOrBuilder getVerScanOrBuilder(); /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ boolean hasVerDeleteRange(); /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse getVerDeleteRange(); /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponseOrBuilder getVerDeleteRangeOrBuilder(); /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ boolean hasCheckSecondaryLocks(); /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse getCheckSecondaryLocks(); /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponseOrBuilder getCheckSecondaryLocksOrBuilder(); /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ boolean hasCoprocessorV2(); /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse getCoprocessorV2(); /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponseOrBuilder getCoprocessorV2OrBuilder(); /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ boolean hasEmpty(); /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse getEmpty(); /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponseOrBuilder getEmptyOrBuilder(); public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.CmdCase getCmdCase(); } /** * Protobuf type {@code tikvpb.BatchCommandsResponse.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tikvpb.BatchCommandsResponse.Response) ResponseOrBuilder { private static final long serialVersionUID = 0L; // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Response() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Response( 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; int mutable_bitField1_ = 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.Kvrpcpb.GetResponse.Builder subBuilder = null; if (cmdCase_ == 1) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.GetResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.GetResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.GetResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 1; break; } case 18: { org.tikv.kvproto.Kvrpcpb.ScanResponse.Builder subBuilder = null; if (cmdCase_ == 2) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.ScanResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ScanResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 2; break; } case 26: { org.tikv.kvproto.Kvrpcpb.PrewriteResponse.Builder subBuilder = null; if (cmdCase_ == 3) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.PrewriteResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.PrewriteResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.PrewriteResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 3; break; } case 34: { org.tikv.kvproto.Kvrpcpb.CommitResponse.Builder subBuilder = null; if (cmdCase_ == 4) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.CommitResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.CommitResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.CommitResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 4; break; } case 42: { org.tikv.kvproto.Kvrpcpb.ImportResponse.Builder subBuilder = null; if (cmdCase_ == 5) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.ImportResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ImportResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.ImportResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 5; break; } case 50: { org.tikv.kvproto.Kvrpcpb.CleanupResponse.Builder subBuilder = null; if (cmdCase_ == 6) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.CleanupResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.CleanupResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.CleanupResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 6; break; } case 58: { org.tikv.kvproto.Kvrpcpb.BatchGetResponse.Builder subBuilder = null; if (cmdCase_ == 7) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.BatchGetResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.BatchGetResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.BatchGetResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 7; break; } case 66: { org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.Builder subBuilder = null; if (cmdCase_ == 8) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 8; break; } case 74: { org.tikv.kvproto.Kvrpcpb.ScanLockResponse.Builder subBuilder = null; if (cmdCase_ == 9) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.ScanLockResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ScanLockResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanLockResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 9; break; } case 82: { org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.Builder subBuilder = null; if (cmdCase_ == 10) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 10; break; } case 90: { org.tikv.kvproto.Kvrpcpb.GCResponse.Builder subBuilder = null; if (cmdCase_ == 11) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.GCResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.GCResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.GCResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 11; break; } case 98: { org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.Builder subBuilder = null; if (cmdCase_ == 12) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 12; break; } case 106: { org.tikv.kvproto.Kvrpcpb.RawGetResponse.Builder subBuilder = null; if (cmdCase_ == 13) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawGetResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawGetResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawGetResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 13; break; } case 114: { org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.Builder subBuilder = null; if (cmdCase_ == 14) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 14; break; } case 122: { org.tikv.kvproto.Kvrpcpb.RawPutResponse.Builder subBuilder = null; if (cmdCase_ == 15) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawPutResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawPutResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawPutResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 15; break; } case 130: { org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.Builder subBuilder = null; if (cmdCase_ == 16) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 16; break; } case 138: { org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.Builder subBuilder = null; if (cmdCase_ == 17) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 17; break; } case 146: { org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.Builder subBuilder = null; if (cmdCase_ == 18) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 18; break; } case 154: { org.tikv.kvproto.Kvrpcpb.RawScanResponse.Builder subBuilder = null; if (cmdCase_ == 19) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawScanResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawScanResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawScanResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 19; break; } case 162: { org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.Builder subBuilder = null; if (cmdCase_ == 20) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 20; break; } case 170: { org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.Builder subBuilder = null; if (cmdCase_ == 21) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 21; break; } case 178: { org.tikv.kvproto.Coprocessor.Response.Builder subBuilder = null; if (cmdCase_ == 22) { subBuilder = ((org.tikv.kvproto.Coprocessor.Response) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Coprocessor.Response.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Coprocessor.Response) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 22; break; } case 186: { org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.Builder subBuilder = null; if (cmdCase_ == 23) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 23; break; } case 194: { org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.Builder subBuilder = null; if (cmdCase_ == 24) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 24; break; } case 202: { org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.Builder subBuilder = null; if (cmdCase_ == 25) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 25; break; } case 210: { org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.Builder subBuilder = null; if (cmdCase_ == 26) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 26; break; } case 218: { org.tikv.kvproto.Kvrpcpb.VerGetResponse.Builder subBuilder = null; if (cmdCase_ == 27) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerGetResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerGetResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerGetResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 27; break; } case 226: { org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.Builder subBuilder = null; if (cmdCase_ == 28) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 28; break; } case 234: { org.tikv.kvproto.Kvrpcpb.VerMutResponse.Builder subBuilder = null; if (cmdCase_ == 29) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerMutResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerMutResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerMutResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 29; break; } case 242: { org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.Builder subBuilder = null; if (cmdCase_ == 30) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 30; break; } case 250: { org.tikv.kvproto.Kvrpcpb.VerScanResponse.Builder subBuilder = null; if (cmdCase_ == 31) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerScanResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerScanResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerScanResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 31; break; } case 258: { org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.Builder subBuilder = null; if (cmdCase_ == 32) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 32; break; } case 266: { org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.Builder subBuilder = null; if (cmdCase_ == 33) { subBuilder = ((org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 33; break; } case 274: { org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.Builder subBuilder = null; if (cmdCase_ == 34) { subBuilder = ((org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 34; break; } case 2042: { org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.Builder subBuilder = null; if (cmdCase_ == 255) { subBuilder = ((org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) cmd_).toBuilder(); } cmd_ = input.readMessage(org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) cmd_); cmd_ = subBuilder.buildPartial(); } cmdCase_ = 255; 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.Tikvpb.internal_static_tikvpb_BatchCommandsResponse_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsResponse_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.class, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder.class); } private int cmdCase_ = 0; private java.lang.Object cmd_; public enum CmdCase implements com.google.protobuf.Internal.EnumLite { GET(1), SCAN(2), PREWRITE(3), COMMIT(4), IMPORT(5), CLEANUP(6), BATCHGET(7), BATCHROLLBACK(8), SCANLOCK(9), RESOLVELOCK(10), GC(11), DELETERANGE(12), RAWGET(13), RAWBATCHGET(14), RAWPUT(15), RAWBATCHPUT(16), RAWDELETE(17), RAWBATCHDELETE(18), RAWSCAN(19), RAWDELETERANGE(20), RAWBATCHSCAN(21), COPROCESSOR(22), PESSIMISTICLOCK(23), PESSIMISTICROLLBACK(24), CHECKTXNSTATUS(25), TXNHEARTBEAT(26), VERGET(27), VERBATCHGET(28), VERMUT(29), VERBATCHMUT(30), VERSCAN(31), VERDELETERANGE(32), CHECKSECONDARYLOCKS(33), COPROCESSORV2(34), EMPTY(255), CMD_NOT_SET(0); private final int value; private CmdCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CmdCase valueOf(int value) { return forNumber(value); } public static CmdCase forNumber(int value) { switch (value) { case 1: return GET; case 2: return SCAN; case 3: return PREWRITE; case 4: return COMMIT; case 5: return IMPORT; case 6: return CLEANUP; case 7: return BATCHGET; case 8: return BATCHROLLBACK; case 9: return SCANLOCK; case 10: return RESOLVELOCK; case 11: return GC; case 12: return DELETERANGE; case 13: return RAWGET; case 14: return RAWBATCHGET; case 15: return RAWPUT; case 16: return RAWBATCHPUT; case 17: return RAWDELETE; case 18: return RAWBATCHDELETE; case 19: return RAWSCAN; case 20: return RAWDELETERANGE; case 21: return RAWBATCHSCAN; case 22: return COPROCESSOR; case 23: return PESSIMISTICLOCK; case 24: return PESSIMISTICROLLBACK; case 25: return CHECKTXNSTATUS; case 26: return TXNHEARTBEAT; case 27: return VERGET; case 28: return VERBATCHGET; case 29: return VERMUT; case 30: return VERBATCHMUT; case 31: return VERSCAN; case 32: return VERDELETERANGE; case 33: return CHECKSECONDARYLOCKS; case 34: return COPROCESSORV2; case 255: return EMPTY; case 0: return CMD_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public CmdCase getCmdCase() { return CmdCase.forNumber( cmdCase_); } public static final int GET_FIELD_NUMBER = 1; /** * .kvrpcpb.GetResponse Get = 1; */ public boolean hasGet() { return cmdCase_ == 1; } /** * .kvrpcpb.GetResponse Get = 1; */ public org.tikv.kvproto.Kvrpcpb.GetResponse getGet() { if (cmdCase_ == 1) { return (org.tikv.kvproto.Kvrpcpb.GetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.GetResponse.getDefaultInstance(); } /** * .kvrpcpb.GetResponse Get = 1; */ public org.tikv.kvproto.Kvrpcpb.GetResponseOrBuilder getGetOrBuilder() { if (cmdCase_ == 1) { return (org.tikv.kvproto.Kvrpcpb.GetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.GetResponse.getDefaultInstance(); } public static final int SCAN_FIELD_NUMBER = 2; /** * .kvrpcpb.ScanResponse Scan = 2; */ public boolean hasScan() { return cmdCase_ == 2; } /** * .kvrpcpb.ScanResponse Scan = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanResponse getScan() { if (cmdCase_ == 2) { return (org.tikv.kvproto.Kvrpcpb.ScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanResponse.getDefaultInstance(); } /** * .kvrpcpb.ScanResponse Scan = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanResponseOrBuilder getScanOrBuilder() { if (cmdCase_ == 2) { return (org.tikv.kvproto.Kvrpcpb.ScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanResponse.getDefaultInstance(); } public static final int PREWRITE_FIELD_NUMBER = 3; /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public boolean hasPrewrite() { return cmdCase_ == 3; } /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public org.tikv.kvproto.Kvrpcpb.PrewriteResponse getPrewrite() { if (cmdCase_ == 3) { return (org.tikv.kvproto.Kvrpcpb.PrewriteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PrewriteResponse.getDefaultInstance(); } /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public org.tikv.kvproto.Kvrpcpb.PrewriteResponseOrBuilder getPrewriteOrBuilder() { if (cmdCase_ == 3) { return (org.tikv.kvproto.Kvrpcpb.PrewriteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PrewriteResponse.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 4; /** * .kvrpcpb.CommitResponse Commit = 4; */ public boolean hasCommit() { return cmdCase_ == 4; } /** * .kvrpcpb.CommitResponse Commit = 4; */ public org.tikv.kvproto.Kvrpcpb.CommitResponse getCommit() { if (cmdCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.CommitResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CommitResponse.getDefaultInstance(); } /** * .kvrpcpb.CommitResponse Commit = 4; */ public org.tikv.kvproto.Kvrpcpb.CommitResponseOrBuilder getCommitOrBuilder() { if (cmdCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.CommitResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CommitResponse.getDefaultInstance(); } public static final int IMPORT_FIELD_NUMBER = 5; /** * .kvrpcpb.ImportResponse Import = 5; */ public boolean hasImport() { return cmdCase_ == 5; } /** * .kvrpcpb.ImportResponse Import = 5; */ public org.tikv.kvproto.Kvrpcpb.ImportResponse getImport() { if (cmdCase_ == 5) { return (org.tikv.kvproto.Kvrpcpb.ImportResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ImportResponse.getDefaultInstance(); } /** * .kvrpcpb.ImportResponse Import = 5; */ public org.tikv.kvproto.Kvrpcpb.ImportResponseOrBuilder getImportOrBuilder() { if (cmdCase_ == 5) { return (org.tikv.kvproto.Kvrpcpb.ImportResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ImportResponse.getDefaultInstance(); } public static final int CLEANUP_FIELD_NUMBER = 6; /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public boolean hasCleanup() { return cmdCase_ == 6; } /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public org.tikv.kvproto.Kvrpcpb.CleanupResponse getCleanup() { if (cmdCase_ == 6) { return (org.tikv.kvproto.Kvrpcpb.CleanupResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CleanupResponse.getDefaultInstance(); } /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public org.tikv.kvproto.Kvrpcpb.CleanupResponseOrBuilder getCleanupOrBuilder() { if (cmdCase_ == 6) { return (org.tikv.kvproto.Kvrpcpb.CleanupResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CleanupResponse.getDefaultInstance(); } public static final int BATCHGET_FIELD_NUMBER = 7; /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public boolean hasBatchGet() { return cmdCase_ == 7; } /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public org.tikv.kvproto.Kvrpcpb.BatchGetResponse getBatchGet() { if (cmdCase_ == 7) { return (org.tikv.kvproto.Kvrpcpb.BatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchGetResponse.getDefaultInstance(); } /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public org.tikv.kvproto.Kvrpcpb.BatchGetResponseOrBuilder getBatchGetOrBuilder() { if (cmdCase_ == 7) { return (org.tikv.kvproto.Kvrpcpb.BatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchGetResponse.getDefaultInstance(); } public static final int BATCHROLLBACK_FIELD_NUMBER = 8; /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public boolean hasBatchRollback() { return cmdCase_ == 8; } /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse getBatchRollback() { if (cmdCase_ == 8) { return (org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.getDefaultInstance(); } /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackResponseOrBuilder getBatchRollbackOrBuilder() { if (cmdCase_ == 8) { return (org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.getDefaultInstance(); } public static final int SCANLOCK_FIELD_NUMBER = 9; /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public boolean hasScanLock() { return cmdCase_ == 9; } /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public org.tikv.kvproto.Kvrpcpb.ScanLockResponse getScanLock() { if (cmdCase_ == 9) { return (org.tikv.kvproto.Kvrpcpb.ScanLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanLockResponse.getDefaultInstance(); } /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public org.tikv.kvproto.Kvrpcpb.ScanLockResponseOrBuilder getScanLockOrBuilder() { if (cmdCase_ == 9) { return (org.tikv.kvproto.Kvrpcpb.ScanLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanLockResponse.getDefaultInstance(); } public static final int RESOLVELOCK_FIELD_NUMBER = 10; /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public boolean hasResolveLock() { return cmdCase_ == 10; } /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public org.tikv.kvproto.Kvrpcpb.ResolveLockResponse getResolveLock() { if (cmdCase_ == 10) { return (org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.getDefaultInstance(); } /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public org.tikv.kvproto.Kvrpcpb.ResolveLockResponseOrBuilder getResolveLockOrBuilder() { if (cmdCase_ == 10) { return (org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.getDefaultInstance(); } public static final int GC_FIELD_NUMBER = 11; /** * .kvrpcpb.GCResponse GC = 11; */ public boolean hasGC() { return cmdCase_ == 11; } /** * .kvrpcpb.GCResponse GC = 11; */ public org.tikv.kvproto.Kvrpcpb.GCResponse getGC() { if (cmdCase_ == 11) { return (org.tikv.kvproto.Kvrpcpb.GCResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.GCResponse.getDefaultInstance(); } /** * .kvrpcpb.GCResponse GC = 11; */ public org.tikv.kvproto.Kvrpcpb.GCResponseOrBuilder getGCOrBuilder() { if (cmdCase_ == 11) { return (org.tikv.kvproto.Kvrpcpb.GCResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.GCResponse.getDefaultInstance(); } public static final int DELETERANGE_FIELD_NUMBER = 12; /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public boolean hasDeleteRange() { return cmdCase_ == 12; } /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse getDeleteRange() { if (cmdCase_ == 12) { return (org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.getDefaultInstance(); } /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeResponseOrBuilder getDeleteRangeOrBuilder() { if (cmdCase_ == 12) { return (org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.getDefaultInstance(); } public static final int RAWGET_FIELD_NUMBER = 13; /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public boolean hasRawGet() { return cmdCase_ == 13; } /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public org.tikv.kvproto.Kvrpcpb.RawGetResponse getRawGet() { if (cmdCase_ == 13) { return (org.tikv.kvproto.Kvrpcpb.RawGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawGetResponse.getDefaultInstance(); } /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public org.tikv.kvproto.Kvrpcpb.RawGetResponseOrBuilder getRawGetOrBuilder() { if (cmdCase_ == 13) { return (org.tikv.kvproto.Kvrpcpb.RawGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawGetResponse.getDefaultInstance(); } public static final int RAWBATCHGET_FIELD_NUMBER = 14; /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public boolean hasRawBatchGet() { return cmdCase_ == 14; } /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse getRawBatchGet() { if (cmdCase_ == 14) { return (org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.getDefaultInstance(); } /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetResponseOrBuilder getRawBatchGetOrBuilder() { if (cmdCase_ == 14) { return (org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.getDefaultInstance(); } public static final int RAWPUT_FIELD_NUMBER = 15; /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public boolean hasRawPut() { return cmdCase_ == 15; } /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public org.tikv.kvproto.Kvrpcpb.RawPutResponse getRawPut() { if (cmdCase_ == 15) { return (org.tikv.kvproto.Kvrpcpb.RawPutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawPutResponse.getDefaultInstance(); } /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public org.tikv.kvproto.Kvrpcpb.RawPutResponseOrBuilder getRawPutOrBuilder() { if (cmdCase_ == 15) { return (org.tikv.kvproto.Kvrpcpb.RawPutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawPutResponse.getDefaultInstance(); } public static final int RAWBATCHPUT_FIELD_NUMBER = 16; /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public boolean hasRawBatchPut() { return cmdCase_ == 16; } /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse getRawBatchPut() { if (cmdCase_ == 16) { return (org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.getDefaultInstance(); } /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutResponseOrBuilder getRawBatchPutOrBuilder() { if (cmdCase_ == 16) { return (org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.getDefaultInstance(); } public static final int RAWDELETE_FIELD_NUMBER = 17; /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public boolean hasRawDelete() { return cmdCase_ == 17; } /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteResponse getRawDelete() { if (cmdCase_ == 17) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.getDefaultInstance(); } /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteResponseOrBuilder getRawDeleteOrBuilder() { if (cmdCase_ == 17) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.getDefaultInstance(); } public static final int RAWBATCHDELETE_FIELD_NUMBER = 18; /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public boolean hasRawBatchDelete() { return cmdCase_ == 18; } /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse getRawBatchDelete() { if (cmdCase_ == 18) { return (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.getDefaultInstance(); } /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponseOrBuilder getRawBatchDeleteOrBuilder() { if (cmdCase_ == 18) { return (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.getDefaultInstance(); } public static final int RAWSCAN_FIELD_NUMBER = 19; /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public boolean hasRawScan() { return cmdCase_ == 19; } /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public org.tikv.kvproto.Kvrpcpb.RawScanResponse getRawScan() { if (cmdCase_ == 19) { return (org.tikv.kvproto.Kvrpcpb.RawScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawScanResponse.getDefaultInstance(); } /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public org.tikv.kvproto.Kvrpcpb.RawScanResponseOrBuilder getRawScanOrBuilder() { if (cmdCase_ == 19) { return (org.tikv.kvproto.Kvrpcpb.RawScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawScanResponse.getDefaultInstance(); } public static final int RAWDELETERANGE_FIELD_NUMBER = 20; /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public boolean hasRawDeleteRange() { return cmdCase_ == 20; } /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse getRawDeleteRange() { if (cmdCase_ == 20) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.getDefaultInstance(); } /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponseOrBuilder getRawDeleteRangeOrBuilder() { if (cmdCase_ == 20) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.getDefaultInstance(); } public static final int RAWBATCHSCAN_FIELD_NUMBER = 21; /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public boolean hasRawBatchScan() { return cmdCase_ == 21; } /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse getRawBatchScan() { if (cmdCase_ == 21) { return (org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.getDefaultInstance(); } /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanResponseOrBuilder getRawBatchScanOrBuilder() { if (cmdCase_ == 21) { return (org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.getDefaultInstance(); } public static final int COPROCESSOR_FIELD_NUMBER = 22; /** * .coprocessor.Response Coprocessor = 22; */ public boolean hasCoprocessor() { return cmdCase_ == 22; } /** * .coprocessor.Response Coprocessor = 22; */ public org.tikv.kvproto.Coprocessor.Response getCoprocessor() { if (cmdCase_ == 22) { return (org.tikv.kvproto.Coprocessor.Response) cmd_; } return org.tikv.kvproto.Coprocessor.Response.getDefaultInstance(); } /** * .coprocessor.Response Coprocessor = 22; */ public org.tikv.kvproto.Coprocessor.ResponseOrBuilder getCoprocessorOrBuilder() { if (cmdCase_ == 22) { return (org.tikv.kvproto.Coprocessor.Response) cmd_; } return org.tikv.kvproto.Coprocessor.Response.getDefaultInstance(); } public static final int PESSIMISTICLOCK_FIELD_NUMBER = 23; /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public boolean hasPessimisticLock() { return cmdCase_ == 23; } /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse getPessimisticLock() { if (cmdCase_ == 23) { return (org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.getDefaultInstance(); } /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockResponseOrBuilder getPessimisticLockOrBuilder() { if (cmdCase_ == 23) { return (org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.getDefaultInstance(); } public static final int PESSIMISTICROLLBACK_FIELD_NUMBER = 24; /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public boolean hasPessimisticRollback() { return cmdCase_ == 24; } /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse getPessimisticRollback() { if (cmdCase_ == 24) { return (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.getDefaultInstance(); } /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponseOrBuilder getPessimisticRollbackOrBuilder() { if (cmdCase_ == 24) { return (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.getDefaultInstance(); } public static final int CHECKTXNSTATUS_FIELD_NUMBER = 25; /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public boolean hasCheckTxnStatus() { return cmdCase_ == 25; } /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse getCheckTxnStatus() { if (cmdCase_ == 25) { return (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.getDefaultInstance(); } /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponseOrBuilder getCheckTxnStatusOrBuilder() { if (cmdCase_ == 25) { return (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.getDefaultInstance(); } public static final int TXNHEARTBEAT_FIELD_NUMBER = 26; /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public boolean hasTxnHeartBeat() { return cmdCase_ == 26; } /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse getTxnHeartBeat() { if (cmdCase_ == 26) { return (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.getDefaultInstance(); } /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponseOrBuilder getTxnHeartBeatOrBuilder() { if (cmdCase_ == 26) { return (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.getDefaultInstance(); } public static final int VERGET_FIELD_NUMBER = 27; /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public boolean hasVerGet() { return cmdCase_ == 27; } /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public org.tikv.kvproto.Kvrpcpb.VerGetResponse getVerGet() { if (cmdCase_ == 27) { return (org.tikv.kvproto.Kvrpcpb.VerGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerGetResponse.getDefaultInstance(); } /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public org.tikv.kvproto.Kvrpcpb.VerGetResponseOrBuilder getVerGetOrBuilder() { if (cmdCase_ == 27) { return (org.tikv.kvproto.Kvrpcpb.VerGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerGetResponse.getDefaultInstance(); } public static final int VERBATCHGET_FIELD_NUMBER = 28; /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public boolean hasVerBatchGet() { return cmdCase_ == 28; } /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse getVerBatchGet() { if (cmdCase_ == 28) { return (org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.getDefaultInstance(); } /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetResponseOrBuilder getVerBatchGetOrBuilder() { if (cmdCase_ == 28) { return (org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.getDefaultInstance(); } public static final int VERMUT_FIELD_NUMBER = 29; /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public boolean hasVerMut() { return cmdCase_ == 29; } /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public org.tikv.kvproto.Kvrpcpb.VerMutResponse getVerMut() { if (cmdCase_ == 29) { return (org.tikv.kvproto.Kvrpcpb.VerMutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerMutResponse.getDefaultInstance(); } /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public org.tikv.kvproto.Kvrpcpb.VerMutResponseOrBuilder getVerMutOrBuilder() { if (cmdCase_ == 29) { return (org.tikv.kvproto.Kvrpcpb.VerMutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerMutResponse.getDefaultInstance(); } public static final int VERBATCHMUT_FIELD_NUMBER = 30; /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public boolean hasVerBatchMut() { return cmdCase_ == 30; } /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse getVerBatchMut() { if (cmdCase_ == 30) { return (org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.getDefaultInstance(); } /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutResponseOrBuilder getVerBatchMutOrBuilder() { if (cmdCase_ == 30) { return (org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.getDefaultInstance(); } public static final int VERSCAN_FIELD_NUMBER = 31; /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public boolean hasVerScan() { return cmdCase_ == 31; } /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public org.tikv.kvproto.Kvrpcpb.VerScanResponse getVerScan() { if (cmdCase_ == 31) { return (org.tikv.kvproto.Kvrpcpb.VerScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerScanResponse.getDefaultInstance(); } /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public org.tikv.kvproto.Kvrpcpb.VerScanResponseOrBuilder getVerScanOrBuilder() { if (cmdCase_ == 31) { return (org.tikv.kvproto.Kvrpcpb.VerScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerScanResponse.getDefaultInstance(); } public static final int VERDELETERANGE_FIELD_NUMBER = 32; /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public boolean hasVerDeleteRange() { return cmdCase_ == 32; } /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse getVerDeleteRange() { if (cmdCase_ == 32) { return (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.getDefaultInstance(); } /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponseOrBuilder getVerDeleteRangeOrBuilder() { if (cmdCase_ == 32) { return (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.getDefaultInstance(); } public static final int CHECKSECONDARYLOCKS_FIELD_NUMBER = 33; /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public boolean hasCheckSecondaryLocks() { return cmdCase_ == 33; } /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse getCheckSecondaryLocks() { if (cmdCase_ == 33) { return (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.getDefaultInstance(); } /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponseOrBuilder getCheckSecondaryLocksOrBuilder() { if (cmdCase_ == 33) { return (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.getDefaultInstance(); } public static final int COPROCESSORV2_FIELD_NUMBER = 34; /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public boolean hasCoprocessorV2() { return cmdCase_ == 34; } /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse getCoprocessorV2() { if (cmdCase_ == 34) { return (org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) cmd_; } return org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.getDefaultInstance(); } /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponseOrBuilder getCoprocessorV2OrBuilder() { if (cmdCase_ == 34) { return (org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) cmd_; } return org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.getDefaultInstance(); } public static final int EMPTY_FIELD_NUMBER = 255; /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public boolean hasEmpty() { return cmdCase_ == 255; } /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse getEmpty() { if (cmdCase_ == 255) { return (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) cmd_; } return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.getDefaultInstance(); } /** *
       * For some test cases.
       * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponseOrBuilder getEmptyOrBuilder() { if (cmdCase_ == 255) { return (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) cmd_; } return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.getDefaultInstance(); } 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 (cmdCase_ == 1) { output.writeMessage(1, (org.tikv.kvproto.Kvrpcpb.GetResponse) cmd_); } if (cmdCase_ == 2) { output.writeMessage(2, (org.tikv.kvproto.Kvrpcpb.ScanResponse) cmd_); } if (cmdCase_ == 3) { output.writeMessage(3, (org.tikv.kvproto.Kvrpcpb.PrewriteResponse) cmd_); } if (cmdCase_ == 4) { output.writeMessage(4, (org.tikv.kvproto.Kvrpcpb.CommitResponse) cmd_); } if (cmdCase_ == 5) { output.writeMessage(5, (org.tikv.kvproto.Kvrpcpb.ImportResponse) cmd_); } if (cmdCase_ == 6) { output.writeMessage(6, (org.tikv.kvproto.Kvrpcpb.CleanupResponse) cmd_); } if (cmdCase_ == 7) { output.writeMessage(7, (org.tikv.kvproto.Kvrpcpb.BatchGetResponse) cmd_); } if (cmdCase_ == 8) { output.writeMessage(8, (org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) cmd_); } if (cmdCase_ == 9) { output.writeMessage(9, (org.tikv.kvproto.Kvrpcpb.ScanLockResponse) cmd_); } if (cmdCase_ == 10) { output.writeMessage(10, (org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) cmd_); } if (cmdCase_ == 11) { output.writeMessage(11, (org.tikv.kvproto.Kvrpcpb.GCResponse) cmd_); } if (cmdCase_ == 12) { output.writeMessage(12, (org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) cmd_); } if (cmdCase_ == 13) { output.writeMessage(13, (org.tikv.kvproto.Kvrpcpb.RawGetResponse) cmd_); } if (cmdCase_ == 14) { output.writeMessage(14, (org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) cmd_); } if (cmdCase_ == 15) { output.writeMessage(15, (org.tikv.kvproto.Kvrpcpb.RawPutResponse) cmd_); } if (cmdCase_ == 16) { output.writeMessage(16, (org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) cmd_); } if (cmdCase_ == 17) { output.writeMessage(17, (org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) cmd_); } if (cmdCase_ == 18) { output.writeMessage(18, (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) cmd_); } if (cmdCase_ == 19) { output.writeMessage(19, (org.tikv.kvproto.Kvrpcpb.RawScanResponse) cmd_); } if (cmdCase_ == 20) { output.writeMessage(20, (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) cmd_); } if (cmdCase_ == 21) { output.writeMessage(21, (org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) cmd_); } if (cmdCase_ == 22) { output.writeMessage(22, (org.tikv.kvproto.Coprocessor.Response) cmd_); } if (cmdCase_ == 23) { output.writeMessage(23, (org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) cmd_); } if (cmdCase_ == 24) { output.writeMessage(24, (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) cmd_); } if (cmdCase_ == 25) { output.writeMessage(25, (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) cmd_); } if (cmdCase_ == 26) { output.writeMessage(26, (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) cmd_); } if (cmdCase_ == 27) { output.writeMessage(27, (org.tikv.kvproto.Kvrpcpb.VerGetResponse) cmd_); } if (cmdCase_ == 28) { output.writeMessage(28, (org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) cmd_); } if (cmdCase_ == 29) { output.writeMessage(29, (org.tikv.kvproto.Kvrpcpb.VerMutResponse) cmd_); } if (cmdCase_ == 30) { output.writeMessage(30, (org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) cmd_); } if (cmdCase_ == 31) { output.writeMessage(31, (org.tikv.kvproto.Kvrpcpb.VerScanResponse) cmd_); } if (cmdCase_ == 32) { output.writeMessage(32, (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) cmd_); } if (cmdCase_ == 33) { output.writeMessage(33, (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) cmd_); } if (cmdCase_ == 34) { output.writeMessage(34, (org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) cmd_); } if (cmdCase_ == 255) { output.writeMessage(255, (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) cmd_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cmdCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.tikv.kvproto.Kvrpcpb.GetResponse) cmd_); } if (cmdCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.tikv.kvproto.Kvrpcpb.ScanResponse) cmd_); } if (cmdCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.tikv.kvproto.Kvrpcpb.PrewriteResponse) cmd_); } if (cmdCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.tikv.kvproto.Kvrpcpb.CommitResponse) cmd_); } if (cmdCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.tikv.kvproto.Kvrpcpb.ImportResponse) cmd_); } if (cmdCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (org.tikv.kvproto.Kvrpcpb.CleanupResponse) cmd_); } if (cmdCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (org.tikv.kvproto.Kvrpcpb.BatchGetResponse) cmd_); } if (cmdCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) cmd_); } if (cmdCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (org.tikv.kvproto.Kvrpcpb.ScanLockResponse) cmd_); } if (cmdCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) cmd_); } if (cmdCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (org.tikv.kvproto.Kvrpcpb.GCResponse) cmd_); } if (cmdCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) cmd_); } if (cmdCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (org.tikv.kvproto.Kvrpcpb.RawGetResponse) cmd_); } if (cmdCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) cmd_); } if (cmdCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (org.tikv.kvproto.Kvrpcpb.RawPutResponse) cmd_); } if (cmdCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) cmd_); } if (cmdCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) cmd_); } if (cmdCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) cmd_); } if (cmdCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (org.tikv.kvproto.Kvrpcpb.RawScanResponse) cmd_); } if (cmdCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) cmd_); } if (cmdCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) cmd_); } if (cmdCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (org.tikv.kvproto.Coprocessor.Response) cmd_); } if (cmdCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) cmd_); } if (cmdCase_ == 24) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(24, (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) cmd_); } if (cmdCase_ == 25) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) cmd_); } if (cmdCase_ == 26) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) cmd_); } if (cmdCase_ == 27) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, (org.tikv.kvproto.Kvrpcpb.VerGetResponse) cmd_); } if (cmdCase_ == 28) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, (org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) cmd_); } if (cmdCase_ == 29) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(29, (org.tikv.kvproto.Kvrpcpb.VerMutResponse) cmd_); } if (cmdCase_ == 30) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, (org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) cmd_); } if (cmdCase_ == 31) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (org.tikv.kvproto.Kvrpcpb.VerScanResponse) cmd_); } if (cmdCase_ == 32) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) cmd_); } if (cmdCase_ == 33) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(33, (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) cmd_); } if (cmdCase_ == 34) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, (org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) cmd_); } if (cmdCase_ == 255) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(255, (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) cmd_); } 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.Tikvpb.BatchCommandsResponse.Response)) { return super.equals(obj); } org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response other = (org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response) obj; boolean result = true; result = result && getCmdCase().equals( other.getCmdCase()); if (!result) return false; switch (cmdCase_) { case 1: result = result && getGet() .equals(other.getGet()); break; case 2: result = result && getScan() .equals(other.getScan()); break; case 3: result = result && getPrewrite() .equals(other.getPrewrite()); break; case 4: result = result && getCommit() .equals(other.getCommit()); break; case 5: result = result && getImport() .equals(other.getImport()); break; case 6: result = result && getCleanup() .equals(other.getCleanup()); break; case 7: result = result && getBatchGet() .equals(other.getBatchGet()); break; case 8: result = result && getBatchRollback() .equals(other.getBatchRollback()); break; case 9: result = result && getScanLock() .equals(other.getScanLock()); break; case 10: result = result && getResolveLock() .equals(other.getResolveLock()); break; case 11: result = result && getGC() .equals(other.getGC()); break; case 12: result = result && getDeleteRange() .equals(other.getDeleteRange()); break; case 13: result = result && getRawGet() .equals(other.getRawGet()); break; case 14: result = result && getRawBatchGet() .equals(other.getRawBatchGet()); break; case 15: result = result && getRawPut() .equals(other.getRawPut()); break; case 16: result = result && getRawBatchPut() .equals(other.getRawBatchPut()); break; case 17: result = result && getRawDelete() .equals(other.getRawDelete()); break; case 18: result = result && getRawBatchDelete() .equals(other.getRawBatchDelete()); break; case 19: result = result && getRawScan() .equals(other.getRawScan()); break; case 20: result = result && getRawDeleteRange() .equals(other.getRawDeleteRange()); break; case 21: result = result && getRawBatchScan() .equals(other.getRawBatchScan()); break; case 22: result = result && getCoprocessor() .equals(other.getCoprocessor()); break; case 23: result = result && getPessimisticLock() .equals(other.getPessimisticLock()); break; case 24: result = result && getPessimisticRollback() .equals(other.getPessimisticRollback()); break; case 25: result = result && getCheckTxnStatus() .equals(other.getCheckTxnStatus()); break; case 26: result = result && getTxnHeartBeat() .equals(other.getTxnHeartBeat()); break; case 27: result = result && getVerGet() .equals(other.getVerGet()); break; case 28: result = result && getVerBatchGet() .equals(other.getVerBatchGet()); break; case 29: result = result && getVerMut() .equals(other.getVerMut()); break; case 30: result = result && getVerBatchMut() .equals(other.getVerBatchMut()); break; case 31: result = result && getVerScan() .equals(other.getVerScan()); break; case 32: result = result && getVerDeleteRange() .equals(other.getVerDeleteRange()); break; case 33: result = result && getCheckSecondaryLocks() .equals(other.getCheckSecondaryLocks()); break; case 34: result = result && getCoprocessorV2() .equals(other.getCoprocessorV2()); break; case 255: result = result && getEmpty() .equals(other.getEmpty()); break; case 0: default: } 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(); switch (cmdCase_) { case 1: hash = (37 * hash) + GET_FIELD_NUMBER; hash = (53 * hash) + getGet().hashCode(); break; case 2: hash = (37 * hash) + SCAN_FIELD_NUMBER; hash = (53 * hash) + getScan().hashCode(); break; case 3: hash = (37 * hash) + PREWRITE_FIELD_NUMBER; hash = (53 * hash) + getPrewrite().hashCode(); break; case 4: hash = (37 * hash) + COMMIT_FIELD_NUMBER; hash = (53 * hash) + getCommit().hashCode(); break; case 5: hash = (37 * hash) + IMPORT_FIELD_NUMBER; hash = (53 * hash) + getImport().hashCode(); break; case 6: hash = (37 * hash) + CLEANUP_FIELD_NUMBER; hash = (53 * hash) + getCleanup().hashCode(); break; case 7: hash = (37 * hash) + BATCHGET_FIELD_NUMBER; hash = (53 * hash) + getBatchGet().hashCode(); break; case 8: hash = (37 * hash) + BATCHROLLBACK_FIELD_NUMBER; hash = (53 * hash) + getBatchRollback().hashCode(); break; case 9: hash = (37 * hash) + SCANLOCK_FIELD_NUMBER; hash = (53 * hash) + getScanLock().hashCode(); break; case 10: hash = (37 * hash) + RESOLVELOCK_FIELD_NUMBER; hash = (53 * hash) + getResolveLock().hashCode(); break; case 11: hash = (37 * hash) + GC_FIELD_NUMBER; hash = (53 * hash) + getGC().hashCode(); break; case 12: hash = (37 * hash) + DELETERANGE_FIELD_NUMBER; hash = (53 * hash) + getDeleteRange().hashCode(); break; case 13: hash = (37 * hash) + RAWGET_FIELD_NUMBER; hash = (53 * hash) + getRawGet().hashCode(); break; case 14: hash = (37 * hash) + RAWBATCHGET_FIELD_NUMBER; hash = (53 * hash) + getRawBatchGet().hashCode(); break; case 15: hash = (37 * hash) + RAWPUT_FIELD_NUMBER; hash = (53 * hash) + getRawPut().hashCode(); break; case 16: hash = (37 * hash) + RAWBATCHPUT_FIELD_NUMBER; hash = (53 * hash) + getRawBatchPut().hashCode(); break; case 17: hash = (37 * hash) + RAWDELETE_FIELD_NUMBER; hash = (53 * hash) + getRawDelete().hashCode(); break; case 18: hash = (37 * hash) + RAWBATCHDELETE_FIELD_NUMBER; hash = (53 * hash) + getRawBatchDelete().hashCode(); break; case 19: hash = (37 * hash) + RAWSCAN_FIELD_NUMBER; hash = (53 * hash) + getRawScan().hashCode(); break; case 20: hash = (37 * hash) + RAWDELETERANGE_FIELD_NUMBER; hash = (53 * hash) + getRawDeleteRange().hashCode(); break; case 21: hash = (37 * hash) + RAWBATCHSCAN_FIELD_NUMBER; hash = (53 * hash) + getRawBatchScan().hashCode(); break; case 22: hash = (37 * hash) + COPROCESSOR_FIELD_NUMBER; hash = (53 * hash) + getCoprocessor().hashCode(); break; case 23: hash = (37 * hash) + PESSIMISTICLOCK_FIELD_NUMBER; hash = (53 * hash) + getPessimisticLock().hashCode(); break; case 24: hash = (37 * hash) + PESSIMISTICROLLBACK_FIELD_NUMBER; hash = (53 * hash) + getPessimisticRollback().hashCode(); break; case 25: hash = (37 * hash) + CHECKTXNSTATUS_FIELD_NUMBER; hash = (53 * hash) + getCheckTxnStatus().hashCode(); break; case 26: hash = (37 * hash) + TXNHEARTBEAT_FIELD_NUMBER; hash = (53 * hash) + getTxnHeartBeat().hashCode(); break; case 27: hash = (37 * hash) + VERGET_FIELD_NUMBER; hash = (53 * hash) + getVerGet().hashCode(); break; case 28: hash = (37 * hash) + VERBATCHGET_FIELD_NUMBER; hash = (53 * hash) + getVerBatchGet().hashCode(); break; case 29: hash = (37 * hash) + VERMUT_FIELD_NUMBER; hash = (53 * hash) + getVerMut().hashCode(); break; case 30: hash = (37 * hash) + VERBATCHMUT_FIELD_NUMBER; hash = (53 * hash) + getVerBatchMut().hashCode(); break; case 31: hash = (37 * hash) + VERSCAN_FIELD_NUMBER; hash = (53 * hash) + getVerScan().hashCode(); break; case 32: hash = (37 * hash) + VERDELETERANGE_FIELD_NUMBER; hash = (53 * hash) + getVerDeleteRange().hashCode(); break; case 33: hash = (37 * hash) + CHECKSECONDARYLOCKS_FIELD_NUMBER; hash = (53 * hash) + getCheckSecondaryLocks().hashCode(); break; case 34: hash = (37 * hash) + COPROCESSORV2_FIELD_NUMBER; hash = (53 * hash) + getCoprocessorV2().hashCode(); break; case 255: hash = (37 * hash) + EMPTY_FIELD_NUMBER; hash = (53 * hash) + getEmpty().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response 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.Tikvpb.BatchCommandsResponse.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response 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.Tikvpb.BatchCommandsResponse.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response 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.Tikvpb.BatchCommandsResponse.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response 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.Tikvpb.BatchCommandsResponse.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response 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.Tikvpb.BatchCommandsResponse.Response 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 tikvpb.BatchCommandsResponse.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tikvpb.BatchCommandsResponse.Response) org.tikv.kvproto.Tikvpb.BatchCommandsResponse.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsResponse_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsResponse_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.class, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder.class); } // Construct using org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.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(); cmdCase_ = 0; cmd_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsResponse_Response_descriptor; } public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response getDefaultInstanceForType() { return org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.getDefaultInstance(); } public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response build() { org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response buildPartial() { org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response result = new org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response(this); if (cmdCase_ == 1) { if (getBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = getBuilder_.build(); } } if (cmdCase_ == 2) { if (scanBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = scanBuilder_.build(); } } if (cmdCase_ == 3) { if (prewriteBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = prewriteBuilder_.build(); } } if (cmdCase_ == 4) { if (commitBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = commitBuilder_.build(); } } if (cmdCase_ == 5) { if (importBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = importBuilder_.build(); } } if (cmdCase_ == 6) { if (cleanupBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = cleanupBuilder_.build(); } } if (cmdCase_ == 7) { if (batchGetBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = batchGetBuilder_.build(); } } if (cmdCase_ == 8) { if (batchRollbackBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = batchRollbackBuilder_.build(); } } if (cmdCase_ == 9) { if (scanLockBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = scanLockBuilder_.build(); } } if (cmdCase_ == 10) { if (resolveLockBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = resolveLockBuilder_.build(); } } if (cmdCase_ == 11) { if (gCBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = gCBuilder_.build(); } } if (cmdCase_ == 12) { if (deleteRangeBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = deleteRangeBuilder_.build(); } } if (cmdCase_ == 13) { if (rawGetBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawGetBuilder_.build(); } } if (cmdCase_ == 14) { if (rawBatchGetBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawBatchGetBuilder_.build(); } } if (cmdCase_ == 15) { if (rawPutBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawPutBuilder_.build(); } } if (cmdCase_ == 16) { if (rawBatchPutBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawBatchPutBuilder_.build(); } } if (cmdCase_ == 17) { if (rawDeleteBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawDeleteBuilder_.build(); } } if (cmdCase_ == 18) { if (rawBatchDeleteBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawBatchDeleteBuilder_.build(); } } if (cmdCase_ == 19) { if (rawScanBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawScanBuilder_.build(); } } if (cmdCase_ == 20) { if (rawDeleteRangeBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawDeleteRangeBuilder_.build(); } } if (cmdCase_ == 21) { if (rawBatchScanBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = rawBatchScanBuilder_.build(); } } if (cmdCase_ == 22) { if (coprocessorBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = coprocessorBuilder_.build(); } } if (cmdCase_ == 23) { if (pessimisticLockBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = pessimisticLockBuilder_.build(); } } if (cmdCase_ == 24) { if (pessimisticRollbackBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = pessimisticRollbackBuilder_.build(); } } if (cmdCase_ == 25) { if (checkTxnStatusBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = checkTxnStatusBuilder_.build(); } } if (cmdCase_ == 26) { if (txnHeartBeatBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = txnHeartBeatBuilder_.build(); } } if (cmdCase_ == 27) { if (verGetBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verGetBuilder_.build(); } } if (cmdCase_ == 28) { if (verBatchGetBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verBatchGetBuilder_.build(); } } if (cmdCase_ == 29) { if (verMutBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verMutBuilder_.build(); } } if (cmdCase_ == 30) { if (verBatchMutBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verBatchMutBuilder_.build(); } } if (cmdCase_ == 31) { if (verScanBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verScanBuilder_.build(); } } if (cmdCase_ == 32) { if (verDeleteRangeBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = verDeleteRangeBuilder_.build(); } } if (cmdCase_ == 33) { if (checkSecondaryLocksBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = checkSecondaryLocksBuilder_.build(); } } if (cmdCase_ == 34) { if (coprocessorV2Builder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = coprocessorV2Builder_.build(); } } if (cmdCase_ == 255) { if (emptyBuilder_ == null) { result.cmd_ = cmd_; } else { result.cmd_ = emptyBuilder_.build(); } } result.cmdCase_ = cmdCase_; 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.Tikvpb.BatchCommandsResponse.Response) { return mergeFrom((org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response other) { if (other == org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.getDefaultInstance()) return this; switch (other.getCmdCase()) { case GET: { mergeGet(other.getGet()); break; } case SCAN: { mergeScan(other.getScan()); break; } case PREWRITE: { mergePrewrite(other.getPrewrite()); break; } case COMMIT: { mergeCommit(other.getCommit()); break; } case IMPORT: { mergeImport(other.getImport()); break; } case CLEANUP: { mergeCleanup(other.getCleanup()); break; } case BATCHGET: { mergeBatchGet(other.getBatchGet()); break; } case BATCHROLLBACK: { mergeBatchRollback(other.getBatchRollback()); break; } case SCANLOCK: { mergeScanLock(other.getScanLock()); break; } case RESOLVELOCK: { mergeResolveLock(other.getResolveLock()); break; } case GC: { mergeGC(other.getGC()); break; } case DELETERANGE: { mergeDeleteRange(other.getDeleteRange()); break; } case RAWGET: { mergeRawGet(other.getRawGet()); break; } case RAWBATCHGET: { mergeRawBatchGet(other.getRawBatchGet()); break; } case RAWPUT: { mergeRawPut(other.getRawPut()); break; } case RAWBATCHPUT: { mergeRawBatchPut(other.getRawBatchPut()); break; } case RAWDELETE: { mergeRawDelete(other.getRawDelete()); break; } case RAWBATCHDELETE: { mergeRawBatchDelete(other.getRawBatchDelete()); break; } case RAWSCAN: { mergeRawScan(other.getRawScan()); break; } case RAWDELETERANGE: { mergeRawDeleteRange(other.getRawDeleteRange()); break; } case RAWBATCHSCAN: { mergeRawBatchScan(other.getRawBatchScan()); break; } case COPROCESSOR: { mergeCoprocessor(other.getCoprocessor()); break; } case PESSIMISTICLOCK: { mergePessimisticLock(other.getPessimisticLock()); break; } case PESSIMISTICROLLBACK: { mergePessimisticRollback(other.getPessimisticRollback()); break; } case CHECKTXNSTATUS: { mergeCheckTxnStatus(other.getCheckTxnStatus()); break; } case TXNHEARTBEAT: { mergeTxnHeartBeat(other.getTxnHeartBeat()); break; } case VERGET: { mergeVerGet(other.getVerGet()); break; } case VERBATCHGET: { mergeVerBatchGet(other.getVerBatchGet()); break; } case VERMUT: { mergeVerMut(other.getVerMut()); break; } case VERBATCHMUT: { mergeVerBatchMut(other.getVerBatchMut()); break; } case VERSCAN: { mergeVerScan(other.getVerScan()); break; } case VERDELETERANGE: { mergeVerDeleteRange(other.getVerDeleteRange()); break; } case CHECKSECONDARYLOCKS: { mergeCheckSecondaryLocks(other.getCheckSecondaryLocks()); break; } case COPROCESSORV2: { mergeCoprocessorV2(other.getCoprocessorV2()); break; } case EMPTY: { mergeEmpty(other.getEmpty()); break; } case CMD_NOT_SET: { break; } } 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.Tikvpb.BatchCommandsResponse.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cmdCase_ = 0; private java.lang.Object cmd_; public CmdCase getCmdCase() { return CmdCase.forNumber( cmdCase_); } public Builder clearCmd() { cmdCase_ = 0; cmd_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GetResponse, org.tikv.kvproto.Kvrpcpb.GetResponse.Builder, org.tikv.kvproto.Kvrpcpb.GetResponseOrBuilder> getBuilder_; /** * .kvrpcpb.GetResponse Get = 1; */ public boolean hasGet() { return cmdCase_ == 1; } /** * .kvrpcpb.GetResponse Get = 1; */ public org.tikv.kvproto.Kvrpcpb.GetResponse getGet() { if (getBuilder_ == null) { if (cmdCase_ == 1) { return (org.tikv.kvproto.Kvrpcpb.GetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.GetResponse.getDefaultInstance(); } else { if (cmdCase_ == 1) { return getBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.GetResponse.getDefaultInstance(); } } /** * .kvrpcpb.GetResponse Get = 1; */ public Builder setGet(org.tikv.kvproto.Kvrpcpb.GetResponse value) { if (getBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { getBuilder_.setMessage(value); } cmdCase_ = 1; return this; } /** * .kvrpcpb.GetResponse Get = 1; */ public Builder setGet( org.tikv.kvproto.Kvrpcpb.GetResponse.Builder builderForValue) { if (getBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { getBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 1; return this; } /** * .kvrpcpb.GetResponse Get = 1; */ public Builder mergeGet(org.tikv.kvproto.Kvrpcpb.GetResponse value) { if (getBuilder_ == null) { if (cmdCase_ == 1 && cmd_ != org.tikv.kvproto.Kvrpcpb.GetResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.GetResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.GetResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 1) { getBuilder_.mergeFrom(value); } getBuilder_.setMessage(value); } cmdCase_ = 1; return this; } /** * .kvrpcpb.GetResponse Get = 1; */ public Builder clearGet() { if (getBuilder_ == null) { if (cmdCase_ == 1) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 1) { cmdCase_ = 0; cmd_ = null; } getBuilder_.clear(); } return this; } /** * .kvrpcpb.GetResponse Get = 1; */ public org.tikv.kvproto.Kvrpcpb.GetResponse.Builder getGetBuilder() { return getGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.GetResponse Get = 1; */ public org.tikv.kvproto.Kvrpcpb.GetResponseOrBuilder getGetOrBuilder() { if ((cmdCase_ == 1) && (getBuilder_ != null)) { return getBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 1) { return (org.tikv.kvproto.Kvrpcpb.GetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.GetResponse.getDefaultInstance(); } } /** * .kvrpcpb.GetResponse Get = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GetResponse, org.tikv.kvproto.Kvrpcpb.GetResponse.Builder, org.tikv.kvproto.Kvrpcpb.GetResponseOrBuilder> getGetFieldBuilder() { if (getBuilder_ == null) { if (!(cmdCase_ == 1)) { cmd_ = org.tikv.kvproto.Kvrpcpb.GetResponse.getDefaultInstance(); } getBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GetResponse, org.tikv.kvproto.Kvrpcpb.GetResponse.Builder, org.tikv.kvproto.Kvrpcpb.GetResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.GetResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 1; onChanged();; return getBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanResponse, org.tikv.kvproto.Kvrpcpb.ScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.ScanResponseOrBuilder> scanBuilder_; /** * .kvrpcpb.ScanResponse Scan = 2; */ public boolean hasScan() { return cmdCase_ == 2; } /** * .kvrpcpb.ScanResponse Scan = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanResponse getScan() { if (scanBuilder_ == null) { if (cmdCase_ == 2) { return (org.tikv.kvproto.Kvrpcpb.ScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanResponse.getDefaultInstance(); } else { if (cmdCase_ == 2) { return scanBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.ScanResponse.getDefaultInstance(); } } /** * .kvrpcpb.ScanResponse Scan = 2; */ public Builder setScan(org.tikv.kvproto.Kvrpcpb.ScanResponse value) { if (scanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { scanBuilder_.setMessage(value); } cmdCase_ = 2; return this; } /** * .kvrpcpb.ScanResponse Scan = 2; */ public Builder setScan( org.tikv.kvproto.Kvrpcpb.ScanResponse.Builder builderForValue) { if (scanBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { scanBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 2; return this; } /** * .kvrpcpb.ScanResponse Scan = 2; */ public Builder mergeScan(org.tikv.kvproto.Kvrpcpb.ScanResponse value) { if (scanBuilder_ == null) { if (cmdCase_ == 2 && cmd_ != org.tikv.kvproto.Kvrpcpb.ScanResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.ScanResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.ScanResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 2) { scanBuilder_.mergeFrom(value); } scanBuilder_.setMessage(value); } cmdCase_ = 2; return this; } /** * .kvrpcpb.ScanResponse Scan = 2; */ public Builder clearScan() { if (scanBuilder_ == null) { if (cmdCase_ == 2) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 2) { cmdCase_ = 0; cmd_ = null; } scanBuilder_.clear(); } return this; } /** * .kvrpcpb.ScanResponse Scan = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanResponse.Builder getScanBuilder() { return getScanFieldBuilder().getBuilder(); } /** * .kvrpcpb.ScanResponse Scan = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanResponseOrBuilder getScanOrBuilder() { if ((cmdCase_ == 2) && (scanBuilder_ != null)) { return scanBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 2) { return (org.tikv.kvproto.Kvrpcpb.ScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanResponse.getDefaultInstance(); } } /** * .kvrpcpb.ScanResponse Scan = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanResponse, org.tikv.kvproto.Kvrpcpb.ScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.ScanResponseOrBuilder> getScanFieldBuilder() { if (scanBuilder_ == null) { if (!(cmdCase_ == 2)) { cmd_ = org.tikv.kvproto.Kvrpcpb.ScanResponse.getDefaultInstance(); } scanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanResponse, org.tikv.kvproto.Kvrpcpb.ScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.ScanResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.ScanResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 2; onChanged();; return scanBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PrewriteResponse, org.tikv.kvproto.Kvrpcpb.PrewriteResponse.Builder, org.tikv.kvproto.Kvrpcpb.PrewriteResponseOrBuilder> prewriteBuilder_; /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public boolean hasPrewrite() { return cmdCase_ == 3; } /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public org.tikv.kvproto.Kvrpcpb.PrewriteResponse getPrewrite() { if (prewriteBuilder_ == null) { if (cmdCase_ == 3) { return (org.tikv.kvproto.Kvrpcpb.PrewriteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PrewriteResponse.getDefaultInstance(); } else { if (cmdCase_ == 3) { return prewriteBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.PrewriteResponse.getDefaultInstance(); } } /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public Builder setPrewrite(org.tikv.kvproto.Kvrpcpb.PrewriteResponse value) { if (prewriteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { prewriteBuilder_.setMessage(value); } cmdCase_ = 3; return this; } /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public Builder setPrewrite( org.tikv.kvproto.Kvrpcpb.PrewriteResponse.Builder builderForValue) { if (prewriteBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { prewriteBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 3; return this; } /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public Builder mergePrewrite(org.tikv.kvproto.Kvrpcpb.PrewriteResponse value) { if (prewriteBuilder_ == null) { if (cmdCase_ == 3 && cmd_ != org.tikv.kvproto.Kvrpcpb.PrewriteResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.PrewriteResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.PrewriteResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 3) { prewriteBuilder_.mergeFrom(value); } prewriteBuilder_.setMessage(value); } cmdCase_ = 3; return this; } /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public Builder clearPrewrite() { if (prewriteBuilder_ == null) { if (cmdCase_ == 3) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 3) { cmdCase_ = 0; cmd_ = null; } prewriteBuilder_.clear(); } return this; } /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public org.tikv.kvproto.Kvrpcpb.PrewriteResponse.Builder getPrewriteBuilder() { return getPrewriteFieldBuilder().getBuilder(); } /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ public org.tikv.kvproto.Kvrpcpb.PrewriteResponseOrBuilder getPrewriteOrBuilder() { if ((cmdCase_ == 3) && (prewriteBuilder_ != null)) { return prewriteBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 3) { return (org.tikv.kvproto.Kvrpcpb.PrewriteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PrewriteResponse.getDefaultInstance(); } } /** * .kvrpcpb.PrewriteResponse Prewrite = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PrewriteResponse, org.tikv.kvproto.Kvrpcpb.PrewriteResponse.Builder, org.tikv.kvproto.Kvrpcpb.PrewriteResponseOrBuilder> getPrewriteFieldBuilder() { if (prewriteBuilder_ == null) { if (!(cmdCase_ == 3)) { cmd_ = org.tikv.kvproto.Kvrpcpb.PrewriteResponse.getDefaultInstance(); } prewriteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PrewriteResponse, org.tikv.kvproto.Kvrpcpb.PrewriteResponse.Builder, org.tikv.kvproto.Kvrpcpb.PrewriteResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.PrewriteResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 3; onChanged();; return prewriteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitResponse, org.tikv.kvproto.Kvrpcpb.CommitResponse.Builder, org.tikv.kvproto.Kvrpcpb.CommitResponseOrBuilder> commitBuilder_; /** * .kvrpcpb.CommitResponse Commit = 4; */ public boolean hasCommit() { return cmdCase_ == 4; } /** * .kvrpcpb.CommitResponse Commit = 4; */ public org.tikv.kvproto.Kvrpcpb.CommitResponse getCommit() { if (commitBuilder_ == null) { if (cmdCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.CommitResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CommitResponse.getDefaultInstance(); } else { if (cmdCase_ == 4) { return commitBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.CommitResponse.getDefaultInstance(); } } /** * .kvrpcpb.CommitResponse Commit = 4; */ public Builder setCommit(org.tikv.kvproto.Kvrpcpb.CommitResponse value) { if (commitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { commitBuilder_.setMessage(value); } cmdCase_ = 4; return this; } /** * .kvrpcpb.CommitResponse Commit = 4; */ public Builder setCommit( org.tikv.kvproto.Kvrpcpb.CommitResponse.Builder builderForValue) { if (commitBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { commitBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 4; return this; } /** * .kvrpcpb.CommitResponse Commit = 4; */ public Builder mergeCommit(org.tikv.kvproto.Kvrpcpb.CommitResponse value) { if (commitBuilder_ == null) { if (cmdCase_ == 4 && cmd_ != org.tikv.kvproto.Kvrpcpb.CommitResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.CommitResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.CommitResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 4) { commitBuilder_.mergeFrom(value); } commitBuilder_.setMessage(value); } cmdCase_ = 4; return this; } /** * .kvrpcpb.CommitResponse Commit = 4; */ public Builder clearCommit() { if (commitBuilder_ == null) { if (cmdCase_ == 4) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 4) { cmdCase_ = 0; cmd_ = null; } commitBuilder_.clear(); } return this; } /** * .kvrpcpb.CommitResponse Commit = 4; */ public org.tikv.kvproto.Kvrpcpb.CommitResponse.Builder getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** * .kvrpcpb.CommitResponse Commit = 4; */ public org.tikv.kvproto.Kvrpcpb.CommitResponseOrBuilder getCommitOrBuilder() { if ((cmdCase_ == 4) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 4) { return (org.tikv.kvproto.Kvrpcpb.CommitResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CommitResponse.getDefaultInstance(); } } /** * .kvrpcpb.CommitResponse Commit = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitResponse, org.tikv.kvproto.Kvrpcpb.CommitResponse.Builder, org.tikv.kvproto.Kvrpcpb.CommitResponseOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(cmdCase_ == 4)) { cmd_ = org.tikv.kvproto.Kvrpcpb.CommitResponse.getDefaultInstance(); } commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitResponse, org.tikv.kvproto.Kvrpcpb.CommitResponse.Builder, org.tikv.kvproto.Kvrpcpb.CommitResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.CommitResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 4; onChanged();; return commitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ImportResponse, org.tikv.kvproto.Kvrpcpb.ImportResponse.Builder, org.tikv.kvproto.Kvrpcpb.ImportResponseOrBuilder> importBuilder_; /** * .kvrpcpb.ImportResponse Import = 5; */ public boolean hasImport() { return cmdCase_ == 5; } /** * .kvrpcpb.ImportResponse Import = 5; */ public org.tikv.kvproto.Kvrpcpb.ImportResponse getImport() { if (importBuilder_ == null) { if (cmdCase_ == 5) { return (org.tikv.kvproto.Kvrpcpb.ImportResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ImportResponse.getDefaultInstance(); } else { if (cmdCase_ == 5) { return importBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.ImportResponse.getDefaultInstance(); } } /** * .kvrpcpb.ImportResponse Import = 5; */ public Builder setImport(org.tikv.kvproto.Kvrpcpb.ImportResponse value) { if (importBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { importBuilder_.setMessage(value); } cmdCase_ = 5; return this; } /** * .kvrpcpb.ImportResponse Import = 5; */ public Builder setImport( org.tikv.kvproto.Kvrpcpb.ImportResponse.Builder builderForValue) { if (importBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { importBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 5; return this; } /** * .kvrpcpb.ImportResponse Import = 5; */ public Builder mergeImport(org.tikv.kvproto.Kvrpcpb.ImportResponse value) { if (importBuilder_ == null) { if (cmdCase_ == 5 && cmd_ != org.tikv.kvproto.Kvrpcpb.ImportResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.ImportResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.ImportResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 5) { importBuilder_.mergeFrom(value); } importBuilder_.setMessage(value); } cmdCase_ = 5; return this; } /** * .kvrpcpb.ImportResponse Import = 5; */ public Builder clearImport() { if (importBuilder_ == null) { if (cmdCase_ == 5) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 5) { cmdCase_ = 0; cmd_ = null; } importBuilder_.clear(); } return this; } /** * .kvrpcpb.ImportResponse Import = 5; */ public org.tikv.kvproto.Kvrpcpb.ImportResponse.Builder getImportBuilder() { return getImportFieldBuilder().getBuilder(); } /** * .kvrpcpb.ImportResponse Import = 5; */ public org.tikv.kvproto.Kvrpcpb.ImportResponseOrBuilder getImportOrBuilder() { if ((cmdCase_ == 5) && (importBuilder_ != null)) { return importBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 5) { return (org.tikv.kvproto.Kvrpcpb.ImportResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ImportResponse.getDefaultInstance(); } } /** * .kvrpcpb.ImportResponse Import = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ImportResponse, org.tikv.kvproto.Kvrpcpb.ImportResponse.Builder, org.tikv.kvproto.Kvrpcpb.ImportResponseOrBuilder> getImportFieldBuilder() { if (importBuilder_ == null) { if (!(cmdCase_ == 5)) { cmd_ = org.tikv.kvproto.Kvrpcpb.ImportResponse.getDefaultInstance(); } importBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ImportResponse, org.tikv.kvproto.Kvrpcpb.ImportResponse.Builder, org.tikv.kvproto.Kvrpcpb.ImportResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.ImportResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 5; onChanged();; return importBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CleanupResponse, org.tikv.kvproto.Kvrpcpb.CleanupResponse.Builder, org.tikv.kvproto.Kvrpcpb.CleanupResponseOrBuilder> cleanupBuilder_; /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public boolean hasCleanup() { return cmdCase_ == 6; } /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public org.tikv.kvproto.Kvrpcpb.CleanupResponse getCleanup() { if (cleanupBuilder_ == null) { if (cmdCase_ == 6) { return (org.tikv.kvproto.Kvrpcpb.CleanupResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CleanupResponse.getDefaultInstance(); } else { if (cmdCase_ == 6) { return cleanupBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.CleanupResponse.getDefaultInstance(); } } /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public Builder setCleanup(org.tikv.kvproto.Kvrpcpb.CleanupResponse value) { if (cleanupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { cleanupBuilder_.setMessage(value); } cmdCase_ = 6; return this; } /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public Builder setCleanup( org.tikv.kvproto.Kvrpcpb.CleanupResponse.Builder builderForValue) { if (cleanupBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { cleanupBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 6; return this; } /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public Builder mergeCleanup(org.tikv.kvproto.Kvrpcpb.CleanupResponse value) { if (cleanupBuilder_ == null) { if (cmdCase_ == 6 && cmd_ != org.tikv.kvproto.Kvrpcpb.CleanupResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.CleanupResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.CleanupResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 6) { cleanupBuilder_.mergeFrom(value); } cleanupBuilder_.setMessage(value); } cmdCase_ = 6; return this; } /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public Builder clearCleanup() { if (cleanupBuilder_ == null) { if (cmdCase_ == 6) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 6) { cmdCase_ = 0; cmd_ = null; } cleanupBuilder_.clear(); } return this; } /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public org.tikv.kvproto.Kvrpcpb.CleanupResponse.Builder getCleanupBuilder() { return getCleanupFieldBuilder().getBuilder(); } /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ public org.tikv.kvproto.Kvrpcpb.CleanupResponseOrBuilder getCleanupOrBuilder() { if ((cmdCase_ == 6) && (cleanupBuilder_ != null)) { return cleanupBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 6) { return (org.tikv.kvproto.Kvrpcpb.CleanupResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CleanupResponse.getDefaultInstance(); } } /** * .kvrpcpb.CleanupResponse Cleanup = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CleanupResponse, org.tikv.kvproto.Kvrpcpb.CleanupResponse.Builder, org.tikv.kvproto.Kvrpcpb.CleanupResponseOrBuilder> getCleanupFieldBuilder() { if (cleanupBuilder_ == null) { if (!(cmdCase_ == 6)) { cmd_ = org.tikv.kvproto.Kvrpcpb.CleanupResponse.getDefaultInstance(); } cleanupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CleanupResponse, org.tikv.kvproto.Kvrpcpb.CleanupResponse.Builder, org.tikv.kvproto.Kvrpcpb.CleanupResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.CleanupResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 6; onChanged();; return cleanupBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchGetResponse, org.tikv.kvproto.Kvrpcpb.BatchGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.BatchGetResponseOrBuilder> batchGetBuilder_; /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public boolean hasBatchGet() { return cmdCase_ == 7; } /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public org.tikv.kvproto.Kvrpcpb.BatchGetResponse getBatchGet() { if (batchGetBuilder_ == null) { if (cmdCase_ == 7) { return (org.tikv.kvproto.Kvrpcpb.BatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchGetResponse.getDefaultInstance(); } else { if (cmdCase_ == 7) { return batchGetBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.BatchGetResponse.getDefaultInstance(); } } /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public Builder setBatchGet(org.tikv.kvproto.Kvrpcpb.BatchGetResponse value) { if (batchGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { batchGetBuilder_.setMessage(value); } cmdCase_ = 7; return this; } /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public Builder setBatchGet( org.tikv.kvproto.Kvrpcpb.BatchGetResponse.Builder builderForValue) { if (batchGetBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { batchGetBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 7; return this; } /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public Builder mergeBatchGet(org.tikv.kvproto.Kvrpcpb.BatchGetResponse value) { if (batchGetBuilder_ == null) { if (cmdCase_ == 7 && cmd_ != org.tikv.kvproto.Kvrpcpb.BatchGetResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.BatchGetResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.BatchGetResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 7) { batchGetBuilder_.mergeFrom(value); } batchGetBuilder_.setMessage(value); } cmdCase_ = 7; return this; } /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public Builder clearBatchGet() { if (batchGetBuilder_ == null) { if (cmdCase_ == 7) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 7) { cmdCase_ = 0; cmd_ = null; } batchGetBuilder_.clear(); } return this; } /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public org.tikv.kvproto.Kvrpcpb.BatchGetResponse.Builder getBatchGetBuilder() { return getBatchGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ public org.tikv.kvproto.Kvrpcpb.BatchGetResponseOrBuilder getBatchGetOrBuilder() { if ((cmdCase_ == 7) && (batchGetBuilder_ != null)) { return batchGetBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 7) { return (org.tikv.kvproto.Kvrpcpb.BatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchGetResponse.getDefaultInstance(); } } /** * .kvrpcpb.BatchGetResponse BatchGet = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchGetResponse, org.tikv.kvproto.Kvrpcpb.BatchGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.BatchGetResponseOrBuilder> getBatchGetFieldBuilder() { if (batchGetBuilder_ == null) { if (!(cmdCase_ == 7)) { cmd_ = org.tikv.kvproto.Kvrpcpb.BatchGetResponse.getDefaultInstance(); } batchGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchGetResponse, org.tikv.kvproto.Kvrpcpb.BatchGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.BatchGetResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.BatchGetResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 7; onChanged();; return batchGetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse, org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.Builder, org.tikv.kvproto.Kvrpcpb.BatchRollbackResponseOrBuilder> batchRollbackBuilder_; /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public boolean hasBatchRollback() { return cmdCase_ == 8; } /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse getBatchRollback() { if (batchRollbackBuilder_ == null) { if (cmdCase_ == 8) { return (org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.getDefaultInstance(); } else { if (cmdCase_ == 8) { return batchRollbackBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.getDefaultInstance(); } } /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public Builder setBatchRollback(org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse value) { if (batchRollbackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { batchRollbackBuilder_.setMessage(value); } cmdCase_ = 8; return this; } /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public Builder setBatchRollback( org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.Builder builderForValue) { if (batchRollbackBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { batchRollbackBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 8; return this; } /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public Builder mergeBatchRollback(org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse value) { if (batchRollbackBuilder_ == null) { if (cmdCase_ == 8 && cmd_ != org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 8) { batchRollbackBuilder_.mergeFrom(value); } batchRollbackBuilder_.setMessage(value); } cmdCase_ = 8; return this; } /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public Builder clearBatchRollback() { if (batchRollbackBuilder_ == null) { if (cmdCase_ == 8) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 8) { cmdCase_ = 0; cmd_ = null; } batchRollbackBuilder_.clear(); } return this; } /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.Builder getBatchRollbackBuilder() { return getBatchRollbackFieldBuilder().getBuilder(); } /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackResponseOrBuilder getBatchRollbackOrBuilder() { if ((cmdCase_ == 8) && (batchRollbackBuilder_ != null)) { return batchRollbackBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 8) { return (org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.getDefaultInstance(); } } /** * .kvrpcpb.BatchRollbackResponse BatchRollback = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse, org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.Builder, org.tikv.kvproto.Kvrpcpb.BatchRollbackResponseOrBuilder> getBatchRollbackFieldBuilder() { if (batchRollbackBuilder_ == null) { if (!(cmdCase_ == 8)) { cmd_ = org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.getDefaultInstance(); } batchRollbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse, org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.Builder, org.tikv.kvproto.Kvrpcpb.BatchRollbackResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 8; onChanged();; return batchRollbackBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanLockResponse, org.tikv.kvproto.Kvrpcpb.ScanLockResponse.Builder, org.tikv.kvproto.Kvrpcpb.ScanLockResponseOrBuilder> scanLockBuilder_; /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public boolean hasScanLock() { return cmdCase_ == 9; } /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public org.tikv.kvproto.Kvrpcpb.ScanLockResponse getScanLock() { if (scanLockBuilder_ == null) { if (cmdCase_ == 9) { return (org.tikv.kvproto.Kvrpcpb.ScanLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanLockResponse.getDefaultInstance(); } else { if (cmdCase_ == 9) { return scanLockBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.ScanLockResponse.getDefaultInstance(); } } /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public Builder setScanLock(org.tikv.kvproto.Kvrpcpb.ScanLockResponse value) { if (scanLockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { scanLockBuilder_.setMessage(value); } cmdCase_ = 9; return this; } /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public Builder setScanLock( org.tikv.kvproto.Kvrpcpb.ScanLockResponse.Builder builderForValue) { if (scanLockBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { scanLockBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 9; return this; } /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public Builder mergeScanLock(org.tikv.kvproto.Kvrpcpb.ScanLockResponse value) { if (scanLockBuilder_ == null) { if (cmdCase_ == 9 && cmd_ != org.tikv.kvproto.Kvrpcpb.ScanLockResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.ScanLockResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.ScanLockResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 9) { scanLockBuilder_.mergeFrom(value); } scanLockBuilder_.setMessage(value); } cmdCase_ = 9; return this; } /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public Builder clearScanLock() { if (scanLockBuilder_ == null) { if (cmdCase_ == 9) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 9) { cmdCase_ = 0; cmd_ = null; } scanLockBuilder_.clear(); } return this; } /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public org.tikv.kvproto.Kvrpcpb.ScanLockResponse.Builder getScanLockBuilder() { return getScanLockFieldBuilder().getBuilder(); } /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ public org.tikv.kvproto.Kvrpcpb.ScanLockResponseOrBuilder getScanLockOrBuilder() { if ((cmdCase_ == 9) && (scanLockBuilder_ != null)) { return scanLockBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 9) { return (org.tikv.kvproto.Kvrpcpb.ScanLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ScanLockResponse.getDefaultInstance(); } } /** * .kvrpcpb.ScanLockResponse ScanLock = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanLockResponse, org.tikv.kvproto.Kvrpcpb.ScanLockResponse.Builder, org.tikv.kvproto.Kvrpcpb.ScanLockResponseOrBuilder> getScanLockFieldBuilder() { if (scanLockBuilder_ == null) { if (!(cmdCase_ == 9)) { cmd_ = org.tikv.kvproto.Kvrpcpb.ScanLockResponse.getDefaultInstance(); } scanLockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanLockResponse, org.tikv.kvproto.Kvrpcpb.ScanLockResponse.Builder, org.tikv.kvproto.Kvrpcpb.ScanLockResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.ScanLockResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 9; onChanged();; return scanLockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ResolveLockResponse, org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.Builder, org.tikv.kvproto.Kvrpcpb.ResolveLockResponseOrBuilder> resolveLockBuilder_; /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public boolean hasResolveLock() { return cmdCase_ == 10; } /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public org.tikv.kvproto.Kvrpcpb.ResolveLockResponse getResolveLock() { if (resolveLockBuilder_ == null) { if (cmdCase_ == 10) { return (org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.getDefaultInstance(); } else { if (cmdCase_ == 10) { return resolveLockBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.getDefaultInstance(); } } /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public Builder setResolveLock(org.tikv.kvproto.Kvrpcpb.ResolveLockResponse value) { if (resolveLockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { resolveLockBuilder_.setMessage(value); } cmdCase_ = 10; return this; } /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public Builder setResolveLock( org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.Builder builderForValue) { if (resolveLockBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { resolveLockBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 10; return this; } /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public Builder mergeResolveLock(org.tikv.kvproto.Kvrpcpb.ResolveLockResponse value) { if (resolveLockBuilder_ == null) { if (cmdCase_ == 10 && cmd_ != org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 10) { resolveLockBuilder_.mergeFrom(value); } resolveLockBuilder_.setMessage(value); } cmdCase_ = 10; return this; } /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public Builder clearResolveLock() { if (resolveLockBuilder_ == null) { if (cmdCase_ == 10) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 10) { cmdCase_ = 0; cmd_ = null; } resolveLockBuilder_.clear(); } return this; } /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.Builder getResolveLockBuilder() { return getResolveLockFieldBuilder().getBuilder(); } /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ public org.tikv.kvproto.Kvrpcpb.ResolveLockResponseOrBuilder getResolveLockOrBuilder() { if ((cmdCase_ == 10) && (resolveLockBuilder_ != null)) { return resolveLockBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 10) { return (org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.getDefaultInstance(); } } /** * .kvrpcpb.ResolveLockResponse ResolveLock = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ResolveLockResponse, org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.Builder, org.tikv.kvproto.Kvrpcpb.ResolveLockResponseOrBuilder> getResolveLockFieldBuilder() { if (resolveLockBuilder_ == null) { if (!(cmdCase_ == 10)) { cmd_ = org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.getDefaultInstance(); } resolveLockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ResolveLockResponse, org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.Builder, org.tikv.kvproto.Kvrpcpb.ResolveLockResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 10; onChanged();; return resolveLockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GCResponse, org.tikv.kvproto.Kvrpcpb.GCResponse.Builder, org.tikv.kvproto.Kvrpcpb.GCResponseOrBuilder> gCBuilder_; /** * .kvrpcpb.GCResponse GC = 11; */ public boolean hasGC() { return cmdCase_ == 11; } /** * .kvrpcpb.GCResponse GC = 11; */ public org.tikv.kvproto.Kvrpcpb.GCResponse getGC() { if (gCBuilder_ == null) { if (cmdCase_ == 11) { return (org.tikv.kvproto.Kvrpcpb.GCResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.GCResponse.getDefaultInstance(); } else { if (cmdCase_ == 11) { return gCBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.GCResponse.getDefaultInstance(); } } /** * .kvrpcpb.GCResponse GC = 11; */ public Builder setGC(org.tikv.kvproto.Kvrpcpb.GCResponse value) { if (gCBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { gCBuilder_.setMessage(value); } cmdCase_ = 11; return this; } /** * .kvrpcpb.GCResponse GC = 11; */ public Builder setGC( org.tikv.kvproto.Kvrpcpb.GCResponse.Builder builderForValue) { if (gCBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { gCBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 11; return this; } /** * .kvrpcpb.GCResponse GC = 11; */ public Builder mergeGC(org.tikv.kvproto.Kvrpcpb.GCResponse value) { if (gCBuilder_ == null) { if (cmdCase_ == 11 && cmd_ != org.tikv.kvproto.Kvrpcpb.GCResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.GCResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.GCResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 11) { gCBuilder_.mergeFrom(value); } gCBuilder_.setMessage(value); } cmdCase_ = 11; return this; } /** * .kvrpcpb.GCResponse GC = 11; */ public Builder clearGC() { if (gCBuilder_ == null) { if (cmdCase_ == 11) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 11) { cmdCase_ = 0; cmd_ = null; } gCBuilder_.clear(); } return this; } /** * .kvrpcpb.GCResponse GC = 11; */ public org.tikv.kvproto.Kvrpcpb.GCResponse.Builder getGCBuilder() { return getGCFieldBuilder().getBuilder(); } /** * .kvrpcpb.GCResponse GC = 11; */ public org.tikv.kvproto.Kvrpcpb.GCResponseOrBuilder getGCOrBuilder() { if ((cmdCase_ == 11) && (gCBuilder_ != null)) { return gCBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 11) { return (org.tikv.kvproto.Kvrpcpb.GCResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.GCResponse.getDefaultInstance(); } } /** * .kvrpcpb.GCResponse GC = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GCResponse, org.tikv.kvproto.Kvrpcpb.GCResponse.Builder, org.tikv.kvproto.Kvrpcpb.GCResponseOrBuilder> getGCFieldBuilder() { if (gCBuilder_ == null) { if (!(cmdCase_ == 11)) { cmd_ = org.tikv.kvproto.Kvrpcpb.GCResponse.getDefaultInstance(); } gCBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.GCResponse, org.tikv.kvproto.Kvrpcpb.GCResponse.Builder, org.tikv.kvproto.Kvrpcpb.GCResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.GCResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 11; onChanged();; return gCBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse, org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.Builder, org.tikv.kvproto.Kvrpcpb.DeleteRangeResponseOrBuilder> deleteRangeBuilder_; /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public boolean hasDeleteRange() { return cmdCase_ == 12; } /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse getDeleteRange() { if (deleteRangeBuilder_ == null) { if (cmdCase_ == 12) { return (org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.getDefaultInstance(); } else { if (cmdCase_ == 12) { return deleteRangeBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.getDefaultInstance(); } } /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public Builder setDeleteRange(org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse value) { if (deleteRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { deleteRangeBuilder_.setMessage(value); } cmdCase_ = 12; return this; } /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public Builder setDeleteRange( org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.Builder builderForValue) { if (deleteRangeBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { deleteRangeBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 12; return this; } /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public Builder mergeDeleteRange(org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse value) { if (deleteRangeBuilder_ == null) { if (cmdCase_ == 12 && cmd_ != org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 12) { deleteRangeBuilder_.mergeFrom(value); } deleteRangeBuilder_.setMessage(value); } cmdCase_ = 12; return this; } /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public Builder clearDeleteRange() { if (deleteRangeBuilder_ == null) { if (cmdCase_ == 12) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 12) { cmdCase_ = 0; cmd_ = null; } deleteRangeBuilder_.clear(); } return this; } /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.Builder getDeleteRangeBuilder() { return getDeleteRangeFieldBuilder().getBuilder(); } /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeResponseOrBuilder getDeleteRangeOrBuilder() { if ((cmdCase_ == 12) && (deleteRangeBuilder_ != null)) { return deleteRangeBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 12) { return (org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.getDefaultInstance(); } } /** * .kvrpcpb.DeleteRangeResponse DeleteRange = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse, org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.Builder, org.tikv.kvproto.Kvrpcpb.DeleteRangeResponseOrBuilder> getDeleteRangeFieldBuilder() { if (deleteRangeBuilder_ == null) { if (!(cmdCase_ == 12)) { cmd_ = org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.getDefaultInstance(); } deleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse, org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.Builder, org.tikv.kvproto.Kvrpcpb.DeleteRangeResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 12; onChanged();; return deleteRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawGetResponse, org.tikv.kvproto.Kvrpcpb.RawGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawGetResponseOrBuilder> rawGetBuilder_; /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public boolean hasRawGet() { return cmdCase_ == 13; } /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public org.tikv.kvproto.Kvrpcpb.RawGetResponse getRawGet() { if (rawGetBuilder_ == null) { if (cmdCase_ == 13) { return (org.tikv.kvproto.Kvrpcpb.RawGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawGetResponse.getDefaultInstance(); } else { if (cmdCase_ == 13) { return rawGetBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawGetResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public Builder setRawGet(org.tikv.kvproto.Kvrpcpb.RawGetResponse value) { if (rawGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawGetBuilder_.setMessage(value); } cmdCase_ = 13; return this; } /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public Builder setRawGet( org.tikv.kvproto.Kvrpcpb.RawGetResponse.Builder builderForValue) { if (rawGetBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawGetBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 13; return this; } /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public Builder mergeRawGet(org.tikv.kvproto.Kvrpcpb.RawGetResponse value) { if (rawGetBuilder_ == null) { if (cmdCase_ == 13 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawGetResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawGetResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.RawGetResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 13) { rawGetBuilder_.mergeFrom(value); } rawGetBuilder_.setMessage(value); } cmdCase_ = 13; return this; } /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public Builder clearRawGet() { if (rawGetBuilder_ == null) { if (cmdCase_ == 13) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 13) { cmdCase_ = 0; cmd_ = null; } rawGetBuilder_.clear(); } return this; } /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public org.tikv.kvproto.Kvrpcpb.RawGetResponse.Builder getRawGetBuilder() { return getRawGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawGetResponse RawGet = 13; */ public org.tikv.kvproto.Kvrpcpb.RawGetResponseOrBuilder getRawGetOrBuilder() { if ((cmdCase_ == 13) && (rawGetBuilder_ != null)) { return rawGetBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 13) { return (org.tikv.kvproto.Kvrpcpb.RawGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawGetResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawGetResponse RawGet = 13; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawGetResponse, org.tikv.kvproto.Kvrpcpb.RawGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawGetResponseOrBuilder> getRawGetFieldBuilder() { if (rawGetBuilder_ == null) { if (!(cmdCase_ == 13)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawGetResponse.getDefaultInstance(); } rawGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawGetResponse, org.tikv.kvproto.Kvrpcpb.RawGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawGetResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawGetResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 13; onChanged();; return rawGetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse, org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchGetResponseOrBuilder> rawBatchGetBuilder_; /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public boolean hasRawBatchGet() { return cmdCase_ == 14; } /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse getRawBatchGet() { if (rawBatchGetBuilder_ == null) { if (cmdCase_ == 14) { return (org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.getDefaultInstance(); } else { if (cmdCase_ == 14) { return rawBatchGetBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public Builder setRawBatchGet(org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse value) { if (rawBatchGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawBatchGetBuilder_.setMessage(value); } cmdCase_ = 14; return this; } /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public Builder setRawBatchGet( org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.Builder builderForValue) { if (rawBatchGetBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawBatchGetBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 14; return this; } /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public Builder mergeRawBatchGet(org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse value) { if (rawBatchGetBuilder_ == null) { if (cmdCase_ == 14 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 14) { rawBatchGetBuilder_.mergeFrom(value); } rawBatchGetBuilder_.setMessage(value); } cmdCase_ = 14; return this; } /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public Builder clearRawBatchGet() { if (rawBatchGetBuilder_ == null) { if (cmdCase_ == 14) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 14) { cmdCase_ = 0; cmd_ = null; } rawBatchGetBuilder_.clear(); } return this; } /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.Builder getRawBatchGetBuilder() { return getRawBatchGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetResponseOrBuilder getRawBatchGetOrBuilder() { if ((cmdCase_ == 14) && (rawBatchGetBuilder_ != null)) { return rawBatchGetBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 14) { return (org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchGetResponse RawBatchGet = 14; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse, org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchGetResponseOrBuilder> getRawBatchGetFieldBuilder() { if (rawBatchGetBuilder_ == null) { if (!(cmdCase_ == 14)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.getDefaultInstance(); } rawBatchGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse, org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchGetResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 14; onChanged();; return rawBatchGetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawPutResponse, org.tikv.kvproto.Kvrpcpb.RawPutResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawPutResponseOrBuilder> rawPutBuilder_; /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public boolean hasRawPut() { return cmdCase_ == 15; } /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public org.tikv.kvproto.Kvrpcpb.RawPutResponse getRawPut() { if (rawPutBuilder_ == null) { if (cmdCase_ == 15) { return (org.tikv.kvproto.Kvrpcpb.RawPutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawPutResponse.getDefaultInstance(); } else { if (cmdCase_ == 15) { return rawPutBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawPutResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public Builder setRawPut(org.tikv.kvproto.Kvrpcpb.RawPutResponse value) { if (rawPutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawPutBuilder_.setMessage(value); } cmdCase_ = 15; return this; } /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public Builder setRawPut( org.tikv.kvproto.Kvrpcpb.RawPutResponse.Builder builderForValue) { if (rawPutBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawPutBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 15; return this; } /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public Builder mergeRawPut(org.tikv.kvproto.Kvrpcpb.RawPutResponse value) { if (rawPutBuilder_ == null) { if (cmdCase_ == 15 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawPutResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawPutResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.RawPutResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 15) { rawPutBuilder_.mergeFrom(value); } rawPutBuilder_.setMessage(value); } cmdCase_ = 15; return this; } /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public Builder clearRawPut() { if (rawPutBuilder_ == null) { if (cmdCase_ == 15) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 15) { cmdCase_ = 0; cmd_ = null; } rawPutBuilder_.clear(); } return this; } /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public org.tikv.kvproto.Kvrpcpb.RawPutResponse.Builder getRawPutBuilder() { return getRawPutFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawPutResponse RawPut = 15; */ public org.tikv.kvproto.Kvrpcpb.RawPutResponseOrBuilder getRawPutOrBuilder() { if ((cmdCase_ == 15) && (rawPutBuilder_ != null)) { return rawPutBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 15) { return (org.tikv.kvproto.Kvrpcpb.RawPutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawPutResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawPutResponse RawPut = 15; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawPutResponse, org.tikv.kvproto.Kvrpcpb.RawPutResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawPutResponseOrBuilder> getRawPutFieldBuilder() { if (rawPutBuilder_ == null) { if (!(cmdCase_ == 15)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawPutResponse.getDefaultInstance(); } rawPutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawPutResponse, org.tikv.kvproto.Kvrpcpb.RawPutResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawPutResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawPutResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 15; onChanged();; return rawPutBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse, org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchPutResponseOrBuilder> rawBatchPutBuilder_; /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public boolean hasRawBatchPut() { return cmdCase_ == 16; } /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse getRawBatchPut() { if (rawBatchPutBuilder_ == null) { if (cmdCase_ == 16) { return (org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.getDefaultInstance(); } else { if (cmdCase_ == 16) { return rawBatchPutBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public Builder setRawBatchPut(org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse value) { if (rawBatchPutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawBatchPutBuilder_.setMessage(value); } cmdCase_ = 16; return this; } /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public Builder setRawBatchPut( org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.Builder builderForValue) { if (rawBatchPutBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawBatchPutBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 16; return this; } /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public Builder mergeRawBatchPut(org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse value) { if (rawBatchPutBuilder_ == null) { if (cmdCase_ == 16 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 16) { rawBatchPutBuilder_.mergeFrom(value); } rawBatchPutBuilder_.setMessage(value); } cmdCase_ = 16; return this; } /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public Builder clearRawBatchPut() { if (rawBatchPutBuilder_ == null) { if (cmdCase_ == 16) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 16) { cmdCase_ = 0; cmd_ = null; } rawBatchPutBuilder_.clear(); } return this; } /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.Builder getRawBatchPutBuilder() { return getRawBatchPutFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutResponseOrBuilder getRawBatchPutOrBuilder() { if ((cmdCase_ == 16) && (rawBatchPutBuilder_ != null)) { return rawBatchPutBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 16) { return (org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchPutResponse RawBatchPut = 16; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse, org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchPutResponseOrBuilder> getRawBatchPutFieldBuilder() { if (rawBatchPutBuilder_ == null) { if (!(cmdCase_ == 16)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.getDefaultInstance(); } rawBatchPutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse, org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchPutResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 16; onChanged();; return rawBatchPutBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteResponse, org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteResponseOrBuilder> rawDeleteBuilder_; /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public boolean hasRawDelete() { return cmdCase_ == 17; } /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteResponse getRawDelete() { if (rawDeleteBuilder_ == null) { if (cmdCase_ == 17) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.getDefaultInstance(); } else { if (cmdCase_ == 17) { return rawDeleteBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public Builder setRawDelete(org.tikv.kvproto.Kvrpcpb.RawDeleteResponse value) { if (rawDeleteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawDeleteBuilder_.setMessage(value); } cmdCase_ = 17; return this; } /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public Builder setRawDelete( org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.Builder builderForValue) { if (rawDeleteBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawDeleteBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 17; return this; } /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public Builder mergeRawDelete(org.tikv.kvproto.Kvrpcpb.RawDeleteResponse value) { if (rawDeleteBuilder_ == null) { if (cmdCase_ == 17 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 17) { rawDeleteBuilder_.mergeFrom(value); } rawDeleteBuilder_.setMessage(value); } cmdCase_ = 17; return this; } /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public Builder clearRawDelete() { if (rawDeleteBuilder_ == null) { if (cmdCase_ == 17) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 17) { cmdCase_ = 0; cmd_ = null; } rawDeleteBuilder_.clear(); } return this; } /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.Builder getRawDeleteBuilder() { return getRawDeleteFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteResponseOrBuilder getRawDeleteOrBuilder() { if ((cmdCase_ == 17) && (rawDeleteBuilder_ != null)) { return rawDeleteBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 17) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawDeleteResponse RawDelete = 17; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteResponse, org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteResponseOrBuilder> getRawDeleteFieldBuilder() { if (rawDeleteBuilder_ == null) { if (!(cmdCase_ == 17)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.getDefaultInstance(); } rawDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteResponse, org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 17; onChanged();; return rawDeleteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponseOrBuilder> rawBatchDeleteBuilder_; /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public boolean hasRawBatchDelete() { return cmdCase_ == 18; } /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse getRawBatchDelete() { if (rawBatchDeleteBuilder_ == null) { if (cmdCase_ == 18) { return (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.getDefaultInstance(); } else { if (cmdCase_ == 18) { return rawBatchDeleteBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public Builder setRawBatchDelete(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse value) { if (rawBatchDeleteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawBatchDeleteBuilder_.setMessage(value); } cmdCase_ = 18; return this; } /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public Builder setRawBatchDelete( org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.Builder builderForValue) { if (rawBatchDeleteBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawBatchDeleteBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 18; return this; } /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public Builder mergeRawBatchDelete(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse value) { if (rawBatchDeleteBuilder_ == null) { if (cmdCase_ == 18 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 18) { rawBatchDeleteBuilder_.mergeFrom(value); } rawBatchDeleteBuilder_.setMessage(value); } cmdCase_ = 18; return this; } /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public Builder clearRawBatchDelete() { if (rawBatchDeleteBuilder_ == null) { if (cmdCase_ == 18) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 18) { cmdCase_ = 0; cmd_ = null; } rawBatchDeleteBuilder_.clear(); } return this; } /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.Builder getRawBatchDeleteBuilder() { return getRawBatchDeleteFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponseOrBuilder getRawBatchDeleteOrBuilder() { if ((cmdCase_ == 18) && (rawBatchDeleteBuilder_ != null)) { return rawBatchDeleteBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 18) { return (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchDeleteResponse RawBatchDelete = 18; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponseOrBuilder> getRawBatchDeleteFieldBuilder() { if (rawBatchDeleteBuilder_ == null) { if (!(cmdCase_ == 18)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.getDefaultInstance(); } rawBatchDeleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 18; onChanged();; return rawBatchDeleteBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawScanResponse, org.tikv.kvproto.Kvrpcpb.RawScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawScanResponseOrBuilder> rawScanBuilder_; /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public boolean hasRawScan() { return cmdCase_ == 19; } /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public org.tikv.kvproto.Kvrpcpb.RawScanResponse getRawScan() { if (rawScanBuilder_ == null) { if (cmdCase_ == 19) { return (org.tikv.kvproto.Kvrpcpb.RawScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawScanResponse.getDefaultInstance(); } else { if (cmdCase_ == 19) { return rawScanBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawScanResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public Builder setRawScan(org.tikv.kvproto.Kvrpcpb.RawScanResponse value) { if (rawScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawScanBuilder_.setMessage(value); } cmdCase_ = 19; return this; } /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public Builder setRawScan( org.tikv.kvproto.Kvrpcpb.RawScanResponse.Builder builderForValue) { if (rawScanBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawScanBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 19; return this; } /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public Builder mergeRawScan(org.tikv.kvproto.Kvrpcpb.RawScanResponse value) { if (rawScanBuilder_ == null) { if (cmdCase_ == 19 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawScanResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawScanResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.RawScanResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 19) { rawScanBuilder_.mergeFrom(value); } rawScanBuilder_.setMessage(value); } cmdCase_ = 19; return this; } /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public Builder clearRawScan() { if (rawScanBuilder_ == null) { if (cmdCase_ == 19) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 19) { cmdCase_ = 0; cmd_ = null; } rawScanBuilder_.clear(); } return this; } /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public org.tikv.kvproto.Kvrpcpb.RawScanResponse.Builder getRawScanBuilder() { return getRawScanFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawScanResponse RawScan = 19; */ public org.tikv.kvproto.Kvrpcpb.RawScanResponseOrBuilder getRawScanOrBuilder() { if ((cmdCase_ == 19) && (rawScanBuilder_ != null)) { return rawScanBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 19) { return (org.tikv.kvproto.Kvrpcpb.RawScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawScanResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawScanResponse RawScan = 19; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawScanResponse, org.tikv.kvproto.Kvrpcpb.RawScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawScanResponseOrBuilder> getRawScanFieldBuilder() { if (rawScanBuilder_ == null) { if (!(cmdCase_ == 19)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawScanResponse.getDefaultInstance(); } rawScanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawScanResponse, org.tikv.kvproto.Kvrpcpb.RawScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawScanResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawScanResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 19; onChanged();; return rawScanBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponseOrBuilder> rawDeleteRangeBuilder_; /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public boolean hasRawDeleteRange() { return cmdCase_ == 20; } /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse getRawDeleteRange() { if (rawDeleteRangeBuilder_ == null) { if (cmdCase_ == 20) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.getDefaultInstance(); } else { if (cmdCase_ == 20) { return rawDeleteRangeBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public Builder setRawDeleteRange(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse value) { if (rawDeleteRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawDeleteRangeBuilder_.setMessage(value); } cmdCase_ = 20; return this; } /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public Builder setRawDeleteRange( org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.Builder builderForValue) { if (rawDeleteRangeBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawDeleteRangeBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 20; return this; } /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public Builder mergeRawDeleteRange(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse value) { if (rawDeleteRangeBuilder_ == null) { if (cmdCase_ == 20 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 20) { rawDeleteRangeBuilder_.mergeFrom(value); } rawDeleteRangeBuilder_.setMessage(value); } cmdCase_ = 20; return this; } /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public Builder clearRawDeleteRange() { if (rawDeleteRangeBuilder_ == null) { if (cmdCase_ == 20) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 20) { cmdCase_ = 0; cmd_ = null; } rawDeleteRangeBuilder_.clear(); } return this; } /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.Builder getRawDeleteRangeBuilder() { return getRawDeleteRangeFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponseOrBuilder getRawDeleteRangeOrBuilder() { if ((cmdCase_ == 20) && (rawDeleteRangeBuilder_ != null)) { return rawDeleteRangeBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 20) { return (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawDeleteRangeResponse RawDeleteRange = 20; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponseOrBuilder> getRawDeleteRangeFieldBuilder() { if (rawDeleteRangeBuilder_ == null) { if (!(cmdCase_ == 20)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.getDefaultInstance(); } rawDeleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 20; onChanged();; return rawDeleteRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse, org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchScanResponseOrBuilder> rawBatchScanBuilder_; /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public boolean hasRawBatchScan() { return cmdCase_ == 21; } /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse getRawBatchScan() { if (rawBatchScanBuilder_ == null) { if (cmdCase_ == 21) { return (org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.getDefaultInstance(); } else { if (cmdCase_ == 21) { return rawBatchScanBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public Builder setRawBatchScan(org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse value) { if (rawBatchScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { rawBatchScanBuilder_.setMessage(value); } cmdCase_ = 21; return this; } /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public Builder setRawBatchScan( org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.Builder builderForValue) { if (rawBatchScanBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { rawBatchScanBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 21; return this; } /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public Builder mergeRawBatchScan(org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse value) { if (rawBatchScanBuilder_ == null) { if (cmdCase_ == 21 && cmd_ != org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 21) { rawBatchScanBuilder_.mergeFrom(value); } rawBatchScanBuilder_.setMessage(value); } cmdCase_ = 21; return this; } /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public Builder clearRawBatchScan() { if (rawBatchScanBuilder_ == null) { if (cmdCase_ == 21) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 21) { cmdCase_ = 0; cmd_ = null; } rawBatchScanBuilder_.clear(); } return this; } /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.Builder getRawBatchScanBuilder() { return getRawBatchScanFieldBuilder().getBuilder(); } /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanResponseOrBuilder getRawBatchScanOrBuilder() { if ((cmdCase_ == 21) && (rawBatchScanBuilder_ != null)) { return rawBatchScanBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 21) { return (org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.getDefaultInstance(); } } /** * .kvrpcpb.RawBatchScanResponse RawBatchScan = 21; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse, org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchScanResponseOrBuilder> getRawBatchScanFieldBuilder() { if (rawBatchScanBuilder_ == null) { if (!(cmdCase_ == 21)) { cmd_ = org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.getDefaultInstance(); } rawBatchScanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse, org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.RawBatchScanResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 21; onChanged();; return rawBatchScanBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Coprocessor.Response, org.tikv.kvproto.Coprocessor.Response.Builder, org.tikv.kvproto.Coprocessor.ResponseOrBuilder> coprocessorBuilder_; /** * .coprocessor.Response Coprocessor = 22; */ public boolean hasCoprocessor() { return cmdCase_ == 22; } /** * .coprocessor.Response Coprocessor = 22; */ public org.tikv.kvproto.Coprocessor.Response getCoprocessor() { if (coprocessorBuilder_ == null) { if (cmdCase_ == 22) { return (org.tikv.kvproto.Coprocessor.Response) cmd_; } return org.tikv.kvproto.Coprocessor.Response.getDefaultInstance(); } else { if (cmdCase_ == 22) { return coprocessorBuilder_.getMessage(); } return org.tikv.kvproto.Coprocessor.Response.getDefaultInstance(); } } /** * .coprocessor.Response Coprocessor = 22; */ public Builder setCoprocessor(org.tikv.kvproto.Coprocessor.Response value) { if (coprocessorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { coprocessorBuilder_.setMessage(value); } cmdCase_ = 22; return this; } /** * .coprocessor.Response Coprocessor = 22; */ public Builder setCoprocessor( org.tikv.kvproto.Coprocessor.Response.Builder builderForValue) { if (coprocessorBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { coprocessorBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 22; return this; } /** * .coprocessor.Response Coprocessor = 22; */ public Builder mergeCoprocessor(org.tikv.kvproto.Coprocessor.Response value) { if (coprocessorBuilder_ == null) { if (cmdCase_ == 22 && cmd_ != org.tikv.kvproto.Coprocessor.Response.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Coprocessor.Response.newBuilder((org.tikv.kvproto.Coprocessor.Response) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 22) { coprocessorBuilder_.mergeFrom(value); } coprocessorBuilder_.setMessage(value); } cmdCase_ = 22; return this; } /** * .coprocessor.Response Coprocessor = 22; */ public Builder clearCoprocessor() { if (coprocessorBuilder_ == null) { if (cmdCase_ == 22) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 22) { cmdCase_ = 0; cmd_ = null; } coprocessorBuilder_.clear(); } return this; } /** * .coprocessor.Response Coprocessor = 22; */ public org.tikv.kvproto.Coprocessor.Response.Builder getCoprocessorBuilder() { return getCoprocessorFieldBuilder().getBuilder(); } /** * .coprocessor.Response Coprocessor = 22; */ public org.tikv.kvproto.Coprocessor.ResponseOrBuilder getCoprocessorOrBuilder() { if ((cmdCase_ == 22) && (coprocessorBuilder_ != null)) { return coprocessorBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 22) { return (org.tikv.kvproto.Coprocessor.Response) cmd_; } return org.tikv.kvproto.Coprocessor.Response.getDefaultInstance(); } } /** * .coprocessor.Response Coprocessor = 22; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Coprocessor.Response, org.tikv.kvproto.Coprocessor.Response.Builder, org.tikv.kvproto.Coprocessor.ResponseOrBuilder> getCoprocessorFieldBuilder() { if (coprocessorBuilder_ == null) { if (!(cmdCase_ == 22)) { cmd_ = org.tikv.kvproto.Coprocessor.Response.getDefaultInstance(); } coprocessorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Coprocessor.Response, org.tikv.kvproto.Coprocessor.Response.Builder, org.tikv.kvproto.Coprocessor.ResponseOrBuilder>( (org.tikv.kvproto.Coprocessor.Response) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 22; onChanged();; return coprocessorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse, org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticLockResponseOrBuilder> pessimisticLockBuilder_; /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public boolean hasPessimisticLock() { return cmdCase_ == 23; } /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse getPessimisticLock() { if (pessimisticLockBuilder_ == null) { if (cmdCase_ == 23) { return (org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.getDefaultInstance(); } else { if (cmdCase_ == 23) { return pessimisticLockBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.getDefaultInstance(); } } /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public Builder setPessimisticLock(org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse value) { if (pessimisticLockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { pessimisticLockBuilder_.setMessage(value); } cmdCase_ = 23; return this; } /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public Builder setPessimisticLock( org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.Builder builderForValue) { if (pessimisticLockBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { pessimisticLockBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 23; return this; } /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public Builder mergePessimisticLock(org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse value) { if (pessimisticLockBuilder_ == null) { if (cmdCase_ == 23 && cmd_ != org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 23) { pessimisticLockBuilder_.mergeFrom(value); } pessimisticLockBuilder_.setMessage(value); } cmdCase_ = 23; return this; } /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public Builder clearPessimisticLock() { if (pessimisticLockBuilder_ == null) { if (cmdCase_ == 23) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 23) { cmdCase_ = 0; cmd_ = null; } pessimisticLockBuilder_.clear(); } return this; } /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.Builder getPessimisticLockBuilder() { return getPessimisticLockFieldBuilder().getBuilder(); } /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockResponseOrBuilder getPessimisticLockOrBuilder() { if ((cmdCase_ == 23) && (pessimisticLockBuilder_ != null)) { return pessimisticLockBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 23) { return (org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.getDefaultInstance(); } } /** * .kvrpcpb.PessimisticLockResponse PessimisticLock = 23; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse, org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticLockResponseOrBuilder> getPessimisticLockFieldBuilder() { if (pessimisticLockBuilder_ == null) { if (!(cmdCase_ == 23)) { cmd_ = org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.getDefaultInstance(); } pessimisticLockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse, org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticLockResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 23; onChanged();; return pessimisticLockBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponseOrBuilder> pessimisticRollbackBuilder_; /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public boolean hasPessimisticRollback() { return cmdCase_ == 24; } /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse getPessimisticRollback() { if (pessimisticRollbackBuilder_ == null) { if (cmdCase_ == 24) { return (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.getDefaultInstance(); } else { if (cmdCase_ == 24) { return pessimisticRollbackBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.getDefaultInstance(); } } /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public Builder setPessimisticRollback(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse value) { if (pessimisticRollbackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { pessimisticRollbackBuilder_.setMessage(value); } cmdCase_ = 24; return this; } /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public Builder setPessimisticRollback( org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.Builder builderForValue) { if (pessimisticRollbackBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { pessimisticRollbackBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 24; return this; } /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public Builder mergePessimisticRollback(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse value) { if (pessimisticRollbackBuilder_ == null) { if (cmdCase_ == 24 && cmd_ != org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 24) { pessimisticRollbackBuilder_.mergeFrom(value); } pessimisticRollbackBuilder_.setMessage(value); } cmdCase_ = 24; return this; } /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public Builder clearPessimisticRollback() { if (pessimisticRollbackBuilder_ == null) { if (cmdCase_ == 24) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 24) { cmdCase_ = 0; cmd_ = null; } pessimisticRollbackBuilder_.clear(); } return this; } /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.Builder getPessimisticRollbackBuilder() { return getPessimisticRollbackFieldBuilder().getBuilder(); } /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponseOrBuilder getPessimisticRollbackOrBuilder() { if ((cmdCase_ == 24) && (pessimisticRollbackBuilder_ != null)) { return pessimisticRollbackBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 24) { return (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.getDefaultInstance(); } } /** * .kvrpcpb.PessimisticRollbackResponse PessimisticRollback = 24; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponseOrBuilder> getPessimisticRollbackFieldBuilder() { if (pessimisticRollbackBuilder_ == null) { if (!(cmdCase_ == 24)) { cmd_ = org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.getDefaultInstance(); } pessimisticRollbackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.Builder, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 24; onChanged();; return pessimisticRollbackBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.Builder, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponseOrBuilder> checkTxnStatusBuilder_; /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public boolean hasCheckTxnStatus() { return cmdCase_ == 25; } /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse getCheckTxnStatus() { if (checkTxnStatusBuilder_ == null) { if (cmdCase_ == 25) { return (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.getDefaultInstance(); } else { if (cmdCase_ == 25) { return checkTxnStatusBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.getDefaultInstance(); } } /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public Builder setCheckTxnStatus(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse value) { if (checkTxnStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { checkTxnStatusBuilder_.setMessage(value); } cmdCase_ = 25; return this; } /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public Builder setCheckTxnStatus( org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.Builder builderForValue) { if (checkTxnStatusBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { checkTxnStatusBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 25; return this; } /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public Builder mergeCheckTxnStatus(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse value) { if (checkTxnStatusBuilder_ == null) { if (cmdCase_ == 25 && cmd_ != org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 25) { checkTxnStatusBuilder_.mergeFrom(value); } checkTxnStatusBuilder_.setMessage(value); } cmdCase_ = 25; return this; } /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public Builder clearCheckTxnStatus() { if (checkTxnStatusBuilder_ == null) { if (cmdCase_ == 25) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 25) { cmdCase_ = 0; cmd_ = null; } checkTxnStatusBuilder_.clear(); } return this; } /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.Builder getCheckTxnStatusBuilder() { return getCheckTxnStatusFieldBuilder().getBuilder(); } /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponseOrBuilder getCheckTxnStatusOrBuilder() { if ((cmdCase_ == 25) && (checkTxnStatusBuilder_ != null)) { return checkTxnStatusBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 25) { return (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.getDefaultInstance(); } } /** * .kvrpcpb.CheckTxnStatusResponse CheckTxnStatus = 25; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.Builder, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponseOrBuilder> getCheckTxnStatusFieldBuilder() { if (checkTxnStatusBuilder_ == null) { if (!(cmdCase_ == 25)) { cmd_ = org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.getDefaultInstance(); } checkTxnStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.Builder, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 25; onChanged();; return checkTxnStatusBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.Builder, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponseOrBuilder> txnHeartBeatBuilder_; /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public boolean hasTxnHeartBeat() { return cmdCase_ == 26; } /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse getTxnHeartBeat() { if (txnHeartBeatBuilder_ == null) { if (cmdCase_ == 26) { return (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.getDefaultInstance(); } else { if (cmdCase_ == 26) { return txnHeartBeatBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.getDefaultInstance(); } } /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public Builder setTxnHeartBeat(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse value) { if (txnHeartBeatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { txnHeartBeatBuilder_.setMessage(value); } cmdCase_ = 26; return this; } /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public Builder setTxnHeartBeat( org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.Builder builderForValue) { if (txnHeartBeatBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { txnHeartBeatBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 26; return this; } /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public Builder mergeTxnHeartBeat(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse value) { if (txnHeartBeatBuilder_ == null) { if (cmdCase_ == 26 && cmd_ != org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 26) { txnHeartBeatBuilder_.mergeFrom(value); } txnHeartBeatBuilder_.setMessage(value); } cmdCase_ = 26; return this; } /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public Builder clearTxnHeartBeat() { if (txnHeartBeatBuilder_ == null) { if (cmdCase_ == 26) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 26) { cmdCase_ = 0; cmd_ = null; } txnHeartBeatBuilder_.clear(); } return this; } /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.Builder getTxnHeartBeatBuilder() { return getTxnHeartBeatFieldBuilder().getBuilder(); } /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponseOrBuilder getTxnHeartBeatOrBuilder() { if ((cmdCase_ == 26) && (txnHeartBeatBuilder_ != null)) { return txnHeartBeatBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 26) { return (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.getDefaultInstance(); } } /** * .kvrpcpb.TxnHeartBeatResponse TxnHeartBeat = 26; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.Builder, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponseOrBuilder> getTxnHeartBeatFieldBuilder() { if (txnHeartBeatBuilder_ == null) { if (!(cmdCase_ == 26)) { cmd_ = org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.getDefaultInstance(); } txnHeartBeatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.Builder, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 26; onChanged();; return txnHeartBeatBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerGetResponse, org.tikv.kvproto.Kvrpcpb.VerGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerGetResponseOrBuilder> verGetBuilder_; /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public boolean hasVerGet() { return cmdCase_ == 27; } /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public org.tikv.kvproto.Kvrpcpb.VerGetResponse getVerGet() { if (verGetBuilder_ == null) { if (cmdCase_ == 27) { return (org.tikv.kvproto.Kvrpcpb.VerGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerGetResponse.getDefaultInstance(); } else { if (cmdCase_ == 27) { return verGetBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerGetResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public Builder setVerGet(org.tikv.kvproto.Kvrpcpb.VerGetResponse value) { if (verGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verGetBuilder_.setMessage(value); } cmdCase_ = 27; return this; } /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public Builder setVerGet( org.tikv.kvproto.Kvrpcpb.VerGetResponse.Builder builderForValue) { if (verGetBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verGetBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 27; return this; } /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public Builder mergeVerGet(org.tikv.kvproto.Kvrpcpb.VerGetResponse value) { if (verGetBuilder_ == null) { if (cmdCase_ == 27 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerGetResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerGetResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.VerGetResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 27) { verGetBuilder_.mergeFrom(value); } verGetBuilder_.setMessage(value); } cmdCase_ = 27; return this; } /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public Builder clearVerGet() { if (verGetBuilder_ == null) { if (cmdCase_ == 27) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 27) { cmdCase_ = 0; cmd_ = null; } verGetBuilder_.clear(); } return this; } /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public org.tikv.kvproto.Kvrpcpb.VerGetResponse.Builder getVerGetBuilder() { return getVerGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerGetResponse VerGet = 27; */ public org.tikv.kvproto.Kvrpcpb.VerGetResponseOrBuilder getVerGetOrBuilder() { if ((cmdCase_ == 27) && (verGetBuilder_ != null)) { return verGetBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 27) { return (org.tikv.kvproto.Kvrpcpb.VerGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerGetResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerGetResponse VerGet = 27; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerGetResponse, org.tikv.kvproto.Kvrpcpb.VerGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerGetResponseOrBuilder> getVerGetFieldBuilder() { if (verGetBuilder_ == null) { if (!(cmdCase_ == 27)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerGetResponse.getDefaultInstance(); } verGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerGetResponse, org.tikv.kvproto.Kvrpcpb.VerGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerGetResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerGetResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 27; onChanged();; return verGetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse, org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchGetResponseOrBuilder> verBatchGetBuilder_; /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public boolean hasVerBatchGet() { return cmdCase_ == 28; } /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse getVerBatchGet() { if (verBatchGetBuilder_ == null) { if (cmdCase_ == 28) { return (org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.getDefaultInstance(); } else { if (cmdCase_ == 28) { return verBatchGetBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public Builder setVerBatchGet(org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse value) { if (verBatchGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verBatchGetBuilder_.setMessage(value); } cmdCase_ = 28; return this; } /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public Builder setVerBatchGet( org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.Builder builderForValue) { if (verBatchGetBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verBatchGetBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 28; return this; } /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public Builder mergeVerBatchGet(org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse value) { if (verBatchGetBuilder_ == null) { if (cmdCase_ == 28 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 28) { verBatchGetBuilder_.mergeFrom(value); } verBatchGetBuilder_.setMessage(value); } cmdCase_ = 28; return this; } /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public Builder clearVerBatchGet() { if (verBatchGetBuilder_ == null) { if (cmdCase_ == 28) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 28) { cmdCase_ = 0; cmd_ = null; } verBatchGetBuilder_.clear(); } return this; } /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.Builder getVerBatchGetBuilder() { return getVerBatchGetFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetResponseOrBuilder getVerBatchGetOrBuilder() { if ((cmdCase_ == 28) && (verBatchGetBuilder_ != null)) { return verBatchGetBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 28) { return (org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerBatchGetResponse VerBatchGet = 28; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse, org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchGetResponseOrBuilder> getVerBatchGetFieldBuilder() { if (verBatchGetBuilder_ == null) { if (!(cmdCase_ == 28)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.getDefaultInstance(); } verBatchGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse, org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchGetResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 28; onChanged();; return verBatchGetBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutResponse, org.tikv.kvproto.Kvrpcpb.VerMutResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerMutResponseOrBuilder> verMutBuilder_; /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public boolean hasVerMut() { return cmdCase_ == 29; } /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public org.tikv.kvproto.Kvrpcpb.VerMutResponse getVerMut() { if (verMutBuilder_ == null) { if (cmdCase_ == 29) { return (org.tikv.kvproto.Kvrpcpb.VerMutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerMutResponse.getDefaultInstance(); } else { if (cmdCase_ == 29) { return verMutBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerMutResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public Builder setVerMut(org.tikv.kvproto.Kvrpcpb.VerMutResponse value) { if (verMutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verMutBuilder_.setMessage(value); } cmdCase_ = 29; return this; } /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public Builder setVerMut( org.tikv.kvproto.Kvrpcpb.VerMutResponse.Builder builderForValue) { if (verMutBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verMutBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 29; return this; } /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public Builder mergeVerMut(org.tikv.kvproto.Kvrpcpb.VerMutResponse value) { if (verMutBuilder_ == null) { if (cmdCase_ == 29 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerMutResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerMutResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.VerMutResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 29) { verMutBuilder_.mergeFrom(value); } verMutBuilder_.setMessage(value); } cmdCase_ = 29; return this; } /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public Builder clearVerMut() { if (verMutBuilder_ == null) { if (cmdCase_ == 29) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 29) { cmdCase_ = 0; cmd_ = null; } verMutBuilder_.clear(); } return this; } /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public org.tikv.kvproto.Kvrpcpb.VerMutResponse.Builder getVerMutBuilder() { return getVerMutFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerMutResponse VerMut = 29; */ public org.tikv.kvproto.Kvrpcpb.VerMutResponseOrBuilder getVerMutOrBuilder() { if ((cmdCase_ == 29) && (verMutBuilder_ != null)) { return verMutBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 29) { return (org.tikv.kvproto.Kvrpcpb.VerMutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerMutResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerMutResponse VerMut = 29; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutResponse, org.tikv.kvproto.Kvrpcpb.VerMutResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerMutResponseOrBuilder> getVerMutFieldBuilder() { if (verMutBuilder_ == null) { if (!(cmdCase_ == 29)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerMutResponse.getDefaultInstance(); } verMutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutResponse, org.tikv.kvproto.Kvrpcpb.VerMutResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerMutResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerMutResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 29; onChanged();; return verMutBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse, org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchMutResponseOrBuilder> verBatchMutBuilder_; /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public boolean hasVerBatchMut() { return cmdCase_ == 30; } /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse getVerBatchMut() { if (verBatchMutBuilder_ == null) { if (cmdCase_ == 30) { return (org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.getDefaultInstance(); } else { if (cmdCase_ == 30) { return verBatchMutBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public Builder setVerBatchMut(org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse value) { if (verBatchMutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verBatchMutBuilder_.setMessage(value); } cmdCase_ = 30; return this; } /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public Builder setVerBatchMut( org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.Builder builderForValue) { if (verBatchMutBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verBatchMutBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 30; return this; } /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public Builder mergeVerBatchMut(org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse value) { if (verBatchMutBuilder_ == null) { if (cmdCase_ == 30 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 30) { verBatchMutBuilder_.mergeFrom(value); } verBatchMutBuilder_.setMessage(value); } cmdCase_ = 30; return this; } /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public Builder clearVerBatchMut() { if (verBatchMutBuilder_ == null) { if (cmdCase_ == 30) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 30) { cmdCase_ = 0; cmd_ = null; } verBatchMutBuilder_.clear(); } return this; } /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.Builder getVerBatchMutBuilder() { return getVerBatchMutFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutResponseOrBuilder getVerBatchMutOrBuilder() { if ((cmdCase_ == 30) && (verBatchMutBuilder_ != null)) { return verBatchMutBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 30) { return (org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerBatchMutResponse VerBatchMut = 30; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse, org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchMutResponseOrBuilder> getVerBatchMutFieldBuilder() { if (verBatchMutBuilder_ == null) { if (!(cmdCase_ == 30)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.getDefaultInstance(); } verBatchMutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse, org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerBatchMutResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 30; onChanged();; return verBatchMutBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerScanResponse, org.tikv.kvproto.Kvrpcpb.VerScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerScanResponseOrBuilder> verScanBuilder_; /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public boolean hasVerScan() { return cmdCase_ == 31; } /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public org.tikv.kvproto.Kvrpcpb.VerScanResponse getVerScan() { if (verScanBuilder_ == null) { if (cmdCase_ == 31) { return (org.tikv.kvproto.Kvrpcpb.VerScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerScanResponse.getDefaultInstance(); } else { if (cmdCase_ == 31) { return verScanBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerScanResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public Builder setVerScan(org.tikv.kvproto.Kvrpcpb.VerScanResponse value) { if (verScanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verScanBuilder_.setMessage(value); } cmdCase_ = 31; return this; } /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public Builder setVerScan( org.tikv.kvproto.Kvrpcpb.VerScanResponse.Builder builderForValue) { if (verScanBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verScanBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 31; return this; } /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public Builder mergeVerScan(org.tikv.kvproto.Kvrpcpb.VerScanResponse value) { if (verScanBuilder_ == null) { if (cmdCase_ == 31 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerScanResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerScanResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.VerScanResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 31) { verScanBuilder_.mergeFrom(value); } verScanBuilder_.setMessage(value); } cmdCase_ = 31; return this; } /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public Builder clearVerScan() { if (verScanBuilder_ == null) { if (cmdCase_ == 31) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 31) { cmdCase_ = 0; cmd_ = null; } verScanBuilder_.clear(); } return this; } /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public org.tikv.kvproto.Kvrpcpb.VerScanResponse.Builder getVerScanBuilder() { return getVerScanFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerScanResponse VerScan = 31; */ public org.tikv.kvproto.Kvrpcpb.VerScanResponseOrBuilder getVerScanOrBuilder() { if ((cmdCase_ == 31) && (verScanBuilder_ != null)) { return verScanBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 31) { return (org.tikv.kvproto.Kvrpcpb.VerScanResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerScanResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerScanResponse VerScan = 31; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerScanResponse, org.tikv.kvproto.Kvrpcpb.VerScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerScanResponseOrBuilder> getVerScanFieldBuilder() { if (verScanBuilder_ == null) { if (!(cmdCase_ == 31)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerScanResponse.getDefaultInstance(); } verScanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerScanResponse, org.tikv.kvproto.Kvrpcpb.VerScanResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerScanResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerScanResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 31; onChanged();; return verScanBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponseOrBuilder> verDeleteRangeBuilder_; /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public boolean hasVerDeleteRange() { return cmdCase_ == 32; } /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse getVerDeleteRange() { if (verDeleteRangeBuilder_ == null) { if (cmdCase_ == 32) { return (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.getDefaultInstance(); } else { if (cmdCase_ == 32) { return verDeleteRangeBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public Builder setVerDeleteRange(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse value) { if (verDeleteRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { verDeleteRangeBuilder_.setMessage(value); } cmdCase_ = 32; return this; } /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public Builder setVerDeleteRange( org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.Builder builderForValue) { if (verDeleteRangeBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { verDeleteRangeBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 32; return this; } /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public Builder mergeVerDeleteRange(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse value) { if (verDeleteRangeBuilder_ == null) { if (cmdCase_ == 32 && cmd_ != org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 32) { verDeleteRangeBuilder_.mergeFrom(value); } verDeleteRangeBuilder_.setMessage(value); } cmdCase_ = 32; return this; } /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public Builder clearVerDeleteRange() { if (verDeleteRangeBuilder_ == null) { if (cmdCase_ == 32) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 32) { cmdCase_ = 0; cmd_ = null; } verDeleteRangeBuilder_.clear(); } return this; } /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.Builder getVerDeleteRangeBuilder() { return getVerDeleteRangeFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponseOrBuilder getVerDeleteRangeOrBuilder() { if ((cmdCase_ == 32) && (verDeleteRangeBuilder_ != null)) { return verDeleteRangeBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 32) { return (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.getDefaultInstance(); } } /** * .kvrpcpb.VerDeleteRangeResponse VerDeleteRange = 32; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponseOrBuilder> getVerDeleteRangeFieldBuilder() { if (verDeleteRangeBuilder_ == null) { if (!(cmdCase_ == 32)) { cmd_ = org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.getDefaultInstance(); } verDeleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.Builder, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 32; onChanged();; return verDeleteRangeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.Builder, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponseOrBuilder> checkSecondaryLocksBuilder_; /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public boolean hasCheckSecondaryLocks() { return cmdCase_ == 33; } /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse getCheckSecondaryLocks() { if (checkSecondaryLocksBuilder_ == null) { if (cmdCase_ == 33) { return (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.getDefaultInstance(); } else { if (cmdCase_ == 33) { return checkSecondaryLocksBuilder_.getMessage(); } return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.getDefaultInstance(); } } /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public Builder setCheckSecondaryLocks(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse value) { if (checkSecondaryLocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { checkSecondaryLocksBuilder_.setMessage(value); } cmdCase_ = 33; return this; } /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public Builder setCheckSecondaryLocks( org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.Builder builderForValue) { if (checkSecondaryLocksBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { checkSecondaryLocksBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 33; return this; } /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public Builder mergeCheckSecondaryLocks(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse value) { if (checkSecondaryLocksBuilder_ == null) { if (cmdCase_ == 33 && cmd_ != org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.newBuilder((org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 33) { checkSecondaryLocksBuilder_.mergeFrom(value); } checkSecondaryLocksBuilder_.setMessage(value); } cmdCase_ = 33; return this; } /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public Builder clearCheckSecondaryLocks() { if (checkSecondaryLocksBuilder_ == null) { if (cmdCase_ == 33) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 33) { cmdCase_ = 0; cmd_ = null; } checkSecondaryLocksBuilder_.clear(); } return this; } /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.Builder getCheckSecondaryLocksBuilder() { return getCheckSecondaryLocksFieldBuilder().getBuilder(); } /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponseOrBuilder getCheckSecondaryLocksOrBuilder() { if ((cmdCase_ == 33) && (checkSecondaryLocksBuilder_ != null)) { return checkSecondaryLocksBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 33) { return (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) cmd_; } return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.getDefaultInstance(); } } /** * .kvrpcpb.CheckSecondaryLocksResponse CheckSecondaryLocks = 33; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.Builder, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponseOrBuilder> getCheckSecondaryLocksFieldBuilder() { if (checkSecondaryLocksBuilder_ == null) { if (!(cmdCase_ == 33)) { cmd_ = org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.getDefaultInstance(); } checkSecondaryLocksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.Builder, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponseOrBuilder>( (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 33; onChanged();; return checkSecondaryLocksBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse, org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.Builder, org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponseOrBuilder> coprocessorV2Builder_; /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public boolean hasCoprocessorV2() { return cmdCase_ == 34; } /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse getCoprocessorV2() { if (coprocessorV2Builder_ == null) { if (cmdCase_ == 34) { return (org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) cmd_; } return org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.getDefaultInstance(); } else { if (cmdCase_ == 34) { return coprocessorV2Builder_.getMessage(); } return org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.getDefaultInstance(); } } /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public Builder setCoprocessorV2(org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse value) { if (coprocessorV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { coprocessorV2Builder_.setMessage(value); } cmdCase_ = 34; return this; } /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public Builder setCoprocessorV2( org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.Builder builderForValue) { if (coprocessorV2Builder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { coprocessorV2Builder_.setMessage(builderForValue.build()); } cmdCase_ = 34; return this; } /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public Builder mergeCoprocessorV2(org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse value) { if (coprocessorV2Builder_ == null) { if (cmdCase_ == 34 && cmd_ != org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.newBuilder((org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 34) { coprocessorV2Builder_.mergeFrom(value); } coprocessorV2Builder_.setMessage(value); } cmdCase_ = 34; return this; } /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public Builder clearCoprocessorV2() { if (coprocessorV2Builder_ == null) { if (cmdCase_ == 34) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 34) { cmdCase_ = 0; cmd_ = null; } coprocessorV2Builder_.clear(); } return this; } /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.Builder getCoprocessorV2Builder() { return getCoprocessorV2FieldBuilder().getBuilder(); } /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponseOrBuilder getCoprocessorV2OrBuilder() { if ((cmdCase_ == 34) && (coprocessorV2Builder_ != null)) { return coprocessorV2Builder_.getMessageOrBuilder(); } else { if (cmdCase_ == 34) { return (org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) cmd_; } return org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.getDefaultInstance(); } } /** * .coprocessor_v2.RawCoprocessorResponse CoprocessorV2 = 34; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse, org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.Builder, org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponseOrBuilder> getCoprocessorV2FieldBuilder() { if (coprocessorV2Builder_ == null) { if (!(cmdCase_ == 34)) { cmd_ = org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.getDefaultInstance(); } coprocessorV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse, org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.Builder, org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponseOrBuilder>( (org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 34; onChanged();; return coprocessorV2Builder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponseOrBuilder> emptyBuilder_; /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public boolean hasEmpty() { return cmdCase_ == 255; } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse getEmpty() { if (emptyBuilder_ == null) { if (cmdCase_ == 255) { return (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) cmd_; } return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.getDefaultInstance(); } else { if (cmdCase_ == 255) { return emptyBuilder_.getMessage(); } return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.getDefaultInstance(); } } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public Builder setEmpty(org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse value) { if (emptyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cmd_ = value; onChanged(); } else { emptyBuilder_.setMessage(value); } cmdCase_ = 255; return this; } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public Builder setEmpty( org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.Builder builderForValue) { if (emptyBuilder_ == null) { cmd_ = builderForValue.build(); onChanged(); } else { emptyBuilder_.setMessage(builderForValue.build()); } cmdCase_ = 255; return this; } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public Builder mergeEmpty(org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse value) { if (emptyBuilder_ == null) { if (cmdCase_ == 255 && cmd_ != org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.getDefaultInstance()) { cmd_ = org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.newBuilder((org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) cmd_) .mergeFrom(value).buildPartial(); } else { cmd_ = value; } onChanged(); } else { if (cmdCase_ == 255) { emptyBuilder_.mergeFrom(value); } emptyBuilder_.setMessage(value); } cmdCase_ = 255; return this; } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public Builder clearEmpty() { if (emptyBuilder_ == null) { if (cmdCase_ == 255) { cmdCase_ = 0; cmd_ = null; onChanged(); } } else { if (cmdCase_ == 255) { cmdCase_ = 0; cmd_ = null; } emptyBuilder_.clear(); } return this; } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.Builder getEmptyBuilder() { return getEmptyFieldBuilder().getBuilder(); } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponseOrBuilder getEmptyOrBuilder() { if ((cmdCase_ == 255) && (emptyBuilder_ != null)) { return emptyBuilder_.getMessageOrBuilder(); } else { if (cmdCase_ == 255) { return (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) cmd_; } return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.getDefaultInstance(); } } /** *
         * For some test cases.
         * 
* * .tikvpb.BatchCommandsEmptyResponse Empty = 255; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponseOrBuilder> getEmptyFieldBuilder() { if (emptyBuilder_ == null) { if (!(cmdCase_ == 255)) { cmd_ = org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.getDefaultInstance(); } emptyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponseOrBuilder>( (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) cmd_, getParentForChildren(), isClean()); cmd_ = null; } cmdCase_ = 255; onChanged();; return emptyBuilder_; } 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:tikvpb.BatchCommandsResponse.Response) } // @@protoc_insertion_point(class_scope:tikvpb.BatchCommandsResponse.Response) private static final org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response(); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Response(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.Tikvpb.BatchCommandsResponse.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public java.util.List getResponsesList() { return responses_; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public java.util.List getResponsesOrBuilderList() { return responses_; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public int getResponsesCount() { return responses_.size(); } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response getResponses(int index) { return responses_.get(index); } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.ResponseOrBuilder getResponsesOrBuilder( int index) { return responses_.get(index); } public static final int REQUEST_IDS_FIELD_NUMBER = 2; private java.util.List requestIds_; /** * repeated uint64 request_ids = 2; */ public java.util.List getRequestIdsList() { return requestIds_; } /** * repeated uint64 request_ids = 2; */ public int getRequestIdsCount() { return requestIds_.size(); } /** * repeated uint64 request_ids = 2; */ public long getRequestIds(int index) { return requestIds_.get(index); } private int requestIdsMemoizedSerializedSize = -1; public static final int TRANSPORT_LAYER_LOAD_FIELD_NUMBER = 3; private long transportLayerLoad_; /** *
     * 280 means TiKV gRPC cpu usage is 280%.
     * 
* * uint64 transport_layer_load = 3; */ public long getTransportLayerLoad() { return transportLayerLoad_; } 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 { getSerializedSize(); for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } if (getRequestIdsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(requestIdsMemoizedSerializedSize); } for (int i = 0; i < requestIds_.size(); i++) { output.writeUInt64NoTag(requestIds_.get(i)); } if (transportLayerLoad_ != 0L) { output.writeUInt64(3, transportLayerLoad_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < responses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, responses_.get(i)); } { int dataSize = 0; for (int i = 0; i < requestIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(requestIds_.get(i)); } size += dataSize; if (!getRequestIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } requestIdsMemoizedSerializedSize = dataSize; } if (transportLayerLoad_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, transportLayerLoad_); } 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.Tikvpb.BatchCommandsResponse)) { return super.equals(obj); } org.tikv.kvproto.Tikvpb.BatchCommandsResponse other = (org.tikv.kvproto.Tikvpb.BatchCommandsResponse) obj; boolean result = true; result = result && getResponsesList() .equals(other.getResponsesList()); result = result && getRequestIdsList() .equals(other.getRequestIdsList()); result = result && (getTransportLayerLoad() == other.getTransportLayerLoad()); 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 (getResponsesCount() > 0) { hash = (37 * hash) + RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getResponsesList().hashCode(); } if (getRequestIdsCount() > 0) { hash = (37 * hash) + REQUEST_IDS_FIELD_NUMBER; hash = (53 * hash) + getRequestIdsList().hashCode(); } hash = (37 * hash) + TRANSPORT_LAYER_LOAD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTransportLayerLoad()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse 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.Tikvpb.BatchCommandsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse 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.Tikvpb.BatchCommandsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse 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.Tikvpb.BatchCommandsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse 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.Tikvpb.BatchCommandsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse 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.Tikvpb.BatchCommandsResponse 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 tikvpb.BatchCommandsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tikvpb.BatchCommandsResponse) org.tikv.kvproto.Tikvpb.BatchCommandsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsResponse.class, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Builder.class); } // Construct using org.tikv.kvproto.Tikvpb.BatchCommandsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } public Builder clear() { super.clear(); if (responsesBuilder_ == null) { responses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { responsesBuilder_.clear(); } requestIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); transportLayerLoad_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsResponse_descriptor; } public org.tikv.kvproto.Tikvpb.BatchCommandsResponse getDefaultInstanceForType() { return org.tikv.kvproto.Tikvpb.BatchCommandsResponse.getDefaultInstance(); } public org.tikv.kvproto.Tikvpb.BatchCommandsResponse build() { org.tikv.kvproto.Tikvpb.BatchCommandsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Tikvpb.BatchCommandsResponse buildPartial() { org.tikv.kvproto.Tikvpb.BatchCommandsResponse result = new org.tikv.kvproto.Tikvpb.BatchCommandsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { responses_ = java.util.Collections.unmodifiableList(responses_); bitField0_ = (bitField0_ & ~0x00000001); } result.responses_ = responses_; } else { result.responses_ = responsesBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { requestIds_ = java.util.Collections.unmodifiableList(requestIds_); bitField0_ = (bitField0_ & ~0x00000002); } result.requestIds_ = requestIds_; result.transportLayerLoad_ = transportLayerLoad_; 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.Tikvpb.BatchCommandsResponse) { return mergeFrom((org.tikv.kvproto.Tikvpb.BatchCommandsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Tikvpb.BatchCommandsResponse other) { if (other == org.tikv.kvproto.Tikvpb.BatchCommandsResponse.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResponsesIsMutable(); responses_.addAll(other.responses_); } onChanged(); } } else { if (!other.responses_.isEmpty()) { if (responsesBuilder_.isEmpty()) { responsesBuilder_.dispose(); responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); responsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } } } if (!other.requestIds_.isEmpty()) { if (requestIds_.isEmpty()) { requestIds_ = other.requestIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRequestIdsIsMutable(); requestIds_.addAll(other.requestIds_); } onChanged(); } if (other.getTransportLayerLoad() != 0L) { setTransportLayerLoad(other.getTransportLayerLoad()); } 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.Tikvpb.BatchCommandsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Tikvpb.BatchCommandsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List responses_ = java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.ResponseOrBuilder> responsesBuilder_; /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { return responsesBuilder_.getMessageList(); } } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public int getResponsesCount() { if (responsesBuilder_ == null) { return responses_.size(); } else { return responsesBuilder_.getCount(); } } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response getResponses(int index) { if (responsesBuilder_ == null) { return responses_.get(index); } else { return responsesBuilder_.getMessage(index); } } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public Builder setResponses( int index, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.set(index, value); onChanged(); } else { responsesBuilder_.setMessage(index, value); } return this; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public Builder setResponses( int index, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); onChanged(); } else { responsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public Builder addResponses(org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.add(value); onChanged(); } else { responsesBuilder_.addMessage(value); } return this; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public Builder addResponses( int index, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.add(index, value); onChanged(); } else { responsesBuilder_.addMessage(index, value); } return this; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public Builder addResponses( org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(builderForValue.build()); onChanged(); } else { responsesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public Builder addResponses( int index, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); onChanged(); } else { responsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public Builder addAllResponses( java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); } return this; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public Builder clearResponses() { if (responsesBuilder_ == null) { responses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { responsesBuilder_.clear(); } return this; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public Builder removeResponses(int index) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.remove(index); onChanged(); } else { responsesBuilder_.remove(index); } return this; } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder getResponsesBuilder( int index) { return getResponsesFieldBuilder().getBuilder(index); } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.ResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public java.util.List getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(responses_); } } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder addResponsesBuilder() { return getResponsesFieldBuilder().addBuilder( org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.getDefaultInstance()); } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder addResponsesBuilder( int index) { return getResponsesFieldBuilder().addBuilder( index, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.getDefaultInstance()); } /** * repeated .tikvpb.BatchCommandsResponse.Response responses = 1; */ public java.util.List getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.ResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.Response.Builder, org.tikv.kvproto.Tikvpb.BatchCommandsResponse.ResponseOrBuilder>( responses_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } private java.util.List requestIds_ = java.util.Collections.emptyList(); private void ensureRequestIdsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { requestIds_ = new java.util.ArrayList(requestIds_); bitField0_ |= 0x00000002; } } /** * repeated uint64 request_ids = 2; */ public java.util.List getRequestIdsList() { return java.util.Collections.unmodifiableList(requestIds_); } /** * repeated uint64 request_ids = 2; */ public int getRequestIdsCount() { return requestIds_.size(); } /** * repeated uint64 request_ids = 2; */ public long getRequestIds(int index) { return requestIds_.get(index); } /** * repeated uint64 request_ids = 2; */ public Builder setRequestIds( int index, long value) { ensureRequestIdsIsMutable(); requestIds_.set(index, value); onChanged(); return this; } /** * repeated uint64 request_ids = 2; */ public Builder addRequestIds(long value) { ensureRequestIdsIsMutable(); requestIds_.add(value); onChanged(); return this; } /** * repeated uint64 request_ids = 2; */ public Builder addAllRequestIds( java.lang.Iterable values) { ensureRequestIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requestIds_); onChanged(); return this; } /** * repeated uint64 request_ids = 2; */ public Builder clearRequestIds() { requestIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private long transportLayerLoad_ ; /** *
       * 280 means TiKV gRPC cpu usage is 280%.
       * 
* * uint64 transport_layer_load = 3; */ public long getTransportLayerLoad() { return transportLayerLoad_; } /** *
       * 280 means TiKV gRPC cpu usage is 280%.
       * 
* * uint64 transport_layer_load = 3; */ public Builder setTransportLayerLoad(long value) { transportLayerLoad_ = value; onChanged(); return this; } /** *
       * 280 means TiKV gRPC cpu usage is 280%.
       * 
* * uint64 transport_layer_load = 3; */ public Builder clearTransportLayerLoad() { transportLayerLoad_ = 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:tikvpb.BatchCommandsResponse) } // @@protoc_insertion_point(class_scope:tikvpb.BatchCommandsResponse) private static final org.tikv.kvproto.Tikvpb.BatchCommandsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Tikvpb.BatchCommandsResponse(); } public static org.tikv.kvproto.Tikvpb.BatchCommandsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchCommandsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchCommandsResponse(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.Tikvpb.BatchCommandsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchRaftMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:tikvpb.BatchRaftMessage) com.google.protobuf.MessageOrBuilder { /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ java.util.List getMsgsList(); /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ org.tikv.kvproto.RaftServerpb.RaftMessage getMsgs(int index); /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ int getMsgsCount(); /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ java.util.List getMsgsOrBuilderList(); /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder getMsgsOrBuilder( int index); } /** * Protobuf type {@code tikvpb.BatchRaftMessage} */ public static final class BatchRaftMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tikvpb.BatchRaftMessage) BatchRaftMessageOrBuilder { private static final long serialVersionUID = 0L; // Use BatchRaftMessage.newBuilder() to construct. private BatchRaftMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchRaftMessage() { msgs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchRaftMessage( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { msgs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } msgs_.add( input.readMessage(org.tikv.kvproto.RaftServerpb.RaftMessage.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { msgs_ = java.util.Collections.unmodifiableList(msgs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchRaftMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchRaftMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchRaftMessage.class, org.tikv.kvproto.Tikvpb.BatchRaftMessage.Builder.class); } public static final int MSGS_FIELD_NUMBER = 1; private java.util.List msgs_; /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public java.util.List getMsgsList() { return msgs_; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public java.util.List getMsgsOrBuilderList() { return msgs_; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public int getMsgsCount() { return msgs_.size(); } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessage getMsgs(int index) { return msgs_.get(index); } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder getMsgsOrBuilder( int index) { return msgs_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < msgs_.size(); i++) { output.writeMessage(1, msgs_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < msgs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, msgs_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Tikvpb.BatchRaftMessage)) { return super.equals(obj); } org.tikv.kvproto.Tikvpb.BatchRaftMessage other = (org.tikv.kvproto.Tikvpb.BatchRaftMessage) obj; boolean result = true; result = result && getMsgsList() .equals(other.getMsgsList()); 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 (getMsgsCount() > 0) { hash = (37 * hash) + MSGS_FIELD_NUMBER; hash = (53 * hash) + getMsgsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Tikvpb.BatchRaftMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchRaftMessage 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.Tikvpb.BatchRaftMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchRaftMessage 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.Tikvpb.BatchRaftMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchRaftMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Tikvpb.BatchRaftMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchRaftMessage 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.Tikvpb.BatchRaftMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchRaftMessage 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.Tikvpb.BatchRaftMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchRaftMessage 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.Tikvpb.BatchRaftMessage 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 tikvpb.BatchRaftMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tikvpb.BatchRaftMessage) org.tikv.kvproto.Tikvpb.BatchRaftMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchRaftMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchRaftMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchRaftMessage.class, org.tikv.kvproto.Tikvpb.BatchRaftMessage.Builder.class); } // Construct using org.tikv.kvproto.Tikvpb.BatchRaftMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMsgsFieldBuilder(); } } public Builder clear() { super.clear(); if (msgsBuilder_ == null) { msgs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { msgsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchRaftMessage_descriptor; } public org.tikv.kvproto.Tikvpb.BatchRaftMessage getDefaultInstanceForType() { return org.tikv.kvproto.Tikvpb.BatchRaftMessage.getDefaultInstance(); } public org.tikv.kvproto.Tikvpb.BatchRaftMessage build() { org.tikv.kvproto.Tikvpb.BatchRaftMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Tikvpb.BatchRaftMessage buildPartial() { org.tikv.kvproto.Tikvpb.BatchRaftMessage result = new org.tikv.kvproto.Tikvpb.BatchRaftMessage(this); int from_bitField0_ = bitField0_; if (msgsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { msgs_ = java.util.Collections.unmodifiableList(msgs_); bitField0_ = (bitField0_ & ~0x00000001); } result.msgs_ = msgs_; } else { result.msgs_ = msgsBuilder_.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.Tikvpb.BatchRaftMessage) { return mergeFrom((org.tikv.kvproto.Tikvpb.BatchRaftMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Tikvpb.BatchRaftMessage other) { if (other == org.tikv.kvproto.Tikvpb.BatchRaftMessage.getDefaultInstance()) return this; if (msgsBuilder_ == null) { if (!other.msgs_.isEmpty()) { if (msgs_.isEmpty()) { msgs_ = other.msgs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMsgsIsMutable(); msgs_.addAll(other.msgs_); } onChanged(); } } else { if (!other.msgs_.isEmpty()) { if (msgsBuilder_.isEmpty()) { msgsBuilder_.dispose(); msgsBuilder_ = null; msgs_ = other.msgs_; bitField0_ = (bitField0_ & ~0x00000001); msgsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMsgsFieldBuilder() : null; } else { msgsBuilder_.addAllMessages(other.msgs_); } } } 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.Tikvpb.BatchRaftMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Tikvpb.BatchRaftMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List msgs_ = java.util.Collections.emptyList(); private void ensureMsgsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { msgs_ = new java.util.ArrayList(msgs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftServerpb.RaftMessage, org.tikv.kvproto.RaftServerpb.RaftMessage.Builder, org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder> msgsBuilder_; /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public java.util.List getMsgsList() { if (msgsBuilder_ == null) { return java.util.Collections.unmodifiableList(msgs_); } else { return msgsBuilder_.getMessageList(); } } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public int getMsgsCount() { if (msgsBuilder_ == null) { return msgs_.size(); } else { return msgsBuilder_.getCount(); } } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessage getMsgs(int index) { if (msgsBuilder_ == null) { return msgs_.get(index); } else { return msgsBuilder_.getMessage(index); } } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public Builder setMsgs( int index, org.tikv.kvproto.RaftServerpb.RaftMessage value) { if (msgsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMsgsIsMutable(); msgs_.set(index, value); onChanged(); } else { msgsBuilder_.setMessage(index, value); } return this; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public Builder setMsgs( int index, org.tikv.kvproto.RaftServerpb.RaftMessage.Builder builderForValue) { if (msgsBuilder_ == null) { ensureMsgsIsMutable(); msgs_.set(index, builderForValue.build()); onChanged(); } else { msgsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public Builder addMsgs(org.tikv.kvproto.RaftServerpb.RaftMessage value) { if (msgsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMsgsIsMutable(); msgs_.add(value); onChanged(); } else { msgsBuilder_.addMessage(value); } return this; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public Builder addMsgs( int index, org.tikv.kvproto.RaftServerpb.RaftMessage value) { if (msgsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMsgsIsMutable(); msgs_.add(index, value); onChanged(); } else { msgsBuilder_.addMessage(index, value); } return this; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public Builder addMsgs( org.tikv.kvproto.RaftServerpb.RaftMessage.Builder builderForValue) { if (msgsBuilder_ == null) { ensureMsgsIsMutable(); msgs_.add(builderForValue.build()); onChanged(); } else { msgsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public Builder addMsgs( int index, org.tikv.kvproto.RaftServerpb.RaftMessage.Builder builderForValue) { if (msgsBuilder_ == null) { ensureMsgsIsMutable(); msgs_.add(index, builderForValue.build()); onChanged(); } else { msgsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public Builder addAllMsgs( java.lang.Iterable values) { if (msgsBuilder_ == null) { ensureMsgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, msgs_); onChanged(); } else { msgsBuilder_.addAllMessages(values); } return this; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public Builder clearMsgs() { if (msgsBuilder_ == null) { msgs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { msgsBuilder_.clear(); } return this; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public Builder removeMsgs(int index) { if (msgsBuilder_ == null) { ensureMsgsIsMutable(); msgs_.remove(index); onChanged(); } else { msgsBuilder_.remove(index); } return this; } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessage.Builder getMsgsBuilder( int index) { return getMsgsFieldBuilder().getBuilder(index); } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder getMsgsOrBuilder( int index) { if (msgsBuilder_ == null) { return msgs_.get(index); } else { return msgsBuilder_.getMessageOrBuilder(index); } } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public java.util.List getMsgsOrBuilderList() { if (msgsBuilder_ != null) { return msgsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(msgs_); } } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessage.Builder addMsgsBuilder() { return getMsgsFieldBuilder().addBuilder( org.tikv.kvproto.RaftServerpb.RaftMessage.getDefaultInstance()); } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessage.Builder addMsgsBuilder( int index) { return getMsgsFieldBuilder().addBuilder( index, org.tikv.kvproto.RaftServerpb.RaftMessage.getDefaultInstance()); } /** * repeated .raft_serverpb.RaftMessage msgs = 1; */ public java.util.List getMsgsBuilderList() { return getMsgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftServerpb.RaftMessage, org.tikv.kvproto.RaftServerpb.RaftMessage.Builder, org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder> getMsgsFieldBuilder() { if (msgsBuilder_ == null) { msgsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftServerpb.RaftMessage, org.tikv.kvproto.RaftServerpb.RaftMessage.Builder, org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder>( msgs_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); msgs_ = null; } return msgsBuilder_; } 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:tikvpb.BatchRaftMessage) } // @@protoc_insertion_point(class_scope:tikvpb.BatchRaftMessage) private static final org.tikv.kvproto.Tikvpb.BatchRaftMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Tikvpb.BatchRaftMessage(); } public static org.tikv.kvproto.Tikvpb.BatchRaftMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchRaftMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchRaftMessage(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.Tikvpb.BatchRaftMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchCommandsEmptyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:tikvpb.BatchCommandsEmptyRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the test request.
     * 
* * uint64 test_id = 1; */ long getTestId(); /** *
     * TiKV needs to delay at least such a time to response the client.
     * 
* * uint64 delay_time = 2; */ long getDelayTime(); } /** * Protobuf type {@code tikvpb.BatchCommandsEmptyRequest} */ public static final class BatchCommandsEmptyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tikvpb.BatchCommandsEmptyRequest) BatchCommandsEmptyRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BatchCommandsEmptyRequest.newBuilder() to construct. private BatchCommandsEmptyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchCommandsEmptyRequest() { testId_ = 0L; delayTime_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchCommandsEmptyRequest( 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: { testId_ = input.readUInt64(); break; } case 16: { delayTime_ = input.readUInt64(); 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.Tikvpb.internal_static_tikvpb_BatchCommandsEmptyRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsEmptyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.class, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.Builder.class); } public static final int TEST_ID_FIELD_NUMBER = 1; private long testId_; /** *
     * ID of the test request.
     * 
* * uint64 test_id = 1; */ public long getTestId() { return testId_; } public static final int DELAY_TIME_FIELD_NUMBER = 2; private long delayTime_; /** *
     * TiKV needs to delay at least such a time to response the client.
     * 
* * uint64 delay_time = 2; */ public long getDelayTime() { return delayTime_; } 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 (testId_ != 0L) { output.writeUInt64(1, testId_); } if (delayTime_ != 0L) { output.writeUInt64(2, delayTime_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (testId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, testId_); } if (delayTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, delayTime_); } 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.Tikvpb.BatchCommandsEmptyRequest)) { return super.equals(obj); } org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest other = (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) obj; boolean result = true; result = result && (getTestId() == other.getTestId()); result = result && (getDelayTime() == other.getDelayTime()); 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) + TEST_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTestId()); hash = (37 * hash) + DELAY_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDelayTime()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest 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.Tikvpb.BatchCommandsEmptyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest 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.Tikvpb.BatchCommandsEmptyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest 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.Tikvpb.BatchCommandsEmptyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest 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.Tikvpb.BatchCommandsEmptyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest 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.Tikvpb.BatchCommandsEmptyRequest 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 tikvpb.BatchCommandsEmptyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tikvpb.BatchCommandsEmptyRequest) org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsEmptyRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsEmptyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.class, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.Builder.class); } // Construct using org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.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(); testId_ = 0L; delayTime_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsEmptyRequest_descriptor; } public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest getDefaultInstanceForType() { return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.getDefaultInstance(); } public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest build() { org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest buildPartial() { org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest result = new org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest(this); result.testId_ = testId_; result.delayTime_ = delayTime_; 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.Tikvpb.BatchCommandsEmptyRequest) { return mergeFrom((org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest other) { if (other == org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest.getDefaultInstance()) return this; if (other.getTestId() != 0L) { setTestId(other.getTestId()); } if (other.getDelayTime() != 0L) { setDelayTime(other.getDelayTime()); } 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.Tikvpb.BatchCommandsEmptyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long testId_ ; /** *
       * ID of the test request.
       * 
* * uint64 test_id = 1; */ public long getTestId() { return testId_; } /** *
       * ID of the test request.
       * 
* * uint64 test_id = 1; */ public Builder setTestId(long value) { testId_ = value; onChanged(); return this; } /** *
       * ID of the test request.
       * 
* * uint64 test_id = 1; */ public Builder clearTestId() { testId_ = 0L; onChanged(); return this; } private long delayTime_ ; /** *
       * TiKV needs to delay at least such a time to response the client.
       * 
* * uint64 delay_time = 2; */ public long getDelayTime() { return delayTime_; } /** *
       * TiKV needs to delay at least such a time to response the client.
       * 
* * uint64 delay_time = 2; */ public Builder setDelayTime(long value) { delayTime_ = value; onChanged(); return this; } /** *
       * TiKV needs to delay at least such a time to response the client.
       * 
* * uint64 delay_time = 2; */ public Builder clearDelayTime() { delayTime_ = 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:tikvpb.BatchCommandsEmptyRequest) } // @@protoc_insertion_point(class_scope:tikvpb.BatchCommandsEmptyRequest) private static final org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest(); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchCommandsEmptyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchCommandsEmptyRequest(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.Tikvpb.BatchCommandsEmptyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchCommandsEmptyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:tikvpb.BatchCommandsEmptyResponse) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the test request.
     * 
* * uint64 test_id = 1; */ long getTestId(); } /** * Protobuf type {@code tikvpb.BatchCommandsEmptyResponse} */ public static final class BatchCommandsEmptyResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tikvpb.BatchCommandsEmptyResponse) BatchCommandsEmptyResponseOrBuilder { private static final long serialVersionUID = 0L; // Use BatchCommandsEmptyResponse.newBuilder() to construct. private BatchCommandsEmptyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchCommandsEmptyResponse() { testId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchCommandsEmptyResponse( 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: { testId_ = input.readUInt64(); 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.Tikvpb.internal_static_tikvpb_BatchCommandsEmptyResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsEmptyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.class, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.Builder.class); } public static final int TEST_ID_FIELD_NUMBER = 1; private long testId_; /** *
     * ID of the test request.
     * 
* * uint64 test_id = 1; */ public long getTestId() { return testId_; } 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 (testId_ != 0L) { output.writeUInt64(1, testId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (testId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, testId_); } 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.Tikvpb.BatchCommandsEmptyResponse)) { return super.equals(obj); } org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse other = (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) obj; boolean result = true; result = result && (getTestId() == other.getTestId()); 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) + TEST_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTestId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse 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.Tikvpb.BatchCommandsEmptyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse 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.Tikvpb.BatchCommandsEmptyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse 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.Tikvpb.BatchCommandsEmptyResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse 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.Tikvpb.BatchCommandsEmptyResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse 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.Tikvpb.BatchCommandsEmptyResponse 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 tikvpb.BatchCommandsEmptyResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tikvpb.BatchCommandsEmptyResponse) org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsEmptyResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsEmptyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.class, org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.Builder.class); } // Construct using org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.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(); testId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Tikvpb.internal_static_tikvpb_BatchCommandsEmptyResponse_descriptor; } public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse getDefaultInstanceForType() { return org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.getDefaultInstance(); } public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse build() { org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse buildPartial() { org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse result = new org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse(this); result.testId_ = testId_; 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.Tikvpb.BatchCommandsEmptyResponse) { return mergeFrom((org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse other) { if (other == org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse.getDefaultInstance()) return this; if (other.getTestId() != 0L) { setTestId(other.getTestId()); } 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.Tikvpb.BatchCommandsEmptyResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long testId_ ; /** *
       * ID of the test request.
       * 
* * uint64 test_id = 1; */ public long getTestId() { return testId_; } /** *
       * ID of the test request.
       * 
* * uint64 test_id = 1; */ public Builder setTestId(long value) { testId_ = value; onChanged(); return this; } /** *
       * ID of the test request.
       * 
* * uint64 test_id = 1; */ public Builder clearTestId() { testId_ = 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:tikvpb.BatchCommandsEmptyResponse) } // @@protoc_insertion_point(class_scope:tikvpb.BatchCommandsEmptyResponse) private static final org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse(); } public static org.tikv.kvproto.Tikvpb.BatchCommandsEmptyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchCommandsEmptyResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchCommandsEmptyResponse(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.Tikvpb.BatchCommandsEmptyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tikvpb_BatchCommandsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tikvpb_BatchCommandsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tikvpb_BatchCommandsRequest_Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tikvpb_BatchCommandsRequest_Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tikvpb_BatchCommandsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tikvpb_BatchCommandsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tikvpb_BatchCommandsResponse_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tikvpb_BatchCommandsResponse_Response_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tikvpb_BatchRaftMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tikvpb_BatchRaftMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tikvpb_BatchCommandsEmptyRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tikvpb_BatchCommandsEmptyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tikvpb_BatchCommandsEmptyResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tikvpb_BatchCommandsEmptyResponse_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\014tikvpb.proto\022\006tikvpb\032\021coprocessor.prot" + "o\032\024coprocessor_v2.proto\032\rkvrpcpb.proto\032\t" + "mpp.proto\032\023raft_serverpb.proto\032\024gogoprot" + "o/gogo.proto\032\017rustproto.proto\"\306\016\n\024BatchC" + "ommandsRequest\0226\n\010requests\030\001 \003(\0132$.tikvp" + "b.BatchCommandsRequest.Request\022\023\n\013reques" + "t_ids\030\002 \003(\004\032\340\r\n\007Request\022\"\n\003Get\030\001 \001(\0132\023.k" + "vrpcpb.GetRequestH\000\022$\n\004Scan\030\002 \001(\0132\024.kvrp" + "cpb.ScanRequestH\000\022,\n\010Prewrite\030\003 \001(\0132\030.kv" + "rpcpb.PrewriteRequestH\000\022(\n\006Commit\030\004 \001(\0132" + "\026.kvrpcpb.CommitRequestH\000\022(\n\006Import\030\005 \001(" + "\0132\026.kvrpcpb.ImportRequestH\000\022*\n\007Cleanup\030\006" + " \001(\0132\027.kvrpcpb.CleanupRequestH\000\022,\n\010Batch" + "Get\030\007 \001(\0132\030.kvrpcpb.BatchGetRequestH\000\0226\n" + "\rBatchRollback\030\010 \001(\0132\035.kvrpcpb.BatchRoll" + "backRequestH\000\022,\n\010ScanLock\030\t \001(\0132\030.kvrpcp" + "b.ScanLockRequestH\000\0222\n\013ResolveLock\030\n \001(\013" + "2\033.kvrpcpb.ResolveLockRequestH\000\022 \n\002GC\030\013 " + "\001(\0132\022.kvrpcpb.GCRequestH\000\0222\n\013DeleteRange" + "\030\014 \001(\0132\033.kvrpcpb.DeleteRangeRequestH\000\022(\n" + "\006RawGet\030\r \001(\0132\026.kvrpcpb.RawGetRequestH\000\022" + "2\n\013RawBatchGet\030\016 \001(\0132\033.kvrpcpb.RawBatchG" + "etRequestH\000\022(\n\006RawPut\030\017 \001(\0132\026.kvrpcpb.Ra" + "wPutRequestH\000\0222\n\013RawBatchPut\030\020 \001(\0132\033.kvr" + "pcpb.RawBatchPutRequestH\000\022.\n\tRawDelete\030\021" + " \001(\0132\031.kvrpcpb.RawDeleteRequestH\000\0228\n\016Raw" + "BatchDelete\030\022 \001(\0132\036.kvrpcpb.RawBatchDele" + "teRequestH\000\022*\n\007RawScan\030\023 \001(\0132\027.kvrpcpb.R" + "awScanRequestH\000\0228\n\016RawDeleteRange\030\024 \001(\0132" + "\036.kvrpcpb.RawDeleteRangeRequestH\000\0224\n\014Raw" + "BatchScan\030\025 \001(\0132\034.kvrpcpb.RawBatchScanRe" + "questH\000\022+\n\013Coprocessor\030\026 \001(\0132\024.coprocess" + "or.RequestH\000\022:\n\017PessimisticLock\030\027 \001(\0132\037." + "kvrpcpb.PessimisticLockRequestH\000\022B\n\023Pess" + "imisticRollback\030\030 \001(\0132#.kvrpcpb.Pessimis" + "ticRollbackRequestH\000\0228\n\016CheckTxnStatus\030\031" + " \001(\0132\036.kvrpcpb.CheckTxnStatusRequestH\000\0224" + "\n\014TxnHeartBeat\030\032 \001(\0132\034.kvrpcpb.TxnHeartB" + "eatRequestH\000\022(\n\006VerGet\030\033 \001(\0132\026.kvrpcpb.V" + "erGetRequestH\000\0222\n\013VerBatchGet\030\034 \001(\0132\033.kv" + "rpcpb.VerBatchGetRequestH\000\022(\n\006VerMut\030\035 \001" + "(\0132\026.kvrpcpb.VerMutRequestH\000\0222\n\013VerBatch" + "Mut\030\036 \001(\0132\033.kvrpcpb.VerBatchMutRequestH\000" + "\022*\n\007VerScan\030\037 \001(\0132\027.kvrpcpb.VerScanReque" + "stH\000\0228\n\016VerDeleteRange\030 \001(\0132\036.kvrpcpb.V" + "erDeleteRangeRequestH\000\022B\n\023CheckSecondary" + "Locks\030! \001(\0132#.kvrpcpb.CheckSecondaryLock" + "sRequestH\000\022>\n\rCoprocessorV2\030\" \001(\0132%.copr" + "ocessor_v2.RawCoprocessorRequestH\000\0223\n\005Em" + "pty\030\377\001 \001(\0132!.tikvpb.BatchCommandsEmptyRe" + "questH\000B\005\n\003cmd\"\214\017\n\025BatchCommandsResponse" + "\0229\n\tresponses\030\001 \003(\0132&.tikvpb.BatchComman" + "dsResponse.Response\022\023\n\013request_ids\030\002 \003(\004" + "\022\034\n\024transport_layer_load\030\003 \001(\004\032\204\016\n\010Respo" + "nse\022#\n\003Get\030\001 \001(\0132\024.kvrpcpb.GetResponseH\000" + "\022%\n\004Scan\030\002 \001(\0132\025.kvrpcpb.ScanResponseH\000\022" + "-\n\010Prewrite\030\003 \001(\0132\031.kvrpcpb.PrewriteResp" + "onseH\000\022)\n\006Commit\030\004 \001(\0132\027.kvrpcpb.CommitR" + "esponseH\000\022)\n\006Import\030\005 \001(\0132\027.kvrpcpb.Impo" + "rtResponseH\000\022+\n\007Cleanup\030\006 \001(\0132\030.kvrpcpb." + "CleanupResponseH\000\022-\n\010BatchGet\030\007 \001(\0132\031.kv" + "rpcpb.BatchGetResponseH\000\0227\n\rBatchRollbac" + "k\030\010 \001(\0132\036.kvrpcpb.BatchRollbackResponseH" + "\000\022-\n\010ScanLock\030\t \001(\0132\031.kvrpcpb.ScanLockRe" + "sponseH\000\0223\n\013ResolveLock\030\n \001(\0132\034.kvrpcpb." + "ResolveLockResponseH\000\022!\n\002GC\030\013 \001(\0132\023.kvrp" + "cpb.GCResponseH\000\0223\n\013DeleteRange\030\014 \001(\0132\034." + "kvrpcpb.DeleteRangeResponseH\000\022)\n\006RawGet\030" + "\r \001(\0132\027.kvrpcpb.RawGetResponseH\000\0223\n\013RawB" + "atchGet\030\016 \001(\0132\034.kvrpcpb.RawBatchGetRespo" + "nseH\000\022)\n\006RawPut\030\017 \001(\0132\027.kvrpcpb.RawPutRe" + "sponseH\000\0223\n\013RawBatchPut\030\020 \001(\0132\034.kvrpcpb." + "RawBatchPutResponseH\000\022/\n\tRawDelete\030\021 \001(\013" + "2\032.kvrpcpb.RawDeleteResponseH\000\0229\n\016RawBat" + "chDelete\030\022 \001(\0132\037.kvrpcpb.RawBatchDeleteR" + "esponseH\000\022+\n\007RawScan\030\023 \001(\0132\030.kvrpcpb.Raw" + "ScanResponseH\000\0229\n\016RawDeleteRange\030\024 \001(\0132\037" + ".kvrpcpb.RawDeleteRangeResponseH\000\0225\n\014Raw" + "BatchScan\030\025 \001(\0132\035.kvrpcpb.RawBatchScanRe" + "sponseH\000\022,\n\013Coprocessor\030\026 \001(\0132\025.coproces" + "sor.ResponseH\000\022;\n\017PessimisticLock\030\027 \001(\0132" + " .kvrpcpb.PessimisticLockResponseH\000\022C\n\023P" + "essimisticRollback\030\030 \001(\0132$.kvrpcpb.Pessi" + "misticRollbackResponseH\000\0229\n\016CheckTxnStat" + "us\030\031 \001(\0132\037.kvrpcpb.CheckTxnStatusRespons" + "eH\000\0225\n\014TxnHeartBeat\030\032 \001(\0132\035.kvrpcpb.TxnH" + "eartBeatResponseH\000\022)\n\006VerGet\030\033 \001(\0132\027.kvr" + "pcpb.VerGetResponseH\000\0223\n\013VerBatchGet\030\034 \001" + "(\0132\034.kvrpcpb.VerBatchGetResponseH\000\022)\n\006Ve" + "rMut\030\035 \001(\0132\027.kvrpcpb.VerMutResponseH\000\0223\n" + "\013VerBatchMut\030\036 \001(\0132\034.kvrpcpb.VerBatchMut" + "ResponseH\000\022+\n\007VerScan\030\037 \001(\0132\030.kvrpcpb.Ve" + "rScanResponseH\000\0229\n\016VerDeleteRange\030 \001(\0132" + "\037.kvrpcpb.VerDeleteRangeResponseH\000\022C\n\023Ch" + "eckSecondaryLocks\030! \001(\0132$.kvrpcpb.CheckS" + "econdaryLocksResponseH\000\022?\n\rCoprocessorV2" + "\030\" \001(\0132&.coprocessor_v2.RawCoprocessorRe" + "sponseH\000\0224\n\005Empty\030\377\001 \001(\0132\".tikvpb.BatchC" + "ommandsEmptyResponseH\000B\005\n\003cmd\"<\n\020BatchRa" + "ftMessage\022(\n\004msgs\030\001 \003(\0132\032.raft_serverpb." + "RaftMessage\"@\n\031BatchCommandsEmptyRequest" + "\022\017\n\007test_id\030\001 \001(\004\022\022\n\ndelay_time\030\002 \001(\004\"-\n" + "\032BatchCommandsEmptyResponse\022\017\n\007test_id\030\001" + " \001(\0042\331 \n\004Tikv\0224\n\005KvGet\022\023.kvrpcpb.GetRequ" + "est\032\024.kvrpcpb.GetResponse\"\000\0227\n\006KvScan\022\024." + "kvrpcpb.ScanRequest\032\025.kvrpcpb.ScanRespon" + "se\"\000\022C\n\nKvPrewrite\022\030.kvrpcpb.PrewriteReq" + "uest\032\031.kvrpcpb.PrewriteResponse\"\000\022X\n\021KvP" + "essimisticLock\022\037.kvrpcpb.PessimisticLock" + "Request\032 .kvrpcpb.PessimisticLockRespons" + "e\"\000\022d\n\025KVPessimisticRollback\022#.kvrpcpb.P" + "essimisticRollbackRequest\032$.kvrpcpb.Pess" + "imisticRollbackResponse\"\000\022O\n\016KvTxnHeartB" + "eat\022\034.kvrpcpb.TxnHeartBeatRequest\032\035.kvrp" + "cpb.TxnHeartBeatResponse\"\000\022U\n\020KvCheckTxn" + "Status\022\036.kvrpcpb.CheckTxnStatusRequest\032\037" + ".kvrpcpb.CheckTxnStatusResponse\"\000\022d\n\025KvC" + "heckSecondaryLocks\022#.kvrpcpb.CheckSecond" + "aryLocksRequest\032$.kvrpcpb.CheckSecondary" + "LocksResponse\"\000\022=\n\010KvCommit\022\026.kvrpcpb.Co" + "mmitRequest\032\027.kvrpcpb.CommitResponse\"\000\022=" + "\n\010KvImport\022\026.kvrpcpb.ImportRequest\032\027.kvr" + "pcpb.ImportResponse\"\000\022@\n\tKvCleanup\022\027.kvr" + "pcpb.CleanupRequest\032\030.kvrpcpb.CleanupRes" + "ponse\"\000\022C\n\nKvBatchGet\022\030.kvrpcpb.BatchGet" + "Request\032\031.kvrpcpb.BatchGetResponse\"\000\022R\n\017" + "KvBatchRollback\022\035.kvrpcpb.BatchRollbackR" + "equest\032\036.kvrpcpb.BatchRollbackResponse\"\000" + "\022C\n\nKvScanLock\022\030.kvrpcpb.ScanLockRequest" + "\032\031.kvrpcpb.ScanLockResponse\"\000\022L\n\rKvResol" + "veLock\022\033.kvrpcpb.ResolveLockRequest\032\034.kv" + "rpcpb.ResolveLockResponse\"\000\0221\n\004KvGC\022\022.kv" + "rpcpb.GCRequest\032\023.kvrpcpb.GCResponse\"\000\022L" + "\n\rKvDeleteRange\022\033.kvrpcpb.DeleteRangeReq" + "uest\032\034.kvrpcpb.DeleteRangeResponse\"\000\022;\n\006" + "RawGet\022\026.kvrpcpb.RawGetRequest\032\027.kvrpcpb" + ".RawGetResponse\"\000\022J\n\013RawBatchGet\022\033.kvrpc" + "pb.RawBatchGetRequest\032\034.kvrpcpb.RawBatch" + "GetResponse\"\000\022;\n\006RawPut\022\026.kvrpcpb.RawPut" + "Request\032\027.kvrpcpb.RawPutResponse\"\000\022J\n\013Ra" + "wBatchPut\022\033.kvrpcpb.RawBatchPutRequest\032\034" + ".kvrpcpb.RawBatchPutResponse\"\000\022D\n\tRawDel" + "ete\022\031.kvrpcpb.RawDeleteRequest\032\032.kvrpcpb" + ".RawDeleteResponse\"\000\022S\n\016RawBatchDelete\022\036" + ".kvrpcpb.RawBatchDeleteRequest\032\037.kvrpcpb" + ".RawBatchDeleteResponse\"\000\022>\n\007RawScan\022\027.k" + "vrpcpb.RawScanRequest\032\030.kvrpcpb.RawScanR" + "esponse\"\000\022S\n\016RawDeleteRange\022\036.kvrpcpb.Ra" + "wDeleteRangeRequest\032\037.kvrpcpb.RawDeleteR" + "angeResponse\"\000\022M\n\014RawBatchScan\022\034.kvrpcpb" + ".RawBatchScanRequest\032\035.kvrpcpb.RawBatchS" + "canResponse\"\000\022M\n\014RawGetKeyTTL\022\034.kvrpcpb." + "RawGetKeyTTLRequest\032\035.kvrpcpb.RawGetKeyT" + "TLResponse\"\000\022F\n\021RawCompareAndSwap\022\026.kvrp" + "cpb.RawCASRequest\032\027.kvrpcpb.RawCASRespon" + "se\"\000\022;\n\006VerGet\022\026.kvrpcpb.VerGetRequest\032\027" + ".kvrpcpb.VerGetResponse\"\000\022J\n\013VerBatchGet" + "\022\033.kvrpcpb.VerBatchGetRequest\032\034.kvrpcpb." + "VerBatchGetResponse\"\000\022;\n\006VerMut\022\026.kvrpcp" + "b.VerMutRequest\032\027.kvrpcpb.VerMutResponse" + "\"\000\022J\n\013VerBatchMut\022\033.kvrpcpb.VerBatchMutR" + "equest\032\034.kvrpcpb.VerBatchMutResponse\"\000\022>" + "\n\007VerScan\022\027.kvrpcpb.VerScanRequest\032\030.kvr" + "pcpb.VerScanResponse\"\000\022S\n\016VerDeleteRange" + "\022\036.kvrpcpb.VerDeleteRangeRequest\032\037.kvrpc" + "pb.VerDeleteRangeResponse\"\000\022_\n\022UnsafeDes" + "troyRange\022\".kvrpcpb.UnsafeDestroyRangeRe" + "quest\032#.kvrpcpb.UnsafeDestroyRangeRespon" + "se\"\000\022e\n\024RegisterLockObserver\022$.kvrpcpb.R" + "egisterLockObserverRequest\032%.kvrpcpb.Reg" + "isterLockObserverResponse\"\000\022\\\n\021CheckLock" + "Observer\022!.kvrpcpb.CheckLockObserverRequ" + "est\032\".kvrpcpb.CheckLockObserverResponse\"" + "\000\022_\n\022RemoveLockObserver\022\".kvrpcpb.Remove" + "LockObserverRequest\032#.kvrpcpb.RemoveLock" + "ObserverResponse\"\000\022Y\n\020PhysicalScanLock\022 " + ".kvrpcpb.PhysicalScanLockRequest\032!.kvrpc" + "pb.PhysicalScanLockResponse\"\000\022<\n\013Coproce" + "ssor\022\024.coprocessor.Request\032\025.coprocessor" + ".Response\"\000\022D\n\021CoprocessorStream\022\024.copro" + "cessor.Request\032\025.coprocessor.Response\"\0000" + "\001\022M\n\020BatchCoprocessor\022\031.coprocessor.Batc" + "hRequest\032\032.coprocessor.BatchResponse\"\0000\001" + "\022`\n\rCoprocessorV2\022%.coprocessor_v2.RawCo" + "processorRequest\032&.coprocessor_v2.RawCop" + "rocessorResponse\"\000\022;\n\004Raft\022\032.raft_server" + "pb.RaftMessage\032\023.raft_serverpb.Done\"\000(\001\022" + ">\n\tBatchRaft\022\030.tikvpb.BatchRaftMessage\032\023" + ".raft_serverpb.Done\"\000(\001\022A\n\010Snapshot\022\034.ra" + "ft_serverpb.SnapshotChunk\032\023.raft_serverp" + "b.Done\"\000(\001\022J\n\013SplitRegion\022\033.kvrpcpb.Spli" + "tRegionRequest\032\034.kvrpcpb.SplitRegionResp" + "onse\"\000\022D\n\tReadIndex\022\031.kvrpcpb.ReadIndexR" + "equest\032\032.kvrpcpb.ReadIndexResponse\"\000\022M\n\014" + "MvccGetByKey\022\034.kvrpcpb.MvccGetByKeyReque" + "st\032\035.kvrpcpb.MvccGetByKeyResponse\"\000\022Y\n\020M" + "vccGetByStartTs\022 .kvrpcpb.MvccGetByStart" + "TsRequest\032!.kvrpcpb.MvccGetByStartTsResp" + "onse\"\000\022R\n\rBatchCommands\022\034.tikvpb.BatchCo" + "mmandsRequest\032\035.tikvpb.BatchCommandsResp" + "onse\"\000(\0010\001\022H\n\017DispatchMPPTask\022\030.mpp.Disp" + "atchTaskRequest\032\031.mpp.DispatchTaskRespon" + "se\"\000\022B\n\rCancelMPPTask\022\026.mpp.CancelTaskRe" + "quest\032\027.mpp.CancelTaskResponse\"\000\022T\n\026Esta" + "blishMPPConnection\022\".mpp.EstablishMPPCon" + "nectionRequest\032\022.mpp.MPPDataPacket\"\0000\001\022H" + "\n\013CheckLeader\022\033.kvrpcpb.CheckLeaderReque" + "st\032\034.kvrpcpb.CheckLeaderResponseB\"\n\020org." + "tikv.kvproto\340\342\036\001\310\342\036\001\320\342\036\001\330\250\010\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[] { org.tikv.kvproto.Coprocessor.getDescriptor(), org.tikv.kvproto.CoprocessorV2.getDescriptor(), org.tikv.kvproto.Kvrpcpb.getDescriptor(), org.tikv.kvproto.Mpp.getDescriptor(), org.tikv.kvproto.RaftServerpb.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), rustproto.Rustproto.getDescriptor(), }, assigner); internal_static_tikvpb_BatchCommandsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tikvpb_BatchCommandsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tikvpb_BatchCommandsRequest_descriptor, new java.lang.String[] { "Requests", "RequestIds", }); internal_static_tikvpb_BatchCommandsRequest_Request_descriptor = internal_static_tikvpb_BatchCommandsRequest_descriptor.getNestedTypes().get(0); internal_static_tikvpb_BatchCommandsRequest_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tikvpb_BatchCommandsRequest_Request_descriptor, new java.lang.String[] { "Get", "Scan", "Prewrite", "Commit", "Import", "Cleanup", "BatchGet", "BatchRollback", "ScanLock", "ResolveLock", "GC", "DeleteRange", "RawGet", "RawBatchGet", "RawPut", "RawBatchPut", "RawDelete", "RawBatchDelete", "RawScan", "RawDeleteRange", "RawBatchScan", "Coprocessor", "PessimisticLock", "PessimisticRollback", "CheckTxnStatus", "TxnHeartBeat", "VerGet", "VerBatchGet", "VerMut", "VerBatchMut", "VerScan", "VerDeleteRange", "CheckSecondaryLocks", "CoprocessorV2", "Empty", "Cmd", }); internal_static_tikvpb_BatchCommandsResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tikvpb_BatchCommandsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tikvpb_BatchCommandsResponse_descriptor, new java.lang.String[] { "Responses", "RequestIds", "TransportLayerLoad", }); internal_static_tikvpb_BatchCommandsResponse_Response_descriptor = internal_static_tikvpb_BatchCommandsResponse_descriptor.getNestedTypes().get(0); internal_static_tikvpb_BatchCommandsResponse_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tikvpb_BatchCommandsResponse_Response_descriptor, new java.lang.String[] { "Get", "Scan", "Prewrite", "Commit", "Import", "Cleanup", "BatchGet", "BatchRollback", "ScanLock", "ResolveLock", "GC", "DeleteRange", "RawGet", "RawBatchGet", "RawPut", "RawBatchPut", "RawDelete", "RawBatchDelete", "RawScan", "RawDeleteRange", "RawBatchScan", "Coprocessor", "PessimisticLock", "PessimisticRollback", "CheckTxnStatus", "TxnHeartBeat", "VerGet", "VerBatchGet", "VerMut", "VerBatchMut", "VerScan", "VerDeleteRange", "CheckSecondaryLocks", "CoprocessorV2", "Empty", "Cmd", }); internal_static_tikvpb_BatchRaftMessage_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_tikvpb_BatchRaftMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tikvpb_BatchRaftMessage_descriptor, new java.lang.String[] { "Msgs", }); internal_static_tikvpb_BatchCommandsEmptyRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_tikvpb_BatchCommandsEmptyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tikvpb_BatchCommandsEmptyRequest_descriptor, new java.lang.String[] { "TestId", "DelayTime", }); internal_static_tikvpb_BatchCommandsEmptyResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_tikvpb_BatchCommandsEmptyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tikvpb_BatchCommandsEmptyResponse_descriptor, new java.lang.String[] { "TestId", }); 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); registry.add(rustproto.Rustproto.liteRuntimeAll); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); org.tikv.kvproto.Coprocessor.getDescriptor(); org.tikv.kvproto.CoprocessorV2.getDescriptor(); org.tikv.kvproto.Kvrpcpb.getDescriptor(); org.tikv.kvproto.Mpp.getDescriptor(); org.tikv.kvproto.RaftServerpb.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); rustproto.Rustproto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy