com.alibaba.graphscope.proto.groot.ClientBackupGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of groot-client Show documentation
Show all versions of groot-client Show documentation
The Java client of Groot, a persistence storage engine
package com.alibaba.graphscope.proto.groot;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.51.1)",
comments = "Source: groot/sdk/client_backup_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ClientBackupGrpc {
private ClientBackupGrpc() {}
public static final String SERVICE_NAME = "gs.rpc.groot.ClientBackup";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateNewGraphBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "createNewGraphBackup",
requestType = com.alibaba.graphscope.proto.groot.CreateNewGraphBackupRequest.class,
responseType = com.alibaba.graphscope.proto.groot.CreateNewGraphBackupResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateNewGraphBackupMethod() {
io.grpc.MethodDescriptor getCreateNewGraphBackupMethod;
if ((getCreateNewGraphBackupMethod = ClientBackupGrpc.getCreateNewGraphBackupMethod) == null) {
synchronized (ClientBackupGrpc.class) {
if ((getCreateNewGraphBackupMethod = ClientBackupGrpc.getCreateNewGraphBackupMethod) == null) {
ClientBackupGrpc.getCreateNewGraphBackupMethod = getCreateNewGraphBackupMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "createNewGraphBackup"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.CreateNewGraphBackupRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.CreateNewGraphBackupResponse.getDefaultInstance()))
.setSchemaDescriptor(new ClientBackupMethodDescriptorSupplier("createNewGraphBackup"))
.build();
}
}
}
return getCreateNewGraphBackupMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteGraphBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "deleteGraphBackup",
requestType = com.alibaba.graphscope.proto.groot.DeleteGraphBackupRequest.class,
responseType = com.alibaba.graphscope.proto.groot.DeleteGraphBackupResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteGraphBackupMethod() {
io.grpc.MethodDescriptor getDeleteGraphBackupMethod;
if ((getDeleteGraphBackupMethod = ClientBackupGrpc.getDeleteGraphBackupMethod) == null) {
synchronized (ClientBackupGrpc.class) {
if ((getDeleteGraphBackupMethod = ClientBackupGrpc.getDeleteGraphBackupMethod) == null) {
ClientBackupGrpc.getDeleteGraphBackupMethod = getDeleteGraphBackupMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "deleteGraphBackup"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.DeleteGraphBackupRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.DeleteGraphBackupResponse.getDefaultInstance()))
.setSchemaDescriptor(new ClientBackupMethodDescriptorSupplier("deleteGraphBackup"))
.build();
}
}
}
return getDeleteGraphBackupMethod;
}
private static volatile io.grpc.MethodDescriptor getPurgeOldGraphBackupsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "purgeOldGraphBackups",
requestType = com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsRequest.class,
responseType = com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPurgeOldGraphBackupsMethod() {
io.grpc.MethodDescriptor getPurgeOldGraphBackupsMethod;
if ((getPurgeOldGraphBackupsMethod = ClientBackupGrpc.getPurgeOldGraphBackupsMethod) == null) {
synchronized (ClientBackupGrpc.class) {
if ((getPurgeOldGraphBackupsMethod = ClientBackupGrpc.getPurgeOldGraphBackupsMethod) == null) {
ClientBackupGrpc.getPurgeOldGraphBackupsMethod = getPurgeOldGraphBackupsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "purgeOldGraphBackups"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsResponse.getDefaultInstance()))
.setSchemaDescriptor(new ClientBackupMethodDescriptorSupplier("purgeOldGraphBackups"))
.build();
}
}
}
return getPurgeOldGraphBackupsMethod;
}
private static volatile io.grpc.MethodDescriptor getRestoreFromGraphBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "restoreFromGraphBackup",
requestType = com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupRequest.class,
responseType = com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRestoreFromGraphBackupMethod() {
io.grpc.MethodDescriptor getRestoreFromGraphBackupMethod;
if ((getRestoreFromGraphBackupMethod = ClientBackupGrpc.getRestoreFromGraphBackupMethod) == null) {
synchronized (ClientBackupGrpc.class) {
if ((getRestoreFromGraphBackupMethod = ClientBackupGrpc.getRestoreFromGraphBackupMethod) == null) {
ClientBackupGrpc.getRestoreFromGraphBackupMethod = getRestoreFromGraphBackupMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "restoreFromGraphBackup"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupResponse.getDefaultInstance()))
.setSchemaDescriptor(new ClientBackupMethodDescriptorSupplier("restoreFromGraphBackup"))
.build();
}
}
}
return getRestoreFromGraphBackupMethod;
}
private static volatile io.grpc.MethodDescriptor getVerifyGraphBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "verifyGraphBackup",
requestType = com.alibaba.graphscope.proto.groot.VerifyGraphBackupRequest.class,
responseType = com.alibaba.graphscope.proto.groot.VerifyGraphBackupResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getVerifyGraphBackupMethod() {
io.grpc.MethodDescriptor getVerifyGraphBackupMethod;
if ((getVerifyGraphBackupMethod = ClientBackupGrpc.getVerifyGraphBackupMethod) == null) {
synchronized (ClientBackupGrpc.class) {
if ((getVerifyGraphBackupMethod = ClientBackupGrpc.getVerifyGraphBackupMethod) == null) {
ClientBackupGrpc.getVerifyGraphBackupMethod = getVerifyGraphBackupMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "verifyGraphBackup"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.VerifyGraphBackupRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.VerifyGraphBackupResponse.getDefaultInstance()))
.setSchemaDescriptor(new ClientBackupMethodDescriptorSupplier("verifyGraphBackup"))
.build();
}
}
}
return getVerifyGraphBackupMethod;
}
private static volatile io.grpc.MethodDescriptor getGetGraphBackupInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "getGraphBackupInfo",
requestType = com.alibaba.graphscope.proto.groot.GetGraphBackupInfoRequest.class,
responseType = com.alibaba.graphscope.proto.groot.GetGraphBackupInfoResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetGraphBackupInfoMethod() {
io.grpc.MethodDescriptor getGetGraphBackupInfoMethod;
if ((getGetGraphBackupInfoMethod = ClientBackupGrpc.getGetGraphBackupInfoMethod) == null) {
synchronized (ClientBackupGrpc.class) {
if ((getGetGraphBackupInfoMethod = ClientBackupGrpc.getGetGraphBackupInfoMethod) == null) {
ClientBackupGrpc.getGetGraphBackupInfoMethod = getGetGraphBackupInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "getGraphBackupInfo"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.GetGraphBackupInfoRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.graphscope.proto.groot.GetGraphBackupInfoResponse.getDefaultInstance()))
.setSchemaDescriptor(new ClientBackupMethodDescriptorSupplier("getGraphBackupInfo"))
.build();
}
}
}
return getGetGraphBackupInfoMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ClientBackupStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ClientBackupStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClientBackupStub(channel, callOptions);
}
};
return ClientBackupStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ClientBackupBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ClientBackupBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClientBackupBlockingStub(channel, callOptions);
}
};
return ClientBackupBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ClientBackupFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ClientBackupFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClientBackupFutureStub(channel, callOptions);
}
};
return ClientBackupFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class ClientBackupImplBase implements io.grpc.BindableService {
/**
*/
public void createNewGraphBackup(com.alibaba.graphscope.proto.groot.CreateNewGraphBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNewGraphBackupMethod(), responseObserver);
}
/**
*/
public void deleteGraphBackup(com.alibaba.graphscope.proto.groot.DeleteGraphBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGraphBackupMethod(), responseObserver);
}
/**
*/
public void purgeOldGraphBackups(com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeOldGraphBackupsMethod(), responseObserver);
}
/**
*/
public void restoreFromGraphBackup(com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreFromGraphBackupMethod(), responseObserver);
}
/**
*/
public void verifyGraphBackup(com.alibaba.graphscope.proto.groot.VerifyGraphBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyGraphBackupMethod(), responseObserver);
}
/**
*/
public void getGraphBackupInfo(com.alibaba.graphscope.proto.groot.GetGraphBackupInfoRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGraphBackupInfoMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateNewGraphBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.alibaba.graphscope.proto.groot.CreateNewGraphBackupRequest,
com.alibaba.graphscope.proto.groot.CreateNewGraphBackupResponse>(
this, METHODID_CREATE_NEW_GRAPH_BACKUP)))
.addMethod(
getDeleteGraphBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.alibaba.graphscope.proto.groot.DeleteGraphBackupRequest,
com.alibaba.graphscope.proto.groot.DeleteGraphBackupResponse>(
this, METHODID_DELETE_GRAPH_BACKUP)))
.addMethod(
getPurgeOldGraphBackupsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsRequest,
com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsResponse>(
this, METHODID_PURGE_OLD_GRAPH_BACKUPS)))
.addMethod(
getRestoreFromGraphBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupRequest,
com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupResponse>(
this, METHODID_RESTORE_FROM_GRAPH_BACKUP)))
.addMethod(
getVerifyGraphBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.alibaba.graphscope.proto.groot.VerifyGraphBackupRequest,
com.alibaba.graphscope.proto.groot.VerifyGraphBackupResponse>(
this, METHODID_VERIFY_GRAPH_BACKUP)))
.addMethod(
getGetGraphBackupInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.alibaba.graphscope.proto.groot.GetGraphBackupInfoRequest,
com.alibaba.graphscope.proto.groot.GetGraphBackupInfoResponse>(
this, METHODID_GET_GRAPH_BACKUP_INFO)))
.build();
}
}
/**
*/
public static final class ClientBackupStub extends io.grpc.stub.AbstractAsyncStub {
private ClientBackupStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ClientBackupStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClientBackupStub(channel, callOptions);
}
/**
*/
public void createNewGraphBackup(com.alibaba.graphscope.proto.groot.CreateNewGraphBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateNewGraphBackupMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void deleteGraphBackup(com.alibaba.graphscope.proto.groot.DeleteGraphBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteGraphBackupMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void purgeOldGraphBackups(com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPurgeOldGraphBackupsMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void restoreFromGraphBackup(com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRestoreFromGraphBackupMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void verifyGraphBackup(com.alibaba.graphscope.proto.groot.VerifyGraphBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getVerifyGraphBackupMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getGraphBackupInfo(com.alibaba.graphscope.proto.groot.GetGraphBackupInfoRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetGraphBackupInfoMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class ClientBackupBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private ClientBackupBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ClientBackupBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClientBackupBlockingStub(channel, callOptions);
}
/**
*/
public com.alibaba.graphscope.proto.groot.CreateNewGraphBackupResponse createNewGraphBackup(com.alibaba.graphscope.proto.groot.CreateNewGraphBackupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateNewGraphBackupMethod(), getCallOptions(), request);
}
/**
*/
public com.alibaba.graphscope.proto.groot.DeleteGraphBackupResponse deleteGraphBackup(com.alibaba.graphscope.proto.groot.DeleteGraphBackupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteGraphBackupMethod(), getCallOptions(), request);
}
/**
*/
public com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsResponse purgeOldGraphBackups(com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPurgeOldGraphBackupsMethod(), getCallOptions(), request);
}
/**
*/
public com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupResponse restoreFromGraphBackup(com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRestoreFromGraphBackupMethod(), getCallOptions(), request);
}
/**
*/
public com.alibaba.graphscope.proto.groot.VerifyGraphBackupResponse verifyGraphBackup(com.alibaba.graphscope.proto.groot.VerifyGraphBackupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getVerifyGraphBackupMethod(), getCallOptions(), request);
}
/**
*/
public com.alibaba.graphscope.proto.groot.GetGraphBackupInfoResponse getGraphBackupInfo(com.alibaba.graphscope.proto.groot.GetGraphBackupInfoRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetGraphBackupInfoMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class ClientBackupFutureStub extends io.grpc.stub.AbstractFutureStub {
private ClientBackupFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ClientBackupFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClientBackupFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture createNewGraphBackup(
com.alibaba.graphscope.proto.groot.CreateNewGraphBackupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateNewGraphBackupMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture deleteGraphBackup(
com.alibaba.graphscope.proto.groot.DeleteGraphBackupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteGraphBackupMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture purgeOldGraphBackups(
com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPurgeOldGraphBackupsMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture restoreFromGraphBackup(
com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRestoreFromGraphBackupMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture verifyGraphBackup(
com.alibaba.graphscope.proto.groot.VerifyGraphBackupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getVerifyGraphBackupMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getGraphBackupInfo(
com.alibaba.graphscope.proto.groot.GetGraphBackupInfoRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetGraphBackupInfoMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_NEW_GRAPH_BACKUP = 0;
private static final int METHODID_DELETE_GRAPH_BACKUP = 1;
private static final int METHODID_PURGE_OLD_GRAPH_BACKUPS = 2;
private static final int METHODID_RESTORE_FROM_GRAPH_BACKUP = 3;
private static final int METHODID_VERIFY_GRAPH_BACKUP = 4;
private static final int METHODID_GET_GRAPH_BACKUP_INFO = 5;
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 ClientBackupImplBase serviceImpl;
private final int methodId;
MethodHandlers(ClientBackupImplBase 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_CREATE_NEW_GRAPH_BACKUP:
serviceImpl.createNewGraphBackup((com.alibaba.graphscope.proto.groot.CreateNewGraphBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_GRAPH_BACKUP:
serviceImpl.deleteGraphBackup((com.alibaba.graphscope.proto.groot.DeleteGraphBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PURGE_OLD_GRAPH_BACKUPS:
serviceImpl.purgeOldGraphBackups((com.alibaba.graphscope.proto.groot.PurgeOldGraphBackupsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESTORE_FROM_GRAPH_BACKUP:
serviceImpl.restoreFromGraphBackup((com.alibaba.graphscope.proto.groot.RestoreFromGraphBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_VERIFY_GRAPH_BACKUP:
serviceImpl.verifyGraphBackup((com.alibaba.graphscope.proto.groot.VerifyGraphBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_GRAPH_BACKUP_INFO:
serviceImpl.getGraphBackupInfo((com.alibaba.graphscope.proto.groot.GetGraphBackupInfoRequest) 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) {
default:
throw new AssertionError();
}
}
}
private static abstract class ClientBackupBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ClientBackupBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.alibaba.graphscope.proto.groot.ClientBackupService.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ClientBackup");
}
}
private static final class ClientBackupFileDescriptorSupplier
extends ClientBackupBaseDescriptorSupplier {
ClientBackupFileDescriptorSupplier() {}
}
private static final class ClientBackupMethodDescriptorSupplier
extends ClientBackupBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
ClientBackupMethodDescriptorSupplier(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 (ClientBackupGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ClientBackupFileDescriptorSupplier())
.addMethod(getCreateNewGraphBackupMethod())
.addMethod(getDeleteGraphBackupMethod())
.addMethod(getPurgeOldGraphBackupsMethod())
.addMethod(getRestoreFromGraphBackupMethod())
.addMethod(getVerifyGraphBackupMethod())
.addMethod(getGetGraphBackupInfoMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy