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

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

There is a newer version: 3.2.3
Show newest version
package org.tikv.kvproto;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
 * 
 * Key/value store API for TiKV.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.29.0)", comments = "Source: tikvpb.proto") public final class TikvGrpc { private TikvGrpc() {} public static final String SERVICE_NAME = "tikvpb.Tikv"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getKvGetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvGet", requestType = org.tikv.kvproto.Kvrpcpb.GetRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.GetResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvGetMethod() { io.grpc.MethodDescriptor getKvGetMethod; if ((getKvGetMethod = TikvGrpc.getKvGetMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvGetMethod = TikvGrpc.getKvGetMethod) == null) { TikvGrpc.getKvGetMethod = getKvGetMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvGet")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.GetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.GetResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvGet")) .build(); } } } return getKvGetMethod; } private static volatile io.grpc.MethodDescriptor getKvScanMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvScan", requestType = org.tikv.kvproto.Kvrpcpb.ScanRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.ScanResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvScanMethod() { io.grpc.MethodDescriptor getKvScanMethod; if ((getKvScanMethod = TikvGrpc.getKvScanMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvScanMethod = TikvGrpc.getKvScanMethod) == null) { TikvGrpc.getKvScanMethod = getKvScanMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvScan")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.ScanRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.ScanResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvScan")) .build(); } } } return getKvScanMethod; } private static volatile io.grpc.MethodDescriptor getKvPrewriteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvPrewrite", requestType = org.tikv.kvproto.Kvrpcpb.PrewriteRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.PrewriteResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvPrewriteMethod() { io.grpc.MethodDescriptor getKvPrewriteMethod; if ((getKvPrewriteMethod = TikvGrpc.getKvPrewriteMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvPrewriteMethod = TikvGrpc.getKvPrewriteMethod) == null) { TikvGrpc.getKvPrewriteMethod = getKvPrewriteMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvPrewrite")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.PrewriteRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.PrewriteResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvPrewrite")) .build(); } } } return getKvPrewriteMethod; } private static volatile io.grpc.MethodDescriptor getKvPessimisticLockMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvPessimisticLock", requestType = org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvPessimisticLockMethod() { io.grpc.MethodDescriptor getKvPessimisticLockMethod; if ((getKvPessimisticLockMethod = TikvGrpc.getKvPessimisticLockMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvPessimisticLockMethod = TikvGrpc.getKvPessimisticLockMethod) == null) { TikvGrpc.getKvPessimisticLockMethod = getKvPessimisticLockMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvPessimisticLock")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvPessimisticLock")) .build(); } } } return getKvPessimisticLockMethod; } private static volatile io.grpc.MethodDescriptor getKVPessimisticRollbackMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KVPessimisticRollback", requestType = org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKVPessimisticRollbackMethod() { io.grpc.MethodDescriptor getKVPessimisticRollbackMethod; if ((getKVPessimisticRollbackMethod = TikvGrpc.getKVPessimisticRollbackMethod) == null) { synchronized (TikvGrpc.class) { if ((getKVPessimisticRollbackMethod = TikvGrpc.getKVPessimisticRollbackMethod) == null) { TikvGrpc.getKVPessimisticRollbackMethod = getKVPessimisticRollbackMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KVPessimisticRollback")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KVPessimisticRollback")) .build(); } } } return getKVPessimisticRollbackMethod; } private static volatile io.grpc.MethodDescriptor getKvTxnHeartBeatMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvTxnHeartBeat", requestType = org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvTxnHeartBeatMethod() { io.grpc.MethodDescriptor getKvTxnHeartBeatMethod; if ((getKvTxnHeartBeatMethod = TikvGrpc.getKvTxnHeartBeatMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvTxnHeartBeatMethod = TikvGrpc.getKvTxnHeartBeatMethod) == null) { TikvGrpc.getKvTxnHeartBeatMethod = getKvTxnHeartBeatMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvTxnHeartBeat")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvTxnHeartBeat")) .build(); } } } return getKvTxnHeartBeatMethod; } private static volatile io.grpc.MethodDescriptor getKvCheckTxnStatusMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvCheckTxnStatus", requestType = org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvCheckTxnStatusMethod() { io.grpc.MethodDescriptor getKvCheckTxnStatusMethod; if ((getKvCheckTxnStatusMethod = TikvGrpc.getKvCheckTxnStatusMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvCheckTxnStatusMethod = TikvGrpc.getKvCheckTxnStatusMethod) == null) { TikvGrpc.getKvCheckTxnStatusMethod = getKvCheckTxnStatusMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvCheckTxnStatus")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvCheckTxnStatus")) .build(); } } } return getKvCheckTxnStatusMethod; } private static volatile io.grpc.MethodDescriptor getKvCheckSecondaryLocksMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvCheckSecondaryLocks", requestType = org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvCheckSecondaryLocksMethod() { io.grpc.MethodDescriptor getKvCheckSecondaryLocksMethod; if ((getKvCheckSecondaryLocksMethod = TikvGrpc.getKvCheckSecondaryLocksMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvCheckSecondaryLocksMethod = TikvGrpc.getKvCheckSecondaryLocksMethod) == null) { TikvGrpc.getKvCheckSecondaryLocksMethod = getKvCheckSecondaryLocksMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvCheckSecondaryLocks")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvCheckSecondaryLocks")) .build(); } } } return getKvCheckSecondaryLocksMethod; } private static volatile io.grpc.MethodDescriptor getKvCommitMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvCommit", requestType = org.tikv.kvproto.Kvrpcpb.CommitRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.CommitResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvCommitMethod() { io.grpc.MethodDescriptor getKvCommitMethod; if ((getKvCommitMethod = TikvGrpc.getKvCommitMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvCommitMethod = TikvGrpc.getKvCommitMethod) == null) { TikvGrpc.getKvCommitMethod = getKvCommitMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvCommit")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CommitRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CommitResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvCommit")) .build(); } } } return getKvCommitMethod; } private static volatile io.grpc.MethodDescriptor getKvImportMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvImport", requestType = org.tikv.kvproto.Kvrpcpb.ImportRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.ImportResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvImportMethod() { io.grpc.MethodDescriptor getKvImportMethod; if ((getKvImportMethod = TikvGrpc.getKvImportMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvImportMethod = TikvGrpc.getKvImportMethod) == null) { TikvGrpc.getKvImportMethod = getKvImportMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvImport")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.ImportRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.ImportResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvImport")) .build(); } } } return getKvImportMethod; } private static volatile io.grpc.MethodDescriptor getKvCleanupMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvCleanup", requestType = org.tikv.kvproto.Kvrpcpb.CleanupRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.CleanupResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvCleanupMethod() { io.grpc.MethodDescriptor getKvCleanupMethod; if ((getKvCleanupMethod = TikvGrpc.getKvCleanupMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvCleanupMethod = TikvGrpc.getKvCleanupMethod) == null) { TikvGrpc.getKvCleanupMethod = getKvCleanupMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvCleanup")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CleanupRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CleanupResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvCleanup")) .build(); } } } return getKvCleanupMethod; } private static volatile io.grpc.MethodDescriptor getKvBatchGetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvBatchGet", requestType = org.tikv.kvproto.Kvrpcpb.BatchGetRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.BatchGetResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvBatchGetMethod() { io.grpc.MethodDescriptor getKvBatchGetMethod; if ((getKvBatchGetMethod = TikvGrpc.getKvBatchGetMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvBatchGetMethod = TikvGrpc.getKvBatchGetMethod) == null) { TikvGrpc.getKvBatchGetMethod = getKvBatchGetMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvBatchGet")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.BatchGetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.BatchGetResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvBatchGet")) .build(); } } } return getKvBatchGetMethod; } private static volatile io.grpc.MethodDescriptor getKvBatchRollbackMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvBatchRollback", requestType = org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvBatchRollbackMethod() { io.grpc.MethodDescriptor getKvBatchRollbackMethod; if ((getKvBatchRollbackMethod = TikvGrpc.getKvBatchRollbackMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvBatchRollbackMethod = TikvGrpc.getKvBatchRollbackMethod) == null) { TikvGrpc.getKvBatchRollbackMethod = getKvBatchRollbackMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvBatchRollback")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvBatchRollback")) .build(); } } } return getKvBatchRollbackMethod; } private static volatile io.grpc.MethodDescriptor getKvScanLockMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvScanLock", requestType = org.tikv.kvproto.Kvrpcpb.ScanLockRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.ScanLockResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvScanLockMethod() { io.grpc.MethodDescriptor getKvScanLockMethod; if ((getKvScanLockMethod = TikvGrpc.getKvScanLockMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvScanLockMethod = TikvGrpc.getKvScanLockMethod) == null) { TikvGrpc.getKvScanLockMethod = getKvScanLockMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvScanLock")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.ScanLockRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.ScanLockResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvScanLock")) .build(); } } } return getKvScanLockMethod; } private static volatile io.grpc.MethodDescriptor getKvResolveLockMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvResolveLock", requestType = org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvResolveLockMethod() { io.grpc.MethodDescriptor getKvResolveLockMethod; if ((getKvResolveLockMethod = TikvGrpc.getKvResolveLockMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvResolveLockMethod = TikvGrpc.getKvResolveLockMethod) == null) { TikvGrpc.getKvResolveLockMethod = getKvResolveLockMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvResolveLock")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvResolveLock")) .build(); } } } return getKvResolveLockMethod; } private static volatile io.grpc.MethodDescriptor getKvGCMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvGC", requestType = org.tikv.kvproto.Kvrpcpb.GCRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.GCResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvGCMethod() { io.grpc.MethodDescriptor getKvGCMethod; if ((getKvGCMethod = TikvGrpc.getKvGCMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvGCMethod = TikvGrpc.getKvGCMethod) == null) { TikvGrpc.getKvGCMethod = getKvGCMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvGC")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.GCRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.GCResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvGC")) .build(); } } } return getKvGCMethod; } private static volatile io.grpc.MethodDescriptor getKvDeleteRangeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "KvDeleteRange", requestType = org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getKvDeleteRangeMethod() { io.grpc.MethodDescriptor getKvDeleteRangeMethod; if ((getKvDeleteRangeMethod = TikvGrpc.getKvDeleteRangeMethod) == null) { synchronized (TikvGrpc.class) { if ((getKvDeleteRangeMethod = TikvGrpc.getKvDeleteRangeMethod) == null) { TikvGrpc.getKvDeleteRangeMethod = getKvDeleteRangeMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "KvDeleteRange")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("KvDeleteRange")) .build(); } } } return getKvDeleteRangeMethod; } private static volatile io.grpc.MethodDescriptor getRawGetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawGet", requestType = org.tikv.kvproto.Kvrpcpb.RawGetRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawGetResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawGetMethod() { io.grpc.MethodDescriptor getRawGetMethod; if ((getRawGetMethod = TikvGrpc.getRawGetMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawGetMethod = TikvGrpc.getRawGetMethod) == null) { TikvGrpc.getRawGetMethod = getRawGetMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawGet")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawGetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawGetResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawGet")) .build(); } } } return getRawGetMethod; } private static volatile io.grpc.MethodDescriptor getRawBatchGetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawBatchGet", requestType = org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawBatchGetMethod() { io.grpc.MethodDescriptor getRawBatchGetMethod; if ((getRawBatchGetMethod = TikvGrpc.getRawBatchGetMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawBatchGetMethod = TikvGrpc.getRawBatchGetMethod) == null) { TikvGrpc.getRawBatchGetMethod = getRawBatchGetMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawBatchGet")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawBatchGet")) .build(); } } } return getRawBatchGetMethod; } private static volatile io.grpc.MethodDescriptor getRawPutMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawPut", requestType = org.tikv.kvproto.Kvrpcpb.RawPutRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawPutResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawPutMethod() { io.grpc.MethodDescriptor getRawPutMethod; if ((getRawPutMethod = TikvGrpc.getRawPutMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawPutMethod = TikvGrpc.getRawPutMethod) == null) { TikvGrpc.getRawPutMethod = getRawPutMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawPut")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawPutRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawPutResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawPut")) .build(); } } } return getRawPutMethod; } private static volatile io.grpc.MethodDescriptor getRawBatchPutMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawBatchPut", requestType = org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawBatchPutMethod() { io.grpc.MethodDescriptor getRawBatchPutMethod; if ((getRawBatchPutMethod = TikvGrpc.getRawBatchPutMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawBatchPutMethod = TikvGrpc.getRawBatchPutMethod) == null) { TikvGrpc.getRawBatchPutMethod = getRawBatchPutMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawBatchPut")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawBatchPut")) .build(); } } } return getRawBatchPutMethod; } private static volatile io.grpc.MethodDescriptor getRawDeleteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawDelete", requestType = org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawDeleteMethod() { io.grpc.MethodDescriptor getRawDeleteMethod; if ((getRawDeleteMethod = TikvGrpc.getRawDeleteMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawDeleteMethod = TikvGrpc.getRawDeleteMethod) == null) { TikvGrpc.getRawDeleteMethod = getRawDeleteMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawDelete")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawDelete")) .build(); } } } return getRawDeleteMethod; } private static volatile io.grpc.MethodDescriptor getRawBatchDeleteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawBatchDelete", requestType = org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawBatchDeleteMethod() { io.grpc.MethodDescriptor getRawBatchDeleteMethod; if ((getRawBatchDeleteMethod = TikvGrpc.getRawBatchDeleteMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawBatchDeleteMethod = TikvGrpc.getRawBatchDeleteMethod) == null) { TikvGrpc.getRawBatchDeleteMethod = getRawBatchDeleteMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawBatchDelete")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawBatchDelete")) .build(); } } } return getRawBatchDeleteMethod; } private static volatile io.grpc.MethodDescriptor getRawScanMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawScan", requestType = org.tikv.kvproto.Kvrpcpb.RawScanRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawScanResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawScanMethod() { io.grpc.MethodDescriptor getRawScanMethod; if ((getRawScanMethod = TikvGrpc.getRawScanMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawScanMethod = TikvGrpc.getRawScanMethod) == null) { TikvGrpc.getRawScanMethod = getRawScanMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawScan")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawScanRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawScanResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawScan")) .build(); } } } return getRawScanMethod; } private static volatile io.grpc.MethodDescriptor getRawDeleteRangeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawDeleteRange", requestType = org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawDeleteRangeMethod() { io.grpc.MethodDescriptor getRawDeleteRangeMethod; if ((getRawDeleteRangeMethod = TikvGrpc.getRawDeleteRangeMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawDeleteRangeMethod = TikvGrpc.getRawDeleteRangeMethod) == null) { TikvGrpc.getRawDeleteRangeMethod = getRawDeleteRangeMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawDeleteRange")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawDeleteRange")) .build(); } } } return getRawDeleteRangeMethod; } private static volatile io.grpc.MethodDescriptor getRawBatchScanMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawBatchScan", requestType = org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawBatchScanMethod() { io.grpc.MethodDescriptor getRawBatchScanMethod; if ((getRawBatchScanMethod = TikvGrpc.getRawBatchScanMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawBatchScanMethod = TikvGrpc.getRawBatchScanMethod) == null) { TikvGrpc.getRawBatchScanMethod = getRawBatchScanMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawBatchScan")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawBatchScan")) .build(); } } } return getRawBatchScanMethod; } private static volatile io.grpc.MethodDescriptor getRawGetKeyTTLMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawGetKeyTTL", requestType = org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawGetKeyTTLMethod() { io.grpc.MethodDescriptor getRawGetKeyTTLMethod; if ((getRawGetKeyTTLMethod = TikvGrpc.getRawGetKeyTTLMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawGetKeyTTLMethod = TikvGrpc.getRawGetKeyTTLMethod) == null) { TikvGrpc.getRawGetKeyTTLMethod = getRawGetKeyTTLMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawGetKeyTTL")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawGetKeyTTL")) .build(); } } } return getRawGetKeyTTLMethod; } private static volatile io.grpc.MethodDescriptor getRawCompareAndSwapMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RawCompareAndSwap", requestType = org.tikv.kvproto.Kvrpcpb.RawCASRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RawCASResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRawCompareAndSwapMethod() { io.grpc.MethodDescriptor getRawCompareAndSwapMethod; if ((getRawCompareAndSwapMethod = TikvGrpc.getRawCompareAndSwapMethod) == null) { synchronized (TikvGrpc.class) { if ((getRawCompareAndSwapMethod = TikvGrpc.getRawCompareAndSwapMethod) == null) { TikvGrpc.getRawCompareAndSwapMethod = getRawCompareAndSwapMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RawCompareAndSwap")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawCASRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RawCASResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RawCompareAndSwap")) .build(); } } } return getRawCompareAndSwapMethod; } private static volatile io.grpc.MethodDescriptor getVerGetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "VerGet", requestType = org.tikv.kvproto.Kvrpcpb.VerGetRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.VerGetResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVerGetMethod() { io.grpc.MethodDescriptor getVerGetMethod; if ((getVerGetMethod = TikvGrpc.getVerGetMethod) == null) { synchronized (TikvGrpc.class) { if ((getVerGetMethod = TikvGrpc.getVerGetMethod) == null) { TikvGrpc.getVerGetMethod = getVerGetMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerGet")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerGetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerGetResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("VerGet")) .build(); } } } return getVerGetMethod; } private static volatile io.grpc.MethodDescriptor getVerBatchGetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "VerBatchGet", requestType = org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVerBatchGetMethod() { io.grpc.MethodDescriptor getVerBatchGetMethod; if ((getVerBatchGetMethod = TikvGrpc.getVerBatchGetMethod) == null) { synchronized (TikvGrpc.class) { if ((getVerBatchGetMethod = TikvGrpc.getVerBatchGetMethod) == null) { TikvGrpc.getVerBatchGetMethod = getVerBatchGetMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerBatchGet")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("VerBatchGet")) .build(); } } } return getVerBatchGetMethod; } private static volatile io.grpc.MethodDescriptor getVerMutMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "VerMut", requestType = org.tikv.kvproto.Kvrpcpb.VerMutRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.VerMutResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVerMutMethod() { io.grpc.MethodDescriptor getVerMutMethod; if ((getVerMutMethod = TikvGrpc.getVerMutMethod) == null) { synchronized (TikvGrpc.class) { if ((getVerMutMethod = TikvGrpc.getVerMutMethod) == null) { TikvGrpc.getVerMutMethod = getVerMutMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerMut")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerMutRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerMutResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("VerMut")) .build(); } } } return getVerMutMethod; } private static volatile io.grpc.MethodDescriptor getVerBatchMutMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "VerBatchMut", requestType = org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVerBatchMutMethod() { io.grpc.MethodDescriptor getVerBatchMutMethod; if ((getVerBatchMutMethod = TikvGrpc.getVerBatchMutMethod) == null) { synchronized (TikvGrpc.class) { if ((getVerBatchMutMethod = TikvGrpc.getVerBatchMutMethod) == null) { TikvGrpc.getVerBatchMutMethod = getVerBatchMutMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerBatchMut")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("VerBatchMut")) .build(); } } } return getVerBatchMutMethod; } private static volatile io.grpc.MethodDescriptor getVerScanMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "VerScan", requestType = org.tikv.kvproto.Kvrpcpb.VerScanRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.VerScanResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVerScanMethod() { io.grpc.MethodDescriptor getVerScanMethod; if ((getVerScanMethod = TikvGrpc.getVerScanMethod) == null) { synchronized (TikvGrpc.class) { if ((getVerScanMethod = TikvGrpc.getVerScanMethod) == null) { TikvGrpc.getVerScanMethod = getVerScanMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerScan")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerScanRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerScanResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("VerScan")) .build(); } } } return getVerScanMethod; } private static volatile io.grpc.MethodDescriptor getVerDeleteRangeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "VerDeleteRange", requestType = org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVerDeleteRangeMethod() { io.grpc.MethodDescriptor getVerDeleteRangeMethod; if ((getVerDeleteRangeMethod = TikvGrpc.getVerDeleteRangeMethod) == null) { synchronized (TikvGrpc.class) { if ((getVerDeleteRangeMethod = TikvGrpc.getVerDeleteRangeMethod) == null) { TikvGrpc.getVerDeleteRangeMethod = getVerDeleteRangeMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerDeleteRange")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("VerDeleteRange")) .build(); } } } return getVerDeleteRangeMethod; } private static volatile io.grpc.MethodDescriptor getUnsafeDestroyRangeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UnsafeDestroyRange", requestType = org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUnsafeDestroyRangeMethod() { io.grpc.MethodDescriptor getUnsafeDestroyRangeMethod; if ((getUnsafeDestroyRangeMethod = TikvGrpc.getUnsafeDestroyRangeMethod) == null) { synchronized (TikvGrpc.class) { if ((getUnsafeDestroyRangeMethod = TikvGrpc.getUnsafeDestroyRangeMethod) == null) { TikvGrpc.getUnsafeDestroyRangeMethod = getUnsafeDestroyRangeMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnsafeDestroyRange")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("UnsafeDestroyRange")) .build(); } } } return getUnsafeDestroyRangeMethod; } private static volatile io.grpc.MethodDescriptor getRegisterLockObserverMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RegisterLockObserver", requestType = org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRegisterLockObserverMethod() { io.grpc.MethodDescriptor getRegisterLockObserverMethod; if ((getRegisterLockObserverMethod = TikvGrpc.getRegisterLockObserverMethod) == null) { synchronized (TikvGrpc.class) { if ((getRegisterLockObserverMethod = TikvGrpc.getRegisterLockObserverMethod) == null) { TikvGrpc.getRegisterLockObserverMethod = getRegisterLockObserverMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterLockObserver")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RegisterLockObserver")) .build(); } } } return getRegisterLockObserverMethod; } private static volatile io.grpc.MethodDescriptor getCheckLockObserverMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CheckLockObserver", requestType = org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCheckLockObserverMethod() { io.grpc.MethodDescriptor getCheckLockObserverMethod; if ((getCheckLockObserverMethod = TikvGrpc.getCheckLockObserverMethod) == null) { synchronized (TikvGrpc.class) { if ((getCheckLockObserverMethod = TikvGrpc.getCheckLockObserverMethod) == null) { TikvGrpc.getCheckLockObserverMethod = getCheckLockObserverMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckLockObserver")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("CheckLockObserver")) .build(); } } } return getCheckLockObserverMethod; } private static volatile io.grpc.MethodDescriptor getRemoveLockObserverMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RemoveLockObserver", requestType = org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRemoveLockObserverMethod() { io.grpc.MethodDescriptor getRemoveLockObserverMethod; if ((getRemoveLockObserverMethod = TikvGrpc.getRemoveLockObserverMethod) == null) { synchronized (TikvGrpc.class) { if ((getRemoveLockObserverMethod = TikvGrpc.getRemoveLockObserverMethod) == null) { TikvGrpc.getRemoveLockObserverMethod = getRemoveLockObserverMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveLockObserver")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("RemoveLockObserver")) .build(); } } } return getRemoveLockObserverMethod; } private static volatile io.grpc.MethodDescriptor getPhysicalScanLockMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "PhysicalScanLock", requestType = org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getPhysicalScanLockMethod() { io.grpc.MethodDescriptor getPhysicalScanLockMethod; if ((getPhysicalScanLockMethod = TikvGrpc.getPhysicalScanLockMethod) == null) { synchronized (TikvGrpc.class) { if ((getPhysicalScanLockMethod = TikvGrpc.getPhysicalScanLockMethod) == null) { TikvGrpc.getPhysicalScanLockMethod = getPhysicalScanLockMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PhysicalScanLock")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("PhysicalScanLock")) .build(); } } } return getPhysicalScanLockMethod; } private static volatile io.grpc.MethodDescriptor getCoprocessorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Coprocessor", requestType = org.tikv.kvproto.Coprocessor.Request.class, responseType = org.tikv.kvproto.Coprocessor.Response.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCoprocessorMethod() { io.grpc.MethodDescriptor getCoprocessorMethod; if ((getCoprocessorMethod = TikvGrpc.getCoprocessorMethod) == null) { synchronized (TikvGrpc.class) { if ((getCoprocessorMethod = TikvGrpc.getCoprocessorMethod) == null) { TikvGrpc.getCoprocessorMethod = getCoprocessorMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Coprocessor")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Coprocessor.Request.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Coprocessor.Response.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("Coprocessor")) .build(); } } } return getCoprocessorMethod; } private static volatile io.grpc.MethodDescriptor getCoprocessorStreamMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CoprocessorStream", requestType = org.tikv.kvproto.Coprocessor.Request.class, responseType = org.tikv.kvproto.Coprocessor.Response.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor getCoprocessorStreamMethod() { io.grpc.MethodDescriptor getCoprocessorStreamMethod; if ((getCoprocessorStreamMethod = TikvGrpc.getCoprocessorStreamMethod) == null) { synchronized (TikvGrpc.class) { if ((getCoprocessorStreamMethod = TikvGrpc.getCoprocessorStreamMethod) == null) { TikvGrpc.getCoprocessorStreamMethod = getCoprocessorStreamMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CoprocessorStream")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Coprocessor.Request.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Coprocessor.Response.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("CoprocessorStream")) .build(); } } } return getCoprocessorStreamMethod; } private static volatile io.grpc.MethodDescriptor getBatchCoprocessorMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchCoprocessor", requestType = org.tikv.kvproto.Coprocessor.BatchRequest.class, responseType = org.tikv.kvproto.Coprocessor.BatchResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor getBatchCoprocessorMethod() { io.grpc.MethodDescriptor getBatchCoprocessorMethod; if ((getBatchCoprocessorMethod = TikvGrpc.getBatchCoprocessorMethod) == null) { synchronized (TikvGrpc.class) { if ((getBatchCoprocessorMethod = TikvGrpc.getBatchCoprocessorMethod) == null) { TikvGrpc.getBatchCoprocessorMethod = getBatchCoprocessorMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCoprocessor")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Coprocessor.BatchRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Coprocessor.BatchResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("BatchCoprocessor")) .build(); } } } return getBatchCoprocessorMethod; } private static volatile io.grpc.MethodDescriptor getCoprocessorV2Method; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CoprocessorV2", requestType = org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.class, responseType = org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCoprocessorV2Method() { io.grpc.MethodDescriptor getCoprocessorV2Method; if ((getCoprocessorV2Method = TikvGrpc.getCoprocessorV2Method) == null) { synchronized (TikvGrpc.class) { if ((getCoprocessorV2Method = TikvGrpc.getCoprocessorV2Method) == null) { TikvGrpc.getCoprocessorV2Method = getCoprocessorV2Method = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CoprocessorV2")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("CoprocessorV2")) .build(); } } } return getCoprocessorV2Method; } private static volatile io.grpc.MethodDescriptor getRaftMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Raft", requestType = org.tikv.kvproto.RaftServerpb.RaftMessage.class, responseType = org.tikv.kvproto.RaftServerpb.Done.class, methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) public static io.grpc.MethodDescriptor getRaftMethod() { io.grpc.MethodDescriptor getRaftMethod; if ((getRaftMethod = TikvGrpc.getRaftMethod) == null) { synchronized (TikvGrpc.class) { if ((getRaftMethod = TikvGrpc.getRaftMethod) == null) { TikvGrpc.getRaftMethod = getRaftMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Raft")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.RaftServerpb.RaftMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.RaftServerpb.Done.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("Raft")) .build(); } } } return getRaftMethod; } private static volatile io.grpc.MethodDescriptor getBatchRaftMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchRaft", requestType = org.tikv.kvproto.Tikvpb.BatchRaftMessage.class, responseType = org.tikv.kvproto.RaftServerpb.Done.class, methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) public static io.grpc.MethodDescriptor getBatchRaftMethod() { io.grpc.MethodDescriptor getBatchRaftMethod; if ((getBatchRaftMethod = TikvGrpc.getBatchRaftMethod) == null) { synchronized (TikvGrpc.class) { if ((getBatchRaftMethod = TikvGrpc.getBatchRaftMethod) == null) { TikvGrpc.getBatchRaftMethod = getBatchRaftMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRaft")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Tikvpb.BatchRaftMessage.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.RaftServerpb.Done.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("BatchRaft")) .build(); } } } return getBatchRaftMethod; } private static volatile io.grpc.MethodDescriptor getSnapshotMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Snapshot", requestType = org.tikv.kvproto.RaftServerpb.SnapshotChunk.class, responseType = org.tikv.kvproto.RaftServerpb.Done.class, methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) public static io.grpc.MethodDescriptor getSnapshotMethod() { io.grpc.MethodDescriptor getSnapshotMethod; if ((getSnapshotMethod = TikvGrpc.getSnapshotMethod) == null) { synchronized (TikvGrpc.class) { if ((getSnapshotMethod = TikvGrpc.getSnapshotMethod) == null) { TikvGrpc.getSnapshotMethod = getSnapshotMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Snapshot")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.RaftServerpb.SnapshotChunk.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.RaftServerpb.Done.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("Snapshot")) .build(); } } } return getSnapshotMethod; } private static volatile io.grpc.MethodDescriptor getSplitRegionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SplitRegion", requestType = org.tikv.kvproto.Kvrpcpb.SplitRegionRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.SplitRegionResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSplitRegionMethod() { io.grpc.MethodDescriptor getSplitRegionMethod; if ((getSplitRegionMethod = TikvGrpc.getSplitRegionMethod) == null) { synchronized (TikvGrpc.class) { if ((getSplitRegionMethod = TikvGrpc.getSplitRegionMethod) == null) { TikvGrpc.getSplitRegionMethod = getSplitRegionMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitRegion")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.SplitRegionRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.SplitRegionResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("SplitRegion")) .build(); } } } return getSplitRegionMethod; } private static volatile io.grpc.MethodDescriptor getReadIndexMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ReadIndex", requestType = org.tikv.kvproto.Kvrpcpb.ReadIndexRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.ReadIndexResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getReadIndexMethod() { io.grpc.MethodDescriptor getReadIndexMethod; if ((getReadIndexMethod = TikvGrpc.getReadIndexMethod) == null) { synchronized (TikvGrpc.class) { if ((getReadIndexMethod = TikvGrpc.getReadIndexMethod) == null) { TikvGrpc.getReadIndexMethod = getReadIndexMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadIndex")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.ReadIndexRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.ReadIndexResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("ReadIndex")) .build(); } } } return getReadIndexMethod; } private static volatile io.grpc.MethodDescriptor getMvccGetByKeyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "MvccGetByKey", requestType = org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getMvccGetByKeyMethod() { io.grpc.MethodDescriptor getMvccGetByKeyMethod; if ((getMvccGetByKeyMethod = TikvGrpc.getMvccGetByKeyMethod) == null) { synchronized (TikvGrpc.class) { if ((getMvccGetByKeyMethod = TikvGrpc.getMvccGetByKeyMethod) == null) { TikvGrpc.getMvccGetByKeyMethod = getMvccGetByKeyMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MvccGetByKey")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("MvccGetByKey")) .build(); } } } return getMvccGetByKeyMethod; } private static volatile io.grpc.MethodDescriptor getMvccGetByStartTsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "MvccGetByStartTs", requestType = org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getMvccGetByStartTsMethod() { io.grpc.MethodDescriptor getMvccGetByStartTsMethod; if ((getMvccGetByStartTsMethod = TikvGrpc.getMvccGetByStartTsMethod) == null) { synchronized (TikvGrpc.class) { if ((getMvccGetByStartTsMethod = TikvGrpc.getMvccGetByStartTsMethod) == null) { TikvGrpc.getMvccGetByStartTsMethod = getMvccGetByStartTsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MvccGetByStartTs")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("MvccGetByStartTs")) .build(); } } } return getMvccGetByStartTsMethod; } private static volatile io.grpc.MethodDescriptor getBatchCommandsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchCommands", requestType = org.tikv.kvproto.Tikvpb.BatchCommandsRequest.class, responseType = org.tikv.kvproto.Tikvpb.BatchCommandsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor getBatchCommandsMethod() { io.grpc.MethodDescriptor getBatchCommandsMethod; if ((getBatchCommandsMethod = TikvGrpc.getBatchCommandsMethod) == null) { synchronized (TikvGrpc.class) { if ((getBatchCommandsMethod = TikvGrpc.getBatchCommandsMethod) == null) { TikvGrpc.getBatchCommandsMethod = getBatchCommandsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCommands")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Tikvpb.BatchCommandsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Tikvpb.BatchCommandsResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("BatchCommands")) .build(); } } } return getBatchCommandsMethod; } private static volatile io.grpc.MethodDescriptor getDispatchMPPTaskMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DispatchMPPTask", requestType = org.tikv.kvproto.Mpp.DispatchTaskRequest.class, responseType = org.tikv.kvproto.Mpp.DispatchTaskResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getDispatchMPPTaskMethod() { io.grpc.MethodDescriptor getDispatchMPPTaskMethod; if ((getDispatchMPPTaskMethod = TikvGrpc.getDispatchMPPTaskMethod) == null) { synchronized (TikvGrpc.class) { if ((getDispatchMPPTaskMethod = TikvGrpc.getDispatchMPPTaskMethod) == null) { TikvGrpc.getDispatchMPPTaskMethod = getDispatchMPPTaskMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DispatchMPPTask")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Mpp.DispatchTaskRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Mpp.DispatchTaskResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("DispatchMPPTask")) .build(); } } } return getDispatchMPPTaskMethod; } private static volatile io.grpc.MethodDescriptor getCancelMPPTaskMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CancelMPPTask", requestType = org.tikv.kvproto.Mpp.CancelTaskRequest.class, responseType = org.tikv.kvproto.Mpp.CancelTaskResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCancelMPPTaskMethod() { io.grpc.MethodDescriptor getCancelMPPTaskMethod; if ((getCancelMPPTaskMethod = TikvGrpc.getCancelMPPTaskMethod) == null) { synchronized (TikvGrpc.class) { if ((getCancelMPPTaskMethod = TikvGrpc.getCancelMPPTaskMethod) == null) { TikvGrpc.getCancelMPPTaskMethod = getCancelMPPTaskMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelMPPTask")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Mpp.CancelTaskRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Mpp.CancelTaskResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("CancelMPPTask")) .build(); } } } return getCancelMPPTaskMethod; } private static volatile io.grpc.MethodDescriptor getEstablishMPPConnectionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "EstablishMPPConnection", requestType = org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest.class, responseType = org.tikv.kvproto.Mpp.MPPDataPacket.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor getEstablishMPPConnectionMethod() { io.grpc.MethodDescriptor getEstablishMPPConnectionMethod; if ((getEstablishMPPConnectionMethod = TikvGrpc.getEstablishMPPConnectionMethod) == null) { synchronized (TikvGrpc.class) { if ((getEstablishMPPConnectionMethod = TikvGrpc.getEstablishMPPConnectionMethod) == null) { TikvGrpc.getEstablishMPPConnectionMethod = getEstablishMPPConnectionMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EstablishMPPConnection")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Mpp.MPPDataPacket.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("EstablishMPPConnection")) .build(); } } } return getEstablishMPPConnectionMethod; } private static volatile io.grpc.MethodDescriptor getCheckLeaderMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CheckLeader", requestType = org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest.class, responseType = org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCheckLeaderMethod() { io.grpc.MethodDescriptor getCheckLeaderMethod; if ((getCheckLeaderMethod = TikvGrpc.getCheckLeaderMethod) == null) { synchronized (TikvGrpc.class) { if ((getCheckLeaderMethod = TikvGrpc.getCheckLeaderMethod) == null) { TikvGrpc.getCheckLeaderMethod = getCheckLeaderMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckLeader")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse.getDefaultInstance())) .setSchemaDescriptor(new TikvMethodDescriptorSupplier("CheckLeader")) .build(); } } } return getCheckLeaderMethod; } /** * Creates a new async stub that supports all call types for the service */ public static TikvStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TikvStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TikvStub(channel, callOptions); } }; return TikvStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static TikvBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TikvBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TikvBlockingStub(channel, callOptions); } }; return TikvBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static TikvFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public TikvFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TikvFutureStub(channel, callOptions); } }; return TikvFutureStub.newStub(factory, channel); } /** *
   * Key/value store API for TiKV.
   * 
*/ public static abstract class TikvImplBase implements io.grpc.BindableService { /** *
     * Commands using a transactional interface.
     * 
*/ public void kvGet(org.tikv.kvproto.Kvrpcpb.GetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvGetMethod(), responseObserver); } /** */ public void kvScan(org.tikv.kvproto.Kvrpcpb.ScanRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvScanMethod(), responseObserver); } /** */ public void kvPrewrite(org.tikv.kvproto.Kvrpcpb.PrewriteRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvPrewriteMethod(), responseObserver); } /** */ public void kvPessimisticLock(org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvPessimisticLockMethod(), responseObserver); } /** */ public void kVPessimisticRollback(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKVPessimisticRollbackMethod(), responseObserver); } /** */ public void kvTxnHeartBeat(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvTxnHeartBeatMethod(), responseObserver); } /** */ public void kvCheckTxnStatus(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvCheckTxnStatusMethod(), responseObserver); } /** */ public void kvCheckSecondaryLocks(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvCheckSecondaryLocksMethod(), responseObserver); } /** */ public void kvCommit(org.tikv.kvproto.Kvrpcpb.CommitRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvCommitMethod(), responseObserver); } /** */ public void kvImport(org.tikv.kvproto.Kvrpcpb.ImportRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvImportMethod(), responseObserver); } /** */ public void kvCleanup(org.tikv.kvproto.Kvrpcpb.CleanupRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvCleanupMethod(), responseObserver); } /** */ public void kvBatchGet(org.tikv.kvproto.Kvrpcpb.BatchGetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvBatchGetMethod(), responseObserver); } /** */ public void kvBatchRollback(org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvBatchRollbackMethod(), responseObserver); } /** */ public void kvScanLock(org.tikv.kvproto.Kvrpcpb.ScanLockRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvScanLockMethod(), responseObserver); } /** */ public void kvResolveLock(org.tikv.kvproto.Kvrpcpb.ResolveLockRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvResolveLockMethod(), responseObserver); } /** */ public void kvGC(org.tikv.kvproto.Kvrpcpb.GCRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvGCMethod(), responseObserver); } /** */ public void kvDeleteRange(org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getKvDeleteRangeMethod(), responseObserver); } /** *
     * Raw commands; no transaction support.
     * 
*/ public void rawGet(org.tikv.kvproto.Kvrpcpb.RawGetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawGetMethod(), responseObserver); } /** */ public void rawBatchGet(org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawBatchGetMethod(), responseObserver); } /** */ public void rawPut(org.tikv.kvproto.Kvrpcpb.RawPutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawPutMethod(), responseObserver); } /** */ public void rawBatchPut(org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawBatchPutMethod(), responseObserver); } /** */ public void rawDelete(org.tikv.kvproto.Kvrpcpb.RawDeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawDeleteMethod(), responseObserver); } /** */ public void rawBatchDelete(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawBatchDeleteMethod(), responseObserver); } /** */ public void rawScan(org.tikv.kvproto.Kvrpcpb.RawScanRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawScanMethod(), responseObserver); } /** */ public void rawDeleteRange(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawDeleteRangeMethod(), responseObserver); } /** */ public void rawBatchScan(org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawBatchScanMethod(), responseObserver); } /** *
     * Get TTL of the key. Returns 0 if TTL is not set for the key.
     * 
*/ public void rawGetKeyTTL(org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawGetKeyTTLMethod(), responseObserver); } /** *
     * Compare if the value in database equals to `RawCASRequest.previous_value` before putting the new value. If not, this request will have no effect and the value in the database will be returned.
     * 
*/ public void rawCompareAndSwap(org.tikv.kvproto.Kvrpcpb.RawCASRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRawCompareAndSwapMethod(), responseObserver); } /** *
     * VerKV commands.
     * 
*/ public void verGet(org.tikv.kvproto.Kvrpcpb.VerGetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getVerGetMethod(), responseObserver); } /** */ public void verBatchGet(org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getVerBatchGetMethod(), responseObserver); } /** */ public void verMut(org.tikv.kvproto.Kvrpcpb.VerMutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getVerMutMethod(), responseObserver); } /** */ public void verBatchMut(org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getVerBatchMutMethod(), responseObserver); } /** */ public void verScan(org.tikv.kvproto.Kvrpcpb.VerScanRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getVerScanMethod(), responseObserver); } /** */ public void verDeleteRange(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getVerDeleteRangeMethod(), responseObserver); } /** *
     * Store commands (sent to a each TiKV node in a cluster, rather than a certain region).
     * 
*/ public void unsafeDestroyRange(org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getUnsafeDestroyRangeMethod(), responseObserver); } /** */ public void registerLockObserver(org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRegisterLockObserverMethod(), responseObserver); } /** */ public void checkLockObserver(org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getCheckLockObserverMethod(), responseObserver); } /** */ public void removeLockObserver(org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRemoveLockObserverMethod(), responseObserver); } /** */ public void physicalScanLock(org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getPhysicalScanLockMethod(), responseObserver); } /** *
     * Commands for executing SQL in the TiKV coprocessor (i.e., 'pushed down' to TiKV rather than
     * executed in TiDB).
     * 
*/ public void coprocessor(org.tikv.kvproto.Coprocessor.Request request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getCoprocessorMethod(), responseObserver); } /** */ public void coprocessorStream(org.tikv.kvproto.Coprocessor.Request request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getCoprocessorStreamMethod(), responseObserver); } /** */ public void batchCoprocessor(org.tikv.kvproto.Coprocessor.BatchRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getBatchCoprocessorMethod(), responseObserver); } /** *
     * Command for executing custom user requests in TiKV coprocessor_v2.
     * 
*/ public void coprocessorV2(org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getCoprocessorV2Method(), responseObserver); } /** *
     * Raft commands (sent between TiKV nodes).
     * 
*/ public io.grpc.stub.StreamObserver raft( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getRaftMethod(), responseObserver); } /** */ public io.grpc.stub.StreamObserver batchRaft( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getBatchRaftMethod(), responseObserver); } /** */ public io.grpc.stub.StreamObserver snapshot( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getSnapshotMethod(), responseObserver); } /** *
     * Sent from PD or TiDB to a TiKV node.
     * 
*/ public void splitRegion(org.tikv.kvproto.Kvrpcpb.SplitRegionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getSplitRegionMethod(), responseObserver); } /** *
     * Sent from TiFlash or TiKV to a TiKV node.
     * 
*/ public void readIndex(org.tikv.kvproto.Kvrpcpb.ReadIndexRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getReadIndexMethod(), responseObserver); } /** *
     * Commands for debugging transactions.
     * 
*/ public void mvccGetByKey(org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getMvccGetByKeyMethod(), responseObserver); } /** */ public void mvccGetByStartTs(org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getMvccGetByStartTsMethod(), responseObserver); } /** *
     * Batched commands.
     * 
*/ public io.grpc.stub.StreamObserver batchCommands( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getBatchCommandsMethod(), responseObserver); } /** *
     * These are for mpp execution.
     * 
*/ public void dispatchMPPTask(org.tikv.kvproto.Mpp.DispatchTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getDispatchMPPTaskMethod(), responseObserver); } /** */ public void cancelMPPTask(org.tikv.kvproto.Mpp.CancelTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getCancelMPPTaskMethod(), responseObserver); } /** */ public void establishMPPConnection(org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getEstablishMPPConnectionMethod(), responseObserver); } /** *
     */ CheckLeader sends all information (includes region term and epoch) to other stores.
     * / Once a store receives a request, it checks term and epoch for each region, and sends the regions whose 
     * / term and epoch match with local information in the store.
     * / After the client collected all responses from all stores, it checks if got a quorum of responses from
     * / other stores for every region, and decides to advance resolved ts from these regions.
     * 
*/ public void checkLeader(org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getCheckLeaderMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getKvGetMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.GetRequest, org.tikv.kvproto.Kvrpcpb.GetResponse>( this, METHODID_KV_GET))) .addMethod( getKvScanMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.ScanRequest, org.tikv.kvproto.Kvrpcpb.ScanResponse>( this, METHODID_KV_SCAN))) .addMethod( getKvPrewriteMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.PrewriteRequest, org.tikv.kvproto.Kvrpcpb.PrewriteResponse>( this, METHODID_KV_PREWRITE))) .addMethod( getKvPessimisticLockMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest, org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse>( this, METHODID_KV_PESSIMISTIC_LOCK))) .addMethod( getKVPessimisticRollbackMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse>( this, METHODID_KVPESSIMISTIC_ROLLBACK))) .addMethod( getKvTxnHeartBeatMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse>( this, METHODID_KV_TXN_HEART_BEAT))) .addMethod( getKvCheckTxnStatusMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse>( this, METHODID_KV_CHECK_TXN_STATUS))) .addMethod( getKvCheckSecondaryLocksMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse>( this, METHODID_KV_CHECK_SECONDARY_LOCKS))) .addMethod( getKvCommitMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.CommitRequest, org.tikv.kvproto.Kvrpcpb.CommitResponse>( this, METHODID_KV_COMMIT))) .addMethod( getKvImportMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.ImportRequest, org.tikv.kvproto.Kvrpcpb.ImportResponse>( this, METHODID_KV_IMPORT))) .addMethod( getKvCleanupMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.CleanupRequest, org.tikv.kvproto.Kvrpcpb.CleanupResponse>( this, METHODID_KV_CLEANUP))) .addMethod( getKvBatchGetMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.BatchGetRequest, org.tikv.kvproto.Kvrpcpb.BatchGetResponse>( this, METHODID_KV_BATCH_GET))) .addMethod( getKvBatchRollbackMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest, org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse>( this, METHODID_KV_BATCH_ROLLBACK))) .addMethod( getKvScanLockMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.ScanLockRequest, org.tikv.kvproto.Kvrpcpb.ScanLockResponse>( this, METHODID_KV_SCAN_LOCK))) .addMethod( getKvResolveLockMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.ResolveLockRequest, org.tikv.kvproto.Kvrpcpb.ResolveLockResponse>( this, METHODID_KV_RESOLVE_LOCK))) .addMethod( getKvGCMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.GCRequest, org.tikv.kvproto.Kvrpcpb.GCResponse>( this, METHODID_KV_GC))) .addMethod( getKvDeleteRangeMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse>( this, METHODID_KV_DELETE_RANGE))) .addMethod( getRawGetMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawGetRequest, org.tikv.kvproto.Kvrpcpb.RawGetResponse>( this, METHODID_RAW_GET))) .addMethod( getRawBatchGetMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest, org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse>( this, METHODID_RAW_BATCH_GET))) .addMethod( getRawPutMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawPutRequest, org.tikv.kvproto.Kvrpcpb.RawPutResponse>( this, METHODID_RAW_PUT))) .addMethod( getRawBatchPutMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest, org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse>( this, METHODID_RAW_BATCH_PUT))) .addMethod( getRawDeleteMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawDeleteRequest, org.tikv.kvproto.Kvrpcpb.RawDeleteResponse>( this, METHODID_RAW_DELETE))) .addMethod( getRawBatchDeleteMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse>( this, METHODID_RAW_BATCH_DELETE))) .addMethod( getRawScanMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawScanRequest, org.tikv.kvproto.Kvrpcpb.RawScanResponse>( this, METHODID_RAW_SCAN))) .addMethod( getRawDeleteRangeMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse>( this, METHODID_RAW_DELETE_RANGE))) .addMethod( getRawBatchScanMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest, org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse>( this, METHODID_RAW_BATCH_SCAN))) .addMethod( getRawGetKeyTTLMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest, org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse>( this, METHODID_RAW_GET_KEY_TTL))) .addMethod( getRawCompareAndSwapMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RawCASRequest, org.tikv.kvproto.Kvrpcpb.RawCASResponse>( this, METHODID_RAW_COMPARE_AND_SWAP))) .addMethod( getVerGetMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.VerGetRequest, org.tikv.kvproto.Kvrpcpb.VerGetResponse>( this, METHODID_VER_GET))) .addMethod( getVerBatchGetMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest, org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse>( this, METHODID_VER_BATCH_GET))) .addMethod( getVerMutMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.VerMutRequest, org.tikv.kvproto.Kvrpcpb.VerMutResponse>( this, METHODID_VER_MUT))) .addMethod( getVerBatchMutMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest, org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse>( this, METHODID_VER_BATCH_MUT))) .addMethod( getVerScanMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.VerScanRequest, org.tikv.kvproto.Kvrpcpb.VerScanResponse>( this, METHODID_VER_SCAN))) .addMethod( getVerDeleteRangeMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse>( this, METHODID_VER_DELETE_RANGE))) .addMethod( getUnsafeDestroyRangeMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest, org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse>( this, METHODID_UNSAFE_DESTROY_RANGE))) .addMethod( getRegisterLockObserverMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest, org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse>( this, METHODID_REGISTER_LOCK_OBSERVER))) .addMethod( getCheckLockObserverMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest, org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse>( this, METHODID_CHECK_LOCK_OBSERVER))) .addMethod( getRemoveLockObserverMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest, org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse>( this, METHODID_REMOVE_LOCK_OBSERVER))) .addMethod( getPhysicalScanLockMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest, org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse>( this, METHODID_PHYSICAL_SCAN_LOCK))) .addMethod( getCoprocessorMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Coprocessor.Request, org.tikv.kvproto.Coprocessor.Response>( this, METHODID_COPROCESSOR))) .addMethod( getCoprocessorStreamMethod(), asyncServerStreamingCall( new MethodHandlers< org.tikv.kvproto.Coprocessor.Request, org.tikv.kvproto.Coprocessor.Response>( this, METHODID_COPROCESSOR_STREAM))) .addMethod( getBatchCoprocessorMethod(), asyncServerStreamingCall( new MethodHandlers< org.tikv.kvproto.Coprocessor.BatchRequest, org.tikv.kvproto.Coprocessor.BatchResponse>( this, METHODID_BATCH_COPROCESSOR))) .addMethod( getCoprocessorV2Method(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest, org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse>( this, METHODID_COPROCESSOR_V2))) .addMethod( getRaftMethod(), asyncClientStreamingCall( new MethodHandlers< org.tikv.kvproto.RaftServerpb.RaftMessage, org.tikv.kvproto.RaftServerpb.Done>( this, METHODID_RAFT))) .addMethod( getBatchRaftMethod(), asyncClientStreamingCall( new MethodHandlers< org.tikv.kvproto.Tikvpb.BatchRaftMessage, org.tikv.kvproto.RaftServerpb.Done>( this, METHODID_BATCH_RAFT))) .addMethod( getSnapshotMethod(), asyncClientStreamingCall( new MethodHandlers< org.tikv.kvproto.RaftServerpb.SnapshotChunk, org.tikv.kvproto.RaftServerpb.Done>( this, METHODID_SNAPSHOT))) .addMethod( getSplitRegionMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.SplitRegionRequest, org.tikv.kvproto.Kvrpcpb.SplitRegionResponse>( this, METHODID_SPLIT_REGION))) .addMethod( getReadIndexMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.ReadIndexRequest, org.tikv.kvproto.Kvrpcpb.ReadIndexResponse>( this, METHODID_READ_INDEX))) .addMethod( getMvccGetByKeyMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest, org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse>( this, METHODID_MVCC_GET_BY_KEY))) .addMethod( getMvccGetByStartTsMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest, org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse>( this, METHODID_MVCC_GET_BY_START_TS))) .addMethod( getBatchCommandsMethod(), asyncBidiStreamingCall( new MethodHandlers< org.tikv.kvproto.Tikvpb.BatchCommandsRequest, org.tikv.kvproto.Tikvpb.BatchCommandsResponse>( this, METHODID_BATCH_COMMANDS))) .addMethod( getDispatchMPPTaskMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Mpp.DispatchTaskRequest, org.tikv.kvproto.Mpp.DispatchTaskResponse>( this, METHODID_DISPATCH_MPPTASK))) .addMethod( getCancelMPPTaskMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Mpp.CancelTaskRequest, org.tikv.kvproto.Mpp.CancelTaskResponse>( this, METHODID_CANCEL_MPPTASK))) .addMethod( getEstablishMPPConnectionMethod(), asyncServerStreamingCall( new MethodHandlers< org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest, org.tikv.kvproto.Mpp.MPPDataPacket>( this, METHODID_ESTABLISH_MPPCONNECTION))) .addMethod( getCheckLeaderMethod(), asyncUnaryCall( new MethodHandlers< org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest, org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse>( this, METHODID_CHECK_LEADER))) .build(); } } /** *
   * Key/value store API for TiKV.
   * 
*/ public static final class TikvStub extends io.grpc.stub.AbstractAsyncStub { private TikvStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TikvStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TikvStub(channel, callOptions); } /** *
     * Commands using a transactional interface.
     * 
*/ public void kvGet(org.tikv.kvproto.Kvrpcpb.GetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvGetMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvScan(org.tikv.kvproto.Kvrpcpb.ScanRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvScanMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvPrewrite(org.tikv.kvproto.Kvrpcpb.PrewriteRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvPrewriteMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvPessimisticLock(org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvPessimisticLockMethod(), getCallOptions()), request, responseObserver); } /** */ public void kVPessimisticRollback(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKVPessimisticRollbackMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvTxnHeartBeat(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvTxnHeartBeatMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvCheckTxnStatus(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvCheckTxnStatusMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvCheckSecondaryLocks(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvCheckSecondaryLocksMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvCommit(org.tikv.kvproto.Kvrpcpb.CommitRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvCommitMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvImport(org.tikv.kvproto.Kvrpcpb.ImportRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvImportMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvCleanup(org.tikv.kvproto.Kvrpcpb.CleanupRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvCleanupMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvBatchGet(org.tikv.kvproto.Kvrpcpb.BatchGetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvBatchGetMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvBatchRollback(org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvBatchRollbackMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvScanLock(org.tikv.kvproto.Kvrpcpb.ScanLockRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvScanLockMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvResolveLock(org.tikv.kvproto.Kvrpcpb.ResolveLockRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvResolveLockMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvGC(org.tikv.kvproto.Kvrpcpb.GCRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvGCMethod(), getCallOptions()), request, responseObserver); } /** */ public void kvDeleteRange(org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getKvDeleteRangeMethod(), getCallOptions()), request, responseObserver); } /** *
     * Raw commands; no transaction support.
     * 
*/ public void rawGet(org.tikv.kvproto.Kvrpcpb.RawGetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawGetMethod(), getCallOptions()), request, responseObserver); } /** */ public void rawBatchGet(org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawBatchGetMethod(), getCallOptions()), request, responseObserver); } /** */ public void rawPut(org.tikv.kvproto.Kvrpcpb.RawPutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawPutMethod(), getCallOptions()), request, responseObserver); } /** */ public void rawBatchPut(org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawBatchPutMethod(), getCallOptions()), request, responseObserver); } /** */ public void rawDelete(org.tikv.kvproto.Kvrpcpb.RawDeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawDeleteMethod(), getCallOptions()), request, responseObserver); } /** */ public void rawBatchDelete(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawBatchDeleteMethod(), getCallOptions()), request, responseObserver); } /** */ public void rawScan(org.tikv.kvproto.Kvrpcpb.RawScanRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawScanMethod(), getCallOptions()), request, responseObserver); } /** */ public void rawDeleteRange(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawDeleteRangeMethod(), getCallOptions()), request, responseObserver); } /** */ public void rawBatchScan(org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawBatchScanMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get TTL of the key. Returns 0 if TTL is not set for the key.
     * 
*/ public void rawGetKeyTTL(org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawGetKeyTTLMethod(), getCallOptions()), request, responseObserver); } /** *
     * Compare if the value in database equals to `RawCASRequest.previous_value` before putting the new value. If not, this request will have no effect and the value in the database will be returned.
     * 
*/ public void rawCompareAndSwap(org.tikv.kvproto.Kvrpcpb.RawCASRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRawCompareAndSwapMethod(), getCallOptions()), request, responseObserver); } /** *
     * VerKV commands.
     * 
*/ public void verGet(org.tikv.kvproto.Kvrpcpb.VerGetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getVerGetMethod(), getCallOptions()), request, responseObserver); } /** */ public void verBatchGet(org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getVerBatchGetMethod(), getCallOptions()), request, responseObserver); } /** */ public void verMut(org.tikv.kvproto.Kvrpcpb.VerMutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getVerMutMethod(), getCallOptions()), request, responseObserver); } /** */ public void verBatchMut(org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getVerBatchMutMethod(), getCallOptions()), request, responseObserver); } /** */ public void verScan(org.tikv.kvproto.Kvrpcpb.VerScanRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getVerScanMethod(), getCallOptions()), request, responseObserver); } /** */ public void verDeleteRange(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getVerDeleteRangeMethod(), getCallOptions()), request, responseObserver); } /** *
     * Store commands (sent to a each TiKV node in a cluster, rather than a certain region).
     * 
*/ public void unsafeDestroyRange(org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getUnsafeDestroyRangeMethod(), getCallOptions()), request, responseObserver); } /** */ public void registerLockObserver(org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRegisterLockObserverMethod(), getCallOptions()), request, responseObserver); } /** */ public void checkLockObserver(org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getCheckLockObserverMethod(), getCallOptions()), request, responseObserver); } /** */ public void removeLockObserver(org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRemoveLockObserverMethod(), getCallOptions()), request, responseObserver); } /** */ public void physicalScanLock(org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getPhysicalScanLockMethod(), getCallOptions()), request, responseObserver); } /** *
     * Commands for executing SQL in the TiKV coprocessor (i.e., 'pushed down' to TiKV rather than
     * executed in TiDB).
     * 
*/ public void coprocessor(org.tikv.kvproto.Coprocessor.Request request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getCoprocessorMethod(), getCallOptions()), request, responseObserver); } /** */ public void coprocessorStream(org.tikv.kvproto.Coprocessor.Request request, io.grpc.stub.StreamObserver responseObserver) { asyncServerStreamingCall( getChannel().newCall(getCoprocessorStreamMethod(), getCallOptions()), request, responseObserver); } /** */ public void batchCoprocessor(org.tikv.kvproto.Coprocessor.BatchRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncServerStreamingCall( getChannel().newCall(getBatchCoprocessorMethod(), getCallOptions()), request, responseObserver); } /** *
     * Command for executing custom user requests in TiKV coprocessor_v2.
     * 
*/ public void coprocessorV2(org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getCoprocessorV2Method(), getCallOptions()), request, responseObserver); } /** *
     * Raft commands (sent between TiKV nodes).
     * 
*/ public io.grpc.stub.StreamObserver raft( io.grpc.stub.StreamObserver responseObserver) { return asyncClientStreamingCall( getChannel().newCall(getRaftMethod(), getCallOptions()), responseObserver); } /** */ public io.grpc.stub.StreamObserver batchRaft( io.grpc.stub.StreamObserver responseObserver) { return asyncClientStreamingCall( getChannel().newCall(getBatchRaftMethod(), getCallOptions()), responseObserver); } /** */ public io.grpc.stub.StreamObserver snapshot( io.grpc.stub.StreamObserver responseObserver) { return asyncClientStreamingCall( getChannel().newCall(getSnapshotMethod(), getCallOptions()), responseObserver); } /** *
     * Sent from PD or TiDB to a TiKV node.
     * 
*/ public void splitRegion(org.tikv.kvproto.Kvrpcpb.SplitRegionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getSplitRegionMethod(), getCallOptions()), request, responseObserver); } /** *
     * Sent from TiFlash or TiKV to a TiKV node.
     * 
*/ public void readIndex(org.tikv.kvproto.Kvrpcpb.ReadIndexRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getReadIndexMethod(), getCallOptions()), request, responseObserver); } /** *
     * Commands for debugging transactions.
     * 
*/ public void mvccGetByKey(org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getMvccGetByKeyMethod(), getCallOptions()), request, responseObserver); } /** */ public void mvccGetByStartTs(org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getMvccGetByStartTsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Batched commands.
     * 
*/ public io.grpc.stub.StreamObserver batchCommands( io.grpc.stub.StreamObserver responseObserver) { return asyncBidiStreamingCall( getChannel().newCall(getBatchCommandsMethod(), getCallOptions()), responseObserver); } /** *
     * These are for mpp execution.
     * 
*/ public void dispatchMPPTask(org.tikv.kvproto.Mpp.DispatchTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getDispatchMPPTaskMethod(), getCallOptions()), request, responseObserver); } /** */ public void cancelMPPTask(org.tikv.kvproto.Mpp.CancelTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getCancelMPPTaskMethod(), getCallOptions()), request, responseObserver); } /** */ public void establishMPPConnection(org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncServerStreamingCall( getChannel().newCall(getEstablishMPPConnectionMethod(), getCallOptions()), request, responseObserver); } /** *
     */ CheckLeader sends all information (includes region term and epoch) to other stores.
     * / Once a store receives a request, it checks term and epoch for each region, and sends the regions whose 
     * / term and epoch match with local information in the store.
     * / After the client collected all responses from all stores, it checks if got a quorum of responses from
     * / other stores for every region, and decides to advance resolved ts from these regions.
     * 
*/ public void checkLeader(org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getCheckLeaderMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Key/value store API for TiKV.
   * 
*/ public static final class TikvBlockingStub extends io.grpc.stub.AbstractBlockingStub { private TikvBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TikvBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TikvBlockingStub(channel, callOptions); } /** *
     * Commands using a transactional interface.
     * 
*/ public org.tikv.kvproto.Kvrpcpb.GetResponse kvGet(org.tikv.kvproto.Kvrpcpb.GetRequest request) { return blockingUnaryCall( getChannel(), getKvGetMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.ScanResponse kvScan(org.tikv.kvproto.Kvrpcpb.ScanRequest request) { return blockingUnaryCall( getChannel(), getKvScanMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.PrewriteResponse kvPrewrite(org.tikv.kvproto.Kvrpcpb.PrewriteRequest request) { return blockingUnaryCall( getChannel(), getKvPrewriteMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse kvPessimisticLock(org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest request) { return blockingUnaryCall( getChannel(), getKvPessimisticLockMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse kVPessimisticRollback(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest request) { return blockingUnaryCall( getChannel(), getKVPessimisticRollbackMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse kvTxnHeartBeat(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest request) { return blockingUnaryCall( getChannel(), getKvTxnHeartBeatMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse kvCheckTxnStatus(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest request) { return blockingUnaryCall( getChannel(), getKvCheckTxnStatusMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse kvCheckSecondaryLocks(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest request) { return blockingUnaryCall( getChannel(), getKvCheckSecondaryLocksMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.CommitResponse kvCommit(org.tikv.kvproto.Kvrpcpb.CommitRequest request) { return blockingUnaryCall( getChannel(), getKvCommitMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.ImportResponse kvImport(org.tikv.kvproto.Kvrpcpb.ImportRequest request) { return blockingUnaryCall( getChannel(), getKvImportMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.CleanupResponse kvCleanup(org.tikv.kvproto.Kvrpcpb.CleanupRequest request) { return blockingUnaryCall( getChannel(), getKvCleanupMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.BatchGetResponse kvBatchGet(org.tikv.kvproto.Kvrpcpb.BatchGetRequest request) { return blockingUnaryCall( getChannel(), getKvBatchGetMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse kvBatchRollback(org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest request) { return blockingUnaryCall( getChannel(), getKvBatchRollbackMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.ScanLockResponse kvScanLock(org.tikv.kvproto.Kvrpcpb.ScanLockRequest request) { return blockingUnaryCall( getChannel(), getKvScanLockMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.ResolveLockResponse kvResolveLock(org.tikv.kvproto.Kvrpcpb.ResolveLockRequest request) { return blockingUnaryCall( getChannel(), getKvResolveLockMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.GCResponse kvGC(org.tikv.kvproto.Kvrpcpb.GCRequest request) { return blockingUnaryCall( getChannel(), getKvGCMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse kvDeleteRange(org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest request) { return blockingUnaryCall( getChannel(), getKvDeleteRangeMethod(), getCallOptions(), request); } /** *
     * Raw commands; no transaction support.
     * 
*/ public org.tikv.kvproto.Kvrpcpb.RawGetResponse rawGet(org.tikv.kvproto.Kvrpcpb.RawGetRequest request) { return blockingUnaryCall( getChannel(), getRawGetMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse rawBatchGet(org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest request) { return blockingUnaryCall( getChannel(), getRawBatchGetMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.RawPutResponse rawPut(org.tikv.kvproto.Kvrpcpb.RawPutRequest request) { return blockingUnaryCall( getChannel(), getRawPutMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse rawBatchPut(org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest request) { return blockingUnaryCall( getChannel(), getRawBatchPutMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.RawDeleteResponse rawDelete(org.tikv.kvproto.Kvrpcpb.RawDeleteRequest request) { return blockingUnaryCall( getChannel(), getRawDeleteMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse rawBatchDelete(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest request) { return blockingUnaryCall( getChannel(), getRawBatchDeleteMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.RawScanResponse rawScan(org.tikv.kvproto.Kvrpcpb.RawScanRequest request) { return blockingUnaryCall( getChannel(), getRawScanMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse rawDeleteRange(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest request) { return blockingUnaryCall( getChannel(), getRawDeleteRangeMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse rawBatchScan(org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest request) { return blockingUnaryCall( getChannel(), getRawBatchScanMethod(), getCallOptions(), request); } /** *
     * Get TTL of the key. Returns 0 if TTL is not set for the key.
     * 
*/ public org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse rawGetKeyTTL(org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest request) { return blockingUnaryCall( getChannel(), getRawGetKeyTTLMethod(), getCallOptions(), request); } /** *
     * Compare if the value in database equals to `RawCASRequest.previous_value` before putting the new value. If not, this request will have no effect and the value in the database will be returned.
     * 
*/ public org.tikv.kvproto.Kvrpcpb.RawCASResponse rawCompareAndSwap(org.tikv.kvproto.Kvrpcpb.RawCASRequest request) { return blockingUnaryCall( getChannel(), getRawCompareAndSwapMethod(), getCallOptions(), request); } /** *
     * VerKV commands.
     * 
*/ public org.tikv.kvproto.Kvrpcpb.VerGetResponse verGet(org.tikv.kvproto.Kvrpcpb.VerGetRequest request) { return blockingUnaryCall( getChannel(), getVerGetMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse verBatchGet(org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest request) { return blockingUnaryCall( getChannel(), getVerBatchGetMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.VerMutResponse verMut(org.tikv.kvproto.Kvrpcpb.VerMutRequest request) { return blockingUnaryCall( getChannel(), getVerMutMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse verBatchMut(org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest request) { return blockingUnaryCall( getChannel(), getVerBatchMutMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.VerScanResponse verScan(org.tikv.kvproto.Kvrpcpb.VerScanRequest request) { return blockingUnaryCall( getChannel(), getVerScanMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse verDeleteRange(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest request) { return blockingUnaryCall( getChannel(), getVerDeleteRangeMethod(), getCallOptions(), request); } /** *
     * Store commands (sent to a each TiKV node in a cluster, rather than a certain region).
     * 
*/ public org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse unsafeDestroyRange(org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest request) { return blockingUnaryCall( getChannel(), getUnsafeDestroyRangeMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse registerLockObserver(org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest request) { return blockingUnaryCall( getChannel(), getRegisterLockObserverMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse checkLockObserver(org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest request) { return blockingUnaryCall( getChannel(), getCheckLockObserverMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse removeLockObserver(org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest request) { return blockingUnaryCall( getChannel(), getRemoveLockObserverMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse physicalScanLock(org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest request) { return blockingUnaryCall( getChannel(), getPhysicalScanLockMethod(), getCallOptions(), request); } /** *
     * Commands for executing SQL in the TiKV coprocessor (i.e., 'pushed down' to TiKV rather than
     * executed in TiDB).
     * 
*/ public org.tikv.kvproto.Coprocessor.Response coprocessor(org.tikv.kvproto.Coprocessor.Request request) { return blockingUnaryCall( getChannel(), getCoprocessorMethod(), getCallOptions(), request); } /** */ public java.util.Iterator coprocessorStream( org.tikv.kvproto.Coprocessor.Request request) { return blockingServerStreamingCall( getChannel(), getCoprocessorStreamMethod(), getCallOptions(), request); } /** */ public java.util.Iterator batchCoprocessor( org.tikv.kvproto.Coprocessor.BatchRequest request) { return blockingServerStreamingCall( getChannel(), getBatchCoprocessorMethod(), getCallOptions(), request); } /** *
     * Command for executing custom user requests in TiKV coprocessor_v2.
     * 
*/ public org.tikv.kvproto.CoprocessorV2.RawCoprocessorResponse coprocessorV2(org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest request) { return blockingUnaryCall( getChannel(), getCoprocessorV2Method(), getCallOptions(), request); } /** *
     * Sent from PD or TiDB to a TiKV node.
     * 
*/ public org.tikv.kvproto.Kvrpcpb.SplitRegionResponse splitRegion(org.tikv.kvproto.Kvrpcpb.SplitRegionRequest request) { return blockingUnaryCall( getChannel(), getSplitRegionMethod(), getCallOptions(), request); } /** *
     * Sent from TiFlash or TiKV to a TiKV node.
     * 
*/ public org.tikv.kvproto.Kvrpcpb.ReadIndexResponse readIndex(org.tikv.kvproto.Kvrpcpb.ReadIndexRequest request) { return blockingUnaryCall( getChannel(), getReadIndexMethod(), getCallOptions(), request); } /** *
     * Commands for debugging transactions.
     * 
*/ public org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse mvccGetByKey(org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest request) { return blockingUnaryCall( getChannel(), getMvccGetByKeyMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse mvccGetByStartTs(org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest request) { return blockingUnaryCall( getChannel(), getMvccGetByStartTsMethod(), getCallOptions(), request); } /** *
     * These are for mpp execution.
     * 
*/ public org.tikv.kvproto.Mpp.DispatchTaskResponse dispatchMPPTask(org.tikv.kvproto.Mpp.DispatchTaskRequest request) { return blockingUnaryCall( getChannel(), getDispatchMPPTaskMethod(), getCallOptions(), request); } /** */ public org.tikv.kvproto.Mpp.CancelTaskResponse cancelMPPTask(org.tikv.kvproto.Mpp.CancelTaskRequest request) { return blockingUnaryCall( getChannel(), getCancelMPPTaskMethod(), getCallOptions(), request); } /** */ public java.util.Iterator establishMPPConnection( org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest request) { return blockingServerStreamingCall( getChannel(), getEstablishMPPConnectionMethod(), getCallOptions(), request); } /** *
     */ CheckLeader sends all information (includes region term and epoch) to other stores.
     * / Once a store receives a request, it checks term and epoch for each region, and sends the regions whose 
     * / term and epoch match with local information in the store.
     * / After the client collected all responses from all stores, it checks if got a quorum of responses from
     * / other stores for every region, and decides to advance resolved ts from these regions.
     * 
*/ public org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse checkLeader(org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest request) { return blockingUnaryCall( getChannel(), getCheckLeaderMethod(), getCallOptions(), request); } } /** *
   * Key/value store API for TiKV.
   * 
*/ public static final class TikvFutureStub extends io.grpc.stub.AbstractFutureStub { private TikvFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected TikvFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TikvFutureStub(channel, callOptions); } /** *
     * Commands using a transactional interface.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture kvGet( org.tikv.kvproto.Kvrpcpb.GetRequest request) { return futureUnaryCall( getChannel().newCall(getKvGetMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvScan( org.tikv.kvproto.Kvrpcpb.ScanRequest request) { return futureUnaryCall( getChannel().newCall(getKvScanMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvPrewrite( org.tikv.kvproto.Kvrpcpb.PrewriteRequest request) { return futureUnaryCall( getChannel().newCall(getKvPrewriteMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvPessimisticLock( org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest request) { return futureUnaryCall( getChannel().newCall(getKvPessimisticLockMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kVPessimisticRollback( org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest request) { return futureUnaryCall( getChannel().newCall(getKVPessimisticRollbackMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvTxnHeartBeat( org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest request) { return futureUnaryCall( getChannel().newCall(getKvTxnHeartBeatMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvCheckTxnStatus( org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest request) { return futureUnaryCall( getChannel().newCall(getKvCheckTxnStatusMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvCheckSecondaryLocks( org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest request) { return futureUnaryCall( getChannel().newCall(getKvCheckSecondaryLocksMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvCommit( org.tikv.kvproto.Kvrpcpb.CommitRequest request) { return futureUnaryCall( getChannel().newCall(getKvCommitMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvImport( org.tikv.kvproto.Kvrpcpb.ImportRequest request) { return futureUnaryCall( getChannel().newCall(getKvImportMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvCleanup( org.tikv.kvproto.Kvrpcpb.CleanupRequest request) { return futureUnaryCall( getChannel().newCall(getKvCleanupMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvBatchGet( org.tikv.kvproto.Kvrpcpb.BatchGetRequest request) { return futureUnaryCall( getChannel().newCall(getKvBatchGetMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvBatchRollback( org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest request) { return futureUnaryCall( getChannel().newCall(getKvBatchRollbackMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvScanLock( org.tikv.kvproto.Kvrpcpb.ScanLockRequest request) { return futureUnaryCall( getChannel().newCall(getKvScanLockMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvResolveLock( org.tikv.kvproto.Kvrpcpb.ResolveLockRequest request) { return futureUnaryCall( getChannel().newCall(getKvResolveLockMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvGC( org.tikv.kvproto.Kvrpcpb.GCRequest request) { return futureUnaryCall( getChannel().newCall(getKvGCMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture kvDeleteRange( org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest request) { return futureUnaryCall( getChannel().newCall(getKvDeleteRangeMethod(), getCallOptions()), request); } /** *
     * Raw commands; no transaction support.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture rawGet( org.tikv.kvproto.Kvrpcpb.RawGetRequest request) { return futureUnaryCall( getChannel().newCall(getRawGetMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture rawBatchGet( org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest request) { return futureUnaryCall( getChannel().newCall(getRawBatchGetMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture rawPut( org.tikv.kvproto.Kvrpcpb.RawPutRequest request) { return futureUnaryCall( getChannel().newCall(getRawPutMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture rawBatchPut( org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest request) { return futureUnaryCall( getChannel().newCall(getRawBatchPutMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture rawDelete( org.tikv.kvproto.Kvrpcpb.RawDeleteRequest request) { return futureUnaryCall( getChannel().newCall(getRawDeleteMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture rawBatchDelete( org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest request) { return futureUnaryCall( getChannel().newCall(getRawBatchDeleteMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture rawScan( org.tikv.kvproto.Kvrpcpb.RawScanRequest request) { return futureUnaryCall( getChannel().newCall(getRawScanMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture rawDeleteRange( org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest request) { return futureUnaryCall( getChannel().newCall(getRawDeleteRangeMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture rawBatchScan( org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest request) { return futureUnaryCall( getChannel().newCall(getRawBatchScanMethod(), getCallOptions()), request); } /** *
     * Get TTL of the key. Returns 0 if TTL is not set for the key.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture rawGetKeyTTL( org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest request) { return futureUnaryCall( getChannel().newCall(getRawGetKeyTTLMethod(), getCallOptions()), request); } /** *
     * Compare if the value in database equals to `RawCASRequest.previous_value` before putting the new value. If not, this request will have no effect and the value in the database will be returned.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture rawCompareAndSwap( org.tikv.kvproto.Kvrpcpb.RawCASRequest request) { return futureUnaryCall( getChannel().newCall(getRawCompareAndSwapMethod(), getCallOptions()), request); } /** *
     * VerKV commands.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture verGet( org.tikv.kvproto.Kvrpcpb.VerGetRequest request) { return futureUnaryCall( getChannel().newCall(getVerGetMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture verBatchGet( org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest request) { return futureUnaryCall( getChannel().newCall(getVerBatchGetMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture verMut( org.tikv.kvproto.Kvrpcpb.VerMutRequest request) { return futureUnaryCall( getChannel().newCall(getVerMutMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture verBatchMut( org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest request) { return futureUnaryCall( getChannel().newCall(getVerBatchMutMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture verScan( org.tikv.kvproto.Kvrpcpb.VerScanRequest request) { return futureUnaryCall( getChannel().newCall(getVerScanMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture verDeleteRange( org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest request) { return futureUnaryCall( getChannel().newCall(getVerDeleteRangeMethod(), getCallOptions()), request); } /** *
     * Store commands (sent to a each TiKV node in a cluster, rather than a certain region).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture unsafeDestroyRange( org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest request) { return futureUnaryCall( getChannel().newCall(getUnsafeDestroyRangeMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture registerLockObserver( org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest request) { return futureUnaryCall( getChannel().newCall(getRegisterLockObserverMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture checkLockObserver( org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest request) { return futureUnaryCall( getChannel().newCall(getCheckLockObserverMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture removeLockObserver( org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest request) { return futureUnaryCall( getChannel().newCall(getRemoveLockObserverMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture physicalScanLock( org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest request) { return futureUnaryCall( getChannel().newCall(getPhysicalScanLockMethod(), getCallOptions()), request); } /** *
     * Commands for executing SQL in the TiKV coprocessor (i.e., 'pushed down' to TiKV rather than
     * executed in TiDB).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture coprocessor( org.tikv.kvproto.Coprocessor.Request request) { return futureUnaryCall( getChannel().newCall(getCoprocessorMethod(), getCallOptions()), request); } /** *
     * Command for executing custom user requests in TiKV coprocessor_v2.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture coprocessorV2( org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest request) { return futureUnaryCall( getChannel().newCall(getCoprocessorV2Method(), getCallOptions()), request); } /** *
     * Sent from PD or TiDB to a TiKV node.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture splitRegion( org.tikv.kvproto.Kvrpcpb.SplitRegionRequest request) { return futureUnaryCall( getChannel().newCall(getSplitRegionMethod(), getCallOptions()), request); } /** *
     * Sent from TiFlash or TiKV to a TiKV node.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture readIndex( org.tikv.kvproto.Kvrpcpb.ReadIndexRequest request) { return futureUnaryCall( getChannel().newCall(getReadIndexMethod(), getCallOptions()), request); } /** *
     * Commands for debugging transactions.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture mvccGetByKey( org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest request) { return futureUnaryCall( getChannel().newCall(getMvccGetByKeyMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture mvccGetByStartTs( org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest request) { return futureUnaryCall( getChannel().newCall(getMvccGetByStartTsMethod(), getCallOptions()), request); } /** *
     * These are for mpp execution.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture dispatchMPPTask( org.tikv.kvproto.Mpp.DispatchTaskRequest request) { return futureUnaryCall( getChannel().newCall(getDispatchMPPTaskMethod(), getCallOptions()), request); } /** */ public com.google.common.util.concurrent.ListenableFuture cancelMPPTask( org.tikv.kvproto.Mpp.CancelTaskRequest request) { return futureUnaryCall( getChannel().newCall(getCancelMPPTaskMethod(), getCallOptions()), request); } /** *
     */ CheckLeader sends all information (includes region term and epoch) to other stores.
     * / Once a store receives a request, it checks term and epoch for each region, and sends the regions whose 
     * / term and epoch match with local information in the store.
     * / After the client collected all responses from all stores, it checks if got a quorum of responses from
     * / other stores for every region, and decides to advance resolved ts from these regions.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture checkLeader( org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest request) { return futureUnaryCall( getChannel().newCall(getCheckLeaderMethod(), getCallOptions()), request); } } private static final int METHODID_KV_GET = 0; private static final int METHODID_KV_SCAN = 1; private static final int METHODID_KV_PREWRITE = 2; private static final int METHODID_KV_PESSIMISTIC_LOCK = 3; private static final int METHODID_KVPESSIMISTIC_ROLLBACK = 4; private static final int METHODID_KV_TXN_HEART_BEAT = 5; private static final int METHODID_KV_CHECK_TXN_STATUS = 6; private static final int METHODID_KV_CHECK_SECONDARY_LOCKS = 7; private static final int METHODID_KV_COMMIT = 8; private static final int METHODID_KV_IMPORT = 9; private static final int METHODID_KV_CLEANUP = 10; private static final int METHODID_KV_BATCH_GET = 11; private static final int METHODID_KV_BATCH_ROLLBACK = 12; private static final int METHODID_KV_SCAN_LOCK = 13; private static final int METHODID_KV_RESOLVE_LOCK = 14; private static final int METHODID_KV_GC = 15; private static final int METHODID_KV_DELETE_RANGE = 16; private static final int METHODID_RAW_GET = 17; private static final int METHODID_RAW_BATCH_GET = 18; private static final int METHODID_RAW_PUT = 19; private static final int METHODID_RAW_BATCH_PUT = 20; private static final int METHODID_RAW_DELETE = 21; private static final int METHODID_RAW_BATCH_DELETE = 22; private static final int METHODID_RAW_SCAN = 23; private static final int METHODID_RAW_DELETE_RANGE = 24; private static final int METHODID_RAW_BATCH_SCAN = 25; private static final int METHODID_RAW_GET_KEY_TTL = 26; private static final int METHODID_RAW_COMPARE_AND_SWAP = 27; private static final int METHODID_VER_GET = 28; private static final int METHODID_VER_BATCH_GET = 29; private static final int METHODID_VER_MUT = 30; private static final int METHODID_VER_BATCH_MUT = 31; private static final int METHODID_VER_SCAN = 32; private static final int METHODID_VER_DELETE_RANGE = 33; private static final int METHODID_UNSAFE_DESTROY_RANGE = 34; private static final int METHODID_REGISTER_LOCK_OBSERVER = 35; private static final int METHODID_CHECK_LOCK_OBSERVER = 36; private static final int METHODID_REMOVE_LOCK_OBSERVER = 37; private static final int METHODID_PHYSICAL_SCAN_LOCK = 38; private static final int METHODID_COPROCESSOR = 39; private static final int METHODID_COPROCESSOR_STREAM = 40; private static final int METHODID_BATCH_COPROCESSOR = 41; private static final int METHODID_COPROCESSOR_V2 = 42; private static final int METHODID_SPLIT_REGION = 43; private static final int METHODID_READ_INDEX = 44; private static final int METHODID_MVCC_GET_BY_KEY = 45; private static final int METHODID_MVCC_GET_BY_START_TS = 46; private static final int METHODID_DISPATCH_MPPTASK = 47; private static final int METHODID_CANCEL_MPPTASK = 48; private static final int METHODID_ESTABLISH_MPPCONNECTION = 49; private static final int METHODID_CHECK_LEADER = 50; private static final int METHODID_RAFT = 51; private static final int METHODID_BATCH_RAFT = 52; private static final int METHODID_SNAPSHOT = 53; private static final int METHODID_BATCH_COMMANDS = 54; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final TikvImplBase serviceImpl; private final int methodId; MethodHandlers(TikvImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_KV_GET: serviceImpl.kvGet((org.tikv.kvproto.Kvrpcpb.GetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_SCAN: serviceImpl.kvScan((org.tikv.kvproto.Kvrpcpb.ScanRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_PREWRITE: serviceImpl.kvPrewrite((org.tikv.kvproto.Kvrpcpb.PrewriteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_PESSIMISTIC_LOCK: serviceImpl.kvPessimisticLock((org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KVPESSIMISTIC_ROLLBACK: serviceImpl.kVPessimisticRollback((org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_TXN_HEART_BEAT: serviceImpl.kvTxnHeartBeat((org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_CHECK_TXN_STATUS: serviceImpl.kvCheckTxnStatus((org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_CHECK_SECONDARY_LOCKS: serviceImpl.kvCheckSecondaryLocks((org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_COMMIT: serviceImpl.kvCommit((org.tikv.kvproto.Kvrpcpb.CommitRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_IMPORT: serviceImpl.kvImport((org.tikv.kvproto.Kvrpcpb.ImportRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_CLEANUP: serviceImpl.kvCleanup((org.tikv.kvproto.Kvrpcpb.CleanupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_BATCH_GET: serviceImpl.kvBatchGet((org.tikv.kvproto.Kvrpcpb.BatchGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_BATCH_ROLLBACK: serviceImpl.kvBatchRollback((org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_SCAN_LOCK: serviceImpl.kvScanLock((org.tikv.kvproto.Kvrpcpb.ScanLockRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_RESOLVE_LOCK: serviceImpl.kvResolveLock((org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_GC: serviceImpl.kvGC((org.tikv.kvproto.Kvrpcpb.GCRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_KV_DELETE_RANGE: serviceImpl.kvDeleteRange((org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_GET: serviceImpl.rawGet((org.tikv.kvproto.Kvrpcpb.RawGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_BATCH_GET: serviceImpl.rawBatchGet((org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_PUT: serviceImpl.rawPut((org.tikv.kvproto.Kvrpcpb.RawPutRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_BATCH_PUT: serviceImpl.rawBatchPut((org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_DELETE: serviceImpl.rawDelete((org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_BATCH_DELETE: serviceImpl.rawBatchDelete((org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_SCAN: serviceImpl.rawScan((org.tikv.kvproto.Kvrpcpb.RawScanRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_DELETE_RANGE: serviceImpl.rawDeleteRange((org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_BATCH_SCAN: serviceImpl.rawBatchScan((org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_GET_KEY_TTL: serviceImpl.rawGetKeyTTL((org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RAW_COMPARE_AND_SWAP: serviceImpl.rawCompareAndSwap((org.tikv.kvproto.Kvrpcpb.RawCASRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VER_GET: serviceImpl.verGet((org.tikv.kvproto.Kvrpcpb.VerGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VER_BATCH_GET: serviceImpl.verBatchGet((org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VER_MUT: serviceImpl.verMut((org.tikv.kvproto.Kvrpcpb.VerMutRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VER_BATCH_MUT: serviceImpl.verBatchMut((org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VER_SCAN: serviceImpl.verScan((org.tikv.kvproto.Kvrpcpb.VerScanRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VER_DELETE_RANGE: serviceImpl.verDeleteRange((org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UNSAFE_DESTROY_RANGE: serviceImpl.unsafeDestroyRange((org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REGISTER_LOCK_OBSERVER: serviceImpl.registerLockObserver((org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CHECK_LOCK_OBSERVER: serviceImpl.checkLockObserver((org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REMOVE_LOCK_OBSERVER: serviceImpl.removeLockObserver((org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PHYSICAL_SCAN_LOCK: serviceImpl.physicalScanLock((org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COPROCESSOR: serviceImpl.coprocessor((org.tikv.kvproto.Coprocessor.Request) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COPROCESSOR_STREAM: serviceImpl.coprocessorStream((org.tikv.kvproto.Coprocessor.Request) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_COPROCESSOR: serviceImpl.batchCoprocessor((org.tikv.kvproto.Coprocessor.BatchRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COPROCESSOR_V2: serviceImpl.coprocessorV2((org.tikv.kvproto.CoprocessorV2.RawCoprocessorRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SPLIT_REGION: serviceImpl.splitRegion((org.tikv.kvproto.Kvrpcpb.SplitRegionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_READ_INDEX: serviceImpl.readIndex((org.tikv.kvproto.Kvrpcpb.ReadIndexRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_MVCC_GET_BY_KEY: serviceImpl.mvccGetByKey((org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_MVCC_GET_BY_START_TS: serviceImpl.mvccGetByStartTs((org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DISPATCH_MPPTASK: serviceImpl.dispatchMPPTask((org.tikv.kvproto.Mpp.DispatchTaskRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CANCEL_MPPTASK: serviceImpl.cancelMPPTask((org.tikv.kvproto.Mpp.CancelTaskRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ESTABLISH_MPPCONNECTION: serviceImpl.establishMPPConnection((org.tikv.kvproto.Mpp.EstablishMPPConnectionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CHECK_LEADER: serviceImpl.checkLeader((org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_RAFT: return (io.grpc.stub.StreamObserver) serviceImpl.raft( (io.grpc.stub.StreamObserver) responseObserver); case METHODID_BATCH_RAFT: return (io.grpc.stub.StreamObserver) serviceImpl.batchRaft( (io.grpc.stub.StreamObserver) responseObserver); case METHODID_SNAPSHOT: return (io.grpc.stub.StreamObserver) serviceImpl.snapshot( (io.grpc.stub.StreamObserver) responseObserver); case METHODID_BATCH_COMMANDS: return (io.grpc.stub.StreamObserver) serviceImpl.batchCommands( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class TikvBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { TikvBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return org.tikv.kvproto.Tikvpb.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Tikv"); } } private static final class TikvFileDescriptorSupplier extends TikvBaseDescriptorSupplier { TikvFileDescriptorSupplier() {} } private static final class TikvMethodDescriptorSupplier extends TikvBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; TikvMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (TikvGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new TikvFileDescriptorSupplier()) .addMethod(getKvGetMethod()) .addMethod(getKvScanMethod()) .addMethod(getKvPrewriteMethod()) .addMethod(getKvPessimisticLockMethod()) .addMethod(getKVPessimisticRollbackMethod()) .addMethod(getKvTxnHeartBeatMethod()) .addMethod(getKvCheckTxnStatusMethod()) .addMethod(getKvCheckSecondaryLocksMethod()) .addMethod(getKvCommitMethod()) .addMethod(getKvImportMethod()) .addMethod(getKvCleanupMethod()) .addMethod(getKvBatchGetMethod()) .addMethod(getKvBatchRollbackMethod()) .addMethod(getKvScanLockMethod()) .addMethod(getKvResolveLockMethod()) .addMethod(getKvGCMethod()) .addMethod(getKvDeleteRangeMethod()) .addMethod(getRawGetMethod()) .addMethod(getRawBatchGetMethod()) .addMethod(getRawPutMethod()) .addMethod(getRawBatchPutMethod()) .addMethod(getRawDeleteMethod()) .addMethod(getRawBatchDeleteMethod()) .addMethod(getRawScanMethod()) .addMethod(getRawDeleteRangeMethod()) .addMethod(getRawBatchScanMethod()) .addMethod(getRawGetKeyTTLMethod()) .addMethod(getRawCompareAndSwapMethod()) .addMethod(getVerGetMethod()) .addMethod(getVerBatchGetMethod()) .addMethod(getVerMutMethod()) .addMethod(getVerBatchMutMethod()) .addMethod(getVerScanMethod()) .addMethod(getVerDeleteRangeMethod()) .addMethod(getUnsafeDestroyRangeMethod()) .addMethod(getRegisterLockObserverMethod()) .addMethod(getCheckLockObserverMethod()) .addMethod(getRemoveLockObserverMethod()) .addMethod(getPhysicalScanLockMethod()) .addMethod(getCoprocessorMethod()) .addMethod(getCoprocessorStreamMethod()) .addMethod(getBatchCoprocessorMethod()) .addMethod(getCoprocessorV2Method()) .addMethod(getRaftMethod()) .addMethod(getBatchRaftMethod()) .addMethod(getSnapshotMethod()) .addMethod(getSplitRegionMethod()) .addMethod(getReadIndexMethod()) .addMethod(getMvccGetByKeyMethod()) .addMethod(getMvccGetByStartTsMethod()) .addMethod(getBatchCommandsMethod()) .addMethod(getDispatchMPPTaskMethod()) .addMethod(getCancelMPPTaskMethod()) .addMethod(getEstablishMPPConnectionMethod()) .addMethod(getCheckLeaderMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy