yandex.cloud.api.mdb.sqlserver.v1.DatabaseServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.mdb.sqlserver.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* A set of methods for managing SQL Server databases.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/mdb/sqlserver/v1/database_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class DatabaseServiceGrpc {
private DatabaseServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.mdb.sqlserver.v1.DatabaseService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Get",
requestType = yandex.cloud.api.mdb.sqlserver.v1.PSDS.GetDatabaseRequest.class,
responseType = yandex.cloud.api.mdb.sqlserver.v1.PSD.Database.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = DatabaseServiceGrpc.getGetMethod) == null) {
synchronized (DatabaseServiceGrpc.class) {
if ((getGetMethod = DatabaseServiceGrpc.getGetMethod) == null) {
DatabaseServiceGrpc.getGetMethod = getGetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Get"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.GetDatabaseRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.sqlserver.v1.PSD.Database.getDefaultInstance()))
.setSchemaDescriptor(new DatabaseServiceMethodDescriptorSupplier("Get"))
.build();
}
}
}
return getGetMethod;
}
private static volatile io.grpc.MethodDescriptor getListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "List",
requestType = yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesRequest.class,
responseType = yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = DatabaseServiceGrpc.getListMethod) == null) {
synchronized (DatabaseServiceGrpc.class) {
if ((getListMethod = DatabaseServiceGrpc.getListMethod) == null) {
DatabaseServiceGrpc.getListMethod = getListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "List"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesResponse.getDefaultInstance()))
.setSchemaDescriptor(new DatabaseServiceMethodDescriptorSupplier("List"))
.build();
}
}
}
return getListMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Create",
requestType = yandex.cloud.api.mdb.sqlserver.v1.PSDS.CreateDatabaseRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateMethod() {
io.grpc.MethodDescriptor getCreateMethod;
if ((getCreateMethod = DatabaseServiceGrpc.getCreateMethod) == null) {
synchronized (DatabaseServiceGrpc.class) {
if ((getCreateMethod = DatabaseServiceGrpc.getCreateMethod) == null) {
DatabaseServiceGrpc.getCreateMethod = getCreateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Create"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.CreateDatabaseRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new DatabaseServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
private static volatile io.grpc.MethodDescriptor getRestoreMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Restore",
requestType = yandex.cloud.api.mdb.sqlserver.v1.PSDS.RestoreDatabaseRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRestoreMethod() {
io.grpc.MethodDescriptor getRestoreMethod;
if ((getRestoreMethod = DatabaseServiceGrpc.getRestoreMethod) == null) {
synchronized (DatabaseServiceGrpc.class) {
if ((getRestoreMethod = DatabaseServiceGrpc.getRestoreMethod) == null) {
DatabaseServiceGrpc.getRestoreMethod = getRestoreMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Restore"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.RestoreDatabaseRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new DatabaseServiceMethodDescriptorSupplier("Restore"))
.build();
}
}
}
return getRestoreMethod;
}
private static volatile io.grpc.MethodDescriptor getImportBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ImportBackup",
requestType = yandex.cloud.api.mdb.sqlserver.v1.PSDS.ImportDatabaseBackupRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getImportBackupMethod() {
io.grpc.MethodDescriptor getImportBackupMethod;
if ((getImportBackupMethod = DatabaseServiceGrpc.getImportBackupMethod) == null) {
synchronized (DatabaseServiceGrpc.class) {
if ((getImportBackupMethod = DatabaseServiceGrpc.getImportBackupMethod) == null) {
DatabaseServiceGrpc.getImportBackupMethod = getImportBackupMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportBackup"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ImportDatabaseBackupRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new DatabaseServiceMethodDescriptorSupplier("ImportBackup"))
.build();
}
}
}
return getImportBackupMethod;
}
private static volatile io.grpc.MethodDescriptor getExportBackupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ExportBackup",
requestType = yandex.cloud.api.mdb.sqlserver.v1.PSDS.ExportDatabaseBackupRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExportBackupMethod() {
io.grpc.MethodDescriptor getExportBackupMethod;
if ((getExportBackupMethod = DatabaseServiceGrpc.getExportBackupMethod) == null) {
synchronized (DatabaseServiceGrpc.class) {
if ((getExportBackupMethod = DatabaseServiceGrpc.getExportBackupMethod) == null) {
DatabaseServiceGrpc.getExportBackupMethod = getExportBackupMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportBackup"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ExportDatabaseBackupRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new DatabaseServiceMethodDescriptorSupplier("ExportBackup"))
.build();
}
}
}
return getExportBackupMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Delete",
requestType = yandex.cloud.api.mdb.sqlserver.v1.PSDS.DeleteDatabaseRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteMethod() {
io.grpc.MethodDescriptor getDeleteMethod;
if ((getDeleteMethod = DatabaseServiceGrpc.getDeleteMethod) == null) {
synchronized (DatabaseServiceGrpc.class) {
if ((getDeleteMethod = DatabaseServiceGrpc.getDeleteMethod) == null) {
DatabaseServiceGrpc.getDeleteMethod = getDeleteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Delete"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.DeleteDatabaseRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new DatabaseServiceMethodDescriptorSupplier("Delete"))
.build();
}
}
}
return getDeleteMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static DatabaseServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DatabaseServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DatabaseServiceStub(channel, callOptions);
}
};
return DatabaseServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static DatabaseServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DatabaseServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DatabaseServiceBlockingStub(channel, callOptions);
}
};
return DatabaseServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static DatabaseServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DatabaseServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DatabaseServiceFutureStub(channel, callOptions);
}
};
return DatabaseServiceFutureStub.newStub(factory, channel);
}
/**
*
* A set of methods for managing SQL Server databases.
*
*/
public static abstract class DatabaseServiceImplBase implements io.grpc.BindableService {
/**
*
* Returns the specified SQL Server database.
* To get the list of available SQL Server databases, make a [List] request.
*
*/
public void get(yandex.cloud.api.mdb.sqlserver.v1.PSDS.GetDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*
* Retrieves the list of SQL Server databases in the specified cluster.
*
*/
public void list(yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*
* Creates a new SQL Server database in the specified cluster.
*
*/
public void create(yandex.cloud.api.mdb.sqlserver.v1.PSDS.CreateDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*
* Creates a new SQL Server database in the specified cluster from a backup.
*
*/
public void restore(yandex.cloud.api.mdb.sqlserver.v1.PSDS.RestoreDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreMethod(), responseObserver);
}
/**
*
*Imports a new SQL Server database from an external backup.
*
*/
public void importBackup(yandex.cloud.api.mdb.sqlserver.v1.PSDS.ImportDatabaseBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportBackupMethod(), responseObserver);
}
/**
*
*Exports the last database backup to an external backup.
*
*/
public void exportBackup(yandex.cloud.api.mdb.sqlserver.v1.PSDS.ExportDatabaseBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportBackupMethod(), responseObserver);
}
/**
*
* Deletes the specified SQL Server database.
*
*/
public void delete(yandex.cloud.api.mdb.sqlserver.v1.PSDS.DeleteDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.sqlserver.v1.PSDS.GetDatabaseRequest,
yandex.cloud.api.mdb.sqlserver.v1.PSD.Database>(
this, METHODID_GET)))
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesRequest,
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesResponse>(
this, METHODID_LIST)))
.addMethod(
getCreateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.sqlserver.v1.PSDS.CreateDatabaseRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_CREATE)))
.addMethod(
getRestoreMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.sqlserver.v1.PSDS.RestoreDatabaseRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_RESTORE)))
.addMethod(
getImportBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ImportDatabaseBackupRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_IMPORT_BACKUP)))
.addMethod(
getExportBackupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ExportDatabaseBackupRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_EXPORT_BACKUP)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.sqlserver.v1.PSDS.DeleteDatabaseRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_DELETE)))
.build();
}
}
/**
*
* A set of methods for managing SQL Server databases.
*
*/
public static final class DatabaseServiceStub extends io.grpc.stub.AbstractAsyncStub {
private DatabaseServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DatabaseServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DatabaseServiceStub(channel, callOptions);
}
/**
*
* Returns the specified SQL Server database.
* To get the list of available SQL Server databases, make a [List] request.
*
*/
public void get(yandex.cloud.api.mdb.sqlserver.v1.PSDS.GetDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieves the list of SQL Server databases in the specified cluster.
*
*/
public void list(yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Creates a new SQL Server database in the specified cluster.
*
*/
public void create(yandex.cloud.api.mdb.sqlserver.v1.PSDS.CreateDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Creates a new SQL Server database in the specified cluster from a backup.
*
*/
public void restore(yandex.cloud.api.mdb.sqlserver.v1.PSDS.RestoreDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRestoreMethod(), getCallOptions()), request, responseObserver);
}
/**
*
*Imports a new SQL Server database from an external backup.
*
*/
public void importBackup(yandex.cloud.api.mdb.sqlserver.v1.PSDS.ImportDatabaseBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getImportBackupMethod(), getCallOptions()), request, responseObserver);
}
/**
*
*Exports the last database backup to an external backup.
*
*/
public void exportBackup(yandex.cloud.api.mdb.sqlserver.v1.PSDS.ExportDatabaseBackupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getExportBackupMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Deletes the specified SQL Server database.
*
*/
public void delete(yandex.cloud.api.mdb.sqlserver.v1.PSDS.DeleteDatabaseRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* A set of methods for managing SQL Server databases.
*
*/
public static final class DatabaseServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private DatabaseServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DatabaseServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DatabaseServiceBlockingStub(channel, callOptions);
}
/**
*
* Returns the specified SQL Server database.
* To get the list of available SQL Server databases, make a [List] request.
*
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSD.Database get(yandex.cloud.api.mdb.sqlserver.v1.PSDS.GetDatabaseRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*
* Retrieves the list of SQL Server databases in the specified cluster.
*
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesResponse list(yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*
* Creates a new SQL Server database in the specified cluster.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.mdb.sqlserver.v1.PSDS.CreateDatabaseRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*
* Creates a new SQL Server database in the specified cluster from a backup.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation restore(yandex.cloud.api.mdb.sqlserver.v1.PSDS.RestoreDatabaseRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRestoreMethod(), getCallOptions(), request);
}
/**
*
*Imports a new SQL Server database from an external backup.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation importBackup(yandex.cloud.api.mdb.sqlserver.v1.PSDS.ImportDatabaseBackupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getImportBackupMethod(), getCallOptions(), request);
}
/**
*
*Exports the last database backup to an external backup.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation exportBackup(yandex.cloud.api.mdb.sqlserver.v1.PSDS.ExportDatabaseBackupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getExportBackupMethod(), getCallOptions(), request);
}
/**
*
* Deletes the specified SQL Server database.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.mdb.sqlserver.v1.PSDS.DeleteDatabaseRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
}
/**
*
* A set of methods for managing SQL Server databases.
*
*/
public static final class DatabaseServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private DatabaseServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DatabaseServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DatabaseServiceFutureStub(channel, callOptions);
}
/**
*
* Returns the specified SQL Server database.
* To get the list of available SQL Server databases, make a [List] request.
*
*/
public com.google.common.util.concurrent.ListenableFuture get(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.GetDatabaseRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*
* Retrieves the list of SQL Server databases in the specified cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture list(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*
* Creates a new SQL Server database in the specified cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture create(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.CreateDatabaseRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*
* Creates a new SQL Server database in the specified cluster from a backup.
*
*/
public com.google.common.util.concurrent.ListenableFuture restore(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.RestoreDatabaseRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRestoreMethod(), getCallOptions()), request);
}
/**
*
*Imports a new SQL Server database from an external backup.
*
*/
public com.google.common.util.concurrent.ListenableFuture importBackup(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ImportDatabaseBackupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getImportBackupMethod(), getCallOptions()), request);
}
/**
*
*Exports the last database backup to an external backup.
*
*/
public com.google.common.util.concurrent.ListenableFuture exportBackup(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.ExportDatabaseBackupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getExportBackupMethod(), getCallOptions()), request);
}
/**
*
* Deletes the specified SQL Server database.
*
*/
public com.google.common.util.concurrent.ListenableFuture delete(
yandex.cloud.api.mdb.sqlserver.v1.PSDS.DeleteDatabaseRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET = 0;
private static final int METHODID_LIST = 1;
private static final int METHODID_CREATE = 2;
private static final int METHODID_RESTORE = 3;
private static final int METHODID_IMPORT_BACKUP = 4;
private static final int METHODID_EXPORT_BACKUP = 5;
private static final int METHODID_DELETE = 6;
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 DatabaseServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(DatabaseServiceImplBase 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:
serviceImpl.get((yandex.cloud.api.mdb.sqlserver.v1.PSDS.GetDatabaseRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST:
serviceImpl.list((yandex.cloud.api.mdb.sqlserver.v1.PSDS.ListDatabasesRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE:
serviceImpl.create((yandex.cloud.api.mdb.sqlserver.v1.PSDS.CreateDatabaseRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESTORE:
serviceImpl.restore((yandex.cloud.api.mdb.sqlserver.v1.PSDS.RestoreDatabaseRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_IMPORT_BACKUP:
serviceImpl.importBackup((yandex.cloud.api.mdb.sqlserver.v1.PSDS.ImportDatabaseBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXPORT_BACKUP:
serviceImpl.exportBackup((yandex.cloud.api.mdb.sqlserver.v1.PSDS.ExportDatabaseBackupRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((yandex.cloud.api.mdb.sqlserver.v1.PSDS.DeleteDatabaseRequest) 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 DatabaseServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
DatabaseServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSDS.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("DatabaseService");
}
}
private static final class DatabaseServiceFileDescriptorSupplier
extends DatabaseServiceBaseDescriptorSupplier {
DatabaseServiceFileDescriptorSupplier() {}
}
private static final class DatabaseServiceMethodDescriptorSupplier
extends DatabaseServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
DatabaseServiceMethodDescriptorSupplier(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 (DatabaseServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new DatabaseServiceFileDescriptorSupplier())
.addMethod(getGetMethod())
.addMethod(getListMethod())
.addMethod(getCreateMethod())
.addMethod(getRestoreMethod())
.addMethod(getImportBackupMethod())
.addMethod(getExportBackupMethod())
.addMethod(getDeleteMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy