yandex.cloud.api.mdb.postgresql.v1.UserServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.mdb.postgresql.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* A set of methods for managing PostgreSQL User resources.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/mdb/postgresql/v1/user_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class UserServiceGrpc {
private UserServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.mdb.postgresql.v1.UserService";
// 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.postgresql.v1.UserServiceOuterClass.GetUserRequest.class,
responseType = yandex.cloud.api.mdb.postgresql.v1.UserOuterClass.User.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = UserServiceGrpc.getGetMethod) == null) {
synchronized (UserServiceGrpc.class) {
if ((getGetMethod = UserServiceGrpc.getGetMethod) == null) {
UserServiceGrpc.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.postgresql.v1.UserServiceOuterClass.GetUserRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.postgresql.v1.UserOuterClass.User.getDefaultInstance()))
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("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.postgresql.v1.UserServiceOuterClass.ListUsersRequest.class,
responseType = yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.ListUsersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = UserServiceGrpc.getListMethod) == null) {
synchronized (UserServiceGrpc.class) {
if ((getListMethod = UserServiceGrpc.getListMethod) == null) {
UserServiceGrpc.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.postgresql.v1.UserServiceOuterClass.ListUsersRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.ListUsersResponse.getDefaultInstance()))
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("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.postgresql.v1.UserServiceOuterClass.CreateUserRequest.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 = UserServiceGrpc.getCreateMethod) == null) {
synchronized (UserServiceGrpc.class) {
if ((getCreateMethod = UserServiceGrpc.getCreateMethod) == null) {
UserServiceGrpc.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.postgresql.v1.UserServiceOuterClass.CreateUserRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Update",
requestType = yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.UpdateUserRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateMethod() {
io.grpc.MethodDescriptor getUpdateMethod;
if ((getUpdateMethod = UserServiceGrpc.getUpdateMethod) == null) {
synchronized (UserServiceGrpc.class) {
if ((getUpdateMethod = UserServiceGrpc.getUpdateMethod) == null) {
UserServiceGrpc.getUpdateMethod = getUpdateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Update"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.UpdateUserRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("Update"))
.build();
}
}
}
return getUpdateMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Delete",
requestType = yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.DeleteUserRequest.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 = UserServiceGrpc.getDeleteMethod) == null) {
synchronized (UserServiceGrpc.class) {
if ((getDeleteMethod = UserServiceGrpc.getDeleteMethod) == null) {
UserServiceGrpc.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.postgresql.v1.UserServiceOuterClass.DeleteUserRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("Delete"))
.build();
}
}
}
return getDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getGrantPermissionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GrantPermission",
requestType = yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GrantUserPermissionRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGrantPermissionMethod() {
io.grpc.MethodDescriptor getGrantPermissionMethod;
if ((getGrantPermissionMethod = UserServiceGrpc.getGrantPermissionMethod) == null) {
synchronized (UserServiceGrpc.class) {
if ((getGrantPermissionMethod = UserServiceGrpc.getGrantPermissionMethod) == null) {
UserServiceGrpc.getGrantPermissionMethod = getGrantPermissionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GrantPermission"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GrantUserPermissionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("GrantPermission"))
.build();
}
}
}
return getGrantPermissionMethod;
}
private static volatile io.grpc.MethodDescriptor getRevokePermissionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RevokePermission",
requestType = yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.RevokeUserPermissionRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRevokePermissionMethod() {
io.grpc.MethodDescriptor getRevokePermissionMethod;
if ((getRevokePermissionMethod = UserServiceGrpc.getRevokePermissionMethod) == null) {
synchronized (UserServiceGrpc.class) {
if ((getRevokePermissionMethod = UserServiceGrpc.getRevokePermissionMethod) == null) {
UserServiceGrpc.getRevokePermissionMethod = getRevokePermissionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokePermission"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.RevokeUserPermissionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("RevokePermission"))
.build();
}
}
}
return getRevokePermissionMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static UserServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public UserServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserServiceStub(channel, callOptions);
}
};
return UserServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static UserServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public UserServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserServiceBlockingStub(channel, callOptions);
}
};
return UserServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static UserServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public UserServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserServiceFutureStub(channel, callOptions);
}
};
return UserServiceFutureStub.newStub(factory, channel);
}
/**
*
* A set of methods for managing PostgreSQL User resources.
*
*/
public static abstract class UserServiceImplBase implements io.grpc.BindableService {
/**
*
* Returns the specified PostgreSQL User resource.
* To get the list of available PostgreSQL User resources, make a [List] request.
*
*/
public void get(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GetUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*
* Retrieves the list of PostgreSQL User resources in the specified cluster.
*
*/
public void list(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.ListUsersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*
* Creates a PostgreSQL user in the specified cluster.
*
*/
public void create(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.CreateUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*
* Updates the specified PostgreSQL user.
*
*/
public void update(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.UpdateUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*
* Deletes the specified PostgreSQL user.
*
*/
public void delete(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.DeleteUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
/**
*
* Grants permission to the specified PostgreSQL user.
*
*/
public void grantPermission(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GrantUserPermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGrantPermissionMethod(), responseObserver);
}
/**
*
* Revokes permission from the specified PostgreSQL user.
*
*/
public void revokePermission(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.RevokeUserPermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokePermissionMethod(), 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.postgresql.v1.UserServiceOuterClass.GetUserRequest,
yandex.cloud.api.mdb.postgresql.v1.UserOuterClass.User>(
this, METHODID_GET)))
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.ListUsersRequest,
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.ListUsersResponse>(
this, METHODID_LIST)))
.addMethod(
getCreateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.CreateUserRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_CREATE)))
.addMethod(
getUpdateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.UpdateUserRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_UPDATE)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.DeleteUserRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_DELETE)))
.addMethod(
getGrantPermissionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GrantUserPermissionRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_GRANT_PERMISSION)))
.addMethod(
getRevokePermissionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.RevokeUserPermissionRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_REVOKE_PERMISSION)))
.build();
}
}
/**
*
* A set of methods for managing PostgreSQL User resources.
*
*/
public static final class UserServiceStub extends io.grpc.stub.AbstractAsyncStub {
private UserServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UserServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserServiceStub(channel, callOptions);
}
/**
*
* Returns the specified PostgreSQL User resource.
* To get the list of available PostgreSQL User resources, make a [List] request.
*
*/
public void get(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GetUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieves the list of PostgreSQL User resources in the specified cluster.
*
*/
public void list(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.ListUsersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Creates a PostgreSQL user in the specified cluster.
*
*/
public void create(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.CreateUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Updates the specified PostgreSQL user.
*
*/
public void update(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.UpdateUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Deletes the specified PostgreSQL user.
*
*/
public void delete(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.DeleteUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Grants permission to the specified PostgreSQL user.
*
*/
public void grantPermission(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GrantUserPermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGrantPermissionMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Revokes permission from the specified PostgreSQL user.
*
*/
public void revokePermission(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.RevokeUserPermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRevokePermissionMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* A set of methods for managing PostgreSQL User resources.
*
*/
public static final class UserServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private UserServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UserServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserServiceBlockingStub(channel, callOptions);
}
/**
*
* Returns the specified PostgreSQL User resource.
* To get the list of available PostgreSQL User resources, make a [List] request.
*
*/
public yandex.cloud.api.mdb.postgresql.v1.UserOuterClass.User get(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GetUserRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*
* Retrieves the list of PostgreSQL User resources in the specified cluster.
*
*/
public yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.ListUsersResponse list(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.ListUsersRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*
* Creates a PostgreSQL user in the specified cluster.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.CreateUserRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*
* Updates the specified PostgreSQL user.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.UpdateUserRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*
* Deletes the specified PostgreSQL user.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.DeleteUserRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
/**
*
* Grants permission to the specified PostgreSQL user.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation grantPermission(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GrantUserPermissionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGrantPermissionMethod(), getCallOptions(), request);
}
/**
*
* Revokes permission from the specified PostgreSQL user.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation revokePermission(yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.RevokeUserPermissionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRevokePermissionMethod(), getCallOptions(), request);
}
}
/**
*
* A set of methods for managing PostgreSQL User resources.
*
*/
public static final class UserServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private UserServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UserServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserServiceFutureStub(channel, callOptions);
}
/**
*
* Returns the specified PostgreSQL User resource.
* To get the list of available PostgreSQL User resources, make a [List] request.
*
*/
public com.google.common.util.concurrent.ListenableFuture get(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GetUserRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*
* Retrieves the list of PostgreSQL User resources in the specified cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture list(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.ListUsersRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*
* Creates a PostgreSQL user in the specified cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture create(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.CreateUserRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*
* Updates the specified PostgreSQL user.
*
*/
public com.google.common.util.concurrent.ListenableFuture update(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.UpdateUserRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*
* Deletes the specified PostgreSQL user.
*
*/
public com.google.common.util.concurrent.ListenableFuture delete(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.DeleteUserRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
}
/**
*
* Grants permission to the specified PostgreSQL user.
*
*/
public com.google.common.util.concurrent.ListenableFuture grantPermission(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GrantUserPermissionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGrantPermissionMethod(), getCallOptions()), request);
}
/**
*
* Revokes permission from the specified PostgreSQL user.
*
*/
public com.google.common.util.concurrent.ListenableFuture revokePermission(
yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.RevokeUserPermissionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRevokePermissionMethod(), 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_UPDATE = 3;
private static final int METHODID_DELETE = 4;
private static final int METHODID_GRANT_PERMISSION = 5;
private static final int METHODID_REVOKE_PERMISSION = 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 UserServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(UserServiceImplBase 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.postgresql.v1.UserServiceOuterClass.GetUserRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST:
serviceImpl.list((yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.ListUsersRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE:
serviceImpl.create((yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.CreateUserRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.UpdateUserRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.DeleteUserRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GRANT_PERMISSION:
serviceImpl.grantPermission((yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.GrantUserPermissionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REVOKE_PERMISSION:
serviceImpl.revokePermission((yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.RevokeUserPermissionRequest) 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 UserServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
UserServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.UserServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("UserService");
}
}
private static final class UserServiceFileDescriptorSupplier
extends UserServiceBaseDescriptorSupplier {
UserServiceFileDescriptorSupplier() {}
}
private static final class UserServiceMethodDescriptorSupplier
extends UserServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
UserServiceMethodDescriptorSupplier(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 (UserServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new UserServiceFileDescriptorSupplier())
.addMethod(getGetMethod())
.addMethod(getListMethod())
.addMethod(getCreateMethod())
.addMethod(getUpdateMethod())
.addMethod(getDeleteMethod())
.addMethod(getGrantPermissionMethod())
.addMethod(getRevokePermissionMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy