yandex.cloud.api.kms.v1.SymmetricKeyServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.kms.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Set of methods for managing symmetric KMS keys.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/kms/v1/symmetric_key_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SymmetricKeyServiceGrpc {
private SymmetricKeyServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.kms.v1.SymmetricKeyService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Create",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CreateSymmetricKeyRequest.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 = SymmetricKeyServiceGrpc.getCreateMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getCreateMethod = SymmetricKeyServiceGrpc.getCreateMethod) == null) {
SymmetricKeyServiceGrpc.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.kms.v1.SymmetricKeyServiceOuterClass.CreateSymmetricKeyRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
private static volatile io.grpc.MethodDescriptor getGetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Get",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.GetSymmetricKeyRequest.class,
responseType = yandex.cloud.api.kms.v1.SymmetricKeyOuterClass.SymmetricKey.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = SymmetricKeyServiceGrpc.getGetMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getGetMethod = SymmetricKeyServiceGrpc.getGetMethod) == null) {
SymmetricKeyServiceGrpc.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.kms.v1.SymmetricKeyServiceOuterClass.GetSymmetricKeyRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricKeyOuterClass.SymmetricKey.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("Get"))
.build();
}
}
}
return getGetMethod;
}
private static volatile io.grpc.MethodDescriptor getListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "List",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysRequest.class,
responseType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = SymmetricKeyServiceGrpc.getListMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getListMethod = SymmetricKeyServiceGrpc.getListMethod) == null) {
SymmetricKeyServiceGrpc.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.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysResponse.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("List"))
.build();
}
}
}
return getListMethod;
}
private static volatile io.grpc.MethodDescriptor getListVersionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListVersions",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsRequest.class,
responseType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListVersionsMethod() {
io.grpc.MethodDescriptor getListVersionsMethod;
if ((getListVersionsMethod = SymmetricKeyServiceGrpc.getListVersionsMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getListVersionsMethod = SymmetricKeyServiceGrpc.getListVersionsMethod) == null) {
SymmetricKeyServiceGrpc.getListVersionsMethod = getListVersionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListVersions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("ListVersions"))
.build();
}
}
}
return getListVersionsMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Update",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.UpdateSymmetricKeyRequest.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 = SymmetricKeyServiceGrpc.getUpdateMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getUpdateMethod = SymmetricKeyServiceGrpc.getUpdateMethod) == null) {
SymmetricKeyServiceGrpc.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.kms.v1.SymmetricKeyServiceOuterClass.UpdateSymmetricKeyRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("Update"))
.build();
}
}
}
return getUpdateMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Delete",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.DeleteSymmetricKeyRequest.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 = SymmetricKeyServiceGrpc.getDeleteMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getDeleteMethod = SymmetricKeyServiceGrpc.getDeleteMethod) == null) {
SymmetricKeyServiceGrpc.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.kms.v1.SymmetricKeyServiceOuterClass.DeleteSymmetricKeyRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("Delete"))
.build();
}
}
}
return getDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getSetPrimaryVersionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SetPrimaryVersion",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.SetPrimarySymmetricKeyVersionRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSetPrimaryVersionMethod() {
io.grpc.MethodDescriptor getSetPrimaryVersionMethod;
if ((getSetPrimaryVersionMethod = SymmetricKeyServiceGrpc.getSetPrimaryVersionMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getSetPrimaryVersionMethod = SymmetricKeyServiceGrpc.getSetPrimaryVersionMethod) == null) {
SymmetricKeyServiceGrpc.getSetPrimaryVersionMethod = getSetPrimaryVersionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetPrimaryVersion"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.SetPrimarySymmetricKeyVersionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("SetPrimaryVersion"))
.build();
}
}
}
return getSetPrimaryVersionMethod;
}
private static volatile io.grpc.MethodDescriptor getScheduleVersionDestructionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ScheduleVersionDestruction",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ScheduleSymmetricKeyVersionDestructionRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getScheduleVersionDestructionMethod() {
io.grpc.MethodDescriptor getScheduleVersionDestructionMethod;
if ((getScheduleVersionDestructionMethod = SymmetricKeyServiceGrpc.getScheduleVersionDestructionMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getScheduleVersionDestructionMethod = SymmetricKeyServiceGrpc.getScheduleVersionDestructionMethod) == null) {
SymmetricKeyServiceGrpc.getScheduleVersionDestructionMethod = getScheduleVersionDestructionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScheduleVersionDestruction"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ScheduleSymmetricKeyVersionDestructionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("ScheduleVersionDestruction"))
.build();
}
}
}
return getScheduleVersionDestructionMethod;
}
private static volatile io.grpc.MethodDescriptor getCancelVersionDestructionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CancelVersionDestruction",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CancelSymmetricKeyVersionDestructionRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCancelVersionDestructionMethod() {
io.grpc.MethodDescriptor getCancelVersionDestructionMethod;
if ((getCancelVersionDestructionMethod = SymmetricKeyServiceGrpc.getCancelVersionDestructionMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getCancelVersionDestructionMethod = SymmetricKeyServiceGrpc.getCancelVersionDestructionMethod) == null) {
SymmetricKeyServiceGrpc.getCancelVersionDestructionMethod = getCancelVersionDestructionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelVersionDestruction"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CancelSymmetricKeyVersionDestructionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("CancelVersionDestruction"))
.build();
}
}
}
return getCancelVersionDestructionMethod;
}
private static volatile io.grpc.MethodDescriptor getRotateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Rotate",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.RotateSymmetricKeyRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRotateMethod() {
io.grpc.MethodDescriptor getRotateMethod;
if ((getRotateMethod = SymmetricKeyServiceGrpc.getRotateMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getRotateMethod = SymmetricKeyServiceGrpc.getRotateMethod) == null) {
SymmetricKeyServiceGrpc.getRotateMethod = getRotateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Rotate"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.RotateSymmetricKeyRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("Rotate"))
.build();
}
}
}
return getRotateMethod;
}
private static volatile io.grpc.MethodDescriptor getListOperationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListOperations",
requestType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsRequest.class,
responseType = yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListOperationsMethod() {
io.grpc.MethodDescriptor getListOperationsMethod;
if ((getListOperationsMethod = SymmetricKeyServiceGrpc.getListOperationsMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getListOperationsMethod = SymmetricKeyServiceGrpc.getListOperationsMethod) == null) {
SymmetricKeyServiceGrpc.getListOperationsMethod = getListOperationsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("ListOperations"))
.build();
}
}
}
return getListOperationsMethod;
}
private static volatile io.grpc.MethodDescriptor getListAccessBindingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListAccessBindings",
requestType = yandex.cloud.api.access.Access.ListAccessBindingsRequest.class,
responseType = yandex.cloud.api.access.Access.ListAccessBindingsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListAccessBindingsMethod() {
io.grpc.MethodDescriptor getListAccessBindingsMethod;
if ((getListAccessBindingsMethod = SymmetricKeyServiceGrpc.getListAccessBindingsMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getListAccessBindingsMethod = SymmetricKeyServiceGrpc.getListAccessBindingsMethod) == null) {
SymmetricKeyServiceGrpc.getListAccessBindingsMethod = getListAccessBindingsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccessBindings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.access.Access.ListAccessBindingsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.access.Access.ListAccessBindingsResponse.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("ListAccessBindings"))
.build();
}
}
}
return getListAccessBindingsMethod;
}
private static volatile io.grpc.MethodDescriptor getSetAccessBindingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SetAccessBindings",
requestType = yandex.cloud.api.access.Access.SetAccessBindingsRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSetAccessBindingsMethod() {
io.grpc.MethodDescriptor getSetAccessBindingsMethod;
if ((getSetAccessBindingsMethod = SymmetricKeyServiceGrpc.getSetAccessBindingsMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getSetAccessBindingsMethod = SymmetricKeyServiceGrpc.getSetAccessBindingsMethod) == null) {
SymmetricKeyServiceGrpc.getSetAccessBindingsMethod = getSetAccessBindingsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAccessBindings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.access.Access.SetAccessBindingsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("SetAccessBindings"))
.build();
}
}
}
return getSetAccessBindingsMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateAccessBindingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateAccessBindings",
requestType = yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateAccessBindingsMethod() {
io.grpc.MethodDescriptor getUpdateAccessBindingsMethod;
if ((getUpdateAccessBindingsMethod = SymmetricKeyServiceGrpc.getUpdateAccessBindingsMethod) == null) {
synchronized (SymmetricKeyServiceGrpc.class) {
if ((getUpdateAccessBindingsMethod = SymmetricKeyServiceGrpc.getUpdateAccessBindingsMethod) == null) {
SymmetricKeyServiceGrpc.getUpdateAccessBindingsMethod = getUpdateAccessBindingsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccessBindings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new SymmetricKeyServiceMethodDescriptorSupplier("UpdateAccessBindings"))
.build();
}
}
}
return getUpdateAccessBindingsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static SymmetricKeyServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SymmetricKeyServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricKeyServiceStub(channel, callOptions);
}
};
return SymmetricKeyServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static SymmetricKeyServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SymmetricKeyServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricKeyServiceBlockingStub(channel, callOptions);
}
};
return SymmetricKeyServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static SymmetricKeyServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SymmetricKeyServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricKeyServiceFutureStub(channel, callOptions);
}
};
return SymmetricKeyServiceFutureStub.newStub(factory, channel);
}
/**
*
* Set of methods for managing symmetric KMS keys.
*
*/
public static abstract class SymmetricKeyServiceImplBase implements io.grpc.BindableService {
/**
*
* Creates a symmetric KMS key in the specified folder.
*
*/
public void create(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CreateSymmetricKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*
* Returns the specified symmetric KMS key.
* To get the list of available symmetric KMS keys, make a [SymmetricKeyService.List] request.
*
*/
public void get(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.GetSymmetricKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*
* Returns the list of symmetric KMS keys in the specified folder.
*
*/
public void list(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*
* Returns the list of versions of the specified symmetric KMS key.
*
*/
public void listVersions(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListVersionsMethod(), responseObserver);
}
/**
*
* Updates the specified symmetric KMS key.
*
*/
public void update(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.UpdateSymmetricKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*
* Deletes the specified symmetric KMS key. This action also automatically schedules
* the destruction of all of the key's versions in 72 hours.
* The key and its versions appear absent in [SymmetricKeyService.Get] and [SymmetricKeyService.List]
* requests, but can be restored within 72 hours with a request to tech support.
*
*/
public void delete(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.DeleteSymmetricKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
/**
*
* Sets the primary version for the specified key. The primary version is used
* by default for all encrypt/decrypt operations where no version ID is specified.
*
*/
public void setPrimaryVersion(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.SetPrimarySymmetricKeyVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetPrimaryVersionMethod(), responseObserver);
}
/**
*
* Schedules the specified key version for destruction.
* Scheduled destruction can be cancelled with the [SymmetricKeyService.CancelVersionDestruction] method.
*
*/
public void scheduleVersionDestruction(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ScheduleSymmetricKeyVersionDestructionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getScheduleVersionDestructionMethod(), responseObserver);
}
/**
*
* Cancels previously scheduled version destruction, if the version hasn't been destroyed yet.
*
*/
public void cancelVersionDestruction(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CancelSymmetricKeyVersionDestructionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelVersionDestructionMethod(), responseObserver);
}
/**
*
* Rotates the specified key: creates a new key version and makes it the primary version.
* The old version remains available for decryption of ciphertext encrypted with it.
*
*/
public void rotate(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.RotateSymmetricKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRotateMethod(), responseObserver);
}
/**
*
* Lists operations for the specified symmetric KMS key.
*
*/
public void listOperations(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver);
}
/**
*
* Lists existing access bindings for the specified key.
*
*/
public void listAccessBindings(yandex.cloud.api.access.Access.ListAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAccessBindingsMethod(), responseObserver);
}
/**
*
* Sets access bindings for the key.
*
*/
public void setAccessBindings(yandex.cloud.api.access.Access.SetAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAccessBindingsMethod(), responseObserver);
}
/**
*
* Updates access bindings for the specified key.
*
*/
public void updateAccessBindings(yandex.cloud.api.access.Access.UpdateAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAccessBindingsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CreateSymmetricKeyRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_CREATE)))
.addMethod(
getGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.GetSymmetricKeyRequest,
yandex.cloud.api.kms.v1.SymmetricKeyOuterClass.SymmetricKey>(
this, METHODID_GET)))
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysRequest,
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysResponse>(
this, METHODID_LIST)))
.addMethod(
getListVersionsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsRequest,
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsResponse>(
this, METHODID_LIST_VERSIONS)))
.addMethod(
getUpdateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.UpdateSymmetricKeyRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_UPDATE)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.DeleteSymmetricKeyRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_DELETE)))
.addMethod(
getSetPrimaryVersionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.SetPrimarySymmetricKeyVersionRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_SET_PRIMARY_VERSION)))
.addMethod(
getScheduleVersionDestructionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ScheduleSymmetricKeyVersionDestructionRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_SCHEDULE_VERSION_DESTRUCTION)))
.addMethod(
getCancelVersionDestructionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CancelSymmetricKeyVersionDestructionRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_CANCEL_VERSION_DESTRUCTION)))
.addMethod(
getRotateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.RotateSymmetricKeyRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_ROTATE)))
.addMethod(
getListOperationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsRequest,
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsResponse>(
this, METHODID_LIST_OPERATIONS)))
.addMethod(
getListAccessBindingsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.access.Access.ListAccessBindingsRequest,
yandex.cloud.api.access.Access.ListAccessBindingsResponse>(
this, METHODID_LIST_ACCESS_BINDINGS)))
.addMethod(
getSetAccessBindingsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.access.Access.SetAccessBindingsRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_SET_ACCESS_BINDINGS)))
.addMethod(
getUpdateAccessBindingsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_UPDATE_ACCESS_BINDINGS)))
.build();
}
}
/**
*
* Set of methods for managing symmetric KMS keys.
*
*/
public static final class SymmetricKeyServiceStub extends io.grpc.stub.AbstractAsyncStub {
private SymmetricKeyServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SymmetricKeyServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricKeyServiceStub(channel, callOptions);
}
/**
*
* Creates a symmetric KMS key in the specified folder.
*
*/
public void create(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CreateSymmetricKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns the specified symmetric KMS key.
* To get the list of available symmetric KMS keys, make a [SymmetricKeyService.List] request.
*
*/
public void get(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.GetSymmetricKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns the list of symmetric KMS keys in the specified folder.
*
*/
public void list(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns the list of versions of the specified symmetric KMS key.
*
*/
public void listVersions(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListVersionsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Updates the specified symmetric KMS key.
*
*/
public void update(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.UpdateSymmetricKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Deletes the specified symmetric KMS key. This action also automatically schedules
* the destruction of all of the key's versions in 72 hours.
* The key and its versions appear absent in [SymmetricKeyService.Get] and [SymmetricKeyService.List]
* requests, but can be restored within 72 hours with a request to tech support.
*
*/
public void delete(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.DeleteSymmetricKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Sets the primary version for the specified key. The primary version is used
* by default for all encrypt/decrypt operations where no version ID is specified.
*
*/
public void setPrimaryVersion(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.SetPrimarySymmetricKeyVersionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSetPrimaryVersionMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Schedules the specified key version for destruction.
* Scheduled destruction can be cancelled with the [SymmetricKeyService.CancelVersionDestruction] method.
*
*/
public void scheduleVersionDestruction(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ScheduleSymmetricKeyVersionDestructionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getScheduleVersionDestructionMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Cancels previously scheduled version destruction, if the version hasn't been destroyed yet.
*
*/
public void cancelVersionDestruction(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CancelSymmetricKeyVersionDestructionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCancelVersionDestructionMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Rotates the specified key: creates a new key version and makes it the primary version.
* The old version remains available for decryption of ciphertext encrypted with it.
*
*/
public void rotate(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.RotateSymmetricKeyRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRotateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists operations for the specified symmetric KMS key.
*
*/
public void listOperations(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists existing access bindings for the specified key.
*
*/
public void listAccessBindings(yandex.cloud.api.access.Access.ListAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Sets access bindings for the key.
*
*/
public void setAccessBindings(yandex.cloud.api.access.Access.SetAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSetAccessBindingsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Updates access bindings for the specified key.
*
*/
public void updateAccessBindings(yandex.cloud.api.access.Access.UpdateAccessBindingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateAccessBindingsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Set of methods for managing symmetric KMS keys.
*
*/
public static final class SymmetricKeyServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private SymmetricKeyServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SymmetricKeyServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricKeyServiceBlockingStub(channel, callOptions);
}
/**
*
* Creates a symmetric KMS key in the specified folder.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CreateSymmetricKeyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*
* Returns the specified symmetric KMS key.
* To get the list of available symmetric KMS keys, make a [SymmetricKeyService.List] request.
*
*/
public yandex.cloud.api.kms.v1.SymmetricKeyOuterClass.SymmetricKey get(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.GetSymmetricKeyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*
* Returns the list of symmetric KMS keys in the specified folder.
*
*/
public yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysResponse list(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*
* Returns the list of versions of the specified symmetric KMS key.
*
*/
public yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsResponse listVersions(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListVersionsMethod(), getCallOptions(), request);
}
/**
*
* Updates the specified symmetric KMS key.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.UpdateSymmetricKeyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*
* Deletes the specified symmetric KMS key. This action also automatically schedules
* the destruction of all of the key's versions in 72 hours.
* The key and its versions appear absent in [SymmetricKeyService.Get] and [SymmetricKeyService.List]
* requests, but can be restored within 72 hours with a request to tech support.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.DeleteSymmetricKeyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
/**
*
* Sets the primary version for the specified key. The primary version is used
* by default for all encrypt/decrypt operations where no version ID is specified.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation setPrimaryVersion(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.SetPrimarySymmetricKeyVersionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetPrimaryVersionMethod(), getCallOptions(), request);
}
/**
*
* Schedules the specified key version for destruction.
* Scheduled destruction can be cancelled with the [SymmetricKeyService.CancelVersionDestruction] method.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation scheduleVersionDestruction(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ScheduleSymmetricKeyVersionDestructionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getScheduleVersionDestructionMethod(), getCallOptions(), request);
}
/**
*
* Cancels previously scheduled version destruction, if the version hasn't been destroyed yet.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation cancelVersionDestruction(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CancelSymmetricKeyVersionDestructionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCancelVersionDestructionMethod(), getCallOptions(), request);
}
/**
*
* Rotates the specified key: creates a new key version and makes it the primary version.
* The old version remains available for decryption of ciphertext encrypted with it.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation rotate(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.RotateSymmetricKeyRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRotateMethod(), getCallOptions(), request);
}
/**
*
* Lists operations for the specified symmetric KMS key.
*
*/
public yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsResponse listOperations(yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListOperationsMethod(), getCallOptions(), request);
}
/**
*
* Lists existing access bindings for the specified key.
*
*/
public yandex.cloud.api.access.Access.ListAccessBindingsResponse listAccessBindings(yandex.cloud.api.access.Access.ListAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListAccessBindingsMethod(), getCallOptions(), request);
}
/**
*
* Sets access bindings for the key.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation setAccessBindings(yandex.cloud.api.access.Access.SetAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetAccessBindingsMethod(), getCallOptions(), request);
}
/**
*
* Updates access bindings for the specified key.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation updateAccessBindings(yandex.cloud.api.access.Access.UpdateAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateAccessBindingsMethod(), getCallOptions(), request);
}
}
/**
*
* Set of methods for managing symmetric KMS keys.
*
*/
public static final class SymmetricKeyServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private SymmetricKeyServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SymmetricKeyServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SymmetricKeyServiceFutureStub(channel, callOptions);
}
/**
*
* Creates a symmetric KMS key in the specified folder.
*
*/
public com.google.common.util.concurrent.ListenableFuture create(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CreateSymmetricKeyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*
* Returns the specified symmetric KMS key.
* To get the list of available symmetric KMS keys, make a [SymmetricKeyService.List] request.
*
*/
public com.google.common.util.concurrent.ListenableFuture get(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.GetSymmetricKeyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*
* Returns the list of symmetric KMS keys in the specified folder.
*
*/
public com.google.common.util.concurrent.ListenableFuture list(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*
* Returns the list of versions of the specified symmetric KMS key.
*
*/
public com.google.common.util.concurrent.ListenableFuture listVersions(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListVersionsMethod(), getCallOptions()), request);
}
/**
*
* Updates the specified symmetric KMS key.
*
*/
public com.google.common.util.concurrent.ListenableFuture update(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.UpdateSymmetricKeyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*
* Deletes the specified symmetric KMS key. This action also automatically schedules
* the destruction of all of the key's versions in 72 hours.
* The key and its versions appear absent in [SymmetricKeyService.Get] and [SymmetricKeyService.List]
* requests, but can be restored within 72 hours with a request to tech support.
*
*/
public com.google.common.util.concurrent.ListenableFuture delete(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.DeleteSymmetricKeyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
}
/**
*
* Sets the primary version for the specified key. The primary version is used
* by default for all encrypt/decrypt operations where no version ID is specified.
*
*/
public com.google.common.util.concurrent.ListenableFuture setPrimaryVersion(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.SetPrimarySymmetricKeyVersionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSetPrimaryVersionMethod(), getCallOptions()), request);
}
/**
*
* Schedules the specified key version for destruction.
* Scheduled destruction can be cancelled with the [SymmetricKeyService.CancelVersionDestruction] method.
*
*/
public com.google.common.util.concurrent.ListenableFuture scheduleVersionDestruction(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ScheduleSymmetricKeyVersionDestructionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getScheduleVersionDestructionMethod(), getCallOptions()), request);
}
/**
*
* Cancels previously scheduled version destruction, if the version hasn't been destroyed yet.
*
*/
public com.google.common.util.concurrent.ListenableFuture cancelVersionDestruction(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CancelSymmetricKeyVersionDestructionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCancelVersionDestructionMethod(), getCallOptions()), request);
}
/**
*
* Rotates the specified key: creates a new key version and makes it the primary version.
* The old version remains available for decryption of ciphertext encrypted with it.
*
*/
public com.google.common.util.concurrent.ListenableFuture rotate(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.RotateSymmetricKeyRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRotateMethod(), getCallOptions()), request);
}
/**
*
* Lists operations for the specified symmetric KMS key.
*
*/
public com.google.common.util.concurrent.ListenableFuture listOperations(
yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListOperationsMethod(), getCallOptions()), request);
}
/**
*
* Lists existing access bindings for the specified key.
*
*/
public com.google.common.util.concurrent.ListenableFuture listAccessBindings(
yandex.cloud.api.access.Access.ListAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), request);
}
/**
*
* Sets access bindings for the key.
*
*/
public com.google.common.util.concurrent.ListenableFuture setAccessBindings(
yandex.cloud.api.access.Access.SetAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSetAccessBindingsMethod(), getCallOptions()), request);
}
/**
*
* Updates access bindings for the specified key.
*
*/
public com.google.common.util.concurrent.ListenableFuture updateAccessBindings(
yandex.cloud.api.access.Access.UpdateAccessBindingsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateAccessBindingsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE = 0;
private static final int METHODID_GET = 1;
private static final int METHODID_LIST = 2;
private static final int METHODID_LIST_VERSIONS = 3;
private static final int METHODID_UPDATE = 4;
private static final int METHODID_DELETE = 5;
private static final int METHODID_SET_PRIMARY_VERSION = 6;
private static final int METHODID_SCHEDULE_VERSION_DESTRUCTION = 7;
private static final int METHODID_CANCEL_VERSION_DESTRUCTION = 8;
private static final int METHODID_ROTATE = 9;
private static final int METHODID_LIST_OPERATIONS = 10;
private static final int METHODID_LIST_ACCESS_BINDINGS = 11;
private static final int METHODID_SET_ACCESS_BINDINGS = 12;
private static final int METHODID_UPDATE_ACCESS_BINDINGS = 13;
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 SymmetricKeyServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(SymmetricKeyServiceImplBase 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:
serviceImpl.create((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CreateSymmetricKeyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET:
serviceImpl.get((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.GetSymmetricKeyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST:
serviceImpl.list((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeysRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_VERSIONS:
serviceImpl.listVersions((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyVersionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.UpdateSymmetricKeyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.DeleteSymmetricKeyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET_PRIMARY_VERSION:
serviceImpl.setPrimaryVersion((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.SetPrimarySymmetricKeyVersionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SCHEDULE_VERSION_DESTRUCTION:
serviceImpl.scheduleVersionDestruction((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ScheduleSymmetricKeyVersionDestructionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CANCEL_VERSION_DESTRUCTION:
serviceImpl.cancelVersionDestruction((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.CancelSymmetricKeyVersionDestructionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROTATE:
serviceImpl.rotate((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.RotateSymmetricKeyRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_OPERATIONS:
serviceImpl.listOperations((yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.ListSymmetricKeyOperationsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_ACCESS_BINDINGS:
serviceImpl.listAccessBindings((yandex.cloud.api.access.Access.ListAccessBindingsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET_ACCESS_BINDINGS:
serviceImpl.setAccessBindings((yandex.cloud.api.access.Access.SetAccessBindingsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_ACCESS_BINDINGS:
serviceImpl.updateAccessBindings((yandex.cloud.api.access.Access.UpdateAccessBindingsRequest) 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 SymmetricKeyServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
SymmetricKeyServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.kms.v1.SymmetricKeyServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("SymmetricKeyService");
}
}
private static final class SymmetricKeyServiceFileDescriptorSupplier
extends SymmetricKeyServiceBaseDescriptorSupplier {
SymmetricKeyServiceFileDescriptorSupplier() {}
}
private static final class SymmetricKeyServiceMethodDescriptorSupplier
extends SymmetricKeyServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
SymmetricKeyServiceMethodDescriptorSupplier(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 (SymmetricKeyServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new SymmetricKeyServiceFileDescriptorSupplier())
.addMethod(getCreateMethod())
.addMethod(getGetMethod())
.addMethod(getListMethod())
.addMethod(getListVersionsMethod())
.addMethod(getUpdateMethod())
.addMethod(getDeleteMethod())
.addMethod(getSetPrimaryVersionMethod())
.addMethod(getScheduleVersionDestructionMethod())
.addMethod(getCancelVersionDestructionMethod())
.addMethod(getRotateMethod())
.addMethod(getListOperationsMethod())
.addMethod(getListAccessBindingsMethod())
.addMethod(getSetAccessBindingsMethod())
.addMethod(getUpdateAccessBindingsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy