Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.tikv.kvproto.PDGrpc Maven / Gradle / Ivy
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;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.29.0)",
comments = "Source: pdpb.proto")
public final class PDGrpc {
private PDGrpc() {}
public static final String SERVICE_NAME = "pdpb.PD";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetMembersMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetMembers",
requestType = org.tikv.kvproto.Pdpb.GetMembersRequest.class,
responseType = org.tikv.kvproto.Pdpb.GetMembersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMembersMethod() {
io.grpc.MethodDescriptor getGetMembersMethod;
if ((getGetMembersMethod = PDGrpc.getGetMembersMethod) == null) {
synchronized (PDGrpc.class) {
if ((getGetMembersMethod = PDGrpc.getGetMembersMethod) == null) {
PDGrpc.getGetMembersMethod = getGetMembersMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembers"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetMembersRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetMembersResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("GetMembers"))
.build();
}
}
}
return getGetMembersMethod;
}
private static volatile io.grpc.MethodDescriptor getTsoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Tso",
requestType = org.tikv.kvproto.Pdpb.TsoRequest.class,
responseType = org.tikv.kvproto.Pdpb.TsoResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getTsoMethod() {
io.grpc.MethodDescriptor getTsoMethod;
if ((getTsoMethod = PDGrpc.getTsoMethod) == null) {
synchronized (PDGrpc.class) {
if ((getTsoMethod = PDGrpc.getTsoMethod) == null) {
PDGrpc.getTsoMethod = getTsoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Tso"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.TsoRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.TsoResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("Tso"))
.build();
}
}
}
return getTsoMethod;
}
private static volatile io.grpc.MethodDescriptor getBootstrapMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Bootstrap",
requestType = org.tikv.kvproto.Pdpb.BootstrapRequest.class,
responseType = org.tikv.kvproto.Pdpb.BootstrapResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getBootstrapMethod() {
io.grpc.MethodDescriptor getBootstrapMethod;
if ((getBootstrapMethod = PDGrpc.getBootstrapMethod) == null) {
synchronized (PDGrpc.class) {
if ((getBootstrapMethod = PDGrpc.getBootstrapMethod) == null) {
PDGrpc.getBootstrapMethod = getBootstrapMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Bootstrap"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.BootstrapRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.BootstrapResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("Bootstrap"))
.build();
}
}
}
return getBootstrapMethod;
}
private static volatile io.grpc.MethodDescriptor getIsBootstrappedMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "IsBootstrapped",
requestType = org.tikv.kvproto.Pdpb.IsBootstrappedRequest.class,
responseType = org.tikv.kvproto.Pdpb.IsBootstrappedResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getIsBootstrappedMethod() {
io.grpc.MethodDescriptor getIsBootstrappedMethod;
if ((getIsBootstrappedMethod = PDGrpc.getIsBootstrappedMethod) == null) {
synchronized (PDGrpc.class) {
if ((getIsBootstrappedMethod = PDGrpc.getIsBootstrappedMethod) == null) {
PDGrpc.getIsBootstrappedMethod = getIsBootstrappedMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "IsBootstrapped"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.IsBootstrappedRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.IsBootstrappedResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("IsBootstrapped"))
.build();
}
}
}
return getIsBootstrappedMethod;
}
private static volatile io.grpc.MethodDescriptor getAllocIDMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AllocID",
requestType = org.tikv.kvproto.Pdpb.AllocIDRequest.class,
responseType = org.tikv.kvproto.Pdpb.AllocIDResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAllocIDMethod() {
io.grpc.MethodDescriptor getAllocIDMethod;
if ((getAllocIDMethod = PDGrpc.getAllocIDMethod) == null) {
synchronized (PDGrpc.class) {
if ((getAllocIDMethod = PDGrpc.getAllocIDMethod) == null) {
PDGrpc.getAllocIDMethod = getAllocIDMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "AllocID"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.AllocIDRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.AllocIDResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("AllocID"))
.build();
}
}
}
return getAllocIDMethod;
}
private static volatile io.grpc.MethodDescriptor getGetStoreMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetStore",
requestType = org.tikv.kvproto.Pdpb.GetStoreRequest.class,
responseType = org.tikv.kvproto.Pdpb.GetStoreResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetStoreMethod() {
io.grpc.MethodDescriptor getGetStoreMethod;
if ((getGetStoreMethod = PDGrpc.getGetStoreMethod) == null) {
synchronized (PDGrpc.class) {
if ((getGetStoreMethod = PDGrpc.getGetStoreMethod) == null) {
PDGrpc.getGetStoreMethod = getGetStoreMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStore"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetStoreRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetStoreResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("GetStore"))
.build();
}
}
}
return getGetStoreMethod;
}
private static volatile io.grpc.MethodDescriptor getPutStoreMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PutStore",
requestType = org.tikv.kvproto.Pdpb.PutStoreRequest.class,
responseType = org.tikv.kvproto.Pdpb.PutStoreResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPutStoreMethod() {
io.grpc.MethodDescriptor getPutStoreMethod;
if ((getPutStoreMethod = PDGrpc.getPutStoreMethod) == null) {
synchronized (PDGrpc.class) {
if ((getPutStoreMethod = PDGrpc.getPutStoreMethod) == null) {
PDGrpc.getPutStoreMethod = getPutStoreMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PutStore"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.PutStoreRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.PutStoreResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("PutStore"))
.build();
}
}
}
return getPutStoreMethod;
}
private static volatile io.grpc.MethodDescriptor getGetAllStoresMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAllStores",
requestType = org.tikv.kvproto.Pdpb.GetAllStoresRequest.class,
responseType = org.tikv.kvproto.Pdpb.GetAllStoresResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetAllStoresMethod() {
io.grpc.MethodDescriptor getGetAllStoresMethod;
if ((getGetAllStoresMethod = PDGrpc.getGetAllStoresMethod) == null) {
synchronized (PDGrpc.class) {
if ((getGetAllStoresMethod = PDGrpc.getGetAllStoresMethod) == null) {
PDGrpc.getGetAllStoresMethod = getGetAllStoresMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAllStores"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetAllStoresRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetAllStoresResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("GetAllStores"))
.build();
}
}
}
return getGetAllStoresMethod;
}
private static volatile io.grpc.MethodDescriptor getStoreHeartbeatMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "StoreHeartbeat",
requestType = org.tikv.kvproto.Pdpb.StoreHeartbeatRequest.class,
responseType = org.tikv.kvproto.Pdpb.StoreHeartbeatResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getStoreHeartbeatMethod() {
io.grpc.MethodDescriptor getStoreHeartbeatMethod;
if ((getStoreHeartbeatMethod = PDGrpc.getStoreHeartbeatMethod) == null) {
synchronized (PDGrpc.class) {
if ((getStoreHeartbeatMethod = PDGrpc.getStoreHeartbeatMethod) == null) {
PDGrpc.getStoreHeartbeatMethod = getStoreHeartbeatMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StoreHeartbeat"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.StoreHeartbeatRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.StoreHeartbeatResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("StoreHeartbeat"))
.build();
}
}
}
return getStoreHeartbeatMethod;
}
private static volatile io.grpc.MethodDescriptor getRegionHeartbeatMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RegionHeartbeat",
requestType = org.tikv.kvproto.Pdpb.RegionHeartbeatRequest.class,
responseType = org.tikv.kvproto.Pdpb.RegionHeartbeatResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getRegionHeartbeatMethod() {
io.grpc.MethodDescriptor getRegionHeartbeatMethod;
if ((getRegionHeartbeatMethod = PDGrpc.getRegionHeartbeatMethod) == null) {
synchronized (PDGrpc.class) {
if ((getRegionHeartbeatMethod = PDGrpc.getRegionHeartbeatMethod) == null) {
PDGrpc.getRegionHeartbeatMethod = getRegionHeartbeatMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegionHeartbeat"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.RegionHeartbeatRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.RegionHeartbeatResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("RegionHeartbeat"))
.build();
}
}
}
return getRegionHeartbeatMethod;
}
private static volatile io.grpc.MethodDescriptor getGetRegionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetRegion",
requestType = org.tikv.kvproto.Pdpb.GetRegionRequest.class,
responseType = org.tikv.kvproto.Pdpb.GetRegionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetRegionMethod() {
io.grpc.MethodDescriptor getGetRegionMethod;
if ((getGetRegionMethod = PDGrpc.getGetRegionMethod) == null) {
synchronized (PDGrpc.class) {
if ((getGetRegionMethod = PDGrpc.getGetRegionMethod) == null) {
PDGrpc.getGetRegionMethod = getGetRegionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRegion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetRegionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetRegionResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("GetRegion"))
.build();
}
}
}
return getGetRegionMethod;
}
private static volatile io.grpc.MethodDescriptor getGetPrevRegionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetPrevRegion",
requestType = org.tikv.kvproto.Pdpb.GetRegionRequest.class,
responseType = org.tikv.kvproto.Pdpb.GetRegionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetPrevRegionMethod() {
io.grpc.MethodDescriptor getGetPrevRegionMethod;
if ((getGetPrevRegionMethod = PDGrpc.getGetPrevRegionMethod) == null) {
synchronized (PDGrpc.class) {
if ((getGetPrevRegionMethod = PDGrpc.getGetPrevRegionMethod) == null) {
PDGrpc.getGetPrevRegionMethod = getGetPrevRegionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPrevRegion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetRegionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetRegionResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("GetPrevRegion"))
.build();
}
}
}
return getGetPrevRegionMethod;
}
private static volatile io.grpc.MethodDescriptor getGetRegionByIDMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetRegionByID",
requestType = org.tikv.kvproto.Pdpb.GetRegionByIDRequest.class,
responseType = org.tikv.kvproto.Pdpb.GetRegionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetRegionByIDMethod() {
io.grpc.MethodDescriptor getGetRegionByIDMethod;
if ((getGetRegionByIDMethod = PDGrpc.getGetRegionByIDMethod) == null) {
synchronized (PDGrpc.class) {
if ((getGetRegionByIDMethod = PDGrpc.getGetRegionByIDMethod) == null) {
PDGrpc.getGetRegionByIDMethod = getGetRegionByIDMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRegionByID"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetRegionByIDRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetRegionResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("GetRegionByID"))
.build();
}
}
}
return getGetRegionByIDMethod;
}
private static volatile io.grpc.MethodDescriptor getScanRegionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ScanRegions",
requestType = org.tikv.kvproto.Pdpb.ScanRegionsRequest.class,
responseType = org.tikv.kvproto.Pdpb.ScanRegionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getScanRegionsMethod() {
io.grpc.MethodDescriptor getScanRegionsMethod;
if ((getScanRegionsMethod = PDGrpc.getScanRegionsMethod) == null) {
synchronized (PDGrpc.class) {
if ((getScanRegionsMethod = PDGrpc.getScanRegionsMethod) == null) {
PDGrpc.getScanRegionsMethod = getScanRegionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScanRegions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.ScanRegionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.ScanRegionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("ScanRegions"))
.build();
}
}
}
return getScanRegionsMethod;
}
private static volatile io.grpc.MethodDescriptor getAskSplitMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AskSplit",
requestType = org.tikv.kvproto.Pdpb.AskSplitRequest.class,
responseType = org.tikv.kvproto.Pdpb.AskSplitResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAskSplitMethod() {
io.grpc.MethodDescriptor getAskSplitMethod;
if ((getAskSplitMethod = PDGrpc.getAskSplitMethod) == null) {
synchronized (PDGrpc.class) {
if ((getAskSplitMethod = PDGrpc.getAskSplitMethod) == null) {
PDGrpc.getAskSplitMethod = getAskSplitMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "AskSplit"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.AskSplitRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.AskSplitResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("AskSplit"))
.build();
}
}
}
return getAskSplitMethod;
}
private static volatile io.grpc.MethodDescriptor getReportSplitMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ReportSplit",
requestType = org.tikv.kvproto.Pdpb.ReportSplitRequest.class,
responseType = org.tikv.kvproto.Pdpb.ReportSplitResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getReportSplitMethod() {
io.grpc.MethodDescriptor getReportSplitMethod;
if ((getReportSplitMethod = PDGrpc.getReportSplitMethod) == null) {
synchronized (PDGrpc.class) {
if ((getReportSplitMethod = PDGrpc.getReportSplitMethod) == null) {
PDGrpc.getReportSplitMethod = getReportSplitMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportSplit"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.ReportSplitRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.ReportSplitResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("ReportSplit"))
.build();
}
}
}
return getReportSplitMethod;
}
private static volatile io.grpc.MethodDescriptor getAskBatchSplitMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AskBatchSplit",
requestType = org.tikv.kvproto.Pdpb.AskBatchSplitRequest.class,
responseType = org.tikv.kvproto.Pdpb.AskBatchSplitResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAskBatchSplitMethod() {
io.grpc.MethodDescriptor getAskBatchSplitMethod;
if ((getAskBatchSplitMethod = PDGrpc.getAskBatchSplitMethod) == null) {
synchronized (PDGrpc.class) {
if ((getAskBatchSplitMethod = PDGrpc.getAskBatchSplitMethod) == null) {
PDGrpc.getAskBatchSplitMethod = getAskBatchSplitMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "AskBatchSplit"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.AskBatchSplitRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.AskBatchSplitResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("AskBatchSplit"))
.build();
}
}
}
return getAskBatchSplitMethod;
}
private static volatile io.grpc.MethodDescriptor getReportBatchSplitMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ReportBatchSplit",
requestType = org.tikv.kvproto.Pdpb.ReportBatchSplitRequest.class,
responseType = org.tikv.kvproto.Pdpb.ReportBatchSplitResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getReportBatchSplitMethod() {
io.grpc.MethodDescriptor getReportBatchSplitMethod;
if ((getReportBatchSplitMethod = PDGrpc.getReportBatchSplitMethod) == null) {
synchronized (PDGrpc.class) {
if ((getReportBatchSplitMethod = PDGrpc.getReportBatchSplitMethod) == null) {
PDGrpc.getReportBatchSplitMethod = getReportBatchSplitMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportBatchSplit"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.ReportBatchSplitRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.ReportBatchSplitResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("ReportBatchSplit"))
.build();
}
}
}
return getReportBatchSplitMethod;
}
private static volatile io.grpc.MethodDescriptor getGetClusterConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetClusterConfig",
requestType = org.tikv.kvproto.Pdpb.GetClusterConfigRequest.class,
responseType = org.tikv.kvproto.Pdpb.GetClusterConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetClusterConfigMethod() {
io.grpc.MethodDescriptor getGetClusterConfigMethod;
if ((getGetClusterConfigMethod = PDGrpc.getGetClusterConfigMethod) == null) {
synchronized (PDGrpc.class) {
if ((getGetClusterConfigMethod = PDGrpc.getGetClusterConfigMethod) == null) {
PDGrpc.getGetClusterConfigMethod = getGetClusterConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClusterConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetClusterConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetClusterConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("GetClusterConfig"))
.build();
}
}
}
return getGetClusterConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getPutClusterConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PutClusterConfig",
requestType = org.tikv.kvproto.Pdpb.PutClusterConfigRequest.class,
responseType = org.tikv.kvproto.Pdpb.PutClusterConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPutClusterConfigMethod() {
io.grpc.MethodDescriptor getPutClusterConfigMethod;
if ((getPutClusterConfigMethod = PDGrpc.getPutClusterConfigMethod) == null) {
synchronized (PDGrpc.class) {
if ((getPutClusterConfigMethod = PDGrpc.getPutClusterConfigMethod) == null) {
PDGrpc.getPutClusterConfigMethod = getPutClusterConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PutClusterConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.PutClusterConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.PutClusterConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("PutClusterConfig"))
.build();
}
}
}
return getPutClusterConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getScatterRegionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ScatterRegion",
requestType = org.tikv.kvproto.Pdpb.ScatterRegionRequest.class,
responseType = org.tikv.kvproto.Pdpb.ScatterRegionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getScatterRegionMethod() {
io.grpc.MethodDescriptor getScatterRegionMethod;
if ((getScatterRegionMethod = PDGrpc.getScatterRegionMethod) == null) {
synchronized (PDGrpc.class) {
if ((getScatterRegionMethod = PDGrpc.getScatterRegionMethod) == null) {
PDGrpc.getScatterRegionMethod = getScatterRegionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScatterRegion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.ScatterRegionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.ScatterRegionResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("ScatterRegion"))
.build();
}
}
}
return getScatterRegionMethod;
}
private static volatile io.grpc.MethodDescriptor getGetGCSafePointMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetGCSafePoint",
requestType = org.tikv.kvproto.Pdpb.GetGCSafePointRequest.class,
responseType = org.tikv.kvproto.Pdpb.GetGCSafePointResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetGCSafePointMethod() {
io.grpc.MethodDescriptor getGetGCSafePointMethod;
if ((getGetGCSafePointMethod = PDGrpc.getGetGCSafePointMethod) == null) {
synchronized (PDGrpc.class) {
if ((getGetGCSafePointMethod = PDGrpc.getGetGCSafePointMethod) == null) {
PDGrpc.getGetGCSafePointMethod = getGetGCSafePointMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGCSafePoint"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetGCSafePointRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetGCSafePointResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("GetGCSafePoint"))
.build();
}
}
}
return getGetGCSafePointMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateGCSafePointMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateGCSafePoint",
requestType = org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest.class,
responseType = org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateGCSafePointMethod() {
io.grpc.MethodDescriptor getUpdateGCSafePointMethod;
if ((getUpdateGCSafePointMethod = PDGrpc.getUpdateGCSafePointMethod) == null) {
synchronized (PDGrpc.class) {
if ((getUpdateGCSafePointMethod = PDGrpc.getUpdateGCSafePointMethod) == null) {
PDGrpc.getUpdateGCSafePointMethod = getUpdateGCSafePointMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGCSafePoint"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("UpdateGCSafePoint"))
.build();
}
}
}
return getUpdateGCSafePointMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateServiceGCSafePointMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateServiceGCSafePoint",
requestType = org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest.class,
responseType = org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateServiceGCSafePointMethod() {
io.grpc.MethodDescriptor getUpdateServiceGCSafePointMethod;
if ((getUpdateServiceGCSafePointMethod = PDGrpc.getUpdateServiceGCSafePointMethod) == null) {
synchronized (PDGrpc.class) {
if ((getUpdateServiceGCSafePointMethod = PDGrpc.getUpdateServiceGCSafePointMethod) == null) {
PDGrpc.getUpdateServiceGCSafePointMethod = getUpdateServiceGCSafePointMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateServiceGCSafePoint"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("UpdateServiceGCSafePoint"))
.build();
}
}
}
return getUpdateServiceGCSafePointMethod;
}
private static volatile io.grpc.MethodDescriptor getSyncRegionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SyncRegions",
requestType = org.tikv.kvproto.Pdpb.SyncRegionRequest.class,
responseType = org.tikv.kvproto.Pdpb.SyncRegionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getSyncRegionsMethod() {
io.grpc.MethodDescriptor getSyncRegionsMethod;
if ((getSyncRegionsMethod = PDGrpc.getSyncRegionsMethod) == null) {
synchronized (PDGrpc.class) {
if ((getSyncRegionsMethod = PDGrpc.getSyncRegionsMethod) == null) {
PDGrpc.getSyncRegionsMethod = getSyncRegionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SyncRegions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.SyncRegionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.SyncRegionResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("SyncRegions"))
.build();
}
}
}
return getSyncRegionsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetOperatorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetOperator",
requestType = org.tikv.kvproto.Pdpb.GetOperatorRequest.class,
responseType = org.tikv.kvproto.Pdpb.GetOperatorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetOperatorMethod() {
io.grpc.MethodDescriptor getGetOperatorMethod;
if ((getGetOperatorMethod = PDGrpc.getGetOperatorMethod) == null) {
synchronized (PDGrpc.class) {
if ((getGetOperatorMethod = PDGrpc.getGetOperatorMethod) == null) {
PDGrpc.getGetOperatorMethod = getGetOperatorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperator"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetOperatorRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetOperatorResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("GetOperator"))
.build();
}
}
}
return getGetOperatorMethod;
}
private static volatile io.grpc.MethodDescriptor getSyncMaxTSMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SyncMaxTS",
requestType = org.tikv.kvproto.Pdpb.SyncMaxTSRequest.class,
responseType = org.tikv.kvproto.Pdpb.SyncMaxTSResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSyncMaxTSMethod() {
io.grpc.MethodDescriptor getSyncMaxTSMethod;
if ((getSyncMaxTSMethod = PDGrpc.getSyncMaxTSMethod) == null) {
synchronized (PDGrpc.class) {
if ((getSyncMaxTSMethod = PDGrpc.getSyncMaxTSMethod) == null) {
PDGrpc.getSyncMaxTSMethod = getSyncMaxTSMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SyncMaxTS"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.SyncMaxTSRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.SyncMaxTSResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("SyncMaxTS"))
.build();
}
}
}
return getSyncMaxTSMethod;
}
private static volatile io.grpc.MethodDescriptor getSplitRegionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SplitRegions",
requestType = org.tikv.kvproto.Pdpb.SplitRegionsRequest.class,
responseType = org.tikv.kvproto.Pdpb.SplitRegionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSplitRegionsMethod() {
io.grpc.MethodDescriptor getSplitRegionsMethod;
if ((getSplitRegionsMethod = PDGrpc.getSplitRegionsMethod) == null) {
synchronized (PDGrpc.class) {
if ((getSplitRegionsMethod = PDGrpc.getSplitRegionsMethod) == null) {
PDGrpc.getSplitRegionsMethod = getSplitRegionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitRegions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.SplitRegionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.SplitRegionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("SplitRegions"))
.build();
}
}
}
return getSplitRegionsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetDCLocationInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetDCLocationInfo",
requestType = org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest.class,
responseType = org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetDCLocationInfoMethod() {
io.grpc.MethodDescriptor getGetDCLocationInfoMethod;
if ((getGetDCLocationInfoMethod = PDGrpc.getGetDCLocationInfoMethod) == null) {
synchronized (PDGrpc.class) {
if ((getGetDCLocationInfoMethod = PDGrpc.getGetDCLocationInfoMethod) == null) {
PDGrpc.getGetDCLocationInfoMethod = getGetDCLocationInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDCLocationInfo"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse.getDefaultInstance()))
.setSchemaDescriptor(new PDMethodDescriptorSupplier("GetDCLocationInfo"))
.build();
}
}
}
return getGetDCLocationInfoMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static PDStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PDStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PDStub(channel, callOptions);
}
};
return PDStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static PDBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PDBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PDBlockingStub(channel, callOptions);
}
};
return PDBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static PDFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PDFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PDFutureStub(channel, callOptions);
}
};
return PDFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class PDImplBase implements io.grpc.BindableService {
/**
*
* GetMembers get the member list of this cluster. It does not require
* the cluster_id in request matchs the id of this cluster.
*
*/
public void getMembers(org.tikv.kvproto.Pdpb.GetMembersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetMembersMethod(), responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver tso(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getTsoMethod(), responseObserver);
}
/**
*/
public void bootstrap(org.tikv.kvproto.Pdpb.BootstrapRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getBootstrapMethod(), responseObserver);
}
/**
*/
public void isBootstrapped(org.tikv.kvproto.Pdpb.IsBootstrappedRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getIsBootstrappedMethod(), responseObserver);
}
/**
*/
public void allocID(org.tikv.kvproto.Pdpb.AllocIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getAllocIDMethod(), responseObserver);
}
/**
*/
public void getStore(org.tikv.kvproto.Pdpb.GetStoreRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetStoreMethod(), responseObserver);
}
/**
*/
public void putStore(org.tikv.kvproto.Pdpb.PutStoreRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getPutStoreMethod(), responseObserver);
}
/**
*/
public void getAllStores(org.tikv.kvproto.Pdpb.GetAllStoresRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetAllStoresMethod(), responseObserver);
}
/**
*/
public void storeHeartbeat(org.tikv.kvproto.Pdpb.StoreHeartbeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getStoreHeartbeatMethod(), responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver regionHeartbeat(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getRegionHeartbeatMethod(), responseObserver);
}
/**
*/
public void getRegion(org.tikv.kvproto.Pdpb.GetRegionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetRegionMethod(), responseObserver);
}
/**
*/
public void getPrevRegion(org.tikv.kvproto.Pdpb.GetRegionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetPrevRegionMethod(), responseObserver);
}
/**
*/
public void getRegionByID(org.tikv.kvproto.Pdpb.GetRegionByIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetRegionByIDMethod(), responseObserver);
}
/**
*/
public void scanRegions(org.tikv.kvproto.Pdpb.ScanRegionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getScanRegionsMethod(), responseObserver);
}
/**
*/
@java.lang.Deprecated
public void askSplit(org.tikv.kvproto.Pdpb.AskSplitRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getAskSplitMethod(), responseObserver);
}
/**
*/
@java.lang.Deprecated
public void reportSplit(org.tikv.kvproto.Pdpb.ReportSplitRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getReportSplitMethod(), responseObserver);
}
/**
*/
public void askBatchSplit(org.tikv.kvproto.Pdpb.AskBatchSplitRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getAskBatchSplitMethod(), responseObserver);
}
/**
*/
public void reportBatchSplit(org.tikv.kvproto.Pdpb.ReportBatchSplitRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getReportBatchSplitMethod(), responseObserver);
}
/**
*/
public void getClusterConfig(org.tikv.kvproto.Pdpb.GetClusterConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetClusterConfigMethod(), responseObserver);
}
/**
*/
public void putClusterConfig(org.tikv.kvproto.Pdpb.PutClusterConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getPutClusterConfigMethod(), responseObserver);
}
/**
*/
public void scatterRegion(org.tikv.kvproto.Pdpb.ScatterRegionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getScatterRegionMethod(), responseObserver);
}
/**
*/
public void getGCSafePoint(org.tikv.kvproto.Pdpb.GetGCSafePointRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetGCSafePointMethod(), responseObserver);
}
/**
*/
public void updateGCSafePoint(org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUpdateGCSafePointMethod(), responseObserver);
}
/**
*/
public void updateServiceGCSafePoint(org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUpdateServiceGCSafePointMethod(), responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver syncRegions(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getSyncRegionsMethod(), responseObserver);
}
/**
*/
public void getOperator(org.tikv.kvproto.Pdpb.GetOperatorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetOperatorMethod(), responseObserver);
}
/**
*/
public void syncMaxTS(org.tikv.kvproto.Pdpb.SyncMaxTSRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getSyncMaxTSMethod(), responseObserver);
}
/**
*/
public void splitRegions(org.tikv.kvproto.Pdpb.SplitRegionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getSplitRegionsMethod(), responseObserver);
}
/**
*/
public void getDCLocationInfo(org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getGetDCLocationInfoMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetMembersMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.GetMembersRequest,
org.tikv.kvproto.Pdpb.GetMembersResponse>(
this, METHODID_GET_MEMBERS)))
.addMethod(
getTsoMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.TsoRequest,
org.tikv.kvproto.Pdpb.TsoResponse>(
this, METHODID_TSO)))
.addMethod(
getBootstrapMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.BootstrapRequest,
org.tikv.kvproto.Pdpb.BootstrapResponse>(
this, METHODID_BOOTSTRAP)))
.addMethod(
getIsBootstrappedMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.IsBootstrappedRequest,
org.tikv.kvproto.Pdpb.IsBootstrappedResponse>(
this, METHODID_IS_BOOTSTRAPPED)))
.addMethod(
getAllocIDMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.AllocIDRequest,
org.tikv.kvproto.Pdpb.AllocIDResponse>(
this, METHODID_ALLOC_ID)))
.addMethod(
getGetStoreMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.GetStoreRequest,
org.tikv.kvproto.Pdpb.GetStoreResponse>(
this, METHODID_GET_STORE)))
.addMethod(
getPutStoreMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.PutStoreRequest,
org.tikv.kvproto.Pdpb.PutStoreResponse>(
this, METHODID_PUT_STORE)))
.addMethod(
getGetAllStoresMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.GetAllStoresRequest,
org.tikv.kvproto.Pdpb.GetAllStoresResponse>(
this, METHODID_GET_ALL_STORES)))
.addMethod(
getStoreHeartbeatMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.StoreHeartbeatRequest,
org.tikv.kvproto.Pdpb.StoreHeartbeatResponse>(
this, METHODID_STORE_HEARTBEAT)))
.addMethod(
getRegionHeartbeatMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.RegionHeartbeatRequest,
org.tikv.kvproto.Pdpb.RegionHeartbeatResponse>(
this, METHODID_REGION_HEARTBEAT)))
.addMethod(
getGetRegionMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.GetRegionRequest,
org.tikv.kvproto.Pdpb.GetRegionResponse>(
this, METHODID_GET_REGION)))
.addMethod(
getGetPrevRegionMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.GetRegionRequest,
org.tikv.kvproto.Pdpb.GetRegionResponse>(
this, METHODID_GET_PREV_REGION)))
.addMethod(
getGetRegionByIDMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.GetRegionByIDRequest,
org.tikv.kvproto.Pdpb.GetRegionResponse>(
this, METHODID_GET_REGION_BY_ID)))
.addMethod(
getScanRegionsMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.ScanRegionsRequest,
org.tikv.kvproto.Pdpb.ScanRegionsResponse>(
this, METHODID_SCAN_REGIONS)))
.addMethod(
getAskSplitMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.AskSplitRequest,
org.tikv.kvproto.Pdpb.AskSplitResponse>(
this, METHODID_ASK_SPLIT)))
.addMethod(
getReportSplitMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.ReportSplitRequest,
org.tikv.kvproto.Pdpb.ReportSplitResponse>(
this, METHODID_REPORT_SPLIT)))
.addMethod(
getAskBatchSplitMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.AskBatchSplitRequest,
org.tikv.kvproto.Pdpb.AskBatchSplitResponse>(
this, METHODID_ASK_BATCH_SPLIT)))
.addMethod(
getReportBatchSplitMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.ReportBatchSplitRequest,
org.tikv.kvproto.Pdpb.ReportBatchSplitResponse>(
this, METHODID_REPORT_BATCH_SPLIT)))
.addMethod(
getGetClusterConfigMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.GetClusterConfigRequest,
org.tikv.kvproto.Pdpb.GetClusterConfigResponse>(
this, METHODID_GET_CLUSTER_CONFIG)))
.addMethod(
getPutClusterConfigMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.PutClusterConfigRequest,
org.tikv.kvproto.Pdpb.PutClusterConfigResponse>(
this, METHODID_PUT_CLUSTER_CONFIG)))
.addMethod(
getScatterRegionMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.ScatterRegionRequest,
org.tikv.kvproto.Pdpb.ScatterRegionResponse>(
this, METHODID_SCATTER_REGION)))
.addMethod(
getGetGCSafePointMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.GetGCSafePointRequest,
org.tikv.kvproto.Pdpb.GetGCSafePointResponse>(
this, METHODID_GET_GCSAFE_POINT)))
.addMethod(
getUpdateGCSafePointMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest,
org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse>(
this, METHODID_UPDATE_GCSAFE_POINT)))
.addMethod(
getUpdateServiceGCSafePointMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest,
org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse>(
this, METHODID_UPDATE_SERVICE_GCSAFE_POINT)))
.addMethod(
getSyncRegionsMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.SyncRegionRequest,
org.tikv.kvproto.Pdpb.SyncRegionResponse>(
this, METHODID_SYNC_REGIONS)))
.addMethod(
getGetOperatorMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.GetOperatorRequest,
org.tikv.kvproto.Pdpb.GetOperatorResponse>(
this, METHODID_GET_OPERATOR)))
.addMethod(
getSyncMaxTSMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.SyncMaxTSRequest,
org.tikv.kvproto.Pdpb.SyncMaxTSResponse>(
this, METHODID_SYNC_MAX_TS)))
.addMethod(
getSplitRegionsMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.SplitRegionsRequest,
org.tikv.kvproto.Pdpb.SplitRegionsResponse>(
this, METHODID_SPLIT_REGIONS)))
.addMethod(
getGetDCLocationInfoMethod(),
asyncUnaryCall(
new MethodHandlers<
org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest,
org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse>(
this, METHODID_GET_DCLOCATION_INFO)))
.build();
}
}
/**
*/
public static final class PDStub extends io.grpc.stub.AbstractAsyncStub {
private PDStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PDStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PDStub(channel, callOptions);
}
/**
*
* GetMembers get the member list of this cluster. It does not require
* the cluster_id in request matchs the id of this cluster.
*
*/
public void getMembers(org.tikv.kvproto.Pdpb.GetMembersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetMembersMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver tso(
io.grpc.stub.StreamObserver responseObserver) {
return asyncBidiStreamingCall(
getChannel().newCall(getTsoMethod(), getCallOptions()), responseObserver);
}
/**
*/
public void bootstrap(org.tikv.kvproto.Pdpb.BootstrapRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getBootstrapMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void isBootstrapped(org.tikv.kvproto.Pdpb.IsBootstrappedRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getIsBootstrappedMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void allocID(org.tikv.kvproto.Pdpb.AllocIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getAllocIDMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getStore(org.tikv.kvproto.Pdpb.GetStoreRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetStoreMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void putStore(org.tikv.kvproto.Pdpb.PutStoreRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getPutStoreMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getAllStores(org.tikv.kvproto.Pdpb.GetAllStoresRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetAllStoresMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void storeHeartbeat(org.tikv.kvproto.Pdpb.StoreHeartbeatRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getStoreHeartbeatMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver regionHeartbeat(
io.grpc.stub.StreamObserver responseObserver) {
return asyncBidiStreamingCall(
getChannel().newCall(getRegionHeartbeatMethod(), getCallOptions()), responseObserver);
}
/**
*/
public void getRegion(org.tikv.kvproto.Pdpb.GetRegionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetRegionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getPrevRegion(org.tikv.kvproto.Pdpb.GetRegionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetPrevRegionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getRegionByID(org.tikv.kvproto.Pdpb.GetRegionByIDRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetRegionByIDMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void scanRegions(org.tikv.kvproto.Pdpb.ScanRegionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getScanRegionsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
@java.lang.Deprecated
public void askSplit(org.tikv.kvproto.Pdpb.AskSplitRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getAskSplitMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
@java.lang.Deprecated
public void reportSplit(org.tikv.kvproto.Pdpb.ReportSplitRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getReportSplitMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void askBatchSplit(org.tikv.kvproto.Pdpb.AskBatchSplitRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getAskBatchSplitMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void reportBatchSplit(org.tikv.kvproto.Pdpb.ReportBatchSplitRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getReportBatchSplitMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getClusterConfig(org.tikv.kvproto.Pdpb.GetClusterConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetClusterConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void putClusterConfig(org.tikv.kvproto.Pdpb.PutClusterConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getPutClusterConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void scatterRegion(org.tikv.kvproto.Pdpb.ScatterRegionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getScatterRegionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getGCSafePoint(org.tikv.kvproto.Pdpb.GetGCSafePointRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetGCSafePointMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateGCSafePoint(org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateGCSafePointMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateServiceGCSafePoint(org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateServiceGCSafePointMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver syncRegions(
io.grpc.stub.StreamObserver responseObserver) {
return asyncBidiStreamingCall(
getChannel().newCall(getSyncRegionsMethod(), getCallOptions()), responseObserver);
}
/**
*/
public void getOperator(org.tikv.kvproto.Pdpb.GetOperatorRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetOperatorMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void syncMaxTS(org.tikv.kvproto.Pdpb.SyncMaxTSRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getSyncMaxTSMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void splitRegions(org.tikv.kvproto.Pdpb.SplitRegionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getSplitRegionsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getDCLocationInfo(org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getGetDCLocationInfoMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class PDBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private PDBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PDBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PDBlockingStub(channel, callOptions);
}
/**
*
* GetMembers get the member list of this cluster. It does not require
* the cluster_id in request matchs the id of this cluster.
*
*/
public org.tikv.kvproto.Pdpb.GetMembersResponse getMembers(org.tikv.kvproto.Pdpb.GetMembersRequest request) {
return blockingUnaryCall(
getChannel(), getGetMembersMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.BootstrapResponse bootstrap(org.tikv.kvproto.Pdpb.BootstrapRequest request) {
return blockingUnaryCall(
getChannel(), getBootstrapMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.IsBootstrappedResponse isBootstrapped(org.tikv.kvproto.Pdpb.IsBootstrappedRequest request) {
return blockingUnaryCall(
getChannel(), getIsBootstrappedMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.AllocIDResponse allocID(org.tikv.kvproto.Pdpb.AllocIDRequest request) {
return blockingUnaryCall(
getChannel(), getAllocIDMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.GetStoreResponse getStore(org.tikv.kvproto.Pdpb.GetStoreRequest request) {
return blockingUnaryCall(
getChannel(), getGetStoreMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.PutStoreResponse putStore(org.tikv.kvproto.Pdpb.PutStoreRequest request) {
return blockingUnaryCall(
getChannel(), getPutStoreMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.GetAllStoresResponse getAllStores(org.tikv.kvproto.Pdpb.GetAllStoresRequest request) {
return blockingUnaryCall(
getChannel(), getGetAllStoresMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.StoreHeartbeatResponse storeHeartbeat(org.tikv.kvproto.Pdpb.StoreHeartbeatRequest request) {
return blockingUnaryCall(
getChannel(), getStoreHeartbeatMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.GetRegionResponse getRegion(org.tikv.kvproto.Pdpb.GetRegionRequest request) {
return blockingUnaryCall(
getChannel(), getGetRegionMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.GetRegionResponse getPrevRegion(org.tikv.kvproto.Pdpb.GetRegionRequest request) {
return blockingUnaryCall(
getChannel(), getGetPrevRegionMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.GetRegionResponse getRegionByID(org.tikv.kvproto.Pdpb.GetRegionByIDRequest request) {
return blockingUnaryCall(
getChannel(), getGetRegionByIDMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.ScanRegionsResponse scanRegions(org.tikv.kvproto.Pdpb.ScanRegionsRequest request) {
return blockingUnaryCall(
getChannel(), getScanRegionsMethod(), getCallOptions(), request);
}
/**
*/
@java.lang.Deprecated
public org.tikv.kvproto.Pdpb.AskSplitResponse askSplit(org.tikv.kvproto.Pdpb.AskSplitRequest request) {
return blockingUnaryCall(
getChannel(), getAskSplitMethod(), getCallOptions(), request);
}
/**
*/
@java.lang.Deprecated
public org.tikv.kvproto.Pdpb.ReportSplitResponse reportSplit(org.tikv.kvproto.Pdpb.ReportSplitRequest request) {
return blockingUnaryCall(
getChannel(), getReportSplitMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.AskBatchSplitResponse askBatchSplit(org.tikv.kvproto.Pdpb.AskBatchSplitRequest request) {
return blockingUnaryCall(
getChannel(), getAskBatchSplitMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.ReportBatchSplitResponse reportBatchSplit(org.tikv.kvproto.Pdpb.ReportBatchSplitRequest request) {
return blockingUnaryCall(
getChannel(), getReportBatchSplitMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.GetClusterConfigResponse getClusterConfig(org.tikv.kvproto.Pdpb.GetClusterConfigRequest request) {
return blockingUnaryCall(
getChannel(), getGetClusterConfigMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.PutClusterConfigResponse putClusterConfig(org.tikv.kvproto.Pdpb.PutClusterConfigRequest request) {
return blockingUnaryCall(
getChannel(), getPutClusterConfigMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.ScatterRegionResponse scatterRegion(org.tikv.kvproto.Pdpb.ScatterRegionRequest request) {
return blockingUnaryCall(
getChannel(), getScatterRegionMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.GetGCSafePointResponse getGCSafePoint(org.tikv.kvproto.Pdpb.GetGCSafePointRequest request) {
return blockingUnaryCall(
getChannel(), getGetGCSafePointMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.UpdateGCSafePointResponse updateGCSafePoint(org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest request) {
return blockingUnaryCall(
getChannel(), getUpdateGCSafePointMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointResponse updateServiceGCSafePoint(org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest request) {
return blockingUnaryCall(
getChannel(), getUpdateServiceGCSafePointMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.GetOperatorResponse getOperator(org.tikv.kvproto.Pdpb.GetOperatorRequest request) {
return blockingUnaryCall(
getChannel(), getGetOperatorMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.SyncMaxTSResponse syncMaxTS(org.tikv.kvproto.Pdpb.SyncMaxTSRequest request) {
return blockingUnaryCall(
getChannel(), getSyncMaxTSMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.SplitRegionsResponse splitRegions(org.tikv.kvproto.Pdpb.SplitRegionsRequest request) {
return blockingUnaryCall(
getChannel(), getSplitRegionsMethod(), getCallOptions(), request);
}
/**
*/
public org.tikv.kvproto.Pdpb.GetDCLocationInfoResponse getDCLocationInfo(org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest request) {
return blockingUnaryCall(
getChannel(), getGetDCLocationInfoMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class PDFutureStub extends io.grpc.stub.AbstractFutureStub {
private PDFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PDFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PDFutureStub(channel, callOptions);
}
/**
*
* GetMembers get the member list of this cluster. It does not require
* the cluster_id in request matchs the id of this cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture getMembers(
org.tikv.kvproto.Pdpb.GetMembersRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetMembersMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture bootstrap(
org.tikv.kvproto.Pdpb.BootstrapRequest request) {
return futureUnaryCall(
getChannel().newCall(getBootstrapMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture isBootstrapped(
org.tikv.kvproto.Pdpb.IsBootstrappedRequest request) {
return futureUnaryCall(
getChannel().newCall(getIsBootstrappedMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture allocID(
org.tikv.kvproto.Pdpb.AllocIDRequest request) {
return futureUnaryCall(
getChannel().newCall(getAllocIDMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getStore(
org.tikv.kvproto.Pdpb.GetStoreRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetStoreMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture putStore(
org.tikv.kvproto.Pdpb.PutStoreRequest request) {
return futureUnaryCall(
getChannel().newCall(getPutStoreMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getAllStores(
org.tikv.kvproto.Pdpb.GetAllStoresRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetAllStoresMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture storeHeartbeat(
org.tikv.kvproto.Pdpb.StoreHeartbeatRequest request) {
return futureUnaryCall(
getChannel().newCall(getStoreHeartbeatMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getRegion(
org.tikv.kvproto.Pdpb.GetRegionRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetRegionMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getPrevRegion(
org.tikv.kvproto.Pdpb.GetRegionRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetPrevRegionMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getRegionByID(
org.tikv.kvproto.Pdpb.GetRegionByIDRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetRegionByIDMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture scanRegions(
org.tikv.kvproto.Pdpb.ScanRegionsRequest request) {
return futureUnaryCall(
getChannel().newCall(getScanRegionsMethod(), getCallOptions()), request);
}
/**
*/
@java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture askSplit(
org.tikv.kvproto.Pdpb.AskSplitRequest request) {
return futureUnaryCall(
getChannel().newCall(getAskSplitMethod(), getCallOptions()), request);
}
/**
*/
@java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture reportSplit(
org.tikv.kvproto.Pdpb.ReportSplitRequest request) {
return futureUnaryCall(
getChannel().newCall(getReportSplitMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture askBatchSplit(
org.tikv.kvproto.Pdpb.AskBatchSplitRequest request) {
return futureUnaryCall(
getChannel().newCall(getAskBatchSplitMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture reportBatchSplit(
org.tikv.kvproto.Pdpb.ReportBatchSplitRequest request) {
return futureUnaryCall(
getChannel().newCall(getReportBatchSplitMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getClusterConfig(
org.tikv.kvproto.Pdpb.GetClusterConfigRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetClusterConfigMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture putClusterConfig(
org.tikv.kvproto.Pdpb.PutClusterConfigRequest request) {
return futureUnaryCall(
getChannel().newCall(getPutClusterConfigMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture scatterRegion(
org.tikv.kvproto.Pdpb.ScatterRegionRequest request) {
return futureUnaryCall(
getChannel().newCall(getScatterRegionMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getGCSafePoint(
org.tikv.kvproto.Pdpb.GetGCSafePointRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetGCSafePointMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateGCSafePoint(
org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest request) {
return futureUnaryCall(
getChannel().newCall(getUpdateGCSafePointMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateServiceGCSafePoint(
org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest request) {
return futureUnaryCall(
getChannel().newCall(getUpdateServiceGCSafePointMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getOperator(
org.tikv.kvproto.Pdpb.GetOperatorRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetOperatorMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture syncMaxTS(
org.tikv.kvproto.Pdpb.SyncMaxTSRequest request) {
return futureUnaryCall(
getChannel().newCall(getSyncMaxTSMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture splitRegions(
org.tikv.kvproto.Pdpb.SplitRegionsRequest request) {
return futureUnaryCall(
getChannel().newCall(getSplitRegionsMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getDCLocationInfo(
org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest request) {
return futureUnaryCall(
getChannel().newCall(getGetDCLocationInfoMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_MEMBERS = 0;
private static final int METHODID_BOOTSTRAP = 1;
private static final int METHODID_IS_BOOTSTRAPPED = 2;
private static final int METHODID_ALLOC_ID = 3;
private static final int METHODID_GET_STORE = 4;
private static final int METHODID_PUT_STORE = 5;
private static final int METHODID_GET_ALL_STORES = 6;
private static final int METHODID_STORE_HEARTBEAT = 7;
private static final int METHODID_GET_REGION = 8;
private static final int METHODID_GET_PREV_REGION = 9;
private static final int METHODID_GET_REGION_BY_ID = 10;
private static final int METHODID_SCAN_REGIONS = 11;
private static final int METHODID_ASK_SPLIT = 12;
private static final int METHODID_REPORT_SPLIT = 13;
private static final int METHODID_ASK_BATCH_SPLIT = 14;
private static final int METHODID_REPORT_BATCH_SPLIT = 15;
private static final int METHODID_GET_CLUSTER_CONFIG = 16;
private static final int METHODID_PUT_CLUSTER_CONFIG = 17;
private static final int METHODID_SCATTER_REGION = 18;
private static final int METHODID_GET_GCSAFE_POINT = 19;
private static final int METHODID_UPDATE_GCSAFE_POINT = 20;
private static final int METHODID_UPDATE_SERVICE_GCSAFE_POINT = 21;
private static final int METHODID_GET_OPERATOR = 22;
private static final int METHODID_SYNC_MAX_TS = 23;
private static final int METHODID_SPLIT_REGIONS = 24;
private static final int METHODID_GET_DCLOCATION_INFO = 25;
private static final int METHODID_TSO = 26;
private static final int METHODID_REGION_HEARTBEAT = 27;
private static final int METHODID_SYNC_REGIONS = 28;
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 PDImplBase serviceImpl;
private final int methodId;
MethodHandlers(PDImplBase 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_GET_MEMBERS:
serviceImpl.getMembers((org.tikv.kvproto.Pdpb.GetMembersRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_BOOTSTRAP:
serviceImpl.bootstrap((org.tikv.kvproto.Pdpb.BootstrapRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_IS_BOOTSTRAPPED:
serviceImpl.isBootstrapped((org.tikv.kvproto.Pdpb.IsBootstrappedRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ALLOC_ID:
serviceImpl.allocID((org.tikv.kvproto.Pdpb.AllocIDRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_STORE:
serviceImpl.getStore((org.tikv.kvproto.Pdpb.GetStoreRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PUT_STORE:
serviceImpl.putStore((org.tikv.kvproto.Pdpb.PutStoreRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ALL_STORES:
serviceImpl.getAllStores((org.tikv.kvproto.Pdpb.GetAllStoresRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_STORE_HEARTBEAT:
serviceImpl.storeHeartbeat((org.tikv.kvproto.Pdpb.StoreHeartbeatRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_REGION:
serviceImpl.getRegion((org.tikv.kvproto.Pdpb.GetRegionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_PREV_REGION:
serviceImpl.getPrevRegion((org.tikv.kvproto.Pdpb.GetRegionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_REGION_BY_ID:
serviceImpl.getRegionByID((org.tikv.kvproto.Pdpb.GetRegionByIDRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SCAN_REGIONS:
serviceImpl.scanRegions((org.tikv.kvproto.Pdpb.ScanRegionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ASK_SPLIT:
serviceImpl.askSplit((org.tikv.kvproto.Pdpb.AskSplitRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REPORT_SPLIT:
serviceImpl.reportSplit((org.tikv.kvproto.Pdpb.ReportSplitRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ASK_BATCH_SPLIT:
serviceImpl.askBatchSplit((org.tikv.kvproto.Pdpb.AskBatchSplitRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REPORT_BATCH_SPLIT:
serviceImpl.reportBatchSplit((org.tikv.kvproto.Pdpb.ReportBatchSplitRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CLUSTER_CONFIG:
serviceImpl.getClusterConfig((org.tikv.kvproto.Pdpb.GetClusterConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PUT_CLUSTER_CONFIG:
serviceImpl.putClusterConfig((org.tikv.kvproto.Pdpb.PutClusterConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SCATTER_REGION:
serviceImpl.scatterRegion((org.tikv.kvproto.Pdpb.ScatterRegionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_GCSAFE_POINT:
serviceImpl.getGCSafePoint((org.tikv.kvproto.Pdpb.GetGCSafePointRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_GCSAFE_POINT:
serviceImpl.updateGCSafePoint((org.tikv.kvproto.Pdpb.UpdateGCSafePointRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_SERVICE_GCSAFE_POINT:
serviceImpl.updateServiceGCSafePoint((org.tikv.kvproto.Pdpb.UpdateServiceGCSafePointRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_OPERATOR:
serviceImpl.getOperator((org.tikv.kvproto.Pdpb.GetOperatorRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SYNC_MAX_TS:
serviceImpl.syncMaxTS((org.tikv.kvproto.Pdpb.SyncMaxTSRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SPLIT_REGIONS:
serviceImpl.splitRegions((org.tikv.kvproto.Pdpb.SplitRegionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_DCLOCATION_INFO:
serviceImpl.getDCLocationInfo((org.tikv.kvproto.Pdpb.GetDCLocationInfoRequest) 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_TSO:
return (io.grpc.stub.StreamObserver) serviceImpl.tso(
(io.grpc.stub.StreamObserver